@crazyhappyone/auto-graph 0.0.5 → 0.0.6

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/index.d.cts CHANGED
@@ -180,6 +180,22 @@ interface LabelLayout {
180
180
  };
181
181
  diagnostics: Diagnostic[];
182
182
  }
183
+ type TextSurfaceKind = "node-label" | "group-label" | "port-label" | "edge-label" | "compartment-row" | "swimlane-label" | "frame-title";
184
+ interface SolvedTextAnnotation {
185
+ text: string;
186
+ ownerId: string;
187
+ surfaceKind: TextSurfaceKind;
188
+ surfaceIndex?: number;
189
+ box: Box;
190
+ anchor: Box | {
191
+ x: number;
192
+ y: number;
193
+ };
194
+ paddings: Insets;
195
+ lines: LabelLayout["lines"];
196
+ fontSize: number;
197
+ textBackend?: LabelLayout["textBackend"];
198
+ }
183
199
 
184
200
  type NodeShape = "rectangle" | "rounded-rectangle" | "ellipse" | "diamond" | "parallelogram" | "hexagon" | "cylinder";
185
201
  interface Label {
@@ -232,6 +248,70 @@ interface VisualStyle {
232
248
  fill?: string;
233
249
  stroke?: string;
234
250
  }
251
+ interface EvidenceCell {
252
+ text: string;
253
+ style?: VisualStyle;
254
+ }
255
+ interface EvidenceTextLayout {
256
+ lines: string[];
257
+ }
258
+ interface MatrixBlock {
259
+ id: string;
260
+ rows: string[];
261
+ cols: string[];
262
+ cells: EvidenceCell[][];
263
+ position?: Point;
264
+ size?: Size;
265
+ style?: VisualStyle;
266
+ }
267
+ interface CoordinatedMatrixBlock extends MatrixBlock {
268
+ box: Box;
269
+ columnLabelLayouts?: EvidenceTextLayout[];
270
+ rowLabelLayouts?: EvidenceTextLayout[];
271
+ cellLabelLayouts?: EvidenceTextLayout[][];
272
+ }
273
+ interface TableColumn {
274
+ id: string;
275
+ label: Label;
276
+ }
277
+ interface TableRow {
278
+ id: string;
279
+ cells: Record<string, EvidenceCell>;
280
+ }
281
+ interface TableBlock {
282
+ id: string;
283
+ columns: TableColumn[];
284
+ rows: TableRow[];
285
+ position?: Point;
286
+ size?: Size;
287
+ style?: VisualStyle;
288
+ }
289
+ interface CoordinatedTableBlock extends TableBlock {
290
+ box: Box;
291
+ columnXOffsets: number[];
292
+ columnLabelLayouts?: EvidenceTextLayout[];
293
+ cellLabelLayouts?: EvidenceTextLayout[][];
294
+ }
295
+ type EvidencePanelKind = "legend" | "rule" | "note" | "verification";
296
+ interface EvidencePanelItem {
297
+ id?: string;
298
+ label: Label;
299
+ detail?: Label;
300
+ style?: VisualStyle;
301
+ }
302
+ interface EvidencePanel {
303
+ id: string;
304
+ kind: EvidencePanelKind;
305
+ items: EvidencePanelItem[];
306
+ position?: Point;
307
+ size?: Size;
308
+ style?: VisualStyle;
309
+ }
310
+ interface CoordinatedEvidencePanel extends EvidencePanel {
311
+ box: Box;
312
+ titleLayout?: EvidenceTextLayout;
313
+ itemLayouts?: EvidenceTextLayout[];
314
+ }
235
315
  interface NodePort {
236
316
  id: string;
237
317
  label?: Label;
@@ -355,6 +435,9 @@ interface IntentDiagram {
355
435
  edges?: IntentEdge[];
356
436
  groups?: IntentGroup[];
357
437
  swimlanes?: Swimlane[];
438
+ matrices?: MatrixBlock[];
439
+ tables?: TableBlock[];
440
+ evidencePanels?: EvidencePanel[];
358
441
  constraints?: Constraint[];
359
442
  frame?: DiagramFrame;
360
443
  metadata?: DiagramMetadata;
@@ -367,6 +450,9 @@ interface NormalizedDiagram {
367
450
  edges: NormalizedEdge[];
368
451
  groups: NormalizedGroup[];
369
452
  swimlanes?: Swimlane[];
453
+ matrices?: MatrixBlock[];
454
+ tables?: TableBlock[];
455
+ evidencePanels?: EvidencePanel[];
370
456
  constraints: Constraint[];
371
457
  diagnostics: Diagnostic[];
372
458
  frame?: DiagramFrame;
@@ -380,6 +466,10 @@ interface CoordinatedDiagram {
380
466
  edges: CoordinatedEdge[];
381
467
  groups: CoordinatedGroup[];
382
468
  swimlanes?: Swimlane[];
469
+ matrices?: CoordinatedMatrixBlock[];
470
+ tables?: CoordinatedTableBlock[];
471
+ evidencePanels?: CoordinatedEvidencePanel[];
472
+ textAnnotations?: SolvedTextAnnotation[];
383
473
  diagnostics: Diagnostic[];
384
474
  bounds: Box;
385
475
  frame?: CoordinatedFrame;
@@ -572,6 +662,7 @@ interface RouteEdgeInput {
572
662
  sourceAnchor?: AnchorName;
573
663
  targetAnchor?: AnchorName;
574
664
  obstacles?: readonly Box[];
665
+ hardObstacles?: readonly Box[];
575
666
  }
576
667
  interface RouteEdgeResult {
577
668
  points: Point[];
@@ -596,6 +687,7 @@ interface SolveDiagramOptions {
596
687
  obstacleMargin?: number | Insets;
597
688
  overlapSpacing?: number;
598
689
  portShifting?: PortShiftingOptions;
690
+ textMeasurer?: TextMeasurer;
599
691
  }
600
692
  interface PortShiftingOptions {
601
693
  enabled?: boolean;
@@ -603,4 +695,4 @@ interface PortShiftingOptions {
603
695
  }
604
696
  declare function solveDiagram(diagram: NormalizedDiagram, options?: SolveDiagramOptions): CoordinatedDiagram;
605
697
 
606
- export { type AlignConstraint, type AlignmentAxis, type AnchorName, type AnchorPoint, type Arrowhead, type Box, type CanonicalJson, type CanonicalizeOptions, type Constraint, type ConstraintBase, type ConstraintSolverInput, type ConstraintSolverResult, type ConstraintTarget, type ConstraintTargetKind, type ContainerGeometry, type ContainerGeometryInput, type ContainmentConstraint, type CoordinatedDiagram, type CoordinatedEdge, type CoordinatedFrame, type CoordinatedGroup, type CoordinatedNode, type CoordinatedPort, DEFAULT_CANONICAL_PRECISION, DEFAULT_DSL_MAX_BYTES, type DagreLayoutEdge, type DagreLayoutInput, type DagreLayoutNode, type DagreLayoutOptions, type DefaultTextMeasurerOptions, DeterministicTextMeasurer, type Diagnostic, type DiagnosticPathSegment, type DiagnosticSeverity, type DiagramDirection, type DiagramFrame, type DiagramMetadata, type DiagramStage, type DistributeConstraint, type DistributionAxis, type DslDiagnostic, type DslDiagnosticLayer, type DslOutputFormat, type EdgeArrowhead, type EdgeEndpoint, type EdgeStrokeStyle, type ExactPositionConstraint, type ExportFormat, type ExportOptions, type ExportResult, type InitialLayoutResult, type Insets, type IntentDiagram, type IntentEdge, type IntentGroup, type IntentNode, type JsonObject, type JsonPrimitive, type JsonValue, type Label, type LabelFitOptions, LabelFitter, type LabelLayout, type LabelLineLayout, type LayoutLock, type LayoutLockSource, type NodeBase, type NodeCompartments, type NodePort, type NodeShape, type NormalizeDiagramDslOptions, type NormalizeDiagramDslResult, type NormalizedDiagram, type NormalizedEdge, type NormalizedGroup, type NormalizedNode, type ParseDiagramDslOptions, type ParseDiagramDslResult, type ParsedEdgeShorthand, type Point, type PortKind, type PortShiftingOptions, type PortSide, type PreparedText, PretextTextMeasurer, type RelativePositionConstraint, type RelativePositionRelation, type RenderDiagramDslOptions, type RenderDiagramDslResult, type RouteEdgeInput, type RouteEdgeResult, type RouteKind, type ShapeGeometry, type ShapeGeometryInput, type Size, type SolveDiagramOptions, type Swimlane, type SwimlaneLane, type SwimlaneLayout, type SwimlaneOrientation, type TextCursor, type TextLayout, type TextLayoutLine, type TextMeasurementBackend, type TextMeasurer, type TextStyleOptions, type VisualStyle, applyLayoutConstraints, assertFiniteNonNegative, assertFinitePositive, boxCenter, canonicalize, computeArrowhead, computeContainerGeometry, computeShapeGeometry, createDefaultTextMeasurer, expandBox, exportExcalidraw, exportSvg, fitLabel, getEdgePort, installNodeCanvasRuntime, intersectsAabb, isPretextRuntimeAvailable, normalizeDiagramDsl, normalizeInsets, parseDiagramDsl, parseEdgeShorthand, renderDiagramDsl, resolveLineHeight, resolveOutputFormat, routeEdge, runDagreInitialLayout, simplifyRoute, solveDiagram, sortDslDiagnostics, stringifyCanonical, toCanvasFont, unionBoxes, validateBox, validateTextStyle };
698
+ export { type AlignConstraint, type AlignmentAxis, type AnchorName, type AnchorPoint, type Arrowhead, type Box, type CanonicalJson, type CanonicalizeOptions, type Constraint, type ConstraintBase, type ConstraintSolverInput, type ConstraintSolverResult, type ConstraintTarget, type ConstraintTargetKind, type ContainerGeometry, type ContainerGeometryInput, type ContainmentConstraint, type CoordinatedDiagram, type CoordinatedEdge, type CoordinatedEvidencePanel, type CoordinatedFrame, type CoordinatedGroup, type CoordinatedMatrixBlock, type CoordinatedNode, type CoordinatedPort, type CoordinatedTableBlock, DEFAULT_CANONICAL_PRECISION, DEFAULT_DSL_MAX_BYTES, type DagreLayoutEdge, type DagreLayoutInput, type DagreLayoutNode, type DagreLayoutOptions, type DefaultTextMeasurerOptions, DeterministicTextMeasurer, type Diagnostic, type DiagnosticPathSegment, type DiagnosticSeverity, type DiagramDirection, type DiagramFrame, type DiagramMetadata, type DiagramStage, type DistributeConstraint, type DistributionAxis, type DslDiagnostic, type DslDiagnosticLayer, type DslOutputFormat, type EdgeArrowhead, type EdgeEndpoint, type EdgeStrokeStyle, type EvidenceCell, type EvidencePanel, type EvidencePanelItem, type EvidencePanelKind, type EvidenceTextLayout, type ExactPositionConstraint, type ExportFormat, type ExportOptions, type ExportResult, type InitialLayoutResult, type Insets, type IntentDiagram, type IntentEdge, type IntentGroup, type IntentNode, type JsonObject, type JsonPrimitive, type JsonValue, type Label, type LabelFitOptions, LabelFitter, type LabelLayout, type LabelLineLayout, type LayoutLock, type LayoutLockSource, type MatrixBlock, type NodeBase, type NodeCompartments, type NodePort, type NodeShape, type NormalizeDiagramDslOptions, type NormalizeDiagramDslResult, type NormalizedDiagram, type NormalizedEdge, type NormalizedGroup, type NormalizedNode, type ParseDiagramDslOptions, type ParseDiagramDslResult, type ParsedEdgeShorthand, type Point, type PortKind, type PortShiftingOptions, type PortSide, type PreparedText, PretextTextMeasurer, type RelativePositionConstraint, type RelativePositionRelation, type RenderDiagramDslOptions, type RenderDiagramDslResult, type RouteEdgeInput, type RouteEdgeResult, type RouteKind, type ShapeGeometry, type ShapeGeometryInput, type Size, type SolveDiagramOptions, type SolvedTextAnnotation, type Swimlane, type SwimlaneLane, type SwimlaneLayout, type SwimlaneOrientation, type TableBlock, type TableColumn, type TableRow, type TextCursor, type TextLayout, type TextLayoutLine, type TextMeasurementBackend, type TextMeasurer, type TextStyleOptions, type TextSurfaceKind, type VisualStyle, applyLayoutConstraints, assertFiniteNonNegative, assertFinitePositive, boxCenter, canonicalize, computeArrowhead, computeContainerGeometry, computeShapeGeometry, createDefaultTextMeasurer, expandBox, exportExcalidraw, exportSvg, fitLabel, getEdgePort, installNodeCanvasRuntime, intersectsAabb, isPretextRuntimeAvailable, normalizeDiagramDsl, normalizeInsets, parseDiagramDsl, parseEdgeShorthand, renderDiagramDsl, resolveLineHeight, resolveOutputFormat, routeEdge, runDagreInitialLayout, simplifyRoute, solveDiagram, sortDslDiagnostics, stringifyCanonical, toCanvasFont, unionBoxes, validateBox, validateTextStyle };
package/dist/index.d.ts CHANGED
@@ -180,6 +180,22 @@ interface LabelLayout {
180
180
  };
181
181
  diagnostics: Diagnostic[];
182
182
  }
183
+ type TextSurfaceKind = "node-label" | "group-label" | "port-label" | "edge-label" | "compartment-row" | "swimlane-label" | "frame-title";
184
+ interface SolvedTextAnnotation {
185
+ text: string;
186
+ ownerId: string;
187
+ surfaceKind: TextSurfaceKind;
188
+ surfaceIndex?: number;
189
+ box: Box;
190
+ anchor: Box | {
191
+ x: number;
192
+ y: number;
193
+ };
194
+ paddings: Insets;
195
+ lines: LabelLayout["lines"];
196
+ fontSize: number;
197
+ textBackend?: LabelLayout["textBackend"];
198
+ }
183
199
 
184
200
  type NodeShape = "rectangle" | "rounded-rectangle" | "ellipse" | "diamond" | "parallelogram" | "hexagon" | "cylinder";
185
201
  interface Label {
@@ -232,6 +248,70 @@ interface VisualStyle {
232
248
  fill?: string;
233
249
  stroke?: string;
234
250
  }
251
+ interface EvidenceCell {
252
+ text: string;
253
+ style?: VisualStyle;
254
+ }
255
+ interface EvidenceTextLayout {
256
+ lines: string[];
257
+ }
258
+ interface MatrixBlock {
259
+ id: string;
260
+ rows: string[];
261
+ cols: string[];
262
+ cells: EvidenceCell[][];
263
+ position?: Point;
264
+ size?: Size;
265
+ style?: VisualStyle;
266
+ }
267
+ interface CoordinatedMatrixBlock extends MatrixBlock {
268
+ box: Box;
269
+ columnLabelLayouts?: EvidenceTextLayout[];
270
+ rowLabelLayouts?: EvidenceTextLayout[];
271
+ cellLabelLayouts?: EvidenceTextLayout[][];
272
+ }
273
+ interface TableColumn {
274
+ id: string;
275
+ label: Label;
276
+ }
277
+ interface TableRow {
278
+ id: string;
279
+ cells: Record<string, EvidenceCell>;
280
+ }
281
+ interface TableBlock {
282
+ id: string;
283
+ columns: TableColumn[];
284
+ rows: TableRow[];
285
+ position?: Point;
286
+ size?: Size;
287
+ style?: VisualStyle;
288
+ }
289
+ interface CoordinatedTableBlock extends TableBlock {
290
+ box: Box;
291
+ columnXOffsets: number[];
292
+ columnLabelLayouts?: EvidenceTextLayout[];
293
+ cellLabelLayouts?: EvidenceTextLayout[][];
294
+ }
295
+ type EvidencePanelKind = "legend" | "rule" | "note" | "verification";
296
+ interface EvidencePanelItem {
297
+ id?: string;
298
+ label: Label;
299
+ detail?: Label;
300
+ style?: VisualStyle;
301
+ }
302
+ interface EvidencePanel {
303
+ id: string;
304
+ kind: EvidencePanelKind;
305
+ items: EvidencePanelItem[];
306
+ position?: Point;
307
+ size?: Size;
308
+ style?: VisualStyle;
309
+ }
310
+ interface CoordinatedEvidencePanel extends EvidencePanel {
311
+ box: Box;
312
+ titleLayout?: EvidenceTextLayout;
313
+ itemLayouts?: EvidenceTextLayout[];
314
+ }
235
315
  interface NodePort {
236
316
  id: string;
237
317
  label?: Label;
@@ -355,6 +435,9 @@ interface IntentDiagram {
355
435
  edges?: IntentEdge[];
356
436
  groups?: IntentGroup[];
357
437
  swimlanes?: Swimlane[];
438
+ matrices?: MatrixBlock[];
439
+ tables?: TableBlock[];
440
+ evidencePanels?: EvidencePanel[];
358
441
  constraints?: Constraint[];
359
442
  frame?: DiagramFrame;
360
443
  metadata?: DiagramMetadata;
@@ -367,6 +450,9 @@ interface NormalizedDiagram {
367
450
  edges: NormalizedEdge[];
368
451
  groups: NormalizedGroup[];
369
452
  swimlanes?: Swimlane[];
453
+ matrices?: MatrixBlock[];
454
+ tables?: TableBlock[];
455
+ evidencePanels?: EvidencePanel[];
370
456
  constraints: Constraint[];
371
457
  diagnostics: Diagnostic[];
372
458
  frame?: DiagramFrame;
@@ -380,6 +466,10 @@ interface CoordinatedDiagram {
380
466
  edges: CoordinatedEdge[];
381
467
  groups: CoordinatedGroup[];
382
468
  swimlanes?: Swimlane[];
469
+ matrices?: CoordinatedMatrixBlock[];
470
+ tables?: CoordinatedTableBlock[];
471
+ evidencePanels?: CoordinatedEvidencePanel[];
472
+ textAnnotations?: SolvedTextAnnotation[];
383
473
  diagnostics: Diagnostic[];
384
474
  bounds: Box;
385
475
  frame?: CoordinatedFrame;
@@ -572,6 +662,7 @@ interface RouteEdgeInput {
572
662
  sourceAnchor?: AnchorName;
573
663
  targetAnchor?: AnchorName;
574
664
  obstacles?: readonly Box[];
665
+ hardObstacles?: readonly Box[];
575
666
  }
576
667
  interface RouteEdgeResult {
577
668
  points: Point[];
@@ -596,6 +687,7 @@ interface SolveDiagramOptions {
596
687
  obstacleMargin?: number | Insets;
597
688
  overlapSpacing?: number;
598
689
  portShifting?: PortShiftingOptions;
690
+ textMeasurer?: TextMeasurer;
599
691
  }
600
692
  interface PortShiftingOptions {
601
693
  enabled?: boolean;
@@ -603,4 +695,4 @@ interface PortShiftingOptions {
603
695
  }
604
696
  declare function solveDiagram(diagram: NormalizedDiagram, options?: SolveDiagramOptions): CoordinatedDiagram;
605
697
 
606
- export { type AlignConstraint, type AlignmentAxis, type AnchorName, type AnchorPoint, type Arrowhead, type Box, type CanonicalJson, type CanonicalizeOptions, type Constraint, type ConstraintBase, type ConstraintSolverInput, type ConstraintSolverResult, type ConstraintTarget, type ConstraintTargetKind, type ContainerGeometry, type ContainerGeometryInput, type ContainmentConstraint, type CoordinatedDiagram, type CoordinatedEdge, type CoordinatedFrame, type CoordinatedGroup, type CoordinatedNode, type CoordinatedPort, DEFAULT_CANONICAL_PRECISION, DEFAULT_DSL_MAX_BYTES, type DagreLayoutEdge, type DagreLayoutInput, type DagreLayoutNode, type DagreLayoutOptions, type DefaultTextMeasurerOptions, DeterministicTextMeasurer, type Diagnostic, type DiagnosticPathSegment, type DiagnosticSeverity, type DiagramDirection, type DiagramFrame, type DiagramMetadata, type DiagramStage, type DistributeConstraint, type DistributionAxis, type DslDiagnostic, type DslDiagnosticLayer, type DslOutputFormat, type EdgeArrowhead, type EdgeEndpoint, type EdgeStrokeStyle, type ExactPositionConstraint, type ExportFormat, type ExportOptions, type ExportResult, type InitialLayoutResult, type Insets, type IntentDiagram, type IntentEdge, type IntentGroup, type IntentNode, type JsonObject, type JsonPrimitive, type JsonValue, type Label, type LabelFitOptions, LabelFitter, type LabelLayout, type LabelLineLayout, type LayoutLock, type LayoutLockSource, type NodeBase, type NodeCompartments, type NodePort, type NodeShape, type NormalizeDiagramDslOptions, type NormalizeDiagramDslResult, type NormalizedDiagram, type NormalizedEdge, type NormalizedGroup, type NormalizedNode, type ParseDiagramDslOptions, type ParseDiagramDslResult, type ParsedEdgeShorthand, type Point, type PortKind, type PortShiftingOptions, type PortSide, type PreparedText, PretextTextMeasurer, type RelativePositionConstraint, type RelativePositionRelation, type RenderDiagramDslOptions, type RenderDiagramDslResult, type RouteEdgeInput, type RouteEdgeResult, type RouteKind, type ShapeGeometry, type ShapeGeometryInput, type Size, type SolveDiagramOptions, type Swimlane, type SwimlaneLane, type SwimlaneLayout, type SwimlaneOrientation, type TextCursor, type TextLayout, type TextLayoutLine, type TextMeasurementBackend, type TextMeasurer, type TextStyleOptions, type VisualStyle, applyLayoutConstraints, assertFiniteNonNegative, assertFinitePositive, boxCenter, canonicalize, computeArrowhead, computeContainerGeometry, computeShapeGeometry, createDefaultTextMeasurer, expandBox, exportExcalidraw, exportSvg, fitLabel, getEdgePort, installNodeCanvasRuntime, intersectsAabb, isPretextRuntimeAvailable, normalizeDiagramDsl, normalizeInsets, parseDiagramDsl, parseEdgeShorthand, renderDiagramDsl, resolveLineHeight, resolveOutputFormat, routeEdge, runDagreInitialLayout, simplifyRoute, solveDiagram, sortDslDiagnostics, stringifyCanonical, toCanvasFont, unionBoxes, validateBox, validateTextStyle };
698
+ export { type AlignConstraint, type AlignmentAxis, type AnchorName, type AnchorPoint, type Arrowhead, type Box, type CanonicalJson, type CanonicalizeOptions, type Constraint, type ConstraintBase, type ConstraintSolverInput, type ConstraintSolverResult, type ConstraintTarget, type ConstraintTargetKind, type ContainerGeometry, type ContainerGeometryInput, type ContainmentConstraint, type CoordinatedDiagram, type CoordinatedEdge, type CoordinatedEvidencePanel, type CoordinatedFrame, type CoordinatedGroup, type CoordinatedMatrixBlock, type CoordinatedNode, type CoordinatedPort, type CoordinatedTableBlock, DEFAULT_CANONICAL_PRECISION, DEFAULT_DSL_MAX_BYTES, type DagreLayoutEdge, type DagreLayoutInput, type DagreLayoutNode, type DagreLayoutOptions, type DefaultTextMeasurerOptions, DeterministicTextMeasurer, type Diagnostic, type DiagnosticPathSegment, type DiagnosticSeverity, type DiagramDirection, type DiagramFrame, type DiagramMetadata, type DiagramStage, type DistributeConstraint, type DistributionAxis, type DslDiagnostic, type DslDiagnosticLayer, type DslOutputFormat, type EdgeArrowhead, type EdgeEndpoint, type EdgeStrokeStyle, type EvidenceCell, type EvidencePanel, type EvidencePanelItem, type EvidencePanelKind, type EvidenceTextLayout, type ExactPositionConstraint, type ExportFormat, type ExportOptions, type ExportResult, type InitialLayoutResult, type Insets, type IntentDiagram, type IntentEdge, type IntentGroup, type IntentNode, type JsonObject, type JsonPrimitive, type JsonValue, type Label, type LabelFitOptions, LabelFitter, type LabelLayout, type LabelLineLayout, type LayoutLock, type LayoutLockSource, type MatrixBlock, type NodeBase, type NodeCompartments, type NodePort, type NodeShape, type NormalizeDiagramDslOptions, type NormalizeDiagramDslResult, type NormalizedDiagram, type NormalizedEdge, type NormalizedGroup, type NormalizedNode, type ParseDiagramDslOptions, type ParseDiagramDslResult, type ParsedEdgeShorthand, type Point, type PortKind, type PortShiftingOptions, type PortSide, type PreparedText, PretextTextMeasurer, type RelativePositionConstraint, type RelativePositionRelation, type RenderDiagramDslOptions, type RenderDiagramDslResult, type RouteEdgeInput, type RouteEdgeResult, type RouteKind, type ShapeGeometry, type ShapeGeometryInput, type Size, type SolveDiagramOptions, type SolvedTextAnnotation, type Swimlane, type SwimlaneLane, type SwimlaneLayout, type SwimlaneOrientation, type TableBlock, type TableColumn, type TableRow, type TextCursor, type TextLayout, type TextLayoutLine, type TextMeasurementBackend, type TextMeasurer, type TextStyleOptions, type TextSurfaceKind, type VisualStyle, applyLayoutConstraints, assertFiniteNonNegative, assertFinitePositive, boxCenter, canonicalize, computeArrowhead, computeContainerGeometry, computeShapeGeometry, createDefaultTextMeasurer, expandBox, exportExcalidraw, exportSvg, fitLabel, getEdgePort, installNodeCanvasRuntime, intersectsAabb, isPretextRuntimeAvailable, normalizeDiagramDsl, normalizeInsets, parseDiagramDsl, parseEdgeShorthand, renderDiagramDsl, resolveLineHeight, resolveOutputFormat, routeEdge, runDagreInitialLayout, simplifyRoute, solveDiagram, sortDslDiagnostics, stringifyCanonical, toCanvasFont, unionBoxes, validateBox, validateTextStyle };