@doki-land/davinci 0.0.0-stage → 0.0.0
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/dist/chart.d.ts +583 -0
- package/dist/chart.js +6328 -0
- package/dist/diagram.d.ts +413 -0
- package/dist/diagram.js +415 -0
- package/dist/index.d.ts +1203 -0
- package/dist/index.js +7561 -0
- package/dist/motion.d.ts +214 -0
- package/dist/motion.js +72 -0
- package/dist/runtime.d.ts +129 -0
- package/dist/runtime.js +101 -0
- package/dist/scene-svg.d.ts +180 -0
- package/dist/scene-svg.js +164 -0
- package/dist/scene.d.ts +406 -0
- package/dist/scene.js +697 -0
- package/dist/types.d.ts +181 -0
- package/dist/types.js +153 -0
- package/package.json +74 -4
- package/README.md +0 -3
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
/** 2D point / vector (x, y). */
|
|
4
|
+
export interface Point2D {
|
|
5
|
+
readonly x: number;
|
|
6
|
+
readonly y: number;
|
|
7
|
+
}
|
|
8
|
+
/** Affine 2D transform matrix (3x3, column-major compact form).
|
|
9
|
+
*
|
|
10
|
+
* ```text
|
|
11
|
+
* | a c tx |
|
|
12
|
+
* | b d ty |
|
|
13
|
+
* | 0 0 1 |
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Standard affine transforms (translate, scale, rotate, skew) compose via
|
|
17
|
+
* {@link multiplyTransform}.
|
|
18
|
+
*/
|
|
19
|
+
export interface Affine2D {
|
|
20
|
+
readonly a: number;
|
|
21
|
+
readonly b: number;
|
|
22
|
+
readonly c: number;
|
|
23
|
+
readonly d: number;
|
|
24
|
+
readonly tx: number;
|
|
25
|
+
readonly ty: number;
|
|
26
|
+
}
|
|
27
|
+
/** A segment of a path — one of the SVG/Cubic-like command primitives. */
|
|
28
|
+
export type PathCommand = {
|
|
29
|
+
readonly kind: "move";
|
|
30
|
+
readonly to: Point2D;
|
|
31
|
+
} | {
|
|
32
|
+
readonly kind: "line";
|
|
33
|
+
readonly to: Point2D;
|
|
34
|
+
} | {
|
|
35
|
+
readonly kind: "cubic";
|
|
36
|
+
readonly cp1: Point2D;
|
|
37
|
+
readonly cp2: Point2D;
|
|
38
|
+
readonly to: Point2D;
|
|
39
|
+
} | {
|
|
40
|
+
readonly kind: "quadratic";
|
|
41
|
+
readonly cp: Point2D;
|
|
42
|
+
readonly to: Point2D;
|
|
43
|
+
} | {
|
|
44
|
+
readonly kind: "arc";
|
|
45
|
+
readonly rx: number;
|
|
46
|
+
readonly ry: number;
|
|
47
|
+
readonly xRot: number;
|
|
48
|
+
readonly largeArc: boolean;
|
|
49
|
+
readonly sweep: boolean;
|
|
50
|
+
readonly to: Point2D;
|
|
51
|
+
} | {
|
|
52
|
+
readonly kind: "close";
|
|
53
|
+
};
|
|
54
|
+
/** A simple path = sequence of commands, optionally closed. */
|
|
55
|
+
export interface Path {
|
|
56
|
+
readonly commands: ReadonlyArray<PathCommand>;
|
|
57
|
+
}
|
|
58
|
+
/** Canonical sRGB color with alpha (0–1 each). */
|
|
59
|
+
export interface RGBA {
|
|
60
|
+
readonly r: number;
|
|
61
|
+
readonly g: number;
|
|
62
|
+
readonly b: number;
|
|
63
|
+
readonly a: number;
|
|
64
|
+
}
|
|
65
|
+
/** A font family + size + weight/style descriptor (platform-neutral). */
|
|
66
|
+
export interface FontSpec {
|
|
67
|
+
readonly family: string;
|
|
68
|
+
readonly sizePx: number;
|
|
69
|
+
readonly weight?: number;
|
|
70
|
+
readonly italic?: boolean;
|
|
71
|
+
}
|
|
72
|
+
/** Axis-aligned rectangle (x, y is top-left, w/h non-negative). */
|
|
73
|
+
export interface Rect {
|
|
74
|
+
readonly x: number;
|
|
75
|
+
readonly y: number;
|
|
76
|
+
readonly w: number;
|
|
77
|
+
readonly h: number;
|
|
78
|
+
}
|
|
79
|
+
/** Semantic alias — used by Scene packages for clarity. */
|
|
80
|
+
export type BoundsRect = Rect;
|
|
81
|
+
export type DiagnosticSeverity = "info" | "warning" | "error";
|
|
82
|
+
/** A single diagnostic item. No reliance on VMZ protocol types. */
|
|
83
|
+
export interface Diagnostic {
|
|
84
|
+
readonly severity: DiagnosticSeverity;
|
|
85
|
+
/** Stable identifier like `davinci.diagram.unsupported`. */
|
|
86
|
+
readonly code: string;
|
|
87
|
+
/** Human-readable message in English. Localization is host-scope. */
|
|
88
|
+
readonly message: string;
|
|
89
|
+
/** Optional source reference (domain, node id, field path, etc.). */
|
|
90
|
+
readonly source?: string;
|
|
91
|
+
}
|
|
92
|
+
/** Immutable diagnostic set — used as output of compile/layout. */
|
|
93
|
+
export interface DiagnosticSet {
|
|
94
|
+
readonly items: ReadonlyArray<Diagnostic>;
|
|
95
|
+
}
|
|
96
|
+
/** Diagram kind hints the layout engine. */
|
|
97
|
+
export type DiagramKind = "flowchart" | "sequence" | "class" | "graph" | "custom";
|
|
98
|
+
/** Direction hint for flowchart layouts. */
|
|
99
|
+
export type FlowDirection = "LR" | "RL" | "TB" | "BT";
|
|
100
|
+
/** Port anchor on a node — edge attaches here. */
|
|
101
|
+
export interface PortSpec {
|
|
102
|
+
readonly id: string;
|
|
103
|
+
/** Side of the node (approximate; layout may adjust). */
|
|
104
|
+
readonly side: "top" | "bottom" | "left" | "right";
|
|
105
|
+
/** Optional label text. */
|
|
106
|
+
readonly label?: string;
|
|
107
|
+
/** Offset from center in pixels (layout-adjusted during resolve). */
|
|
108
|
+
readonly offsetX?: number;
|
|
109
|
+
readonly offsetY?: number;
|
|
110
|
+
}
|
|
111
|
+
/** A node in the diagram graph. */
|
|
112
|
+
export interface DiagramNodeSpec {
|
|
113
|
+
readonly id: string;
|
|
114
|
+
/** Text shown inside the node. */
|
|
115
|
+
readonly label?: string;
|
|
116
|
+
/** Optional initial size hint (in layout units). Overridden by layout. */
|
|
117
|
+
readonly sizeHint?: {
|
|
118
|
+
w: number;
|
|
119
|
+
h: number;
|
|
120
|
+
};
|
|
121
|
+
/** Optional initial position hint (absolute coords). Layout may ignore. */
|
|
122
|
+
readonly positionHint?: {
|
|
123
|
+
x: number;
|
|
124
|
+
y: number;
|
|
125
|
+
};
|
|
126
|
+
/** Side-specific ports. */
|
|
127
|
+
readonly ports?: ReadonlyArray<PortSpec>;
|
|
128
|
+
/** Sub-type hint (shape/style for flowchart nodes like diamond, rounded). */
|
|
129
|
+
readonly nodeKind?: "rect" | "diamond" | "circle" | "ellipse" | "hexagon" | "subgraph" | "custom";
|
|
130
|
+
}
|
|
131
|
+
/** An edge connects two ports (or node centers if ports absent). */
|
|
132
|
+
export interface DiagramEdgeSpec {
|
|
133
|
+
readonly id: string;
|
|
134
|
+
readonly fromNode: string;
|
|
135
|
+
readonly fromPort?: string;
|
|
136
|
+
readonly toNode: string;
|
|
137
|
+
readonly toPort?: string;
|
|
138
|
+
/** Edge label text (optional). */
|
|
139
|
+
readonly label?: string;
|
|
140
|
+
/** Style hint: "solid" | "dashed" | "dotted" | "thick" | "arrow" | "bidirectional" | "no-arrow". */
|
|
141
|
+
readonly edgeKind?: "solid" | "dashed" | "dotted" | "thick" | "arrow" | "bidirectional" | "no-arrow";
|
|
142
|
+
}
|
|
143
|
+
/** A cluster groups nodes for visual enclosure (e.g., flowchart subgraph). */
|
|
144
|
+
export interface DiagramClusterSpec {
|
|
145
|
+
readonly id: string;
|
|
146
|
+
readonly label?: string;
|
|
147
|
+
readonly nodeIds: ReadonlyArray<string>;
|
|
148
|
+
}
|
|
149
|
+
/** A layout constraint (soft hint — layout engine may ignore). */
|
|
150
|
+
export type DiagramConstraint = {
|
|
151
|
+
readonly kind: "ordering";
|
|
152
|
+
readonly before: string;
|
|
153
|
+
readonly after: string;
|
|
154
|
+
} | {
|
|
155
|
+
readonly kind: "same-layer";
|
|
156
|
+
readonly nodeIds: ReadonlyArray<string>;
|
|
157
|
+
} | {
|
|
158
|
+
readonly kind: "separation";
|
|
159
|
+
readonly nodeA: string;
|
|
160
|
+
readonly nodeB: string;
|
|
161
|
+
readonly minGap: number;
|
|
162
|
+
};
|
|
163
|
+
/** Full diagram domain input. */
|
|
164
|
+
export interface DiagramSpec {
|
|
165
|
+
readonly kind: DiagramKind;
|
|
166
|
+
readonly direction?: FlowDirection;
|
|
167
|
+
readonly nodes: ReadonlyArray<DiagramNodeSpec>;
|
|
168
|
+
readonly edges: ReadonlyArray<DiagramEdgeSpec>;
|
|
169
|
+
readonly clusters?: ReadonlyArray<DiagramClusterSpec>;
|
|
170
|
+
readonly constraints?: ReadonlyArray<DiagramConstraint>;
|
|
171
|
+
}
|
|
172
|
+
/** Compute bounds of a DiagramSpec based on position hints and size hints.
|
|
173
|
+
* Returns empty rect if no hints are present (caller should use layout output). */
|
|
174
|
+
export declare function specBounds(spec: DiagramSpec): BoundsRect;
|
|
175
|
+
/** A placed node from layout. */
|
|
176
|
+
export interface LayoutedNode {
|
|
177
|
+
readonly id: string;
|
|
178
|
+
/** Final bounds (after layout). */
|
|
179
|
+
readonly bounds: BoundsRect;
|
|
180
|
+
/** Optional layer index (layered layouts only). */
|
|
181
|
+
readonly layer?: number;
|
|
182
|
+
/** Optional column index within layer. */
|
|
183
|
+
readonly column?: number;
|
|
184
|
+
/** Optional port anchor points on node boundary. */
|
|
185
|
+
readonly portAnchors?: ReadonlyMap<string, {
|
|
186
|
+
x: number;
|
|
187
|
+
y: number;
|
|
188
|
+
}>;
|
|
189
|
+
}
|
|
190
|
+
/** A routed edge from layout — not a raw SVG path; just the control points. */
|
|
191
|
+
export interface RoutedEdge {
|
|
192
|
+
readonly id: string;
|
|
193
|
+
readonly from: {
|
|
194
|
+
x: number;
|
|
195
|
+
y: number;
|
|
196
|
+
};
|
|
197
|
+
readonly to: {
|
|
198
|
+
x: number;
|
|
199
|
+
y: number;
|
|
200
|
+
};
|
|
201
|
+
/** Optional intermediate control points (for orthogonal or bezier routes). */
|
|
202
|
+
readonly route: ReadonlyArray<{
|
|
203
|
+
x: number;
|
|
204
|
+
y: number;
|
|
205
|
+
}>;
|
|
206
|
+
}
|
|
207
|
+
/** Full layout plan — scene builder consumes this. */
|
|
208
|
+
export interface DiagramLayoutPlan {
|
|
209
|
+
readonly nodes: ReadonlyArray<LayoutedNode>;
|
|
210
|
+
readonly edges: ReadonlyArray<RoutedEdge>;
|
|
211
|
+
readonly clusters: ReadonlyArray<{
|
|
212
|
+
id: string;
|
|
213
|
+
bounds: BoundsRect;
|
|
214
|
+
}>;
|
|
215
|
+
/** Overall canvas bounds. */
|
|
216
|
+
readonly canvasBounds: BoundsRect;
|
|
217
|
+
readonly diagnostics: DiagnosticSet;
|
|
218
|
+
}
|
|
219
|
+
/** Compute a simple left-to-right layered layout for flowcharts.
|
|
220
|
+
* Places nodes by topological order and ranks edges backward.
|
|
221
|
+
* Not optimal — produces a workable plan for basic graphs. */
|
|
222
|
+
export declare function simpleLayout(spec: DiagramSpec): DiagramLayoutPlan;
|
|
223
|
+
declare const SCENE_VERSION = "/v0";
|
|
224
|
+
export type SceneVersion = typeof SCENE_VERSION;
|
|
225
|
+
/** A stable identifier assigned by the domain (chart, diagram, ...). */
|
|
226
|
+
export type StableId = string;
|
|
227
|
+
/** High-level semantic role — used for hit-test targets and host binding. */
|
|
228
|
+
export type SemanticRole = "chart.mark" | "chart.axis" | "chart.grid" | "chart.legend" | "diagram.node" | "diagram.edge" | "diagram.label" | "diagram.cluster" | "diagram.port" | "text" | "image" | "decorative" | "group";
|
|
229
|
+
/** Source reference — back-link to the domain object that produced this node.
|
|
230
|
+
* Opaque to Scene; used by host for provenance / edit / export links. */
|
|
231
|
+
export interface SourceRef {
|
|
232
|
+
/** Domain identifier ("chart", "diagram", ...). */
|
|
233
|
+
readonly domain: string;
|
|
234
|
+
/** Optional path within the domain (field name, row index, node id, ...). */
|
|
235
|
+
readonly path?: ReadonlyArray<string | number>;
|
|
236
|
+
}
|
|
237
|
+
/** Hit region — optional explicit target for hit-testing (overrides geometry bounds). */
|
|
238
|
+
export type HitRegion = {
|
|
239
|
+
readonly rect: Rect;
|
|
240
|
+
} | {
|
|
241
|
+
/** Annular sector for pie / donut slices: angle in radians, 0 =
|
|
242
|
+
* +x axis, positive clockwise (screen coordinates, y down). */
|
|
243
|
+
readonly sector: {
|
|
244
|
+
readonly cx: number;
|
|
245
|
+
readonly cy: number;
|
|
246
|
+
readonly rOuter: number;
|
|
247
|
+
readonly rInner: number;
|
|
248
|
+
readonly a0: number;
|
|
249
|
+
readonly a1: number;
|
|
250
|
+
};
|
|
251
|
+
} | {
|
|
252
|
+
/** Polyline vertices in scene order, each with its stable row key —
|
|
253
|
+
* lets a host snap to the nearest real data point on a line or
|
|
254
|
+
* area path instead of interpolating between pixels. */
|
|
255
|
+
readonly polyline: {
|
|
256
|
+
readonly points: ReadonlyArray<Point2D>;
|
|
257
|
+
readonly keys: ReadonlyArray<string>;
|
|
258
|
+
};
|
|
259
|
+
} | {
|
|
260
|
+
/** Closed filled polygon (funnel segments, sankey link ribbons,
|
|
261
|
+
* ridgeline ribbons): the host hit-tests with ray casting inside
|
|
262
|
+
* and falls back to edge distance outside, and anchors tooltips at
|
|
263
|
+
* the polygon centroid. */
|
|
264
|
+
readonly polygon: {
|
|
265
|
+
readonly points: ReadonlyArray<Point2D>;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
export interface BaseSemantic {
|
|
269
|
+
/** Stable identity — MUST be unique within one Scene. */
|
|
270
|
+
readonly id: StableId;
|
|
271
|
+
/** What this node IS (semantic tag, not style). */
|
|
272
|
+
readonly role: SemanticRole;
|
|
273
|
+
/** Optional back-link to domain source. */
|
|
274
|
+
readonly source?: SourceRef;
|
|
275
|
+
/** Optional hit region override. */
|
|
276
|
+
readonly hitRegion?: HitRegion;
|
|
277
|
+
}
|
|
278
|
+
export interface SemanticTransform {
|
|
279
|
+
/** Local transform (will be composed with parent during resolve). */
|
|
280
|
+
readonly transform?: Affine2D;
|
|
281
|
+
/** Optional local clip rect (intersected with parent clip during resolve). */
|
|
282
|
+
readonly clip?: Rect;
|
|
283
|
+
}
|
|
284
|
+
export interface Stroke {
|
|
285
|
+
readonly color?: RGBA;
|
|
286
|
+
readonly width?: number;
|
|
287
|
+
readonly dash?: ReadonlyArray<number>;
|
|
288
|
+
}
|
|
289
|
+
export interface Fill {
|
|
290
|
+
readonly color?: RGBA;
|
|
291
|
+
}
|
|
292
|
+
/** A group node — container only; carries transform/clip and children. */
|
|
293
|
+
export interface SemanticGroup extends BaseSemantic, SemanticTransform {
|
|
294
|
+
readonly kind: "group";
|
|
295
|
+
readonly children: ReadonlyArray<SemanticNode>;
|
|
296
|
+
}
|
|
297
|
+
/** A path shape (SVG/Cubic-style command sequence). */
|
|
298
|
+
export interface SemanticPath extends BaseSemantic, SemanticTransform {
|
|
299
|
+
readonly kind: "path";
|
|
300
|
+
readonly path: Path;
|
|
301
|
+
readonly stroke?: Stroke;
|
|
302
|
+
readonly fill?: Fill;
|
|
303
|
+
}
|
|
304
|
+
/** An axis-aligned rectangle. */
|
|
305
|
+
export interface SemanticRect extends BaseSemantic, SemanticTransform {
|
|
306
|
+
readonly kind: "rect";
|
|
307
|
+
readonly x: number;
|
|
308
|
+
readonly y: number;
|
|
309
|
+
readonly w: number;
|
|
310
|
+
readonly h: number;
|
|
311
|
+
readonly rx?: number;
|
|
312
|
+
readonly ry?: number;
|
|
313
|
+
readonly stroke?: Stroke;
|
|
314
|
+
readonly fill?: Fill;
|
|
315
|
+
}
|
|
316
|
+
/** An ellipse defined by center + radii. */
|
|
317
|
+
export interface SemanticEllipse extends BaseSemantic, SemanticTransform {
|
|
318
|
+
readonly kind: "ellipse";
|
|
319
|
+
readonly cx: number;
|
|
320
|
+
readonly cy: number;
|
|
321
|
+
readonly rx: number;
|
|
322
|
+
readonly ry: number;
|
|
323
|
+
readonly stroke?: Stroke;
|
|
324
|
+
readonly fill?: Fill;
|
|
325
|
+
}
|
|
326
|
+
/** An image — referenced by URL / resource id; NOT raw pixels. */
|
|
327
|
+
export interface SemanticImage extends BaseSemantic, SemanticTransform {
|
|
328
|
+
readonly kind: "image";
|
|
329
|
+
readonly resourceRef: string;
|
|
330
|
+
readonly x: number;
|
|
331
|
+
readonly y: number;
|
|
332
|
+
readonly w: number;
|
|
333
|
+
readonly h: number;
|
|
334
|
+
}
|
|
335
|
+
/** A text node — string + font spec. Host provides actual metrics. */
|
|
336
|
+
export interface SemanticText extends BaseSemantic, SemanticTransform {
|
|
337
|
+
readonly kind: "text";
|
|
338
|
+
readonly text: string;
|
|
339
|
+
readonly font: FontSpec;
|
|
340
|
+
/** Anchor point (where transform-origin of the text block lives). */
|
|
341
|
+
readonly anchor?: Point2D;
|
|
342
|
+
readonly color?: RGBA;
|
|
343
|
+
}
|
|
344
|
+
/** Marker — a reusable symbol placed at points (e.g., line endpoints, scatter glyphs). */
|
|
345
|
+
export interface SemanticMarker extends BaseSemantic, SemanticTransform {
|
|
346
|
+
readonly kind: "marker";
|
|
347
|
+
readonly markerId: string;
|
|
348
|
+
/** Positions to place copies of this marker. */
|
|
349
|
+
readonly positions: ReadonlyArray<Point2D>;
|
|
350
|
+
readonly angle?: number;
|
|
351
|
+
}
|
|
352
|
+
export type SemanticShape = SemanticPath | SemanticRect | SemanticEllipse | SemanticImage | SemanticText | SemanticMarker;
|
|
353
|
+
export type SemanticNode = SemanticGroup | SemanticShape;
|
|
354
|
+
/** The root of a semantic scene. Always a group. */
|
|
355
|
+
export interface SemanticScene {
|
|
356
|
+
/** Contract namespace this scene was built under (`/v0` before 1.0.0). */
|
|
357
|
+
readonly version: SceneVersion;
|
|
358
|
+
readonly root: SemanticGroup;
|
|
359
|
+
}
|
|
360
|
+
/** Presentation tokens the diagram scene builder consumes. */
|
|
361
|
+
export interface DiagramTheme {
|
|
362
|
+
/** Node body fill. */
|
|
363
|
+
readonly nodeFill: RGBA;
|
|
364
|
+
/** Node outline. */
|
|
365
|
+
readonly nodeStroke: RGBA;
|
|
366
|
+
readonly nodeStrokeWidth: number;
|
|
367
|
+
/** Node corner radius in px. */
|
|
368
|
+
readonly nodeRadius: number;
|
|
369
|
+
/** Node label color and font. */
|
|
370
|
+
readonly nodeLabelColor: RGBA;
|
|
371
|
+
readonly nodeLabelFont: FontSpec;
|
|
372
|
+
/** Edge stroke. */
|
|
373
|
+
readonly edgeStroke: RGBA;
|
|
374
|
+
readonly edgeStrokeWidth: number;
|
|
375
|
+
/** Edge label color and font. */
|
|
376
|
+
readonly edgeLabelColor: RGBA;
|
|
377
|
+
readonly edgeLabelFont: FontSpec;
|
|
378
|
+
/** Halo painted behind edge labels so the routed line never strikes
|
|
379
|
+
* through the text. */
|
|
380
|
+
readonly labelHalo: RGBA;
|
|
381
|
+
}
|
|
382
|
+
/** Reference light theme. */
|
|
383
|
+
export declare const DEFAULT_DIAGRAM_THEME: DiagramTheme;
|
|
384
|
+
/** Dark theme — quiet chrome, lifted label contrast. */
|
|
385
|
+
export declare const DARK_DIAGRAM_THEME: DiagramTheme;
|
|
386
|
+
/** Options for the diagram scene build. */
|
|
387
|
+
export interface DiagramSceneOptions {
|
|
388
|
+
/** Presentation tokens; defaults to `DEFAULT_DIAGRAM_THEME`. */
|
|
389
|
+
readonly theme?: DiagramTheme;
|
|
390
|
+
}
|
|
391
|
+
/** Build a SemanticScene from a DiagramSpec + DiagramLayoutPlan. */
|
|
392
|
+
export declare function buildScene(spec: DiagramSpec, plan: DiagramLayoutPlan, options?: DiagramSceneOptions): SemanticScene;
|
|
393
|
+
/** Raw Mermaid source block — host provides fence contents. */
|
|
394
|
+
export interface MermaidBlock {
|
|
395
|
+
readonly language: "mermaid";
|
|
396
|
+
/** The fence body as raw text. */
|
|
397
|
+
readonly source: string;
|
|
398
|
+
/** Optional id from `%%{init: { ... }}%%` or front-matter. */
|
|
399
|
+
readonly id?: string;
|
|
400
|
+
}
|
|
401
|
+
/** Parse a Mermaid block into a DiagramSpec.
|
|
402
|
+
* Returns `undefined` + diagnostics if parsing fails.
|
|
403
|
+
*
|
|
404
|
+
* Currently accepts only manually-constructed specs. Full Mermaid
|
|
405
|
+
* parsing is host-scope. */
|
|
406
|
+
export declare function parseMermaid(_block: MermaidBlock): {
|
|
407
|
+
spec?: DiagramSpec;
|
|
408
|
+
diagnostics: DiagnosticSet;
|
|
409
|
+
};
|
|
410
|
+
/** Convenience wrapper for manually built specs (for tests / future importers). */
|
|
411
|
+
export declare function fromSpec(spec: DiagramSpec): DiagramSpec;
|
|
412
|
+
|
|
413
|
+
export {};
|