@invana/canvas-core 0.0.18 → 0.0.20
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-CZuSgBOJ.d.ts → index-zLHS9XBy.d.ts} +21 -0
- package/dist/index.d.ts +239 -65
- package/dist/index.js +86 -15
- package/dist/index.js.map +1 -1
- package/dist/specs/index.d.ts +1 -1
- package/dist/specs/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -396,6 +396,13 @@ type ShapeFillLayer = {
|
|
|
396
396
|
readonly sizeRatio?: number;
|
|
397
397
|
/** Anchor relative to the shape's bounds. Default `'center'`. */
|
|
398
398
|
readonly anchor?: InsetAnchor;
|
|
399
|
+
/**
|
|
400
|
+
* Rotation of the inset about its own centre, in **radians, clockwise from
|
|
401
|
+
* up** (a compass course in radians). Default `0`. Applied without
|
|
402
|
+
* rebuilding the inset, so it is cheap to change per frame; the shape's
|
|
403
|
+
* label and silhouette are not rotated.
|
|
404
|
+
*/
|
|
405
|
+
readonly rotation?: number;
|
|
399
406
|
} | {
|
|
400
407
|
/** SVG path-d. Multiple subpaths (`M...M...`) are supported. */
|
|
401
408
|
readonly kind: 'svg';
|
|
@@ -411,6 +418,13 @@ type ShapeFillLayer = {
|
|
|
411
418
|
readonly alpha?: number;
|
|
412
419
|
readonly sizeRatio?: number;
|
|
413
420
|
readonly anchor?: InsetAnchor;
|
|
421
|
+
/**
|
|
422
|
+
* Rotation of the inset about its own centre, in **radians, clockwise from
|
|
423
|
+
* up** (a compass course in radians). Default `0`. Applied without
|
|
424
|
+
* rebuilding the inset, so it is cheap to change per frame; the shape's
|
|
425
|
+
* label and silhouette are not rotated.
|
|
426
|
+
*/
|
|
427
|
+
readonly rotation?: number;
|
|
414
428
|
} | {
|
|
415
429
|
/**
|
|
416
430
|
* Vector SVG icon fetched from a URL. The engine fetches the SVG,
|
|
@@ -436,6 +450,13 @@ type ShapeFillLayer = {
|
|
|
436
450
|
readonly alpha?: number;
|
|
437
451
|
readonly sizeRatio?: number;
|
|
438
452
|
readonly anchor?: InsetAnchor;
|
|
453
|
+
/**
|
|
454
|
+
* Rotation of the inset about its own centre, in **radians, clockwise from
|
|
455
|
+
* up** (a compass course in radians). Default `0`. Applied without
|
|
456
|
+
* rebuilding the inset, so it is cheap to change per frame; the shape's
|
|
457
|
+
* label and silhouette are not rotated.
|
|
458
|
+
*/
|
|
459
|
+
readonly rotation?: number;
|
|
439
460
|
};
|
|
440
461
|
/**
|
|
441
462
|
* A shape's fill. Either a single layer, an array of layers (painted
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FlushMode, S as SpecFlush, L as Listener, C as CameraTransform$1, R as Rect, a as SpecStore, P as Point, B as BaseShapeSpec, b as BaseConnectorSpec, D as DecorationSpec, c as BadgeOptions, E as EffectSpec, d as LabelContent, e as LabelWrap, H as HitResult, f as EventEmitter, g as ElementEventMap, h as EventMap, I as IAnchor, i as IRouter, j as IPathStyle, k as Path, V as Vec2, l as BadgePlacement, m as ShapeFill, n as ShapeStroke } from './index-
|
|
2
|
-
export { A as AnchorCtx, o as AnchorShapeRef, p as AnchorSpec, q as ArcSpec, r as BadgeShapeSpec, s as CircleSpec, t as CompositePart, u as CompositePartFill, v as CompositePartStroke, w as CompositeRootSpec, x as CompositeSpec, y as ConnectorBadgePlacement, z as ConnectorEndpointSpec, G as ConnectorLabelPlacement, J as ConnectorLabelStyle, K as ConnectorPaintStyle, M as DecorationTarget, N as EffectTarget, O as EffectTargetKind, Q as EllipseSpec, T as Endpoint, U as FlowParticlesConnectorDecorationStyle, W as FlyMarkerConnectorDecorationStyle, X as GlowConnectorDecorationStyle, Y as GlowDecorationStyle, Z as HtmlTagStyle, _ as InsetAnchor, $ as InsetFillLayer, a0 as LabelBackground, a1 as LabelStyleCommon, a2 as LabelVisibility, a3 as LiquidFillDecorationStyle, a4 as LocalSpec, a5 as MarchingAntsConnectorDecorationStyle, a6 as MarchingAntsDecorationStyle, a7 as MarkerShapeSpec, a8 as NamedBadgePlacement, a9 as Obstacle, aa as PathCommand, ab as PathSpec, ac as PathStyleEndpoints, ad as PlaneName, ae as PolygonSpec, af as Polyline, ag as PulseRingDecorationStyle, ah as RectSpec, ai as RegisterDecorationOptions, aj as RegisterEffectOptions, ak as RegularPolygonSpec, al as RenderStats, am as ResizeHandleDecorationStyle, an as ResizeHandlePlacement, ao as RevealConnectorDecorationStyle, ap as RevealDirection, aq as RevealEasingName, ar as RevealHostStroke, as as RevealRepeat, at as RingConnectorDecorationStyle, au as RingDecorationStyle, av as RippleConnectorDecorationStyle, aw as RoundedCorner, ax as RouterCtx, ay as SelectionFrameBorderStyle, az as SelectionFrameDecorationStyle, aA as SelectionFrameHandleHit, aB as SelectionFrameHandleShape, aC as SelectionFramePlacement, aD as ShapeFillLayer, aE as ShapeLabelPlacement, aF as ShapeLabelStyle, aG as ShapePaintStyle, aH as ShapeSpec, aI as Size, aJ as StarSpec, aK as StyleOverride, aL as TabAlign, aM as TabbedRectGeometry, aN as TabbedRectGeometrySpec, aO as TabbedRectSpec, aP as ToggleDecorationStyle, aQ as ToggleHitGeometry, aR as TogglePlacement, aS as TransformDelta, aT as boundsOfArc, aU as boundsOfCircle, aV as boundsOfComposite, aW as boundsOfCompositeRoot, aX as boundsOfEllipse, aY as boundsOfPath, aZ as boundsOfPolygon, a_ as boundsOfRect, a$ as boundsOfRegularPolygon, b0 as boundsOfSpec, b1 as boundsOfStar, b2 as collapsedSpec, b3 as collapsedTabbedRect, b4 as compositeRootOffset, b5 as connectorGeometryKey, b6 as containsArc, b7 as containsCircle, b8 as containsComposite, b9 as containsEllipse, ba as containsPath, bb as containsPolygon, bc as containsRect, bd as containsRegularPolygon, be as containsSpec, bf as containsStar, bg as containsTabbedRect, bh as distanceToOutlineSq, bi as distanceToSegmentSq, bj as fitSpecToContent, bk as fitTabbedRectToContent, bl as hasSilhouetteFill, bm as offsetPolygon, bn as pointInPolygon, bo as polygonBounds, bp as polygonContainsInflated, bq as rayPolygonIntersection, br as regularPolygonVertices, bs as resolveCompositeRoot, bt as roundedPolygonOutline, bu as scaleArc, bv as scaleCircle, bw as scaleEllipse, bx as scalePath, by as scalePolygon, bz as scaleRect, bA as scaleRegularPolygon, bB as scaleSpec, bC as scaleStar, bD as scaleTabbedRect, bE as scheduleFlush, bF as starVertices, bG as strokeBandOf, bH as tabbedRectBounds, bI as tabbedRectFoldLine, bJ as tabbedRectGeometry, bK as tabbedRectOutline, bL as tabbedRectTabBox, bM as tabbedRectTabWidth, bN as verticesOfRegularPolygon, bO as verticesOfStar } from './index-
|
|
1
|
+
import { F as FlushMode, S as SpecFlush, L as Listener, C as CameraTransform$1, R as Rect, a as SpecStore, P as Point, B as BaseShapeSpec, b as BaseConnectorSpec, D as DecorationSpec, c as BadgeOptions, E as EffectSpec, d as LabelContent, e as LabelWrap, H as HitResult, f as EventEmitter, g as ElementEventMap, h as EventMap, I as IAnchor, i as IRouter, j as IPathStyle, k as Path, V as Vec2, l as BadgePlacement, m as ShapeFill, n as ShapeStroke } from './index-zLHS9XBy.js';
|
|
2
|
+
export { A as AnchorCtx, o as AnchorShapeRef, p as AnchorSpec, q as ArcSpec, r as BadgeShapeSpec, s as CircleSpec, t as CompositePart, u as CompositePartFill, v as CompositePartStroke, w as CompositeRootSpec, x as CompositeSpec, y as ConnectorBadgePlacement, z as ConnectorEndpointSpec, G as ConnectorLabelPlacement, J as ConnectorLabelStyle, K as ConnectorPaintStyle, M as DecorationTarget, N as EffectTarget, O as EffectTargetKind, Q as EllipseSpec, T as Endpoint, U as FlowParticlesConnectorDecorationStyle, W as FlyMarkerConnectorDecorationStyle, X as GlowConnectorDecorationStyle, Y as GlowDecorationStyle, Z as HtmlTagStyle, _ as InsetAnchor, $ as InsetFillLayer, a0 as LabelBackground, a1 as LabelStyleCommon, a2 as LabelVisibility, a3 as LiquidFillDecorationStyle, a4 as LocalSpec, a5 as MarchingAntsConnectorDecorationStyle, a6 as MarchingAntsDecorationStyle, a7 as MarkerShapeSpec, a8 as NamedBadgePlacement, a9 as Obstacle, aa as PathCommand, ab as PathSpec, ac as PathStyleEndpoints, ad as PlaneName, ae as PolygonSpec, af as Polyline, ag as PulseRingDecorationStyle, ah as RectSpec, ai as RegisterDecorationOptions, aj as RegisterEffectOptions, ak as RegularPolygonSpec, al as RenderStats, am as ResizeHandleDecorationStyle, an as ResizeHandlePlacement, ao as RevealConnectorDecorationStyle, ap as RevealDirection, aq as RevealEasingName, ar as RevealHostStroke, as as RevealRepeat, at as RingConnectorDecorationStyle, au as RingDecorationStyle, av as RippleConnectorDecorationStyle, aw as RoundedCorner, ax as RouterCtx, ay as SelectionFrameBorderStyle, az as SelectionFrameDecorationStyle, aA as SelectionFrameHandleHit, aB as SelectionFrameHandleShape, aC as SelectionFramePlacement, aD as ShapeFillLayer, aE as ShapeLabelPlacement, aF as ShapeLabelStyle, aG as ShapePaintStyle, aH as ShapeSpec, aI as Size, aJ as StarSpec, aK as StyleOverride, aL as TabAlign, aM as TabbedRectGeometry, aN as TabbedRectGeometrySpec, aO as TabbedRectSpec, aP as ToggleDecorationStyle, aQ as ToggleHitGeometry, aR as TogglePlacement, aS as TransformDelta, aT as boundsOfArc, aU as boundsOfCircle, aV as boundsOfComposite, aW as boundsOfCompositeRoot, aX as boundsOfEllipse, aY as boundsOfPath, aZ as boundsOfPolygon, a_ as boundsOfRect, a$ as boundsOfRegularPolygon, b0 as boundsOfSpec, b1 as boundsOfStar, b2 as collapsedSpec, b3 as collapsedTabbedRect, b4 as compositeRootOffset, b5 as connectorGeometryKey, b6 as containsArc, b7 as containsCircle, b8 as containsComposite, b9 as containsEllipse, ba as containsPath, bb as containsPolygon, bc as containsRect, bd as containsRegularPolygon, be as containsSpec, bf as containsStar, bg as containsTabbedRect, bh as distanceToOutlineSq, bi as distanceToSegmentSq, bj as fitSpecToContent, bk as fitTabbedRectToContent, bl as hasSilhouetteFill, bm as offsetPolygon, bn as pointInPolygon, bo as polygonBounds, bp as polygonContainsInflated, bq as rayPolygonIntersection, br as regularPolygonVertices, bs as resolveCompositeRoot, bt as roundedPolygonOutline, bu as scaleArc, bv as scaleCircle, bw as scaleEllipse, bx as scalePath, by as scalePolygon, bz as scaleRect, bA as scaleRegularPolygon, bB as scaleSpec, bC as scaleStar, bD as scaleTabbedRect, bE as scheduleFlush, bF as starVertices, bG as strokeBandOf, bH as tabbedRectBounds, bI as tabbedRectFoldLine, bJ as tabbedRectGeometry, bK as tabbedRectOutline, bL as tabbedRectTabBox, bM as tabbedRectTabWidth, bN as verticesOfRegularPolygon, bO as verticesOfStar } from './index-zLHS9XBy.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The **device-shaped** half of the renderer seam — the part the kernel can
|
|
@@ -1012,15 +1012,15 @@ declare const EASING_NAMES: EasingName[];
|
|
|
1012
1012
|
declare function resolveEasing(name: EasingName | undefined, fallback?: Easing): Easing;
|
|
1013
1013
|
|
|
1014
1014
|
/**
|
|
1015
|
-
*
|
|
1015
|
+
* Toolbars — floating UI chrome inside the canvas, as **pure data**.
|
|
1016
1016
|
*
|
|
1017
|
-
* A
|
|
1017
|
+
* A toolbar is a small toolbar / widget cluster pinned over the canvas
|
|
1018
1018
|
* (zoom buttons bottom-right, a brand + mode picker top-left, …). Its spec lives
|
|
1019
|
-
* in `CanvasView.definition.
|
|
1019
|
+
* in `CanvasView.definition.toolbars`, so panels persist, export and
|
|
1020
1020
|
* (later) sync like every other part of the definition. Edits are ordinary
|
|
1021
|
-
* `view` patches: a Studio edit (`canvas.update(…, 'edit:
|
|
1021
|
+
* `view` patches: a Studio edit (`canvas.update(…, 'edit:toolbars')`) is
|
|
1022
1022
|
* recorded by `Canvas.history` and undone by the `history.undo` command, while a
|
|
1023
|
-
* programmatic write (a `<
|
|
1023
|
+
* programmatic write (a `<Toolbar>` mount) is not.
|
|
1024
1024
|
*
|
|
1025
1025
|
* Specs hold **no closures and no components**: an item names what it does by
|
|
1026
1026
|
* string — a `command` (resolved by the canvas's `CommandRegistry`), an `icon`
|
|
@@ -1029,44 +1029,84 @@ declare function resolveEasing(name: EasingName | undefined, fallback?: Easing):
|
|
|
1029
1029
|
* and validates the shape; drawing it is the UI kit's job.
|
|
1030
1030
|
*/
|
|
1031
1031
|
/** A preset anchor on the canvas's 9-point grid. */
|
|
1032
|
-
type
|
|
1032
|
+
type ToolbarAnchor = 'top-left' | 'top' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
1033
1033
|
/**
|
|
1034
1034
|
* Exact insets from the canvas edges, in px or any CSS length. Set one of
|
|
1035
1035
|
* `top`/`bottom` and one of `left`/`right` (setting both opposite sides
|
|
1036
1036
|
* stretches the panel between them).
|
|
1037
1037
|
*/
|
|
1038
|
-
interface
|
|
1038
|
+
interface ToolbarInsets {
|
|
1039
1039
|
top?: number | string;
|
|
1040
1040
|
right?: number | string;
|
|
1041
1041
|
bottom?: number | string;
|
|
1042
1042
|
left?: number | string;
|
|
1043
1043
|
}
|
|
1044
|
-
/**
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1044
|
+
/**
|
|
1045
|
+
* How much chrome a canvas on a board shows, from least to most: `quiet` (the
|
|
1046
|
+
* graph and the legend chip), `hover` (a small dock while the pointer is over
|
|
1047
|
+
* the panel), `on` (the condensed controls) and `full` (the app's whole layout,
|
|
1048
|
+
* maximised). An item's {@link ToolbarItemBase.density} is the lowest density
|
|
1049
|
+
* it shows in.
|
|
1050
|
+
*/
|
|
1051
|
+
type CanvasDensity = 'quiet' | 'hover' | 'on' | 'full';
|
|
1052
|
+
/** Fields shared by every {@link ToolbarItemSpec}. */
|
|
1053
|
+
interface ToolbarItemBase {
|
|
1054
|
+
/**
|
|
1055
|
+
* Stable key within the panel, and the key items merge by: an override with
|
|
1056
|
+
* the same key changes only the fields it names. Defaults to the item's index.
|
|
1057
|
+
*/
|
|
1049
1058
|
key?: string;
|
|
1050
1059
|
/**
|
|
1051
|
-
* The
|
|
1060
|
+
* The app modes the item shows in (the `app.mode` command's value). Default:
|
|
1052
1061
|
* every mode. A board with no modes shows it.
|
|
1053
1062
|
*/
|
|
1054
1063
|
modes?: string[];
|
|
1064
|
+
/** Not drawn. In an override, removes the item without rewriting the list. Default `false`. */
|
|
1065
|
+
hidden?: boolean;
|
|
1066
|
+
/** A command name: the item is drawn only while that command's `value` is truthy. */
|
|
1067
|
+
when?: string;
|
|
1068
|
+
/** A command name: the item is hidden while that command's `value` is truthy. */
|
|
1069
|
+
hiddenWhen?: string;
|
|
1070
|
+
/**
|
|
1071
|
+
* Muted and not clickable, but still focusable so its tooltip reads
|
|
1072
|
+
* {@link disabledReason}. Default `false`.
|
|
1073
|
+
*/
|
|
1074
|
+
disabled?: boolean;
|
|
1075
|
+
/** The tooltip while disabled: why, and what makes it work. */
|
|
1076
|
+
disabledReason?: string;
|
|
1077
|
+
/**
|
|
1078
|
+
* A command name: the item is disabled while that command's `value` is
|
|
1079
|
+
* truthy. A bound command reporting `isEnabled() === false` does the same.
|
|
1080
|
+
*/
|
|
1081
|
+
disabledWhen?: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* The keyboard shortcut shown with the item (e.g. `'⇧1'`, `'mod+z'`).
|
|
1084
|
+
* `false` removes the one the catalog gives it.
|
|
1085
|
+
*/
|
|
1086
|
+
shortcut?: string | false;
|
|
1087
|
+
/** The lowest board density the item shows in. Default `'on'`. */
|
|
1088
|
+
density?: CanvasDensity;
|
|
1089
|
+
/** Place a new or moved item just before the item with this key. Default: the end. */
|
|
1090
|
+
before?: string;
|
|
1091
|
+
/** Place a new or moved item just after the item with this key. Default: the end. */
|
|
1092
|
+
after?: string;
|
|
1055
1093
|
}
|
|
1056
1094
|
/**
|
|
1057
1095
|
* A button that runs a named command on click. Disabled while the command is
|
|
1058
1096
|
* missing or reports `isEnabled() === false`.
|
|
1059
1097
|
*
|
|
1060
|
-
* Unlike a {@link
|
|
1098
|
+
* Unlike a {@link ToolbarToggleItemSpec} it never shows a pressed state, but it
|
|
1061
1099
|
* may still **swap its face** while the command's `isActive(args)` is true — the
|
|
1062
1100
|
* `active*` fields below. That's a Run button that turns into Stop while a
|
|
1063
1101
|
* layout runs (`layout.toggle`), or an Erase button that reads "Selection"
|
|
1064
1102
|
* while something is selected (`graph.erase`).
|
|
1065
1103
|
*/
|
|
1066
|
-
interface
|
|
1104
|
+
interface ToolbarCommandItemSpec extends ToolbarItemBase {
|
|
1067
1105
|
type: 'command';
|
|
1068
1106
|
/** Command name in the canvas's `CommandRegistry`, e.g. `'camera.fit'`. */
|
|
1069
1107
|
command: string;
|
|
1108
|
+
/** In a menu: removes or deletes something, drawn in the destructive colour. Default `false`. */
|
|
1109
|
+
destructive?: boolean;
|
|
1070
1110
|
/** Arguments passed to the command's `run` / `isEnabled`. Must be JSON. */
|
|
1071
1111
|
args?: unknown;
|
|
1072
1112
|
/** Icon name, resolved by the UI kit's icon registry (e.g. `'maximize'`). */
|
|
@@ -1086,7 +1126,7 @@ interface ControlCommandItemSpec extends ControlItemBase {
|
|
|
1086
1126
|
* A two-state toggle bound to a command: its active state is the command's
|
|
1087
1127
|
* `isActive(args)`, and clicking runs the command (which flips it).
|
|
1088
1128
|
*/
|
|
1089
|
-
interface
|
|
1129
|
+
interface ToolbarToggleItemSpec extends ToolbarItemBase {
|
|
1090
1130
|
type: 'toggle';
|
|
1091
1131
|
/** Command name in the canvas's `CommandRegistry`, e.g. `'view.lock'`. */
|
|
1092
1132
|
command: string;
|
|
@@ -1106,8 +1146,8 @@ interface ControlToggleItemSpec extends ControlItemBase {
|
|
|
1106
1146
|
*/
|
|
1107
1147
|
badge?: string;
|
|
1108
1148
|
}
|
|
1109
|
-
/** One option of a {@link
|
|
1110
|
-
interface
|
|
1149
|
+
/** One option of a {@link ToolbarChoiceItemSpec}. */
|
|
1150
|
+
interface ToolbarChoiceOption {
|
|
1111
1151
|
/** Passed to the command as `args.value` when picked. */
|
|
1112
1152
|
value: string;
|
|
1113
1153
|
/** Human label. */
|
|
@@ -1120,7 +1160,7 @@ interface ControlChoiceOption {
|
|
|
1120
1160
|
* that reports a `value`. Picking an option runs the command with
|
|
1121
1161
|
* `{ ...args, value }`.
|
|
1122
1162
|
*/
|
|
1123
|
-
interface
|
|
1163
|
+
interface ToolbarChoiceItemSpec extends ToolbarItemBase {
|
|
1124
1164
|
type: 'choice';
|
|
1125
1165
|
/** Command name in the canvas's `CommandRegistry`, e.g. `'select.mode'`. */
|
|
1126
1166
|
command: string;
|
|
@@ -1129,24 +1169,65 @@ interface ControlChoiceItemSpec extends ControlItemBase {
|
|
|
1129
1169
|
/** Trigger label + menu heading. */
|
|
1130
1170
|
label: string;
|
|
1131
1171
|
/** The options. Default: the command's own `options()`. */
|
|
1132
|
-
options?:
|
|
1172
|
+
options?: ToolbarChoiceOption[];
|
|
1133
1173
|
/** A collapsed dropdown (default) or every option inline as a segmented group. */
|
|
1134
1174
|
display?: 'dropdown' | 'segmented';
|
|
1135
1175
|
}
|
|
1136
1176
|
/** A named widget from the UI kit's widget registry (e.g. `'zoom-readout'`). */
|
|
1137
|
-
interface
|
|
1177
|
+
interface ToolbarWidgetItemSpec extends ToolbarItemBase {
|
|
1138
1178
|
type: 'widget';
|
|
1139
1179
|
/** Widget name in the UI kit's widget registry. */
|
|
1140
1180
|
widget: string;
|
|
1141
1181
|
/** Widget options. Must be JSON. */
|
|
1142
1182
|
options?: Record<string, unknown>;
|
|
1143
1183
|
}
|
|
1184
|
+
/**
|
|
1185
|
+
* A button that opens a link. A `_blank` target opens a new tab and draws the
|
|
1186
|
+
* external mark.
|
|
1187
|
+
*/
|
|
1188
|
+
interface ToolbarLinkItemSpec extends ToolbarItemBase {
|
|
1189
|
+
type: 'link';
|
|
1190
|
+
/** The URL. */
|
|
1191
|
+
href: string;
|
|
1192
|
+
/** Where it opens. Default `'_self'`. */
|
|
1193
|
+
target?: '_self' | '_blank';
|
|
1194
|
+
/** Icon name, resolved by the UI kit's icon registry. */
|
|
1195
|
+
icon?: string;
|
|
1196
|
+
/** Tooltip + accessible label. */
|
|
1197
|
+
label: string;
|
|
1198
|
+
/** Optional visible text beside the icon. */
|
|
1199
|
+
text?: string;
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
* A button that toggles a rail panel by id: clicking opens the panel (closing
|
|
1203
|
+
* any other) or closes it, and it draws pressed while its panel is open.
|
|
1204
|
+
*/
|
|
1205
|
+
interface ToolbarPanelItemSpec extends ToolbarItemBase {
|
|
1206
|
+
type: 'panel';
|
|
1207
|
+
/** The panel's id in the app's panels. */
|
|
1208
|
+
panel: string;
|
|
1209
|
+
/** Icon name, resolved by the UI kit's icon registry. */
|
|
1210
|
+
icon?: string;
|
|
1211
|
+
/** Icon name while the panel is open. Defaults to {@link icon}. */
|
|
1212
|
+
activeIcon?: string;
|
|
1213
|
+
/** Tooltip + accessible label. */
|
|
1214
|
+
label: string;
|
|
1215
|
+
/** Tooltip + label while the panel is open. Defaults to {@link label}. */
|
|
1216
|
+
activeLabel?: string;
|
|
1217
|
+
/** Optional visible text beside the icon. */
|
|
1218
|
+
text?: string;
|
|
1219
|
+
/**
|
|
1220
|
+
* A command whose `value` is drawn as a badge on the icon — a count, such as
|
|
1221
|
+
* the pinned nodes. Nothing is drawn while its value is `null` or `''`.
|
|
1222
|
+
*/
|
|
1223
|
+
badge?: string;
|
|
1224
|
+
}
|
|
1144
1225
|
/** A group separator. */
|
|
1145
|
-
interface
|
|
1226
|
+
interface ToolbarDividerItemSpec extends ToolbarItemBase {
|
|
1146
1227
|
type: 'divider';
|
|
1147
1228
|
}
|
|
1148
1229
|
/** Static text (a brand, a caption). */
|
|
1149
|
-
interface
|
|
1230
|
+
interface ToolbarTextItemSpec extends ToolbarItemBase {
|
|
1150
1231
|
type: 'text';
|
|
1151
1232
|
text: string;
|
|
1152
1233
|
}
|
|
@@ -1156,44 +1237,44 @@ interface ControlTextItemSpec extends ControlItemBase {
|
|
|
1156
1237
|
* state keeps the placeholder; a canvas that never registers the slot renders
|
|
1157
1238
|
* nothing there.
|
|
1158
1239
|
*/
|
|
1159
|
-
interface
|
|
1240
|
+
interface ToolbarSlotItemSpec extends ToolbarItemBase {
|
|
1160
1241
|
type: 'slot';
|
|
1161
1242
|
/** Slot name in the runtime slot registry. */
|
|
1162
1243
|
slot: string;
|
|
1163
1244
|
}
|
|
1164
|
-
/** One item in a {@link
|
|
1165
|
-
type
|
|
1245
|
+
/** One item in a {@link ToolbarSpec} — pure JSON, resolved by name at render time. */
|
|
1246
|
+
type ToolbarItemSpec = ToolbarCommandItemSpec | ToolbarToggleItemSpec | ToolbarChoiceItemSpec | ToolbarLinkItemSpec | ToolbarPanelItemSpec | ToolbarWidgetItemSpec | ToolbarDividerItemSpec | ToolbarTextItemSpec | ToolbarSlotItemSpec;
|
|
1166
1247
|
/**
|
|
1167
|
-
*
|
|
1168
|
-
* `
|
|
1169
|
-
*
|
|
1170
|
-
*
|
|
1171
|
-
*
|
|
1172
|
-
* are ignored, it is always a row, and `surface` defaults to `false`. A shell
|
|
1173
|
-
* that doesn't draw a rail ignores panels placed in it.
|
|
1248
|
+
* Where a toolbar sits in the app shell. The nine anchors float it over the
|
|
1249
|
+
* canvas; `header-*` and `footer-*` put it in a region of the shell's header or
|
|
1250
|
+
* footer row, where it flows inline after that region's own content — always a
|
|
1251
|
+
* row, no `offset` or `stretch`, and no card unless `surface` asks for one. A
|
|
1252
|
+
* shell that doesn't draw a row ignores toolbars placed in it.
|
|
1174
1253
|
*/
|
|
1175
|
-
type
|
|
1254
|
+
type ToolbarRegion = ToolbarAnchor | 'header-left' | 'header-center' | 'header-right' | 'footer-left' | 'footer-center' | 'footer-right';
|
|
1176
1255
|
/**
|
|
1177
|
-
* A
|
|
1178
|
-
* keyed by
|
|
1179
|
-
*
|
|
1256
|
+
* A toolbar — pure JSON, stored in `CanvasView.definition.toolbars`
|
|
1257
|
+
* keyed by id. Floats over the canvas by default; its {@link region} can put it
|
|
1258
|
+
* in the app's header or footer instead.
|
|
1180
1259
|
*/
|
|
1181
|
-
interface
|
|
1260
|
+
interface ToolbarSpec {
|
|
1182
1261
|
/** Stable discriminator for tooling (the Studio's editor lookup). */
|
|
1183
|
-
kind: '
|
|
1262
|
+
kind: 'toolbar';
|
|
1184
1263
|
/**
|
|
1185
|
-
*
|
|
1186
|
-
*
|
|
1187
|
-
*
|
|
1188
|
-
* `<ControlPanels>` skips it.
|
|
1264
|
+
* Where it sits. Default `'top-left'`. A `header-*` / `footer-*` region is
|
|
1265
|
+
* drawn by a shell that renders those rows (`GraphCanvasApp`, or
|
|
1266
|
+
* `<RegionToolbars>` in a custom shell); `<Toolbars>` draws the rest.
|
|
1189
1267
|
*/
|
|
1190
|
-
|
|
1191
|
-
/** Where the panel sits over the canvas. Default `'top-left'`. Ignored for a header / footer placement. */
|
|
1192
|
-
position?: ControlPanelPosition;
|
|
1268
|
+
region?: ToolbarRegion;
|
|
1193
1269
|
/**
|
|
1194
|
-
*
|
|
1195
|
-
*
|
|
1196
|
-
|
|
1270
|
+
* Exact insets from the canvas edges, in place of the region's anchor — for a
|
|
1271
|
+
* custom layout. Only for a region over the canvas.
|
|
1272
|
+
*/
|
|
1273
|
+
insets?: ToolbarInsets;
|
|
1274
|
+
/**
|
|
1275
|
+
* Distance from the anchored edges for a region over the canvas, in px — one
|
|
1276
|
+
* number for both axes or `{ x, y }`. Ignored with {@link insets} and in the
|
|
1277
|
+
* header / footer. Default `8`.
|
|
1197
1278
|
*/
|
|
1198
1279
|
offset?: number | {
|
|
1199
1280
|
x: number;
|
|
@@ -1219,13 +1300,27 @@ interface ControlPanelSpec {
|
|
|
1219
1300
|
* The panel's surface. `true` draws the card (background, border, shadow);
|
|
1220
1301
|
* `'hairline'` a border hairline on a translucent background, no shadow — the
|
|
1221
1302
|
* light toolbar row that lets the drawing show through; `false` nothing.
|
|
1222
|
-
* Default `true` over the canvas, `false` in
|
|
1303
|
+
* Default `true` over the canvas, `false` in the header / footer.
|
|
1223
1304
|
*/
|
|
1224
1305
|
surface?: boolean | 'hairline';
|
|
1306
|
+
/** Where the items sit along the panel's flow. Default `'start'`. */
|
|
1307
|
+
align?: 'start' | 'center' | 'end';
|
|
1308
|
+
/**
|
|
1309
|
+
* How items draw their face: the icon alone, the icon and its text, or the
|
|
1310
|
+
* text alone. An item with no icon always shows its text. Default `'icon'`.
|
|
1311
|
+
*/
|
|
1312
|
+
display?: 'icon' | 'icon-text' | 'text';
|
|
1313
|
+
/** Item size: `'sm'` (28px) or `'md'` (32px). Default `'sm'`. */
|
|
1314
|
+
size?: 'sm' | 'md';
|
|
1315
|
+
/**
|
|
1316
|
+
* A panel rail: its `panel` items open their panel beside it, one open at a
|
|
1317
|
+
* time. Default `false`.
|
|
1318
|
+
*/
|
|
1319
|
+
rail?: boolean;
|
|
1225
1320
|
/** Show the panel. Default `true`. */
|
|
1226
1321
|
visible?: boolean;
|
|
1227
1322
|
/**
|
|
1228
|
-
* The
|
|
1323
|
+
* The app modes the panel shows in — the `app.mode` command's value, a
|
|
1229
1324
|
* viewer's choice that is never saved with the board. Default: every mode. A
|
|
1230
1325
|
* board with no modes shows it.
|
|
1231
1326
|
*/
|
|
@@ -1256,7 +1351,7 @@ interface ControlPanelSpec {
|
|
|
1256
1351
|
/** With {@link collapsible}: start folded. Default `false`. */
|
|
1257
1352
|
collapsed?: boolean;
|
|
1258
1353
|
/** The panel's items, in order. */
|
|
1259
|
-
items:
|
|
1354
|
+
items: ToolbarItemSpec[];
|
|
1260
1355
|
}
|
|
1261
1356
|
|
|
1262
1357
|
/**
|
|
@@ -1286,7 +1381,7 @@ interface ControlPanelSpec {
|
|
|
1286
1381
|
*/
|
|
1287
1382
|
interface ViewLogPart {
|
|
1288
1383
|
kind: 'view';
|
|
1289
|
-
/** The action the store change carried (e.g. `'edit:
|
|
1384
|
+
/** The action the store change carried (e.g. `'edit:toolbars'`). */
|
|
1290
1385
|
action?: string;
|
|
1291
1386
|
/** Forward patches (apply to the state before → the state after). */
|
|
1292
1387
|
patches: Patch[];
|
|
@@ -1744,10 +1839,10 @@ interface CanvasView {
|
|
|
1744
1839
|
/** Theme **config** (registry + active family + mode + accent). The *resolved* theme is derived. */
|
|
1745
1840
|
theme: Record<string, unknown>;
|
|
1746
1841
|
/**
|
|
1747
|
-
* Floating
|
|
1748
|
-
* items name commands / icons / widgets by string (see {@link
|
|
1842
|
+
* Floating toolbars over the canvas, keyed by panel id. Pure JSON —
|
|
1843
|
+
* items name commands / icons / widgets by string (see {@link ToolbarSpec}).
|
|
1749
1844
|
*/
|
|
1750
|
-
|
|
1845
|
+
toolbars: Record<string, ToolbarSpec>;
|
|
1751
1846
|
};
|
|
1752
1847
|
/** "The live view onto it" — mostly ephemeral / per-user (Awareness later). */
|
|
1753
1848
|
interaction: {
|
|
@@ -1912,7 +2007,7 @@ type CameraInput = Partial<{
|
|
|
1912
2007
|
*
|
|
1913
2008
|
* Group by concern: `node / edge / group / annotation / positions` (data) and
|
|
1914
2009
|
* `layers / behaviours / layouts / camera / selection / hover / viewMode / templates /
|
|
1915
|
-
* theme /
|
|
2010
|
+
* theme / toolbars` (view).
|
|
1916
2011
|
*
|
|
1917
2012
|
* ⚠ **Data actions target the default {@link LayerData} store only.** The
|
|
1918
2013
|
* injected `layer(id)` accessor (see `createCanvasStore`) **throws** for any id
|
|
@@ -2015,11 +2110,11 @@ declare function createActions(view: ReactiveStore<CanvasView>, layer: (id: stri
|
|
|
2015
2110
|
update: (id: string, patch: Bag) => void;
|
|
2016
2111
|
remove: (id: string) => void;
|
|
2017
2112
|
};
|
|
2018
|
-
|
|
2113
|
+
toolbars: {
|
|
2019
2114
|
/** Add (or replace) the panel `id`. */
|
|
2020
|
-
add: (id: string, spec:
|
|
2115
|
+
add: (id: string, spec: ToolbarSpec) => void;
|
|
2021
2116
|
/** Shallow-merge `patch` into panel `id` (`items` replaces). No-op when absent. */
|
|
2022
|
-
update: (id: string, patch: Partial<
|
|
2117
|
+
update: (id: string, patch: Partial<ToolbarSpec>) => void;
|
|
2023
2118
|
show: (id: string) => void;
|
|
2024
2119
|
hide: (id: string) => void;
|
|
2025
2120
|
remove: (id: string) => void;
|
|
@@ -3664,7 +3759,7 @@ declare class BehaviourRegistry {
|
|
|
3664
3759
|
/**
|
|
3665
3760
|
* `CommandRegistry` — named, serialisable-by-reference actions.
|
|
3666
3761
|
*
|
|
3667
|
-
* Serialisable UI (
|
|
3762
|
+
* Serialisable UI (toolbars today; shortcuts and menus later) can't hold
|
|
3668
3763
|
* closures, so it names what it does — `'camera.fit'`, `'view.lock'` — and this
|
|
3669
3764
|
* registry resolves the name to behaviour at run time. Names are
|
|
3670
3765
|
* `namespace.verb`; the engine registers its built-ins, a domain package or an
|
|
@@ -3761,7 +3856,7 @@ interface CanvasCommand<C, A = unknown> {
|
|
|
3761
3856
|
/** Extra search terms a command palette matches besides the label and name. Data only. */
|
|
3762
3857
|
keywords?: readonly string[];
|
|
3763
3858
|
/**
|
|
3764
|
-
* The keys `args` may carry, described for editors (the Studio's
|
|
3859
|
+
* The keys `args` may carry, described for editors (the Studio's toolbar
|
|
3765
3860
|
* editor draws a field per key). In dev builds {@link CommandRegistry.run}
|
|
3766
3861
|
* checks a described key's value against its `kind` and warns (never throws)
|
|
3767
3862
|
* on a mismatch — see {@link CommandRegistryOptions.validateArgs}. Keys it
|
|
@@ -5708,4 +5803,83 @@ interface Selected<U> {
|
|
|
5708
5803
|
*/
|
|
5709
5804
|
declare function select<T, U>(store: ReactiveStore<T>, selector: (state: T) => U, isEqual?: (a: U, b: U) => boolean): Selected<U>;
|
|
5710
5805
|
|
|
5711
|
-
|
|
5806
|
+
/**
|
|
5807
|
+
* **Merge item lists by key** — how an app's default items and a host's
|
|
5808
|
+
* overrides combine, for toolbars now and rails and menus later.
|
|
5809
|
+
*
|
|
5810
|
+
* - A default and an override with the same `key` merge: the override changes
|
|
5811
|
+
* only the fields it names.
|
|
5812
|
+
* - `hidden: true` on an override removes the item.
|
|
5813
|
+
* - `before` / `after` place a new or moved item next to another key; an item
|
|
5814
|
+
* that names neither goes at the end. Neither field is kept on the result.
|
|
5815
|
+
* - A plain string is the catalog item of that name with its defaults
|
|
5816
|
+
* (`'fit'` ≡ `{ key: 'fit' }`); an entry with no `type` takes the catalog
|
|
5817
|
+
* item of its key as its base, so `{ key: 'fit', args: { layerId } }` is the
|
|
5818
|
+
* catalog's Fit with other args.
|
|
5819
|
+
* - An item with no key is matched by its type and its index among the keyless
|
|
5820
|
+
* items of that type (the second keyless divider matches the second).
|
|
5821
|
+
*
|
|
5822
|
+
* Pure: imports nothing. The catalog arrives as a `resolve` function, so this
|
|
5823
|
+
* layer never knows which items exist.
|
|
5824
|
+
*/
|
|
5825
|
+
|
|
5826
|
+
/**
|
|
5827
|
+
* An override for one item, matched by {@link key}: the fields to change, with
|
|
5828
|
+
* no `type`. The catalog item of the same key is its base when nothing else is.
|
|
5829
|
+
*/
|
|
5830
|
+
interface ToolbarItemPatch extends Partial<ToolbarItemBase> {
|
|
5831
|
+
key: string;
|
|
5832
|
+
type?: undefined;
|
|
5833
|
+
[field: string]: unknown;
|
|
5834
|
+
}
|
|
5835
|
+
/** One entry in an item list as an author writes it: a full item, a patch by key, or a catalog key. */
|
|
5836
|
+
type ToolbarItemEntry = ToolbarItemSpec | ToolbarItemPatch | string;
|
|
5837
|
+
/** Looks a catalog item up by name; `undefined` for a name the catalog lacks. */
|
|
5838
|
+
type ToolbarItemResolver = (key: string) => ToolbarItemSpec | undefined;
|
|
5839
|
+
/**
|
|
5840
|
+
* Merge `overrides` into `defaults` by key. With `resolve`, every string and
|
|
5841
|
+
* typeless patch becomes a full item and one the catalog lacks is dropped;
|
|
5842
|
+
* without it they stay as written, for a later merge or the renderer to
|
|
5843
|
+
* resolve.
|
|
5844
|
+
*/
|
|
5845
|
+
declare function mergeItems(defaults: readonly ToolbarItemEntry[], overrides: readonly ToolbarItemEntry[], resolve: ToolbarItemResolver): ToolbarItemSpec[];
|
|
5846
|
+
declare function mergeItems(defaults: readonly ToolbarItemEntry[], overrides: readonly ToolbarItemEntry[], resolve?: ToolbarItemResolver): ToolbarItemEntry[];
|
|
5847
|
+
|
|
5848
|
+
/**
|
|
5849
|
+
* **Panels** as JSON — a side card an app opens from its rail (Legend,
|
|
5850
|
+
* Styling, Changes). The panel's body is a component registered by name in the
|
|
5851
|
+
* app's registry; everything else here is data, so a panel saves, merges by
|
|
5852
|
+
* `id` and travels with the app's overrides.
|
|
5853
|
+
*/
|
|
5854
|
+
|
|
5855
|
+
/** One panel an app can open. */
|
|
5856
|
+
interface PanelSpec {
|
|
5857
|
+
/** Stable id — the `app.panel` command's value while it is open. */
|
|
5858
|
+
id: string;
|
|
5859
|
+
/** The body: a panel component's name in the app's registry (`'legend'`, `'studio.risk'`). */
|
|
5860
|
+
component: string;
|
|
5861
|
+
/** JSON handed to the component (Legend's sections, Filter's operators). Default `{}`. */
|
|
5862
|
+
options?: Record<string, unknown>;
|
|
5863
|
+
/** The panel's title, and its rail item's tooltip. */
|
|
5864
|
+
title: string;
|
|
5865
|
+
/** Its rail icon, by name in the app's icon registry. */
|
|
5866
|
+
icon: string;
|
|
5867
|
+
/** A command whose value is shown beside the title — `7 types`, `12 entries`. */
|
|
5868
|
+
count?: string;
|
|
5869
|
+
/** A command whose value is drawn as a badge on its rail icon — the unsaved changes. */
|
|
5870
|
+
badge?: string;
|
|
5871
|
+
/** The panel's own controls in its bar — *Show all*, undo · redo. */
|
|
5872
|
+
actions?: ToolbarItemSpec[];
|
|
5873
|
+
/** The app modes it is offered in. Default: every mode. */
|
|
5874
|
+
modes?: string[];
|
|
5875
|
+
/** A command name: the panel is offered only while that command's value is truthy. */
|
|
5876
|
+
when?: string;
|
|
5877
|
+
/** The lowest board density it is offered in. Default `'on'`. */
|
|
5878
|
+
density?: CanvasDensity;
|
|
5879
|
+
/** Draw a line above its rail icon — Export sits apart from the views. */
|
|
5880
|
+
separatorBefore?: boolean;
|
|
5881
|
+
/** Its width when it floats beside the rail, px. Default `300`. */
|
|
5882
|
+
width?: number;
|
|
5883
|
+
}
|
|
5884
|
+
|
|
5885
|
+
export { type AnnotationRecord, BadgeOptions, BadgePlacement, BaseConnectorSpec, BaseShapeSpec, Behaviour, type BehaviourOptions, BehaviourRegistry, type BehaviourRegistryOptions, CANVAS_SOURCE, Camera, type CameraChangeKind, type CameraInputConfig, type CameraInputModifier, type CameraIntent, type CameraOptions, type CameraTransform, type CameraTransformValue, type CanvasActions, type CanvasCommand, type CanvasContext, type CanvasDensity, type CanvasEvent, CanvasEventBus, type CanvasGlobalEvents, type CanvasLayoutPreset, type CanvasSceneOptions, type CanvasStore, CanvasThemeState, type CanvasView, type ColumnArray, type ColumnSchema, ColumnStore, type ColumnStoreOptions, type ColumnType, type ColumnValue, type CommandArgKind, type CommandArgSpec, type CommandArgsOf, type CommandMap, type CommandName, type CommandOption, CommandRegistry, type CommandRegistryOptions, type CustomElementCtor, DEFAULT_ENDPOINT_BADGE_GAP_PX, DEFAULT_POSITION_TRANSITION_MS, type DataLogPart, type DataOpAdapter, type DataSource, DecorationSpec, type DeepPartial, DefaultGestureArbiter, type Delta, type DeltaOptions, type DeltaRecord, DirtyBatcher, type DirtySnapshot, EASING_NAMES, type Easing, type EasingName, type EdgeRecord, EffectSpec, ElementEventMap, EventEmitter, EventMap, type EventSource, type EventSourceKind, FlushMode, type FramePhase, type FramePhaseTimings, type FrameStats, type FrameTick, type GestureArbiter, type GestureClaimOptions, type GraphInput, type GroupRecord, HeadlessCameraBinding, HeadlessElementRenderer, HeadlessRenderer, HeadlessSurface, type HistoryView, HitResult, IAnchor, type IBehaviour, type ICameraBinding, type IElementRenderer, type ILayer, INHERIT, type IOverlayDevice, IPathStyle, type IRenderer, IRouter, type ISurface, type ISurfaceHost, type Inherit, type IntentLogEntry, type InteractionKind, type KindDelta, LOOP_CURVE_PRESETS, LabelContent, type LabelSizePolicy, type LabelSizeTarget, LabelWrap, Layer, LayerData, type LayerFlush, type LayerOptions, LayerRegistry, type LayerRegistryOptions, Layout, type LayoutDataRunOptions, type LayoutEndReason, type LayoutEvents, type LayoutOptions, LayoutRegistry, type LayoutRegistryOptions, type LayoutRunOptions, type LayoutSetOptions, Listener, type LogEntry, type LogEntryFilter, type LogEntryStatus, type LogGroupMeta, type LogPart, type LogStepInfo, type LoopCurvePresetName, type MountedDecoration, NODE_FLAG, type NodeDelta, type NodeRecord, type OperationLog, type OverlayFill, type OverlayFillLike, type OverlaySpace, type OverlayStroke, type PanelSpec, type Patch, Path, type PinchInputOptions, type Playbook, type PlaybookSpec, Point, type PosSchema, type PositionTransition, type PositionTransitionOptions, type QueryStatus, type ReactiveStore, type Recipe, Rect, type RenderPreference, type RendererBackend, type RendererCapabilities, type RendererInitOptions, type RendererMountOptions, type ResolvedTheme, type RowOf, type Selected, type ShapeDisplayOverride, ShapeFill, ShapeStroke, SourceEmitter, SpecFlush, type SpecProjectionTarget, SpecProjector, type SpecProjectorOptions, SpecStore, type StateCell, type StepSpec, type StoreChange, type SurfaceBackdrop, type SurfaceOptions, type SurfaceSpace, type Tap, type TapOptions, type ThemeKind, type ThemeMode, type ThemeState, type Themed, type ToolbarAnchor, type ToolbarChoiceItemSpec, type ToolbarChoiceOption, type ToolbarCommandItemSpec, type ToolbarDividerItemSpec, type ToolbarInsets, type ToolbarItemBase, type ToolbarItemEntry, type ToolbarItemPatch, type ToolbarItemResolver, type ToolbarItemSpec, type ToolbarLinkItemSpec, type ToolbarPanelItemSpec, type ToolbarRegion, type ToolbarSlotItemSpec, type ToolbarSpec, type ToolbarTextItemSpec, type ToolbarToggleItemSpec, type ToolbarWidgetItemSpec, Tween, type TweenOptions, type Update, Vec2, type ViewLogPart, type WheelInputOptions, animatePositions, attrs, bezierPathStyle, boundaryAnchor, bumpHorizontalPathStyle, bumpRadialPathStyle, bumpVerticalPathStyle, bundlePathStyle, centerAnchor, connectorToSvg, createActions, defaultCanvasView, defaultEqual, distanceToPolylineSq, easeInOutCubic, easeInOutSine, easeOutCubic, easeOutQuad, edgePortAnchor, erRouter, esc, fillPaint, hexToCss, isInherit, linear, loopCurvePathStyle, loopPolylinePathStyle, manhattanRouter, mergeItems, metroRouter, normalPathStyle, oneSideRouter, originToBadgeLocal, orthRouter, pathBounds, pathToSvgD, perpendicularAnchor, pointsAttr, quadraticPathStyle, resolveBadgePosition, resolveConnectorBadgePosition, resolveEasing, resolveLabelScale, resolveThemed, roundedPathStyle, samplePath, samplePathAt, select, shallowEqual, shapeSpecToSvg, silhouettePortAnchor, smoothPathStyle, splinePathStyle, stepRadialPathStyle, straightRouter, strokePaint, n as svgNum, tangentAt, textContent, trimPathEnds };
|