@dxos/diagram 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +105 -0
- package/README.md +10 -0
- package/dist/lib/index.mjs +3975 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/lib/testing.mjs +68 -0
- package/dist/lib/testing.mjs.map +1 -0
- package/dist/types/src/content.d.ts +60 -0
- package/dist/types/src/content.d.ts.map +1 -0
- package/dist/types/src/diagnostics.d.ts +56 -0
- package/dist/types/src/diagnostics.d.ts.map +1 -0
- package/dist/types/src/diagnostics.test.d.ts +2 -0
- package/dist/types/src/diagnostics.test.d.ts.map +1 -0
- package/dist/types/src/dialect.d.ts +19 -0
- package/dist/types/src/dialect.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +16 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/layout.d.ts +26 -0
- package/dist/types/src/layout.d.ts.map +1 -0
- package/dist/types/src/mermaid-engine.d.ts +83 -0
- package/dist/types/src/mermaid-engine.d.ts.map +1 -0
- package/dist/types/src/mermaid-engine.test.d.ts +2 -0
- package/dist/types/src/mermaid-engine.test.d.ts.map +1 -0
- package/dist/types/src/mermaid.d.ts +56 -0
- package/dist/types/src/mermaid.d.ts.map +1 -0
- package/dist/types/src/mermaid.test.d.ts +3 -0
- package/dist/types/src/mermaid.test.d.ts.map +1 -0
- package/dist/types/src/objective.d.ts +75 -0
- package/dist/types/src/objective.d.ts.map +1 -0
- package/dist/types/src/objective.test.d.ts +2 -0
- package/dist/types/src/objective.test.d.ts.map +1 -0
- package/dist/types/src/ortho-router.d.ts +13 -0
- package/dist/types/src/ortho-router.d.ts.map +1 -0
- package/dist/types/src/scene.d.ts +1006 -0
- package/dist/types/src/scene.d.ts.map +1 -0
- package/dist/types/src/scene.test.d.ts +2 -0
- package/dist/types/src/scene.test.d.ts.map +1 -0
- package/dist/types/src/svg-handler.d.ts +5 -0
- package/dist/types/src/svg-handler.d.ts.map +1 -0
- package/dist/types/src/svg-handler.test.d.ts +2 -0
- package/dist/types/src/svg-handler.test.d.ts.map +1 -0
- package/dist/types/src/testing.d.ts +11 -0
- package/dist/types/src/testing.d.ts.map +1 -0
- package/dist/types/src/ui.d.ts +67 -0
- package/dist/types/src/ui.d.ts.map +1 -0
- package/dist/types/src/ui.test.d.ts +2 -0
- package/dist/types/src/ui.test.d.ts.map +1 -0
- package/dist/types/src/uml-engine.d.ts +14 -0
- package/dist/types/src/uml-engine.d.ts.map +1 -0
- package/dist/types/src/uml-engine.test.d.ts +2 -0
- package/dist/types/src/uml-engine.test.d.ts.map +1 -0
- package/dist/types/src/uml-grid.d.ts +99 -0
- package/dist/types/src/uml-grid.d.ts.map +1 -0
- package/dist/types/src/uml-grid.test.d.ts +2 -0
- package/dist/types/src/uml-grid.test.d.ts.map +1 -0
- package/dist/types/src/uml-rules.d.ts +56 -0
- package/dist/types/src/uml-rules.d.ts.map +1 -0
- package/dist/types/src/uml-rules.test.d.ts +2 -0
- package/dist/types/src/uml-rules.test.d.ts.map +1 -0
- package/dist/types/src/uml-search.d.ts +26 -0
- package/dist/types/src/uml-search.d.ts.map +1 -0
- package/dist/types/src/uml-search.test.d.ts +2 -0
- package/dist/types/src/uml-search.test.d.ts.map +1 -0
- package/dist/types/src/uml.d.ts +60 -0
- package/dist/types/src/uml.d.ts.map +1 -0
- package/dist/types/src/uml.test.d.ts +2 -0
- package/dist/types/src/uml.test.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +48 -0
- package/src/__snapshots__/diagnostics.test.ts.snap +36 -0
- package/src/__snapshots__/mermaid-engine.test.ts.snap +22 -0
- package/src/content.ts +180 -0
- package/src/diagnostics.test.ts +173 -0
- package/src/diagnostics.ts +393 -0
- package/src/dialect.ts +53 -0
- package/src/index.ts +19 -0
- package/src/layout.ts +99 -0
- package/src/mermaid-engine.test.ts +244 -0
- package/src/mermaid-engine.ts +863 -0
- package/src/mermaid.test.ts +138 -0
- package/src/mermaid.ts +326 -0
- package/src/objective.test.ts +82 -0
- package/src/objective.ts +157 -0
- package/src/ortho-router.ts +372 -0
- package/src/scene.test.ts +36 -0
- package/src/scene.ts +281 -0
- package/src/svg-handler.test.ts +75 -0
- package/src/svg-handler.ts +119 -0
- package/src/testing.ts +68 -0
- package/src/ui.test.ts +183 -0
- package/src/ui.ts +398 -0
- package/src/uml-engine.test.ts +63 -0
- package/src/uml-engine.ts +146 -0
- package/src/uml-grid.test.ts +175 -0
- package/src/uml-grid.ts +559 -0
- package/src/uml-rules.test.ts +109 -0
- package/src/uml-rules.ts +319 -0
- package/src/uml-search.test.ts +108 -0
- package/src/uml-search.ts +266 -0
- package/src/uml.test.ts +172 -0
- package/src/uml.ts +390 -0
|
@@ -0,0 +1,1006 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const Color: Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>;
|
|
3
|
+
export type Color = Schema.Schema.Type<typeof Color>;
|
|
4
|
+
export declare const Fill: Schema.Literals<readonly ["none", "solid", "pattern"]>;
|
|
5
|
+
export type Fill = Schema.Schema.Type<typeof Fill>;
|
|
6
|
+
export declare const Stroke: Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>;
|
|
7
|
+
export type Stroke = Schema.Schema.Type<typeof Stroke>;
|
|
8
|
+
export declare const Weight: Schema.Literals<readonly ["s", "m", "l", "xl"]>;
|
|
9
|
+
export type Weight = Schema.Schema.Type<typeof Weight>;
|
|
10
|
+
export declare const Point: Schema.Struct<{
|
|
11
|
+
readonly x: Schema.Number;
|
|
12
|
+
readonly y: Schema.Number;
|
|
13
|
+
}>;
|
|
14
|
+
export type Point = Schema.Schema.Type<typeof Point>;
|
|
15
|
+
/** Closed shape drawn inside a local bounding box. */
|
|
16
|
+
export declare const Box: Schema.Struct<{
|
|
17
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
18
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
19
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
20
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
21
|
+
readonly kind: Schema.Literals<readonly ["rect", "ellipse", "diamond", "triangle"]>;
|
|
22
|
+
readonly id: Schema.String;
|
|
23
|
+
readonly x: Schema.Number;
|
|
24
|
+
readonly y: Schema.Number;
|
|
25
|
+
readonly w: Schema.Number;
|
|
26
|
+
readonly h: Schema.Number;
|
|
27
|
+
readonly rotation: Schema.optional<Schema.Number>;
|
|
28
|
+
readonly text: Schema.optional<Schema.String>;
|
|
29
|
+
readonly corners: Schema.optional<Schema.Literals<readonly ["top", "bottom", "none"]>>;
|
|
30
|
+
}>;
|
|
31
|
+
export type Box = Schema.Schema.Type<typeof Box>;
|
|
32
|
+
/** Circle sugar; reads back as an ellipse. */
|
|
33
|
+
export declare const Circle: Schema.Struct<{
|
|
34
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
35
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
36
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
37
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
38
|
+
readonly kind: Schema.Literal<"circle">;
|
|
39
|
+
readonly id: Schema.String;
|
|
40
|
+
readonly cx: Schema.Number;
|
|
41
|
+
readonly cy: Schema.Number;
|
|
42
|
+
readonly r: Schema.Number;
|
|
43
|
+
readonly text: Schema.optional<Schema.String>;
|
|
44
|
+
}>;
|
|
45
|
+
export type Circle = Schema.Schema.Type<typeof Circle>;
|
|
46
|
+
/** Straight segment or open polyline through the given points. */
|
|
47
|
+
export declare const Polyline: Schema.Struct<{
|
|
48
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
49
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
50
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
51
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
52
|
+
readonly kind: Schema.Literal<"line">;
|
|
53
|
+
readonly id: Schema.String;
|
|
54
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
55
|
+
readonly x: Schema.Number;
|
|
56
|
+
readonly y: Schema.Number;
|
|
57
|
+
}>>;
|
|
58
|
+
readonly closed: Schema.optional<Schema.Boolean>;
|
|
59
|
+
}>;
|
|
60
|
+
export type Polyline = Schema.Schema.Type<typeof Polyline>;
|
|
61
|
+
/** Smooth curve through the given points (spline). */
|
|
62
|
+
export declare const Curve: Schema.Struct<{
|
|
63
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
64
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
65
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
66
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
67
|
+
readonly kind: Schema.Literal<"curve">;
|
|
68
|
+
readonly id: Schema.String;
|
|
69
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
70
|
+
readonly x: Schema.Number;
|
|
71
|
+
readonly y: Schema.Number;
|
|
72
|
+
}>>;
|
|
73
|
+
}>;
|
|
74
|
+
export type Curve = Schema.Schema.Type<typeof Curve>;
|
|
75
|
+
/**
|
|
76
|
+
* Circular arc sugar; reads back as a curve. Angles are degrees, measured clockwise from
|
|
77
|
+
* the positive x-axis in screen coordinates (y grows downward): 0–180 is the lower half
|
|
78
|
+
* (a smile), 180–360 the upper half (a frown).
|
|
79
|
+
*/
|
|
80
|
+
export declare const Arc: Schema.Struct<{
|
|
81
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
82
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
83
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
84
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
85
|
+
readonly kind: Schema.Literal<"arc">;
|
|
86
|
+
readonly id: Schema.String;
|
|
87
|
+
readonly cx: Schema.Number;
|
|
88
|
+
readonly cy: Schema.Number;
|
|
89
|
+
readonly r: Schema.Number;
|
|
90
|
+
readonly startAngle: Schema.Number;
|
|
91
|
+
readonly endAngle: Schema.Number;
|
|
92
|
+
}>;
|
|
93
|
+
export type Arc = Schema.Schema.Type<typeof Arc>;
|
|
94
|
+
/** Free-standing text. */
|
|
95
|
+
export declare const Text: Schema.Struct<{
|
|
96
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
97
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
98
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
99
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
100
|
+
readonly kind: Schema.Literal<"text">;
|
|
101
|
+
readonly id: Schema.String;
|
|
102
|
+
readonly x: Schema.Number;
|
|
103
|
+
readonly y: Schema.Number;
|
|
104
|
+
readonly w: Schema.optional<Schema.Number>;
|
|
105
|
+
readonly text: Schema.String;
|
|
106
|
+
}>;
|
|
107
|
+
export type Text = Schema.Schema.Type<typeof Text>;
|
|
108
|
+
/** UML-style end markers: the head sits at the target, the tail at the source. */
|
|
109
|
+
export declare const ArrowHead: Schema.Literals<readonly ["arrow", "triangle", "crowsfoot", "none"]>;
|
|
110
|
+
export type ArrowHead = Schema.Schema.Type<typeof ArrowHead>;
|
|
111
|
+
export declare const ArrowTail: Schema.Literals<readonly ["none", "circle"]>;
|
|
112
|
+
export type ArrowTail = Schema.Schema.Type<typeof ArrowTail>;
|
|
113
|
+
/**
|
|
114
|
+
* Connector. Endpoints are element refs — `"<elementId>"` within the same object or
|
|
115
|
+
* `"<objectId>/<elementId>"` across objects, either with an optional `#<port>` naming an
|
|
116
|
+
* attachment point on the element — or explicit local points. Bound endpoints track their
|
|
117
|
+
* target when it moves; without a port the renderer picks the attachment point.
|
|
118
|
+
*/
|
|
119
|
+
export declare const Arrow: Schema.Struct<{
|
|
120
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
121
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
122
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
123
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
124
|
+
readonly kind: Schema.Literal<"arrow">;
|
|
125
|
+
readonly id: Schema.String;
|
|
126
|
+
readonly from: Schema.optional<Schema.String>;
|
|
127
|
+
readonly to: Schema.optional<Schema.String>;
|
|
128
|
+
readonly start: Schema.optional<Schema.Struct<{
|
|
129
|
+
readonly x: Schema.Number;
|
|
130
|
+
readonly y: Schema.Number;
|
|
131
|
+
}>>;
|
|
132
|
+
readonly end: Schema.optional<Schema.Struct<{
|
|
133
|
+
readonly x: Schema.Number;
|
|
134
|
+
readonly y: Schema.Number;
|
|
135
|
+
}>>;
|
|
136
|
+
readonly text: Schema.optional<Schema.String>;
|
|
137
|
+
readonly head: Schema.optional<Schema.Literals<readonly ["arrow", "triangle", "crowsfoot", "none"]>>;
|
|
138
|
+
readonly tail: Schema.optional<Schema.Literals<readonly ["none", "circle"]>>;
|
|
139
|
+
}>;
|
|
140
|
+
export type Arrow = Schema.Schema.Type<typeof Arrow>;
|
|
141
|
+
/** A parsed endpoint ref; `object` is absent for a ref within the same object. */
|
|
142
|
+
export type ElementRef = {
|
|
143
|
+
object?: string;
|
|
144
|
+
element: string;
|
|
145
|
+
port?: string;
|
|
146
|
+
};
|
|
147
|
+
/** Parse `"[object/]element[#port]"`; element ids may not contain `/` or `#`. */
|
|
148
|
+
export declare const parseRef: (ref: string) => ElementRef;
|
|
149
|
+
/** Inverse of {@link parseRef}. */
|
|
150
|
+
export declare const formatRef: ({ object, element, port }: ElementRef) => string;
|
|
151
|
+
/**
|
|
152
|
+
* Canonical `object/element` handle of a ref, resolving a bare element id against the owning
|
|
153
|
+
* object and dropping the port, so renderers without ports bind to the element itself.
|
|
154
|
+
*/
|
|
155
|
+
export declare const resolveRef: (ref: string, objectId: string) => string;
|
|
156
|
+
/**
|
|
157
|
+
* Window onto another drawing: the referenced scene is rendered inside the box as a nested level
|
|
158
|
+
* of detail. Renderers without nesting ignore it.
|
|
159
|
+
*/
|
|
160
|
+
export declare const Portal: Schema.Struct<{
|
|
161
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
162
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
163
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
164
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
165
|
+
readonly kind: Schema.Literal<"portal">;
|
|
166
|
+
readonly id: Schema.String;
|
|
167
|
+
readonly x: Schema.Number;
|
|
168
|
+
readonly y: Schema.Number;
|
|
169
|
+
readonly w: Schema.Number;
|
|
170
|
+
readonly h: Schema.Number;
|
|
171
|
+
readonly ref: Schema.String;
|
|
172
|
+
readonly text: Schema.optional<Schema.String>;
|
|
173
|
+
}>;
|
|
174
|
+
export type Portal = Schema.Schema.Type<typeof Portal>;
|
|
175
|
+
export declare const Element: Schema.Union<readonly [Schema.Struct<{
|
|
176
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
177
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
178
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
179
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
180
|
+
readonly kind: Schema.Literals<readonly ["rect", "ellipse", "diamond", "triangle"]>;
|
|
181
|
+
readonly id: Schema.String;
|
|
182
|
+
readonly x: Schema.Number;
|
|
183
|
+
readonly y: Schema.Number;
|
|
184
|
+
readonly w: Schema.Number;
|
|
185
|
+
readonly h: Schema.Number;
|
|
186
|
+
readonly rotation: Schema.optional<Schema.Number>;
|
|
187
|
+
readonly text: Schema.optional<Schema.String>;
|
|
188
|
+
readonly corners: Schema.optional<Schema.Literals<readonly ["top", "bottom", "none"]>>;
|
|
189
|
+
}>, Schema.Struct<{
|
|
190
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
191
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
192
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
193
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
194
|
+
readonly kind: Schema.Literal<"circle">;
|
|
195
|
+
readonly id: Schema.String;
|
|
196
|
+
readonly cx: Schema.Number;
|
|
197
|
+
readonly cy: Schema.Number;
|
|
198
|
+
readonly r: Schema.Number;
|
|
199
|
+
readonly text: Schema.optional<Schema.String>;
|
|
200
|
+
}>, Schema.Struct<{
|
|
201
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
202
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
203
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
204
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
205
|
+
readonly kind: Schema.Literal<"line">;
|
|
206
|
+
readonly id: Schema.String;
|
|
207
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
208
|
+
readonly x: Schema.Number;
|
|
209
|
+
readonly y: Schema.Number;
|
|
210
|
+
}>>;
|
|
211
|
+
readonly closed: Schema.optional<Schema.Boolean>;
|
|
212
|
+
}>, Schema.Struct<{
|
|
213
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
214
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
215
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
216
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
217
|
+
readonly kind: Schema.Literal<"curve">;
|
|
218
|
+
readonly id: Schema.String;
|
|
219
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
220
|
+
readonly x: Schema.Number;
|
|
221
|
+
readonly y: Schema.Number;
|
|
222
|
+
}>>;
|
|
223
|
+
}>, Schema.Struct<{
|
|
224
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
225
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
226
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
227
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
228
|
+
readonly kind: Schema.Literal<"arc">;
|
|
229
|
+
readonly id: Schema.String;
|
|
230
|
+
readonly cx: Schema.Number;
|
|
231
|
+
readonly cy: Schema.Number;
|
|
232
|
+
readonly r: Schema.Number;
|
|
233
|
+
readonly startAngle: Schema.Number;
|
|
234
|
+
readonly endAngle: Schema.Number;
|
|
235
|
+
}>, Schema.Struct<{
|
|
236
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
237
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
238
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
239
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
240
|
+
readonly kind: Schema.Literal<"text">;
|
|
241
|
+
readonly id: Schema.String;
|
|
242
|
+
readonly x: Schema.Number;
|
|
243
|
+
readonly y: Schema.Number;
|
|
244
|
+
readonly w: Schema.optional<Schema.Number>;
|
|
245
|
+
readonly text: Schema.String;
|
|
246
|
+
}>, Schema.Struct<{
|
|
247
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
248
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
249
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
250
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
251
|
+
readonly kind: Schema.Literal<"arrow">;
|
|
252
|
+
readonly id: Schema.String;
|
|
253
|
+
readonly from: Schema.optional<Schema.String>;
|
|
254
|
+
readonly to: Schema.optional<Schema.String>;
|
|
255
|
+
readonly start: Schema.optional<Schema.Struct<{
|
|
256
|
+
readonly x: Schema.Number;
|
|
257
|
+
readonly y: Schema.Number;
|
|
258
|
+
}>>;
|
|
259
|
+
readonly end: Schema.optional<Schema.Struct<{
|
|
260
|
+
readonly x: Schema.Number;
|
|
261
|
+
readonly y: Schema.Number;
|
|
262
|
+
}>>;
|
|
263
|
+
readonly text: Schema.optional<Schema.String>;
|
|
264
|
+
readonly head: Schema.optional<Schema.Literals<readonly ["arrow", "triangle", "crowsfoot", "none"]>>;
|
|
265
|
+
readonly tail: Schema.optional<Schema.Literals<readonly ["none", "circle"]>>;
|
|
266
|
+
}>, Schema.Struct<{
|
|
267
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
268
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
269
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
270
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
271
|
+
readonly kind: Schema.Literal<"portal">;
|
|
272
|
+
readonly id: Schema.String;
|
|
273
|
+
readonly x: Schema.Number;
|
|
274
|
+
readonly y: Schema.Number;
|
|
275
|
+
readonly w: Schema.Number;
|
|
276
|
+
readonly h: Schema.Number;
|
|
277
|
+
readonly ref: Schema.String;
|
|
278
|
+
readonly text: Schema.optional<Schema.String>;
|
|
279
|
+
}>]>;
|
|
280
|
+
export type Element = Schema.Schema.Type<typeof Element>;
|
|
281
|
+
/**
|
|
282
|
+
* A semantic group of elements ("face", "hat") authored in its own local unit space.
|
|
283
|
+
* `origin` (canvas px) and `scale` (px per unit) place it on the canvas:
|
|
284
|
+
* `canvas = origin + local * scale`. On read, `origin` is derived as the top-left of the
|
|
285
|
+
* object's bounding box, so the model survives users dragging shapes around.
|
|
286
|
+
*/
|
|
287
|
+
export declare const WorldObject: Schema.Struct<{
|
|
288
|
+
readonly id: Schema.String;
|
|
289
|
+
readonly origin: Schema.optional<Schema.Struct<{
|
|
290
|
+
readonly x: Schema.Number;
|
|
291
|
+
readonly y: Schema.Number;
|
|
292
|
+
}>>;
|
|
293
|
+
readonly scale: Schema.optional<Schema.Number>;
|
|
294
|
+
readonly index: Schema.optional<Schema.String>;
|
|
295
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
296
|
+
readonly elements: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
297
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
298
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
299
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
300
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
301
|
+
readonly kind: Schema.Literals<readonly ["rect", "ellipse", "diamond", "triangle"]>;
|
|
302
|
+
readonly id: Schema.String;
|
|
303
|
+
readonly x: Schema.Number;
|
|
304
|
+
readonly y: Schema.Number;
|
|
305
|
+
readonly w: Schema.Number;
|
|
306
|
+
readonly h: Schema.Number;
|
|
307
|
+
readonly rotation: Schema.optional<Schema.Number>;
|
|
308
|
+
readonly text: Schema.optional<Schema.String>;
|
|
309
|
+
readonly corners: Schema.optional<Schema.Literals<readonly ["top", "bottom", "none"]>>;
|
|
310
|
+
}>, Schema.Struct<{
|
|
311
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
312
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
313
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
314
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
315
|
+
readonly kind: Schema.Literal<"circle">;
|
|
316
|
+
readonly id: Schema.String;
|
|
317
|
+
readonly cx: Schema.Number;
|
|
318
|
+
readonly cy: Schema.Number;
|
|
319
|
+
readonly r: Schema.Number;
|
|
320
|
+
readonly text: Schema.optional<Schema.String>;
|
|
321
|
+
}>, Schema.Struct<{
|
|
322
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
323
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
324
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
325
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
326
|
+
readonly kind: Schema.Literal<"line">;
|
|
327
|
+
readonly id: Schema.String;
|
|
328
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
329
|
+
readonly x: Schema.Number;
|
|
330
|
+
readonly y: Schema.Number;
|
|
331
|
+
}>>;
|
|
332
|
+
readonly closed: Schema.optional<Schema.Boolean>;
|
|
333
|
+
}>, Schema.Struct<{
|
|
334
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
335
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
336
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
337
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
338
|
+
readonly kind: Schema.Literal<"curve">;
|
|
339
|
+
readonly id: Schema.String;
|
|
340
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
341
|
+
readonly x: Schema.Number;
|
|
342
|
+
readonly y: Schema.Number;
|
|
343
|
+
}>>;
|
|
344
|
+
}>, Schema.Struct<{
|
|
345
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
346
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
347
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
348
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
349
|
+
readonly kind: Schema.Literal<"arc">;
|
|
350
|
+
readonly id: Schema.String;
|
|
351
|
+
readonly cx: Schema.Number;
|
|
352
|
+
readonly cy: Schema.Number;
|
|
353
|
+
readonly r: Schema.Number;
|
|
354
|
+
readonly startAngle: Schema.Number;
|
|
355
|
+
readonly endAngle: Schema.Number;
|
|
356
|
+
}>, Schema.Struct<{
|
|
357
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
358
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
359
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
360
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
361
|
+
readonly kind: Schema.Literal<"text">;
|
|
362
|
+
readonly id: Schema.String;
|
|
363
|
+
readonly x: Schema.Number;
|
|
364
|
+
readonly y: Schema.Number;
|
|
365
|
+
readonly w: Schema.optional<Schema.Number>;
|
|
366
|
+
readonly text: Schema.String;
|
|
367
|
+
}>, Schema.Struct<{
|
|
368
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
369
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
370
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
371
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
372
|
+
readonly kind: Schema.Literal<"arrow">;
|
|
373
|
+
readonly id: Schema.String;
|
|
374
|
+
readonly from: Schema.optional<Schema.String>;
|
|
375
|
+
readonly to: Schema.optional<Schema.String>;
|
|
376
|
+
readonly start: Schema.optional<Schema.Struct<{
|
|
377
|
+
readonly x: Schema.Number;
|
|
378
|
+
readonly y: Schema.Number;
|
|
379
|
+
}>>;
|
|
380
|
+
readonly end: Schema.optional<Schema.Struct<{
|
|
381
|
+
readonly x: Schema.Number;
|
|
382
|
+
readonly y: Schema.Number;
|
|
383
|
+
}>>;
|
|
384
|
+
readonly text: Schema.optional<Schema.String>;
|
|
385
|
+
readonly head: Schema.optional<Schema.Literals<readonly ["arrow", "triangle", "crowsfoot", "none"]>>;
|
|
386
|
+
readonly tail: Schema.optional<Schema.Literals<readonly ["none", "circle"]>>;
|
|
387
|
+
}>, Schema.Struct<{
|
|
388
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
389
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
390
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
391
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
392
|
+
readonly kind: Schema.Literal<"portal">;
|
|
393
|
+
readonly id: Schema.String;
|
|
394
|
+
readonly x: Schema.Number;
|
|
395
|
+
readonly y: Schema.Number;
|
|
396
|
+
readonly w: Schema.Number;
|
|
397
|
+
readonly h: Schema.Number;
|
|
398
|
+
readonly ref: Schema.String;
|
|
399
|
+
readonly text: Schema.optional<Schema.String>;
|
|
400
|
+
}>]>>;
|
|
401
|
+
}>;
|
|
402
|
+
export type WorldObject = Schema.Schema.Type<typeof WorldObject>;
|
|
403
|
+
export declare const Scene: Schema.Struct<{
|
|
404
|
+
readonly objects: Schema.$Array<Schema.Struct<{
|
|
405
|
+
readonly id: Schema.String;
|
|
406
|
+
readonly origin: Schema.optional<Schema.Struct<{
|
|
407
|
+
readonly x: Schema.Number;
|
|
408
|
+
readonly y: Schema.Number;
|
|
409
|
+
}>>;
|
|
410
|
+
readonly scale: Schema.optional<Schema.Number>;
|
|
411
|
+
readonly index: Schema.optional<Schema.String>;
|
|
412
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
413
|
+
readonly elements: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
414
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
415
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
416
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
417
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
418
|
+
readonly kind: Schema.Literals<readonly ["rect", "ellipse", "diamond", "triangle"]>;
|
|
419
|
+
readonly id: Schema.String;
|
|
420
|
+
readonly x: Schema.Number;
|
|
421
|
+
readonly y: Schema.Number;
|
|
422
|
+
readonly w: Schema.Number;
|
|
423
|
+
readonly h: Schema.Number;
|
|
424
|
+
readonly rotation: Schema.optional<Schema.Number>;
|
|
425
|
+
readonly text: Schema.optional<Schema.String>;
|
|
426
|
+
readonly corners: Schema.optional<Schema.Literals<readonly ["top", "bottom", "none"]>>;
|
|
427
|
+
}>, Schema.Struct<{
|
|
428
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
429
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
430
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
431
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
432
|
+
readonly kind: Schema.Literal<"circle">;
|
|
433
|
+
readonly id: Schema.String;
|
|
434
|
+
readonly cx: Schema.Number;
|
|
435
|
+
readonly cy: Schema.Number;
|
|
436
|
+
readonly r: Schema.Number;
|
|
437
|
+
readonly text: Schema.optional<Schema.String>;
|
|
438
|
+
}>, Schema.Struct<{
|
|
439
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
440
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
441
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
442
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
443
|
+
readonly kind: Schema.Literal<"line">;
|
|
444
|
+
readonly id: Schema.String;
|
|
445
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
446
|
+
readonly x: Schema.Number;
|
|
447
|
+
readonly y: Schema.Number;
|
|
448
|
+
}>>;
|
|
449
|
+
readonly closed: Schema.optional<Schema.Boolean>;
|
|
450
|
+
}>, Schema.Struct<{
|
|
451
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
452
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
453
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
454
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
455
|
+
readonly kind: Schema.Literal<"curve">;
|
|
456
|
+
readonly id: Schema.String;
|
|
457
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
458
|
+
readonly x: Schema.Number;
|
|
459
|
+
readonly y: Schema.Number;
|
|
460
|
+
}>>;
|
|
461
|
+
}>, Schema.Struct<{
|
|
462
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
463
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
464
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
465
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
466
|
+
readonly kind: Schema.Literal<"arc">;
|
|
467
|
+
readonly id: Schema.String;
|
|
468
|
+
readonly cx: Schema.Number;
|
|
469
|
+
readonly cy: Schema.Number;
|
|
470
|
+
readonly r: Schema.Number;
|
|
471
|
+
readonly startAngle: Schema.Number;
|
|
472
|
+
readonly endAngle: Schema.Number;
|
|
473
|
+
}>, Schema.Struct<{
|
|
474
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
475
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
476
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
477
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
478
|
+
readonly kind: Schema.Literal<"text">;
|
|
479
|
+
readonly id: Schema.String;
|
|
480
|
+
readonly x: Schema.Number;
|
|
481
|
+
readonly y: Schema.Number;
|
|
482
|
+
readonly w: Schema.optional<Schema.Number>;
|
|
483
|
+
readonly text: Schema.String;
|
|
484
|
+
}>, Schema.Struct<{
|
|
485
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
486
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
487
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
488
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
489
|
+
readonly kind: Schema.Literal<"arrow">;
|
|
490
|
+
readonly id: Schema.String;
|
|
491
|
+
readonly from: Schema.optional<Schema.String>;
|
|
492
|
+
readonly to: Schema.optional<Schema.String>;
|
|
493
|
+
readonly start: Schema.optional<Schema.Struct<{
|
|
494
|
+
readonly x: Schema.Number;
|
|
495
|
+
readonly y: Schema.Number;
|
|
496
|
+
}>>;
|
|
497
|
+
readonly end: Schema.optional<Schema.Struct<{
|
|
498
|
+
readonly x: Schema.Number;
|
|
499
|
+
readonly y: Schema.Number;
|
|
500
|
+
}>>;
|
|
501
|
+
readonly text: Schema.optional<Schema.String>;
|
|
502
|
+
readonly head: Schema.optional<Schema.Literals<readonly ["arrow", "triangle", "crowsfoot", "none"]>>;
|
|
503
|
+
readonly tail: Schema.optional<Schema.Literals<readonly ["none", "circle"]>>;
|
|
504
|
+
}>, Schema.Struct<{
|
|
505
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
506
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
507
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
508
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
509
|
+
readonly kind: Schema.Literal<"portal">;
|
|
510
|
+
readonly id: Schema.String;
|
|
511
|
+
readonly x: Schema.Number;
|
|
512
|
+
readonly y: Schema.Number;
|
|
513
|
+
readonly w: Schema.Number;
|
|
514
|
+
readonly h: Schema.Number;
|
|
515
|
+
readonly ref: Schema.String;
|
|
516
|
+
readonly text: Schema.optional<Schema.String>;
|
|
517
|
+
}>]>>;
|
|
518
|
+
}>>;
|
|
519
|
+
}>;
|
|
520
|
+
export type Scene = Schema.Schema.Type<typeof Scene>;
|
|
521
|
+
export declare const UpsertObject: Schema.Struct<{
|
|
522
|
+
readonly op: Schema.Literal<"upsert-object">;
|
|
523
|
+
readonly object: Schema.Struct<{
|
|
524
|
+
readonly id: Schema.String;
|
|
525
|
+
readonly origin: Schema.optional<Schema.Struct<{
|
|
526
|
+
readonly x: Schema.Number;
|
|
527
|
+
readonly y: Schema.Number;
|
|
528
|
+
}>>;
|
|
529
|
+
readonly scale: Schema.optional<Schema.Number>;
|
|
530
|
+
readonly index: Schema.optional<Schema.String>;
|
|
531
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
532
|
+
readonly elements: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
533
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
534
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
535
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
536
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
537
|
+
readonly kind: Schema.Literals<readonly ["rect", "ellipse", "diamond", "triangle"]>;
|
|
538
|
+
readonly id: Schema.String;
|
|
539
|
+
readonly x: Schema.Number;
|
|
540
|
+
readonly y: Schema.Number;
|
|
541
|
+
readonly w: Schema.Number;
|
|
542
|
+
readonly h: Schema.Number;
|
|
543
|
+
readonly rotation: Schema.optional<Schema.Number>;
|
|
544
|
+
readonly text: Schema.optional<Schema.String>;
|
|
545
|
+
readonly corners: Schema.optional<Schema.Literals<readonly ["top", "bottom", "none"]>>;
|
|
546
|
+
}>, Schema.Struct<{
|
|
547
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
548
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
549
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
550
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
551
|
+
readonly kind: Schema.Literal<"circle">;
|
|
552
|
+
readonly id: Schema.String;
|
|
553
|
+
readonly cx: Schema.Number;
|
|
554
|
+
readonly cy: Schema.Number;
|
|
555
|
+
readonly r: Schema.Number;
|
|
556
|
+
readonly text: Schema.optional<Schema.String>;
|
|
557
|
+
}>, Schema.Struct<{
|
|
558
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
559
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
560
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
561
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
562
|
+
readonly kind: Schema.Literal<"line">;
|
|
563
|
+
readonly id: Schema.String;
|
|
564
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
565
|
+
readonly x: Schema.Number;
|
|
566
|
+
readonly y: Schema.Number;
|
|
567
|
+
}>>;
|
|
568
|
+
readonly closed: Schema.optional<Schema.Boolean>;
|
|
569
|
+
}>, Schema.Struct<{
|
|
570
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
571
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
572
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
573
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
574
|
+
readonly kind: Schema.Literal<"curve">;
|
|
575
|
+
readonly id: Schema.String;
|
|
576
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
577
|
+
readonly x: Schema.Number;
|
|
578
|
+
readonly y: Schema.Number;
|
|
579
|
+
}>>;
|
|
580
|
+
}>, Schema.Struct<{
|
|
581
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
582
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
583
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
584
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
585
|
+
readonly kind: Schema.Literal<"arc">;
|
|
586
|
+
readonly id: Schema.String;
|
|
587
|
+
readonly cx: Schema.Number;
|
|
588
|
+
readonly cy: Schema.Number;
|
|
589
|
+
readonly r: Schema.Number;
|
|
590
|
+
readonly startAngle: Schema.Number;
|
|
591
|
+
readonly endAngle: Schema.Number;
|
|
592
|
+
}>, Schema.Struct<{
|
|
593
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
594
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
595
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
596
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
597
|
+
readonly kind: Schema.Literal<"text">;
|
|
598
|
+
readonly id: Schema.String;
|
|
599
|
+
readonly x: Schema.Number;
|
|
600
|
+
readonly y: Schema.Number;
|
|
601
|
+
readonly w: Schema.optional<Schema.Number>;
|
|
602
|
+
readonly text: Schema.String;
|
|
603
|
+
}>, Schema.Struct<{
|
|
604
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
605
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
606
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
607
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
608
|
+
readonly kind: Schema.Literal<"arrow">;
|
|
609
|
+
readonly id: Schema.String;
|
|
610
|
+
readonly from: Schema.optional<Schema.String>;
|
|
611
|
+
readonly to: Schema.optional<Schema.String>;
|
|
612
|
+
readonly start: Schema.optional<Schema.Struct<{
|
|
613
|
+
readonly x: Schema.Number;
|
|
614
|
+
readonly y: Schema.Number;
|
|
615
|
+
}>>;
|
|
616
|
+
readonly end: Schema.optional<Schema.Struct<{
|
|
617
|
+
readonly x: Schema.Number;
|
|
618
|
+
readonly y: Schema.Number;
|
|
619
|
+
}>>;
|
|
620
|
+
readonly text: Schema.optional<Schema.String>;
|
|
621
|
+
readonly head: Schema.optional<Schema.Literals<readonly ["arrow", "triangle", "crowsfoot", "none"]>>;
|
|
622
|
+
readonly tail: Schema.optional<Schema.Literals<readonly ["none", "circle"]>>;
|
|
623
|
+
}>, Schema.Struct<{
|
|
624
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
625
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
626
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
627
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
628
|
+
readonly kind: Schema.Literal<"portal">;
|
|
629
|
+
readonly id: Schema.String;
|
|
630
|
+
readonly x: Schema.Number;
|
|
631
|
+
readonly y: Schema.Number;
|
|
632
|
+
readonly w: Schema.Number;
|
|
633
|
+
readonly h: Schema.Number;
|
|
634
|
+
readonly ref: Schema.String;
|
|
635
|
+
readonly text: Schema.optional<Schema.String>;
|
|
636
|
+
}>]>>;
|
|
637
|
+
}>;
|
|
638
|
+
}>;
|
|
639
|
+
export declare const UpsertElements: Schema.Struct<{
|
|
640
|
+
readonly op: Schema.Literal<"upsert-elements">;
|
|
641
|
+
readonly objectId: Schema.String;
|
|
642
|
+
readonly elements: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
643
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
644
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
645
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
646
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
647
|
+
readonly kind: Schema.Literals<readonly ["rect", "ellipse", "diamond", "triangle"]>;
|
|
648
|
+
readonly id: Schema.String;
|
|
649
|
+
readonly x: Schema.Number;
|
|
650
|
+
readonly y: Schema.Number;
|
|
651
|
+
readonly w: Schema.Number;
|
|
652
|
+
readonly h: Schema.Number;
|
|
653
|
+
readonly rotation: Schema.optional<Schema.Number>;
|
|
654
|
+
readonly text: Schema.optional<Schema.String>;
|
|
655
|
+
readonly corners: Schema.optional<Schema.Literals<readonly ["top", "bottom", "none"]>>;
|
|
656
|
+
}>, Schema.Struct<{
|
|
657
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
658
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
659
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
660
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
661
|
+
readonly kind: Schema.Literal<"circle">;
|
|
662
|
+
readonly id: Schema.String;
|
|
663
|
+
readonly cx: Schema.Number;
|
|
664
|
+
readonly cy: Schema.Number;
|
|
665
|
+
readonly r: Schema.Number;
|
|
666
|
+
readonly text: Schema.optional<Schema.String>;
|
|
667
|
+
}>, Schema.Struct<{
|
|
668
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
669
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
670
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
671
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
672
|
+
readonly kind: Schema.Literal<"line">;
|
|
673
|
+
readonly id: Schema.String;
|
|
674
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
675
|
+
readonly x: Schema.Number;
|
|
676
|
+
readonly y: Schema.Number;
|
|
677
|
+
}>>;
|
|
678
|
+
readonly closed: Schema.optional<Schema.Boolean>;
|
|
679
|
+
}>, Schema.Struct<{
|
|
680
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
681
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
682
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
683
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
684
|
+
readonly kind: Schema.Literal<"curve">;
|
|
685
|
+
readonly id: Schema.String;
|
|
686
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
687
|
+
readonly x: Schema.Number;
|
|
688
|
+
readonly y: Schema.Number;
|
|
689
|
+
}>>;
|
|
690
|
+
}>, Schema.Struct<{
|
|
691
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
692
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
693
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
694
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
695
|
+
readonly kind: Schema.Literal<"arc">;
|
|
696
|
+
readonly id: Schema.String;
|
|
697
|
+
readonly cx: Schema.Number;
|
|
698
|
+
readonly cy: Schema.Number;
|
|
699
|
+
readonly r: Schema.Number;
|
|
700
|
+
readonly startAngle: Schema.Number;
|
|
701
|
+
readonly endAngle: Schema.Number;
|
|
702
|
+
}>, Schema.Struct<{
|
|
703
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
704
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
705
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
706
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
707
|
+
readonly kind: Schema.Literal<"text">;
|
|
708
|
+
readonly id: Schema.String;
|
|
709
|
+
readonly x: Schema.Number;
|
|
710
|
+
readonly y: Schema.Number;
|
|
711
|
+
readonly w: Schema.optional<Schema.Number>;
|
|
712
|
+
readonly text: Schema.String;
|
|
713
|
+
}>, Schema.Struct<{
|
|
714
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
715
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
716
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
717
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
718
|
+
readonly kind: Schema.Literal<"arrow">;
|
|
719
|
+
readonly id: Schema.String;
|
|
720
|
+
readonly from: Schema.optional<Schema.String>;
|
|
721
|
+
readonly to: Schema.optional<Schema.String>;
|
|
722
|
+
readonly start: Schema.optional<Schema.Struct<{
|
|
723
|
+
readonly x: Schema.Number;
|
|
724
|
+
readonly y: Schema.Number;
|
|
725
|
+
}>>;
|
|
726
|
+
readonly end: Schema.optional<Schema.Struct<{
|
|
727
|
+
readonly x: Schema.Number;
|
|
728
|
+
readonly y: Schema.Number;
|
|
729
|
+
}>>;
|
|
730
|
+
readonly text: Schema.optional<Schema.String>;
|
|
731
|
+
readonly head: Schema.optional<Schema.Literals<readonly ["arrow", "triangle", "crowsfoot", "none"]>>;
|
|
732
|
+
readonly tail: Schema.optional<Schema.Literals<readonly ["none", "circle"]>>;
|
|
733
|
+
}>, Schema.Struct<{
|
|
734
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
735
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
736
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
737
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
738
|
+
readonly kind: Schema.Literal<"portal">;
|
|
739
|
+
readonly id: Schema.String;
|
|
740
|
+
readonly x: Schema.Number;
|
|
741
|
+
readonly y: Schema.Number;
|
|
742
|
+
readonly w: Schema.Number;
|
|
743
|
+
readonly h: Schema.Number;
|
|
744
|
+
readonly ref: Schema.String;
|
|
745
|
+
readonly text: Schema.optional<Schema.String>;
|
|
746
|
+
}>]>>;
|
|
747
|
+
}>;
|
|
748
|
+
export declare const RemoveElements: Schema.Struct<{
|
|
749
|
+
readonly op: Schema.Literal<"remove-elements">;
|
|
750
|
+
readonly objectId: Schema.String;
|
|
751
|
+
readonly elementIds: Schema.$Array<Schema.String>;
|
|
752
|
+
}>;
|
|
753
|
+
export declare const RemoveObject: Schema.Struct<{
|
|
754
|
+
readonly op: Schema.Literal<"remove-object">;
|
|
755
|
+
readonly objectId: Schema.String;
|
|
756
|
+
}>;
|
|
757
|
+
export declare const MoveObject: Schema.Struct<{
|
|
758
|
+
readonly op: Schema.Literal<"move-object">;
|
|
759
|
+
readonly objectId: Schema.String;
|
|
760
|
+
readonly origin: Schema.Struct<{
|
|
761
|
+
readonly x: Schema.Number;
|
|
762
|
+
readonly y: Schema.Number;
|
|
763
|
+
}>;
|
|
764
|
+
}>;
|
|
765
|
+
export declare const Command: Schema.Union<readonly [Schema.Struct<{
|
|
766
|
+
readonly op: Schema.Literal<"upsert-object">;
|
|
767
|
+
readonly object: Schema.Struct<{
|
|
768
|
+
readonly id: Schema.String;
|
|
769
|
+
readonly origin: Schema.optional<Schema.Struct<{
|
|
770
|
+
readonly x: Schema.Number;
|
|
771
|
+
readonly y: Schema.Number;
|
|
772
|
+
}>>;
|
|
773
|
+
readonly scale: Schema.optional<Schema.Number>;
|
|
774
|
+
readonly index: Schema.optional<Schema.String>;
|
|
775
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
776
|
+
readonly elements: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
777
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
778
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
779
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
780
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
781
|
+
readonly kind: Schema.Literals<readonly ["rect", "ellipse", "diamond", "triangle"]>;
|
|
782
|
+
readonly id: Schema.String;
|
|
783
|
+
readonly x: Schema.Number;
|
|
784
|
+
readonly y: Schema.Number;
|
|
785
|
+
readonly w: Schema.Number;
|
|
786
|
+
readonly h: Schema.Number;
|
|
787
|
+
readonly rotation: Schema.optional<Schema.Number>;
|
|
788
|
+
readonly text: Schema.optional<Schema.String>;
|
|
789
|
+
readonly corners: Schema.optional<Schema.Literals<readonly ["top", "bottom", "none"]>>;
|
|
790
|
+
}>, Schema.Struct<{
|
|
791
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
792
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
793
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
794
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
795
|
+
readonly kind: Schema.Literal<"circle">;
|
|
796
|
+
readonly id: Schema.String;
|
|
797
|
+
readonly cx: Schema.Number;
|
|
798
|
+
readonly cy: Schema.Number;
|
|
799
|
+
readonly r: Schema.Number;
|
|
800
|
+
readonly text: Schema.optional<Schema.String>;
|
|
801
|
+
}>, Schema.Struct<{
|
|
802
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
803
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
804
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
805
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
806
|
+
readonly kind: Schema.Literal<"line">;
|
|
807
|
+
readonly id: Schema.String;
|
|
808
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
809
|
+
readonly x: Schema.Number;
|
|
810
|
+
readonly y: Schema.Number;
|
|
811
|
+
}>>;
|
|
812
|
+
readonly closed: Schema.optional<Schema.Boolean>;
|
|
813
|
+
}>, Schema.Struct<{
|
|
814
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
815
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
816
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
817
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
818
|
+
readonly kind: Schema.Literal<"curve">;
|
|
819
|
+
readonly id: Schema.String;
|
|
820
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
821
|
+
readonly x: Schema.Number;
|
|
822
|
+
readonly y: Schema.Number;
|
|
823
|
+
}>>;
|
|
824
|
+
}>, Schema.Struct<{
|
|
825
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
826
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
827
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
828
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
829
|
+
readonly kind: Schema.Literal<"arc">;
|
|
830
|
+
readonly id: Schema.String;
|
|
831
|
+
readonly cx: Schema.Number;
|
|
832
|
+
readonly cy: Schema.Number;
|
|
833
|
+
readonly r: Schema.Number;
|
|
834
|
+
readonly startAngle: Schema.Number;
|
|
835
|
+
readonly endAngle: Schema.Number;
|
|
836
|
+
}>, Schema.Struct<{
|
|
837
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
838
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
839
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
840
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
841
|
+
readonly kind: Schema.Literal<"text">;
|
|
842
|
+
readonly id: Schema.String;
|
|
843
|
+
readonly x: Schema.Number;
|
|
844
|
+
readonly y: Schema.Number;
|
|
845
|
+
readonly w: Schema.optional<Schema.Number>;
|
|
846
|
+
readonly text: Schema.String;
|
|
847
|
+
}>, Schema.Struct<{
|
|
848
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
849
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
850
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
851
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
852
|
+
readonly kind: Schema.Literal<"arrow">;
|
|
853
|
+
readonly id: Schema.String;
|
|
854
|
+
readonly from: Schema.optional<Schema.String>;
|
|
855
|
+
readonly to: Schema.optional<Schema.String>;
|
|
856
|
+
readonly start: Schema.optional<Schema.Struct<{
|
|
857
|
+
readonly x: Schema.Number;
|
|
858
|
+
readonly y: Schema.Number;
|
|
859
|
+
}>>;
|
|
860
|
+
readonly end: Schema.optional<Schema.Struct<{
|
|
861
|
+
readonly x: Schema.Number;
|
|
862
|
+
readonly y: Schema.Number;
|
|
863
|
+
}>>;
|
|
864
|
+
readonly text: Schema.optional<Schema.String>;
|
|
865
|
+
readonly head: Schema.optional<Schema.Literals<readonly ["arrow", "triangle", "crowsfoot", "none"]>>;
|
|
866
|
+
readonly tail: Schema.optional<Schema.Literals<readonly ["none", "circle"]>>;
|
|
867
|
+
}>, Schema.Struct<{
|
|
868
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
869
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
870
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
871
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
872
|
+
readonly kind: Schema.Literal<"portal">;
|
|
873
|
+
readonly id: Schema.String;
|
|
874
|
+
readonly x: Schema.Number;
|
|
875
|
+
readonly y: Schema.Number;
|
|
876
|
+
readonly w: Schema.Number;
|
|
877
|
+
readonly h: Schema.Number;
|
|
878
|
+
readonly ref: Schema.String;
|
|
879
|
+
readonly text: Schema.optional<Schema.String>;
|
|
880
|
+
}>]>>;
|
|
881
|
+
}>;
|
|
882
|
+
}>, Schema.Struct<{
|
|
883
|
+
readonly op: Schema.Literal<"upsert-elements">;
|
|
884
|
+
readonly objectId: Schema.String;
|
|
885
|
+
readonly elements: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
886
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
887
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
888
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
889
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
890
|
+
readonly kind: Schema.Literals<readonly ["rect", "ellipse", "diamond", "triangle"]>;
|
|
891
|
+
readonly id: Schema.String;
|
|
892
|
+
readonly x: Schema.Number;
|
|
893
|
+
readonly y: Schema.Number;
|
|
894
|
+
readonly w: Schema.Number;
|
|
895
|
+
readonly h: Schema.Number;
|
|
896
|
+
readonly rotation: Schema.optional<Schema.Number>;
|
|
897
|
+
readonly text: Schema.optional<Schema.String>;
|
|
898
|
+
readonly corners: Schema.optional<Schema.Literals<readonly ["top", "bottom", "none"]>>;
|
|
899
|
+
}>, Schema.Struct<{
|
|
900
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
901
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
902
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
903
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
904
|
+
readonly kind: Schema.Literal<"circle">;
|
|
905
|
+
readonly id: Schema.String;
|
|
906
|
+
readonly cx: Schema.Number;
|
|
907
|
+
readonly cy: Schema.Number;
|
|
908
|
+
readonly r: Schema.Number;
|
|
909
|
+
readonly text: Schema.optional<Schema.String>;
|
|
910
|
+
}>, Schema.Struct<{
|
|
911
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
912
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
913
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
914
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
915
|
+
readonly kind: Schema.Literal<"line">;
|
|
916
|
+
readonly id: Schema.String;
|
|
917
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
918
|
+
readonly x: Schema.Number;
|
|
919
|
+
readonly y: Schema.Number;
|
|
920
|
+
}>>;
|
|
921
|
+
readonly closed: Schema.optional<Schema.Boolean>;
|
|
922
|
+
}>, Schema.Struct<{
|
|
923
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
924
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
925
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
926
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
927
|
+
readonly kind: Schema.Literal<"curve">;
|
|
928
|
+
readonly id: Schema.String;
|
|
929
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
930
|
+
readonly x: Schema.Number;
|
|
931
|
+
readonly y: Schema.Number;
|
|
932
|
+
}>>;
|
|
933
|
+
}>, Schema.Struct<{
|
|
934
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
935
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
936
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
937
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
938
|
+
readonly kind: Schema.Literal<"arc">;
|
|
939
|
+
readonly id: Schema.String;
|
|
940
|
+
readonly cx: Schema.Number;
|
|
941
|
+
readonly cy: Schema.Number;
|
|
942
|
+
readonly r: Schema.Number;
|
|
943
|
+
readonly startAngle: Schema.Number;
|
|
944
|
+
readonly endAngle: Schema.Number;
|
|
945
|
+
}>, Schema.Struct<{
|
|
946
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
947
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
948
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
949
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
950
|
+
readonly kind: Schema.Literal<"text">;
|
|
951
|
+
readonly id: Schema.String;
|
|
952
|
+
readonly x: Schema.Number;
|
|
953
|
+
readonly y: Schema.Number;
|
|
954
|
+
readonly w: Schema.optional<Schema.Number>;
|
|
955
|
+
readonly text: Schema.String;
|
|
956
|
+
}>, Schema.Struct<{
|
|
957
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
958
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
959
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
960
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
961
|
+
readonly kind: Schema.Literal<"arrow">;
|
|
962
|
+
readonly id: Schema.String;
|
|
963
|
+
readonly from: Schema.optional<Schema.String>;
|
|
964
|
+
readonly to: Schema.optional<Schema.String>;
|
|
965
|
+
readonly start: Schema.optional<Schema.Struct<{
|
|
966
|
+
readonly x: Schema.Number;
|
|
967
|
+
readonly y: Schema.Number;
|
|
968
|
+
}>>;
|
|
969
|
+
readonly end: Schema.optional<Schema.Struct<{
|
|
970
|
+
readonly x: Schema.Number;
|
|
971
|
+
readonly y: Schema.Number;
|
|
972
|
+
}>>;
|
|
973
|
+
readonly text: Schema.optional<Schema.String>;
|
|
974
|
+
readonly head: Schema.optional<Schema.Literals<readonly ["arrow", "triangle", "crowsfoot", "none"]>>;
|
|
975
|
+
readonly tail: Schema.optional<Schema.Literals<readonly ["none", "circle"]>>;
|
|
976
|
+
}>, Schema.Struct<{
|
|
977
|
+
readonly color: Schema.optional<Schema.Literals<readonly ["black", "grey", "light-violet", "violet", "blue", "light-blue", "yellow", "orange", "green", "light-green", "light-red", "red", "white"]>>;
|
|
978
|
+
readonly fill: Schema.optional<Schema.Literals<readonly ["none", "solid", "pattern"]>>;
|
|
979
|
+
readonly stroke: Schema.optional<Schema.Literals<readonly ["sketchy", "solid", "dashed", "dotted"]>>;
|
|
980
|
+
readonly weight: Schema.optional<Schema.Literals<readonly ["s", "m", "l", "xl"]>>;
|
|
981
|
+
readonly kind: Schema.Literal<"portal">;
|
|
982
|
+
readonly id: Schema.String;
|
|
983
|
+
readonly x: Schema.Number;
|
|
984
|
+
readonly y: Schema.Number;
|
|
985
|
+
readonly w: Schema.Number;
|
|
986
|
+
readonly h: Schema.Number;
|
|
987
|
+
readonly ref: Schema.String;
|
|
988
|
+
readonly text: Schema.optional<Schema.String>;
|
|
989
|
+
}>]>>;
|
|
990
|
+
}>, Schema.Struct<{
|
|
991
|
+
readonly op: Schema.Literal<"remove-elements">;
|
|
992
|
+
readonly objectId: Schema.String;
|
|
993
|
+
readonly elementIds: Schema.$Array<Schema.String>;
|
|
994
|
+
}>, Schema.Struct<{
|
|
995
|
+
readonly op: Schema.Literal<"remove-object">;
|
|
996
|
+
readonly objectId: Schema.String;
|
|
997
|
+
}>, Schema.Struct<{
|
|
998
|
+
readonly op: Schema.Literal<"move-object">;
|
|
999
|
+
readonly objectId: Schema.String;
|
|
1000
|
+
readonly origin: Schema.Struct<{
|
|
1001
|
+
readonly x: Schema.Number;
|
|
1002
|
+
readonly y: Schema.Number;
|
|
1003
|
+
}>;
|
|
1004
|
+
}>]>;
|
|
1005
|
+
export type Command = Schema.Schema.Type<typeof Command>;
|
|
1006
|
+
//# sourceMappingURL=scene.d.ts.map
|