Shape catalog
ड्राइविंग-सिनारियो shapes
Section titled “ड्राइविंग-सिनारियो shapes”| Shape | उद्देश्य |
|---|---|
| Linestring | निरंतर line, लेन बाउंड्री, curbs, markings के लिए उपयोग की जाती है। |
| Lane | दो बाउंड्री, एक centerline, और कनेक्शन slots (Next / Previous / Left / Right) के साथ एक drivable लेन। |
| Vehicle | Templated वाहन (Sedan, Bus, Truck, Motorcycle)। |
| Pedestrian | Templated पैदल यात्री (Walking, Simple)। |
| Path | तीरों, footprint groups, या सिनारियो paths के लिए trajectory। तीर या band शैली। |
| Polygon | बंद क्षेत्र (parking lot, hatched zone)। |
| Crosswalk | Pre-styled पैदल यात्री crossing। |
| TrafficLight | वाहन या पैदल यात्री signal। |
| Intersection | Multi-lane junction टेम्पलेट। |
Basic shapes
Section titled “Basic shapes”| Shape | उद्देश्य |
|---|---|
| LineArrow | Single-segment तीर। |
| Arrow | Free-form तीर। |
| Text | Plain या annotated text। |
| Math (LaTeX) | KaTeX से render किया गया LaTeX समीकरण, नीचे Math (KaTeX) देखें। |
| Freehand | pen-like stroke के साथ ड्रॉ किया गया। |
| Rectangle | Axis-aligned आयत। |
| Ellipse | Axis-aligned ellipse। |
| Image | इम्पोर्ट किया गया PNG / JPG / SVG। |
Math (KaTeX)
Section titled “Math (KaTeX)”Math shape (toolbar में fx, या /) LaTeX source स्टोर करता है और उसे KaTeX से render करता है। source हमेशा edit योग्य रहता है — किसी भी समीकरण पर double-click करके inline editor फिर से खोलें। step-by-step walkthrough के लिए tutorial देखें।
समर्थित LaTeX
Section titled “समर्थित LaTeX”Math tool KaTeX की supported functions list में मौजूद सब कुछ accept करता है। मुख्य highlights:
| श्रेणी | उदाहरण |
|---|---|
| Greek letters | \alpha \beta \gamma \pi \Omega |
| Operators | \sum \int \prod \lim \nabla |
| भिन्न और वर्गमूल | \frac{a}{b} \sqrt{x} \sqrt[3]{x} |
| Sub/superscripts | x_1^2 x_{i,j}^{n+1} |
| Sets और logic | \in \notin \subseteq \forall \exists \implies |
| Arrows | \to \rightarrow \Rightarrow \leftrightarrow |
| Decorations | \hat{x} \bar{x} \vec{v} \tilde{x} \overline{ABC} |
| Matrices | \begin{pmatrix} a & b \\\\ c & d \end{pmatrix} |
| Aligned systems | \begin{align} f &= g \\\\ h &= k \end{align} |
| Cases | \begin{cases} x & \text{if } y \\\\ 0 & \text{otherwise} \end{cases} |
Chemistry (mhchem) | \ce{2 H2 + O2 -> 2 H2O} \pu{12 km/h} |
Syntax errors editor को crash नहीं करते — KaTeX टाइप करते समय गलत tokens को लाल रंग में highlight करता है।
Style attributes
Section titled “Style attributes”Math attribute panel में ये options मिलते हैं:
| Property | Range / Options |
|---|---|
| Color | drawtonomy palette से कोई भी रंग। default black है। |
| Size | 8 – 200 px (font size)। default 20 px है। पूरा समीकरण proportionally rescale होता है। |
Math shape पर rotation बाकी सभी shapes की तरह ही सेट होती है — selection box के ऊपर दिखने वाले handle को grab करें।
Export
Section titled “Export”Math shapes export formats के हर path से export होते हैं:
- SVG / PNG /
.drawtonomy.svg— render किया गया KaTeX HTML inline embed होता है, जिससे समीकरण किसी भी zoom पर sharp रहता है। - PDF / EPS — text glyphs को
opentype.jsके जरिए paths में convert किया जाता है, जिसमें square-root vinculum (\sqrt) भी शामिल है, इसलिए file को recipient के पास सही fonts होने की जरूरत नहीं।
सीमाएं
Section titled “सीमाएं”- एक canvas पर सैकड़ों समीकरण बनाना काम करता है, लेकिन हर एक independent KaTeX render होता है — बहुत dense pages slow लग सकते हैं।
- Custom KaTeX macros (
\newcommand) समर्थित नहीं हैं; renderer KaTeX defaults के साथmhchemका उपयोग करता है।
कस्टम टेम्पलेट
Section titled “कस्टम टेम्पलेट”आप वाहन, पैदल यात्री, सड़क के निशान, और signs के लिए SVG टेम्पलेट जोड़ सकते हैं। योगदान flow Template Guide में है।