stickyflow 0.5.0 → 0.6.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/CHANGELOG.md +16 -0
- package/dist/binding/index.cjs +9 -9
- package/dist/binding/index.d.cts +4 -4
- package/dist/binding/index.d.ts +4 -4
- package/dist/binding/index.js +3 -3
- package/dist/{chunk-IEHE6WVN.js → chunk-4G2R7PEL.js} +319 -45
- package/dist/chunk-4G2R7PEL.js.map +1 -0
- package/dist/{chunk-L3VJXZFD.cjs → chunk-4LENHH6C.cjs} +15 -15
- package/dist/{chunk-L3VJXZFD.cjs.map → chunk-4LENHH6C.cjs.map} +1 -1
- package/dist/{chunk-LTGF5OHP.js → chunk-FVHVOJS2.js} +395 -89
- package/dist/chunk-FVHVOJS2.js.map +1 -0
- package/dist/{chunk-TWDLOXRM.cjs → chunk-JIJMZMGY.cjs} +18 -18
- package/dist/{chunk-TWDLOXRM.cjs.map → chunk-JIJMZMGY.cjs.map} +1 -1
- package/dist/{chunk-VK3T6O5Z.cjs → chunk-KTNCDNDB.cjs} +33 -33
- package/dist/{chunk-VK3T6O5Z.cjs.map → chunk-KTNCDNDB.cjs.map} +1 -1
- package/dist/{chunk-BODZN3ZI.js → chunk-MFNUJA26.js} +4 -4
- package/dist/{chunk-BODZN3ZI.js.map → chunk-MFNUJA26.js.map} +1 -1
- package/dist/{chunk-7VW2XKVB.js → chunk-ULQZ6CZW.js} +3 -3
- package/dist/{chunk-7VW2XKVB.js.map → chunk-ULQZ6CZW.js.map} +1 -1
- package/dist/{chunk-ZMLQIMJK.cjs → chunk-WQRT5PVT.cjs} +993 -687
- package/dist/chunk-WQRT5PVT.cjs.map +1 -0
- package/dist/{chunk-G7NRK5AG.js → chunk-WRDVNMFS.js} +5 -5
- package/dist/{chunk-G7NRK5AG.js.map → chunk-WRDVNMFS.js.map} +1 -1
- package/dist/{chunk-XY2GZUHC.cjs → chunk-XJ4W6TW4.cjs} +326 -44
- package/dist/chunk-XJ4W6TW4.cjs.map +1 -0
- package/dist/index.cjs +49 -29
- package/dist/index.d.cts +52 -7
- package/dist/index.d.ts +52 -7
- package/dist/index.js +5 -5
- package/dist/interaction/index.cjs +245 -235
- package/dist/interaction/index.cjs.map +1 -1
- package/dist/interaction/index.d.cts +3 -2
- package/dist/interaction/index.d.ts +3 -2
- package/dist/interaction/index.js +17 -7
- package/dist/interaction/index.js.map +1 -1
- package/dist/{render-CgX_y15a.d.ts → render-Db0eSz_s.d.cts} +36 -15
- package/dist/{render-CgX_y15a.d.cts → render-Db0eSz_s.d.ts} +36 -15
- package/dist/{runtime-reWgr7MP.d.cts → runtime-BhivvBeL.d.cts} +2 -2
- package/dist/{runtime-DnUxca3Y.d.ts → runtime-n2yG-_j-.d.ts} +2 -2
- package/dist/{runtimeTypes-D60w6nyF.d.cts → runtimeTypes-CrkMHvVi.d.cts} +2 -2
- package/dist/{runtimeTypes-CEBGueYM.d.ts → runtimeTypes-DnI7mRF5.d.ts} +2 -2
- package/dist/stickyflow-diagram.global.js +35 -35
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/{types-DvhMpqrL.d.cts → types-BHfUKT4s.d.cts} +1 -1
- package/dist/{types-DYLC_lsk.d.ts → types-D4cH4f1a.d.ts} +1 -1
- package/dist/viewer/index.cjs +9 -9
- package/dist/viewer/index.d.cts +4 -4
- package/dist/viewer/index.d.ts +4 -4
- package/dist/viewer/index.js +4 -4
- package/dist/web-component/index.cjs +6 -6
- package/dist/web-component/index.d.cts +2 -2
- package/dist/web-component/index.d.ts +2 -2
- package/dist/web-component/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-IEHE6WVN.js.map +0 -1
- package/dist/chunk-LTGF5OHP.js.map +0 -1
- package/dist/chunk-XY2GZUHC.cjs.map +0 -1
- package/dist/chunk-ZMLQIMJK.cjs.map +0 -1
|
@@ -549,6 +549,34 @@ interface Diagnostic {
|
|
|
549
549
|
ownerId?: string;
|
|
550
550
|
}
|
|
551
551
|
|
|
552
|
+
interface Point {
|
|
553
|
+
x: number;
|
|
554
|
+
y: number;
|
|
555
|
+
}
|
|
556
|
+
interface Bounds {
|
|
557
|
+
minX: number;
|
|
558
|
+
minY: number;
|
|
559
|
+
maxX: number;
|
|
560
|
+
maxY: number;
|
|
561
|
+
}
|
|
562
|
+
type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
563
|
+
|
|
564
|
+
interface Dimension {
|
|
565
|
+
id: string;
|
|
566
|
+
start: Point;
|
|
567
|
+
end: Point;
|
|
568
|
+
offset: number;
|
|
569
|
+
text?: string;
|
|
570
|
+
unit?: string;
|
|
571
|
+
strokeColor?: string;
|
|
572
|
+
strokeWidth?: number;
|
|
573
|
+
textColor?: string;
|
|
574
|
+
fontSize?: number;
|
|
575
|
+
order?: number;
|
|
576
|
+
sourceIndex?: number;
|
|
577
|
+
parentFrameId?: string;
|
|
578
|
+
}
|
|
579
|
+
|
|
552
580
|
interface Frame {
|
|
553
581
|
id: string;
|
|
554
582
|
name?: string;
|
|
@@ -577,18 +605,6 @@ interface Frame {
|
|
|
577
605
|
isLocked?: boolean;
|
|
578
606
|
}
|
|
579
607
|
|
|
580
|
-
interface Point {
|
|
581
|
-
x: number;
|
|
582
|
-
y: number;
|
|
583
|
-
}
|
|
584
|
-
interface Bounds {
|
|
585
|
-
minX: number;
|
|
586
|
-
minY: number;
|
|
587
|
-
maxX: number;
|
|
588
|
-
maxY: number;
|
|
589
|
-
}
|
|
590
|
-
type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
591
|
-
|
|
592
608
|
type IsometricFace = 'top' | 'bottom' | 'front' | 'back' | 'left' | 'right';
|
|
593
609
|
interface IsometricObject {
|
|
594
610
|
id: string;
|
|
@@ -597,6 +613,8 @@ interface IsometricObject {
|
|
|
597
613
|
width: number;
|
|
598
614
|
height: number;
|
|
599
615
|
depth: number;
|
|
616
|
+
footprint?: Array<[number, number]>;
|
|
617
|
+
form?: 'box' | 'sphere';
|
|
600
618
|
rotation?: number;
|
|
601
619
|
order?: number;
|
|
602
620
|
sourceIndex?: number;
|
|
@@ -676,7 +694,9 @@ interface Link {
|
|
|
676
694
|
laneId?: string;
|
|
677
695
|
}
|
|
678
696
|
|
|
679
|
-
|
|
697
|
+
interface PathPoint extends Point {
|
|
698
|
+
tension?: number;
|
|
699
|
+
}
|
|
680
700
|
interface FreeformPath {
|
|
681
701
|
id: string;
|
|
682
702
|
x: number;
|
|
@@ -805,6 +825,7 @@ interface RenderInput {
|
|
|
805
825
|
swimlanes: Swimlane[];
|
|
806
826
|
isometricObjects?: IsometricObject[];
|
|
807
827
|
paths?: FreeformPath[];
|
|
828
|
+
dimensions?: Dimension[];
|
|
808
829
|
charts?: Chart[];
|
|
809
830
|
components?: Component[];
|
|
810
831
|
widgets?: Component[];
|
|
@@ -871,7 +892,7 @@ interface SceneStyle {
|
|
|
871
892
|
d: string;
|
|
872
893
|
};
|
|
873
894
|
}
|
|
874
|
-
type SceneRole = 'shape' | 'link' | 'frame' | 'swimlane' | 'path' | 'chart' | 'widget' | 'isometric';
|
|
895
|
+
type SceneRole = 'shape' | 'link' | 'frame' | 'swimlane' | 'path' | 'chart' | 'widget' | 'isometric' | 'dimension';
|
|
875
896
|
interface SceneAria {
|
|
876
897
|
role: string;
|
|
877
898
|
checked?: boolean;
|
|
@@ -1115,4 +1136,4 @@ interface ComponentDefinition extends ComponentDescriptor {
|
|
|
1115
1136
|
}
|
|
1116
1137
|
declare function defineComponent(definition: ComponentDefinition): () => void;
|
|
1117
1138
|
|
|
1118
|
-
export { type
|
|
1139
|
+
export { type Dimension as A, type Bounds as B, type Component as C, type Diagnostic as D, type RenderDiagnostic as E, type Frame as F, type GenericComponent as G, type RenderNode as H, type IsometricFace as I, type RenderOptions as J, type RenderResult as K, type LinkStyle as L, type MeasureTextFactory as M, type RenderScene as N, type SceneRole as O, type PathPoint as P, type ShaderParameter as Q, type RollingNumberComponent as R, type Shader as S, type TickScaleComponent as T, type ShapeType as U, type TextMetrics as V, defineComponent as W, render as X, renderCanvas as Y, type Side as Z, type ComponentDescriptor as a, type Point as b, type RollingNumberComponentStyle as c, type RulerComponent as d, type RenderInput as e, type ShadowStyle as f, type Shape as g, type Link as h, type Swimlane as i, type IsometricObject as j, type FreeformPath as k, type Chart as l, CHART_TYPES as m, type ChartAxis as n, type ChartRamp as o, type ChartSeries as p, type ChartType as q, type ComponentDefinition as r, type ComponentGroup as s, type ComponentInteraction as t, type ComponentPropertyDescriptor as u, type ComponentSceneContext as v, type ComponentSize as w, type ComponentValue as x, type ComponentValueDescriptor as y, type ComponentValueType as z };
|
|
@@ -549,6 +549,34 @@ interface Diagnostic {
|
|
|
549
549
|
ownerId?: string;
|
|
550
550
|
}
|
|
551
551
|
|
|
552
|
+
interface Point {
|
|
553
|
+
x: number;
|
|
554
|
+
y: number;
|
|
555
|
+
}
|
|
556
|
+
interface Bounds {
|
|
557
|
+
minX: number;
|
|
558
|
+
minY: number;
|
|
559
|
+
maxX: number;
|
|
560
|
+
maxY: number;
|
|
561
|
+
}
|
|
562
|
+
type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
563
|
+
|
|
564
|
+
interface Dimension {
|
|
565
|
+
id: string;
|
|
566
|
+
start: Point;
|
|
567
|
+
end: Point;
|
|
568
|
+
offset: number;
|
|
569
|
+
text?: string;
|
|
570
|
+
unit?: string;
|
|
571
|
+
strokeColor?: string;
|
|
572
|
+
strokeWidth?: number;
|
|
573
|
+
textColor?: string;
|
|
574
|
+
fontSize?: number;
|
|
575
|
+
order?: number;
|
|
576
|
+
sourceIndex?: number;
|
|
577
|
+
parentFrameId?: string;
|
|
578
|
+
}
|
|
579
|
+
|
|
552
580
|
interface Frame {
|
|
553
581
|
id: string;
|
|
554
582
|
name?: string;
|
|
@@ -577,18 +605,6 @@ interface Frame {
|
|
|
577
605
|
isLocked?: boolean;
|
|
578
606
|
}
|
|
579
607
|
|
|
580
|
-
interface Point {
|
|
581
|
-
x: number;
|
|
582
|
-
y: number;
|
|
583
|
-
}
|
|
584
|
-
interface Bounds {
|
|
585
|
-
minX: number;
|
|
586
|
-
minY: number;
|
|
587
|
-
maxX: number;
|
|
588
|
-
maxY: number;
|
|
589
|
-
}
|
|
590
|
-
type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
591
|
-
|
|
592
608
|
type IsometricFace = 'top' | 'bottom' | 'front' | 'back' | 'left' | 'right';
|
|
593
609
|
interface IsometricObject {
|
|
594
610
|
id: string;
|
|
@@ -597,6 +613,8 @@ interface IsometricObject {
|
|
|
597
613
|
width: number;
|
|
598
614
|
height: number;
|
|
599
615
|
depth: number;
|
|
616
|
+
footprint?: Array<[number, number]>;
|
|
617
|
+
form?: 'box' | 'sphere';
|
|
600
618
|
rotation?: number;
|
|
601
619
|
order?: number;
|
|
602
620
|
sourceIndex?: number;
|
|
@@ -676,7 +694,9 @@ interface Link {
|
|
|
676
694
|
laneId?: string;
|
|
677
695
|
}
|
|
678
696
|
|
|
679
|
-
|
|
697
|
+
interface PathPoint extends Point {
|
|
698
|
+
tension?: number;
|
|
699
|
+
}
|
|
680
700
|
interface FreeformPath {
|
|
681
701
|
id: string;
|
|
682
702
|
x: number;
|
|
@@ -805,6 +825,7 @@ interface RenderInput {
|
|
|
805
825
|
swimlanes: Swimlane[];
|
|
806
826
|
isometricObjects?: IsometricObject[];
|
|
807
827
|
paths?: FreeformPath[];
|
|
828
|
+
dimensions?: Dimension[];
|
|
808
829
|
charts?: Chart[];
|
|
809
830
|
components?: Component[];
|
|
810
831
|
widgets?: Component[];
|
|
@@ -871,7 +892,7 @@ interface SceneStyle {
|
|
|
871
892
|
d: string;
|
|
872
893
|
};
|
|
873
894
|
}
|
|
874
|
-
type SceneRole = 'shape' | 'link' | 'frame' | 'swimlane' | 'path' | 'chart' | 'widget' | 'isometric';
|
|
895
|
+
type SceneRole = 'shape' | 'link' | 'frame' | 'swimlane' | 'path' | 'chart' | 'widget' | 'isometric' | 'dimension';
|
|
875
896
|
interface SceneAria {
|
|
876
897
|
role: string;
|
|
877
898
|
checked?: boolean;
|
|
@@ -1115,4 +1136,4 @@ interface ComponentDefinition extends ComponentDescriptor {
|
|
|
1115
1136
|
}
|
|
1116
1137
|
declare function defineComponent(definition: ComponentDefinition): () => void;
|
|
1117
1138
|
|
|
1118
|
-
export { type
|
|
1139
|
+
export { type Dimension as A, type Bounds as B, type Component as C, type Diagnostic as D, type RenderDiagnostic as E, type Frame as F, type GenericComponent as G, type RenderNode as H, type IsometricFace as I, type RenderOptions as J, type RenderResult as K, type LinkStyle as L, type MeasureTextFactory as M, type RenderScene as N, type SceneRole as O, type PathPoint as P, type ShaderParameter as Q, type RollingNumberComponent as R, type Shader as S, type TickScaleComponent as T, type ShapeType as U, type TextMetrics as V, defineComponent as W, render as X, renderCanvas as Y, type Side as Z, type ComponentDescriptor as a, type Point as b, type RollingNumberComponentStyle as c, type RulerComponent as d, type RenderInput as e, type ShadowStyle as f, type Shape as g, type Link as h, type Swimlane as i, type IsometricObject as j, type FreeformPath as k, type Chart as l, CHART_TYPES as m, type ChartAxis as n, type ChartRamp as o, type ChartSeries as p, type ChartType as q, type ComponentDefinition as r, type ComponentGroup as s, type ComponentInteraction as t, type ComponentPropertyDescriptor as u, type ComponentSceneContext as v, type ComponentSize as w, type ComponentValue as x, type ComponentValueDescriptor as y, type ComponentValueType as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-
|
|
1
|
+
import { J as RenderOptions, K as RenderResult } from './render-Db0eSz_s.cjs';
|
|
2
|
+
import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-CrkMHvVi.cjs';
|
|
3
3
|
|
|
4
4
|
declare function createBindingRuntime(sfl: string, options?: BindingRuntimeOptions): BindingRuntime;
|
|
5
5
|
interface RenderBoundOptions extends RenderOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-
|
|
1
|
+
import { J as RenderOptions, K as RenderResult } from './render-Db0eSz_s.js';
|
|
2
|
+
import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-DnI7mRF5.js';
|
|
3
3
|
|
|
4
4
|
declare function createBindingRuntime(sfl: string, options?: BindingRuntimeOptions): BindingRuntime;
|
|
5
5
|
interface RenderBoundOptions extends RenderOptions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-Db0eSz_s.cjs';
|
|
2
2
|
|
|
3
|
-
declare const NAMED_BLOCK_KINDS: readonly ["Project", "Model", "Group", "Entity", "Container", "Path", "Chart", "Widget", "Component", "Shape", "Text", "Isometric", "Link", "Connection", "Layout", "Style", "Shader", "Axis", "Series", "Rule", "Net", "Symbol", "Port", "DataSource"];
|
|
3
|
+
declare const NAMED_BLOCK_KINDS: readonly ["Project", "Model", "Group", "Entity", "Container", "Path", "Chart", "Widget", "Component", "Shape", "Text", "Isometric", "Dimension", "Link", "Connection", "Layout", "Style", "Shader", "Axis", "Series", "Rule", "Net", "Symbol", "Port", "DataSource"];
|
|
4
4
|
type NamedBlockKind = (typeof NAMED_BLOCK_KINDS)[number];
|
|
5
5
|
type BlockKind = NamedBlockKind | 'data';
|
|
6
6
|
type Side = 'top' | 'bottom' | 'left' | 'right';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-Db0eSz_s.js';
|
|
2
2
|
|
|
3
|
-
declare const NAMED_BLOCK_KINDS: readonly ["Project", "Model", "Group", "Entity", "Container", "Path", "Chart", "Widget", "Component", "Shape", "Text", "Isometric", "Link", "Connection", "Layout", "Style", "Shader", "Axis", "Series", "Rule", "Net", "Symbol", "Port", "DataSource"];
|
|
3
|
+
declare const NAMED_BLOCK_KINDS: readonly ["Project", "Model", "Group", "Entity", "Container", "Path", "Chart", "Widget", "Component", "Shape", "Text", "Isometric", "Dimension", "Link", "Connection", "Layout", "Style", "Shader", "Axis", "Series", "Rule", "Net", "Symbol", "Port", "DataSource"];
|
|
4
4
|
type NamedBlockKind = (typeof NAMED_BLOCK_KINDS)[number];
|
|
5
5
|
type BlockKind = NamedBlockKind | 'data';
|
|
6
6
|
type Side = 'top' | 'bottom' | 'left' | 'right';
|