stickyflow 0.6.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 +27 -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-WQRT5PVT.cjs → chunk-A73UJ5AQ.cjs} +1165 -672
- package/dist/chunk-A73UJ5AQ.cjs.map +1 -0
- package/dist/{chunk-KTNCDNDB.cjs → chunk-BUOWM3LC.cjs} +745 -62
- package/dist/chunk-BUOWM3LC.cjs.map +1 -0
- package/dist/{chunk-4LENHH6C.cjs → chunk-EKAWJFJQ.cjs} +15 -15
- package/dist/{chunk-4LENHH6C.cjs.map → chunk-EKAWJFJQ.cjs.map} +1 -1
- package/dist/{chunk-MFNUJA26.js → chunk-JCRPLPKV.js} +156 -23
- package/dist/chunk-JCRPLPKV.js.map +1 -0
- package/dist/{chunk-4G2R7PEL.js → chunk-JQK4IGXJ.js} +173 -9
- package/dist/chunk-JQK4IGXJ.js.map +1 -0
- package/dist/{chunk-XJ4W6TW4.cjs → chunk-KXYSO6GC.cjs} +174 -8
- package/dist/chunk-KXYSO6GC.cjs.map +1 -0
- package/dist/{chunk-WRDVNMFS.js → chunk-MUKIGLR5.js} +717 -34
- package/dist/chunk-MUKIGLR5.js.map +1 -0
- package/dist/{chunk-JIJMZMGY.cjs → chunk-OWNVXKXN.cjs} +170 -37
- package/dist/chunk-OWNVXKXN.cjs.map +1 -0
- package/dist/{chunk-FVHVOJS2.js → chunk-SDMQRSRW.js} +549 -57
- package/dist/chunk-SDMQRSRW.js.map +1 -0
- package/dist/{chunk-ULQZ6CZW.js → chunk-ZNHYW47T.js} +3 -3
- package/dist/{chunk-ULQZ6CZW.js.map → chunk-ZNHYW47T.js.map} +1 -1
- package/dist/index.cjs +42 -34
- package/dist/index.d.cts +34 -6
- package/dist/index.d.ts +34 -6
- package/dist/index.js +5 -5
- package/dist/interaction/index.cjs +230 -230
- package/dist/interaction/index.d.cts +2 -2
- package/dist/interaction/index.d.ts +2 -2
- package/dist/interaction/index.js +2 -2
- package/dist/{render-Db0eSz_s.d.cts → render-BU2uYzjG.d.cts} +4 -1
- package/dist/{render-Db0eSz_s.d.ts → render-BU2uYzjG.d.ts} +4 -1
- package/dist/{runtime-BhivvBeL.d.cts → runtime-B7KiTmn8.d.cts} +2 -2
- package/dist/{runtime-n2yG-_j-.d.ts → runtime-BPzyD-Nd.d.ts} +2 -2
- package/dist/{runtimeTypes-DnI7mRF5.d.ts → runtimeTypes-BIP70z72.d.cts} +2 -1
- package/dist/{runtimeTypes-CrkMHvVi.d.cts → runtimeTypes-DalvhScn.d.ts} +2 -1
- package/dist/stickyflow-diagram.global.js +387 -36
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/{types-D4cH4f1a.d.ts → types-DMWs27Hn.d.ts} +1 -1
- package/dist/{types-BHfUKT4s.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-4G2R7PEL.js.map +0 -1
- package/dist/chunk-FVHVOJS2.js.map +0 -1
- package/dist/chunk-JIJMZMGY.cjs.map +0 -1
- package/dist/chunk-KTNCDNDB.cjs.map +0 -1
- package/dist/chunk-MFNUJA26.js.map +0 -1
- package/dist/chunk-WQRT5PVT.cjs.map +0 -1
- package/dist/chunk-WRDVNMFS.js.map +0 -1
- package/dist/chunk-XJ4W6TW4.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,40 @@
|
|
|
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-
|
|
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-
|
|
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
|
|
|
@@ -385,4 +413,4 @@ interface SflImportJson {
|
|
|
385
413
|
|
|
386
414
|
declare function sflToImportJson(sfl: string): SflImportJson;
|
|
387
415
|
|
|
388
|
-
export { AXIS_COS, AXIS_SIN, Chart, Component, 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, decodeColor, decodeShadow, flattenPath, getComponentDescriptor, isChartObject, isDimensionObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, pathBounds, pathToSymbol, sflToCanvasState, sflToImportJson, sflToRenderInput, symbolToPath };
|
|
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,12 +1,40 @@
|
|
|
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-
|
|
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-
|
|
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
|
|
|
@@ -385,4 +413,4 @@ interface SflImportJson {
|
|
|
385
413
|
|
|
386
414
|
declare function sflToImportJson(sfl: string): SflImportJson;
|
|
387
415
|
|
|
388
|
-
export { AXIS_COS, AXIS_SIN, Chart, Component, 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, decodeColor, decodeShadow, flattenPath, getComponentDescriptor, isChartObject, isDimensionObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, pathBounds, pathToSymbol, sflToCanvasState, sflToImportJson, sflToRenderInput, symbolToPath };
|
|
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, flattenPath, getComponentDescriptor, isChartObject, isDimensionObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, pathBounds, pathToSymbol, sflToCanvasState, symbolToPath } 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 = [
|