stickyflow 0.5.0 → 0.7.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 +43 -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-ZMLQIMJK.cjs → chunk-A73UJ5AQ.cjs} +1537 -738
- package/dist/chunk-A73UJ5AQ.cjs.map +1 -0
- package/dist/{chunk-VK3T6O5Z.cjs → chunk-BUOWM3LC.cjs} +745 -62
- package/dist/chunk-BUOWM3LC.cjs.map +1 -0
- package/dist/{chunk-L3VJXZFD.cjs → chunk-EKAWJFJQ.cjs} +15 -15
- package/dist/{chunk-L3VJXZFD.cjs.map → chunk-EKAWJFJQ.cjs.map} +1 -1
- package/dist/{chunk-BODZN3ZI.js → chunk-JCRPLPKV.js} +156 -23
- package/dist/chunk-JCRPLPKV.js.map +1 -0
- package/dist/{chunk-IEHE6WVN.js → chunk-JQK4IGXJ.js} +489 -51
- package/dist/chunk-JQK4IGXJ.js.map +1 -0
- package/dist/{chunk-XY2GZUHC.cjs → chunk-KXYSO6GC.cjs} +498 -50
- package/dist/chunk-KXYSO6GC.cjs.map +1 -0
- package/dist/{chunk-G7NRK5AG.js → chunk-MUKIGLR5.js} +717 -34
- package/dist/chunk-MUKIGLR5.js.map +1 -0
- package/dist/{chunk-TWDLOXRM.cjs → chunk-OWNVXKXN.cjs} +170 -37
- package/dist/chunk-OWNVXKXN.cjs.map +1 -0
- package/dist/{chunk-LTGF5OHP.js → chunk-SDMQRSRW.js} +941 -143
- package/dist/chunk-SDMQRSRW.js.map +1 -0
- package/dist/{chunk-7VW2XKVB.js → chunk-ZNHYW47T.js} +3 -3
- package/dist/{chunk-7VW2XKVB.js.map → chunk-ZNHYW47T.js.map} +1 -1
- package/dist/index.cjs +57 -29
- package/dist/index.d.cts +80 -7
- package/dist/index.d.ts +80 -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-BU2uYzjG.d.cts} +40 -16
- package/dist/{render-CgX_y15a.d.cts → render-BU2uYzjG.d.ts} +40 -16
- package/dist/{runtime-reWgr7MP.d.cts → runtime-B7KiTmn8.d.cts} +2 -2
- package/dist/{runtime-DnUxca3Y.d.ts → runtime-BPzyD-Nd.d.ts} +2 -2
- package/dist/{runtimeTypes-D60w6nyF.d.cts → runtimeTypes-BIP70z72.d.cts} +3 -2
- package/dist/{runtimeTypes-CEBGueYM.d.ts → runtimeTypes-DalvhScn.d.ts} +3 -2
- package/dist/stickyflow-diagram.global.js +387 -36
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/{types-DYLC_lsk.d.ts → types-DMWs27Hn.d.ts} +1 -1
- package/dist/{types-DvhMpqrL.d.cts → types-D_2NZ6lL.d.cts} +1 -1
- package/dist/viewer/index.cjs +9 -9
- package/dist/viewer/index.d.cts +5 -4
- package/dist/viewer/index.d.ts +5 -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-BODZN3ZI.js.map +0 -1
- package/dist/chunk-G7NRK5AG.js.map +0 -1
- package/dist/chunk-IEHE6WVN.js.map +0 -1
- package/dist/chunk-LTGF5OHP.js.map +0 -1
- package/dist/chunk-TWDLOXRM.cjs.map +0 -1
- package/dist/chunk-VK3T6O5Z.cjs.map +0 -1
- package/dist/chunk-XY2GZUHC.cjs.map +0 -1
- package/dist/chunk-ZMLQIMJK.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,18 +1,68 @@
|
|
|
1
|
-
import { C as Component, G as GenericComponent, a as ComponentDescriptor, R as RollingNumberComponent,
|
|
2
|
-
export { B as Bounds,
|
|
3
|
-
import { S as SflDocument, o as Side } from './runtimeTypes-
|
|
4
|
-
export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-
|
|
5
|
-
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-
|
|
1
|
+
import { C as Component, G as GenericComponent, a as ComponentDescriptor, P as PathPoint, b as Point, R as RollingNumberComponent, c as RollingNumberComponentStyle, d as RulerComponent, T as TickScaleComponent, I as IsometricFace, D as Diagnostic, S as Shader, e as RenderInput, f as ShadowStyle, L as LinkStyle, g as Shape, h as Link, F as Frame, i as Swimlane, j as IsometricObject, k as FreeformPath, l as Chart } from './render-BU2uYzjG.cjs';
|
|
2
|
+
export { B as Bounds, m as CHART_TYPES, n as ChartAxis, o as ChartRamp, p as ChartSeries, q as ChartType, r as ComponentDefinition, s as ComponentGroup, t as ComponentInteraction, u as ComponentPropertyDescriptor, v as ComponentSceneContext, w as ComponentSize, x as ComponentValue, y as ComponentValueDescriptor, z as ComponentValueType, A as Dimension, M as MeasureTextFactory, E as RenderDiagnostic, H as RenderNode, J as RenderOptions, K as RenderResult, N as RenderScene, O as SceneRole, Q as ShaderParameter, U as ShapeType, V as TextMetrics, W as defineComponent, X as render, Y as renderCanvas } from './render-BU2uYzjG.cjs';
|
|
3
|
+
import { S as SflDocument, o as Side } from './runtimeTypes-BIP70z72.cjs';
|
|
4
|
+
export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-BIP70z72.cjs';
|
|
5
|
+
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-B7KiTmn8.cjs';
|
|
6
|
+
|
|
7
|
+
declare const COMPONENT_CATEGORIES: readonly [{
|
|
8
|
+
readonly id: "action";
|
|
9
|
+
readonly label: "Actions";
|
|
10
|
+
}, {
|
|
11
|
+
readonly id: "selection";
|
|
12
|
+
readonly label: "Selection";
|
|
13
|
+
}, {
|
|
14
|
+
readonly id: "value";
|
|
15
|
+
readonly label: "Value input";
|
|
16
|
+
}, {
|
|
17
|
+
readonly id: "text";
|
|
18
|
+
readonly label: "Text input";
|
|
19
|
+
}, {
|
|
20
|
+
readonly id: "indicator";
|
|
21
|
+
readonly label: "Indicators";
|
|
22
|
+
}, {
|
|
23
|
+
readonly id: "instrument";
|
|
24
|
+
readonly label: "Instruments";
|
|
25
|
+
}, {
|
|
26
|
+
readonly id: "navigation";
|
|
27
|
+
readonly label: "Navigation";
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: "container";
|
|
30
|
+
readonly label: "Containers";
|
|
31
|
+
}];
|
|
32
|
+
type ComponentCategory = (typeof COMPONENT_CATEGORIES)[number]['id'];
|
|
6
33
|
|
|
7
34
|
declare function isGenericComponent(component: Component): component is GenericComponent;
|
|
8
35
|
|
|
9
36
|
declare function getComponentDescriptor(type: string | undefined): ComponentDescriptor | undefined;
|
|
37
|
+
declare function componentTypes(): string[];
|
|
10
38
|
|
|
11
39
|
type ComponentType = string;
|
|
12
40
|
|
|
13
41
|
declare const AXIS_COS: number;
|
|
14
42
|
declare const AXIS_SIN: number;
|
|
15
43
|
|
|
44
|
+
interface PathCurve {
|
|
45
|
+
points: readonly PathPoint[];
|
|
46
|
+
tension: number;
|
|
47
|
+
closed: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare function flattenPath(curve: PathCurve, samples?: number): Point[];
|
|
50
|
+
|
|
51
|
+
interface PathFrame {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
width: number;
|
|
55
|
+
height: number;
|
|
56
|
+
}
|
|
57
|
+
interface PathSymbol {
|
|
58
|
+
points: Array<[number, number] | [number, number, number]>;
|
|
59
|
+
width: number;
|
|
60
|
+
height: number;
|
|
61
|
+
}
|
|
62
|
+
declare function pathBounds(points: readonly PathPoint[]): PathFrame;
|
|
63
|
+
declare function pathToSymbol(points: readonly PathPoint[]): PathSymbol;
|
|
64
|
+
declare function symbolToPath(points: ReadonlyArray<readonly [number, number] | readonly [number, number, number]>, frame: PathFrame): PathPoint[];
|
|
65
|
+
|
|
16
66
|
declare const SHAPE_TYPES: readonly ["rectangle", "rounded_rectangle", "triangle", "diamond", "hexagon", "oval", "circle", "document", "parallelogram", "trapezoid", "cylinder", "note", "cloud", "predefined_process", "pill", "person", "symbol"];
|
|
17
67
|
|
|
18
68
|
type Widget = Component;
|
|
@@ -155,9 +205,29 @@ type SflChartObject = SflCanvasObject & {
|
|
|
155
205
|
};
|
|
156
206
|
declare function isChartObject(canvasObject: SflCanvasObject): canvasObject is SflChartObject;
|
|
157
207
|
|
|
208
|
+
interface SflDimensionData {
|
|
209
|
+
start: {
|
|
210
|
+
x: number;
|
|
211
|
+
y: number;
|
|
212
|
+
};
|
|
213
|
+
end: {
|
|
214
|
+
x: number;
|
|
215
|
+
y: number;
|
|
216
|
+
};
|
|
217
|
+
offset: number;
|
|
218
|
+
unit?: string;
|
|
219
|
+
}
|
|
220
|
+
type SflDimensionObject = SflCanvasObject & {
|
|
221
|
+
objectType: 'dimension';
|
|
222
|
+
dimension: SflDimensionData;
|
|
223
|
+
};
|
|
224
|
+
declare function isDimensionObject(canvasObject: SflCanvasObject): canvasObject is SflDimensionObject;
|
|
225
|
+
|
|
158
226
|
interface SflIsometricData {
|
|
159
227
|
depth: number;
|
|
160
228
|
icon?: string;
|
|
229
|
+
footprint?: Array<[number, number]>;
|
|
230
|
+
form: 'box' | 'sphere';
|
|
161
231
|
}
|
|
162
232
|
type SflIsometricObject = SflCanvasObject & {
|
|
163
233
|
objectType: 'isometric';
|
|
@@ -169,6 +239,7 @@ interface SflPathData {
|
|
|
169
239
|
points: Array<{
|
|
170
240
|
x: number;
|
|
171
241
|
y: number;
|
|
242
|
+
tension?: number;
|
|
172
243
|
}>;
|
|
173
244
|
tension?: number;
|
|
174
245
|
startMarker?: string;
|
|
@@ -197,10 +268,11 @@ type SflSwimlaneObject = SflCanvasObject & {
|
|
|
197
268
|
};
|
|
198
269
|
declare function isSwimlaneObject(canvasObject: SflCanvasObject): canvasObject is SflSwimlaneObject;
|
|
199
270
|
|
|
200
|
-
type SflCanvasObjectType = 'shape' | 'frame' | 'swimlane' | 'path' | 'chart' | 'component' | 'isometric';
|
|
271
|
+
type SflCanvasObjectType = 'shape' | 'frame' | 'swimlane' | 'path' | 'chart' | 'component' | 'isometric' | 'dimension';
|
|
201
272
|
interface SflSymbolDefinition {
|
|
202
273
|
name: string;
|
|
203
274
|
points: Array<[number, number]>;
|
|
275
|
+
pointTensions?: Array<number | undefined>;
|
|
204
276
|
tension?: number;
|
|
205
277
|
ports?: Array<{
|
|
206
278
|
name: string;
|
|
@@ -230,6 +302,7 @@ interface SflCanvasObject extends SflCanvasObjectBase {
|
|
|
230
302
|
chart?: SflChartData;
|
|
231
303
|
component?: SflComponentData;
|
|
232
304
|
isometric?: SflIsometricData;
|
|
305
|
+
dimension?: SflDimensionData;
|
|
233
306
|
}
|
|
234
307
|
interface SflComponentData {
|
|
235
308
|
type: string;
|
|
@@ -340,4 +413,4 @@ interface SflImportJson {
|
|
|
340
413
|
|
|
341
414
|
declare function sflToImportJson(sfl: string): SflImportJson;
|
|
342
415
|
|
|
343
|
-
export { AXIS_COS, AXIS_SIN, Chart, Component, ComponentDescriptor, type ComponentType, DOM_CONTRACT_VERSION, FreeformPath, GenericComponent, IsometricFace, IsometricObject, RenderInput, RollingNumberComponent, RollingNumberComponentStyle, type RollingNumberWidget, type RollingNumberWidgetStyle, RulerComponent, type RulerWidget, SHAPE_TYPES, type SflCanvasObject, type SflCanvasState, type SflChartObject, type SflGroupOut, type SflImportJson, type SflIsometricObject, type SflLinkOut, type SflPathObject, type SflSwimlaneObject, Shader, TickScaleComponent, type TickScaleWidget, type Widget, type WidgetType, canonicalizeSource as canonicalize, decodeColor, decodeShadow, getComponentDescriptor, isChartObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, sflToCanvasState, sflToImportJson, sflToRenderInput };
|
|
416
|
+
export { AXIS_COS, AXIS_SIN, COMPONENT_CATEGORIES, Chart, Component, type ComponentCategory, ComponentDescriptor, type ComponentType, DOM_CONTRACT_VERSION, FreeformPath, GenericComponent, IsometricFace, IsometricObject, type PathFrame, PathPoint, type PathSymbol, Point, RenderInput, RollingNumberComponent, RollingNumberComponentStyle, type RollingNumberWidget, type RollingNumberWidgetStyle, RulerComponent, type RulerWidget, SHAPE_TYPES, type SflCanvasObject, type SflCanvasState, type SflChartObject, type SflDimensionObject, type SflGroupOut, type SflImportJson, type SflIsometricObject, type SflLinkOut, type SflPathObject, type SflSwimlaneObject, Shader, TickScaleComponent, type TickScaleWidget, type Widget, type WidgetType, canonicalizeSource as canonicalize, componentTypes, decodeColor, decodeShadow, flattenPath, getComponentDescriptor, isChartObject, isDimensionObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, pathBounds, pathToSymbol, sflToCanvasState, sflToImportJson, sflToRenderInput, symbolToPath };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,68 @@
|
|
|
1
|
-
import { C as Component, G as GenericComponent, a as ComponentDescriptor, R as RollingNumberComponent,
|
|
2
|
-
export { B as Bounds,
|
|
3
|
-
import { S as SflDocument, o as Side } from './runtimeTypes-
|
|
4
|
-
export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-
|
|
5
|
-
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-
|
|
1
|
+
import { C as Component, G as GenericComponent, a as ComponentDescriptor, P as PathPoint, b as Point, R as RollingNumberComponent, c as RollingNumberComponentStyle, d as RulerComponent, T as TickScaleComponent, I as IsometricFace, D as Diagnostic, S as Shader, e as RenderInput, f as ShadowStyle, L as LinkStyle, g as Shape, h as Link, F as Frame, i as Swimlane, j as IsometricObject, k as FreeformPath, l as Chart } from './render-BU2uYzjG.js';
|
|
2
|
+
export { B as Bounds, m as CHART_TYPES, n as ChartAxis, o as ChartRamp, p as ChartSeries, q as ChartType, r as ComponentDefinition, s as ComponentGroup, t as ComponentInteraction, u as ComponentPropertyDescriptor, v as ComponentSceneContext, w as ComponentSize, x as ComponentValue, y as ComponentValueDescriptor, z as ComponentValueType, A as Dimension, M as MeasureTextFactory, E as RenderDiagnostic, H as RenderNode, J as RenderOptions, K as RenderResult, N as RenderScene, O as SceneRole, Q as ShaderParameter, U as ShapeType, V as TextMetrics, W as defineComponent, X as render, Y as renderCanvas } from './render-BU2uYzjG.js';
|
|
3
|
+
import { S as SflDocument, o as Side } from './runtimeTypes-DalvhScn.js';
|
|
4
|
+
export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-DalvhScn.js';
|
|
5
|
+
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-BPzyD-Nd.js';
|
|
6
|
+
|
|
7
|
+
declare const COMPONENT_CATEGORIES: readonly [{
|
|
8
|
+
readonly id: "action";
|
|
9
|
+
readonly label: "Actions";
|
|
10
|
+
}, {
|
|
11
|
+
readonly id: "selection";
|
|
12
|
+
readonly label: "Selection";
|
|
13
|
+
}, {
|
|
14
|
+
readonly id: "value";
|
|
15
|
+
readonly label: "Value input";
|
|
16
|
+
}, {
|
|
17
|
+
readonly id: "text";
|
|
18
|
+
readonly label: "Text input";
|
|
19
|
+
}, {
|
|
20
|
+
readonly id: "indicator";
|
|
21
|
+
readonly label: "Indicators";
|
|
22
|
+
}, {
|
|
23
|
+
readonly id: "instrument";
|
|
24
|
+
readonly label: "Instruments";
|
|
25
|
+
}, {
|
|
26
|
+
readonly id: "navigation";
|
|
27
|
+
readonly label: "Navigation";
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: "container";
|
|
30
|
+
readonly label: "Containers";
|
|
31
|
+
}];
|
|
32
|
+
type ComponentCategory = (typeof COMPONENT_CATEGORIES)[number]['id'];
|
|
6
33
|
|
|
7
34
|
declare function isGenericComponent(component: Component): component is GenericComponent;
|
|
8
35
|
|
|
9
36
|
declare function getComponentDescriptor(type: string | undefined): ComponentDescriptor | undefined;
|
|
37
|
+
declare function componentTypes(): string[];
|
|
10
38
|
|
|
11
39
|
type ComponentType = string;
|
|
12
40
|
|
|
13
41
|
declare const AXIS_COS: number;
|
|
14
42
|
declare const AXIS_SIN: number;
|
|
15
43
|
|
|
44
|
+
interface PathCurve {
|
|
45
|
+
points: readonly PathPoint[];
|
|
46
|
+
tension: number;
|
|
47
|
+
closed: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare function flattenPath(curve: PathCurve, samples?: number): Point[];
|
|
50
|
+
|
|
51
|
+
interface PathFrame {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
width: number;
|
|
55
|
+
height: number;
|
|
56
|
+
}
|
|
57
|
+
interface PathSymbol {
|
|
58
|
+
points: Array<[number, number] | [number, number, number]>;
|
|
59
|
+
width: number;
|
|
60
|
+
height: number;
|
|
61
|
+
}
|
|
62
|
+
declare function pathBounds(points: readonly PathPoint[]): PathFrame;
|
|
63
|
+
declare function pathToSymbol(points: readonly PathPoint[]): PathSymbol;
|
|
64
|
+
declare function symbolToPath(points: ReadonlyArray<readonly [number, number] | readonly [number, number, number]>, frame: PathFrame): PathPoint[];
|
|
65
|
+
|
|
16
66
|
declare const SHAPE_TYPES: readonly ["rectangle", "rounded_rectangle", "triangle", "diamond", "hexagon", "oval", "circle", "document", "parallelogram", "trapezoid", "cylinder", "note", "cloud", "predefined_process", "pill", "person", "symbol"];
|
|
17
67
|
|
|
18
68
|
type Widget = Component;
|
|
@@ -155,9 +205,29 @@ type SflChartObject = SflCanvasObject & {
|
|
|
155
205
|
};
|
|
156
206
|
declare function isChartObject(canvasObject: SflCanvasObject): canvasObject is SflChartObject;
|
|
157
207
|
|
|
208
|
+
interface SflDimensionData {
|
|
209
|
+
start: {
|
|
210
|
+
x: number;
|
|
211
|
+
y: number;
|
|
212
|
+
};
|
|
213
|
+
end: {
|
|
214
|
+
x: number;
|
|
215
|
+
y: number;
|
|
216
|
+
};
|
|
217
|
+
offset: number;
|
|
218
|
+
unit?: string;
|
|
219
|
+
}
|
|
220
|
+
type SflDimensionObject = SflCanvasObject & {
|
|
221
|
+
objectType: 'dimension';
|
|
222
|
+
dimension: SflDimensionData;
|
|
223
|
+
};
|
|
224
|
+
declare function isDimensionObject(canvasObject: SflCanvasObject): canvasObject is SflDimensionObject;
|
|
225
|
+
|
|
158
226
|
interface SflIsometricData {
|
|
159
227
|
depth: number;
|
|
160
228
|
icon?: string;
|
|
229
|
+
footprint?: Array<[number, number]>;
|
|
230
|
+
form: 'box' | 'sphere';
|
|
161
231
|
}
|
|
162
232
|
type SflIsometricObject = SflCanvasObject & {
|
|
163
233
|
objectType: 'isometric';
|
|
@@ -169,6 +239,7 @@ interface SflPathData {
|
|
|
169
239
|
points: Array<{
|
|
170
240
|
x: number;
|
|
171
241
|
y: number;
|
|
242
|
+
tension?: number;
|
|
172
243
|
}>;
|
|
173
244
|
tension?: number;
|
|
174
245
|
startMarker?: string;
|
|
@@ -197,10 +268,11 @@ type SflSwimlaneObject = SflCanvasObject & {
|
|
|
197
268
|
};
|
|
198
269
|
declare function isSwimlaneObject(canvasObject: SflCanvasObject): canvasObject is SflSwimlaneObject;
|
|
199
270
|
|
|
200
|
-
type SflCanvasObjectType = 'shape' | 'frame' | 'swimlane' | 'path' | 'chart' | 'component' | 'isometric';
|
|
271
|
+
type SflCanvasObjectType = 'shape' | 'frame' | 'swimlane' | 'path' | 'chart' | 'component' | 'isometric' | 'dimension';
|
|
201
272
|
interface SflSymbolDefinition {
|
|
202
273
|
name: string;
|
|
203
274
|
points: Array<[number, number]>;
|
|
275
|
+
pointTensions?: Array<number | undefined>;
|
|
204
276
|
tension?: number;
|
|
205
277
|
ports?: Array<{
|
|
206
278
|
name: string;
|
|
@@ -230,6 +302,7 @@ interface SflCanvasObject extends SflCanvasObjectBase {
|
|
|
230
302
|
chart?: SflChartData;
|
|
231
303
|
component?: SflComponentData;
|
|
232
304
|
isometric?: SflIsometricData;
|
|
305
|
+
dimension?: SflDimensionData;
|
|
233
306
|
}
|
|
234
307
|
interface SflComponentData {
|
|
235
308
|
type: string;
|
|
@@ -340,4 +413,4 @@ interface SflImportJson {
|
|
|
340
413
|
|
|
341
414
|
declare function sflToImportJson(sfl: string): SflImportJson;
|
|
342
415
|
|
|
343
|
-
export { AXIS_COS, AXIS_SIN, Chart, Component, ComponentDescriptor, type ComponentType, DOM_CONTRACT_VERSION, FreeformPath, GenericComponent, IsometricFace, IsometricObject, RenderInput, RollingNumberComponent, RollingNumberComponentStyle, type RollingNumberWidget, type RollingNumberWidgetStyle, RulerComponent, type RulerWidget, SHAPE_TYPES, type SflCanvasObject, type SflCanvasState, type SflChartObject, type SflGroupOut, type SflImportJson, type SflIsometricObject, type SflLinkOut, type SflPathObject, type SflSwimlaneObject, Shader, TickScaleComponent, type TickScaleWidget, type Widget, type WidgetType, canonicalizeSource as canonicalize, decodeColor, decodeShadow, getComponentDescriptor, isChartObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, sflToCanvasState, sflToImportJson, sflToRenderInput };
|
|
416
|
+
export { AXIS_COS, AXIS_SIN, COMPONENT_CATEGORIES, Chart, Component, type ComponentCategory, ComponentDescriptor, type ComponentType, DOM_CONTRACT_VERSION, FreeformPath, GenericComponent, IsometricFace, IsometricObject, type PathFrame, PathPoint, type PathSymbol, Point, RenderInput, RollingNumberComponent, RollingNumberComponentStyle, type RollingNumberWidget, type RollingNumberWidgetStyle, RulerComponent, type RulerWidget, SHAPE_TYPES, type SflCanvasObject, type SflCanvasState, type SflChartObject, type SflDimensionObject, type SflGroupOut, type SflImportJson, type SflIsometricObject, type SflLinkOut, type SflPathObject, type SflSwimlaneObject, Shader, TickScaleComponent, type TickScaleWidget, type Widget, type WidgetType, canonicalizeSource as canonicalize, componentTypes, decodeColor, decodeShadow, flattenPath, getComponentDescriptor, isChartObject, isDimensionObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, pathBounds, pathToSymbol, sflToCanvasState, sflToImportJson, sflToRenderInput, symbolToPath };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { buildBindingGraph, createBindingRuntime, createDataSource, interactiveElements, renderBound } from './chunk-
|
|
2
|
-
import { collectCanvasObjects } from './chunk-
|
|
3
|
-
export { decodeColor, decodeShadow, defineComponent, render, renderCanvas, sflToRenderInput } from './chunk-
|
|
4
|
-
import { sflToCanvasState } from './chunk-
|
|
5
|
-
export { AXIS_COS, AXIS_SIN, CHART_TYPES, DOM_CONTRACT_VERSION, canonicalizeSource as canonicalize, getComponentDescriptor, isChartObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, sflToCanvasState } from './chunk-
|
|
1
|
+
export { buildBindingGraph, createBindingRuntime, createDataSource, interactiveElements, renderBound } from './chunk-JCRPLPKV.js';
|
|
2
|
+
import { collectCanvasObjects } from './chunk-SDMQRSRW.js';
|
|
3
|
+
export { decodeColor, decodeShadow, defineComponent, render, renderCanvas, sflToRenderInput } from './chunk-SDMQRSRW.js';
|
|
4
|
+
import { sflToCanvasState } from './chunk-JQK4IGXJ.js';
|
|
5
|
+
export { AXIS_COS, AXIS_SIN, CHART_TYPES, COMPONENT_CATEGORIES, DOM_CONTRACT_VERSION, canonicalizeSource as canonicalize, componentTypes, flattenPath, getComponentDescriptor, isChartObject, isDimensionObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, pathBounds, pathToSymbol, sflToCanvasState, symbolToPath } from './chunk-JQK4IGXJ.js';
|
|
6
6
|
|
|
7
7
|
// src/model/shape/supportedTypes.ts
|
|
8
8
|
var SHAPE_TYPES = [
|