stickyflow 0.9.3 → 0.11.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 +20 -0
- package/README.md +1 -1
- 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-EURX7QT3.cjs → chunk-5G3BEXQU.cjs} +1300 -891
- package/dist/chunk-5G3BEXQU.cjs.map +1 -0
- package/dist/{chunk-AAP24GBG.js → chunk-BFQWCOEC.js} +3 -3
- package/dist/chunk-BFQWCOEC.js.map +1 -0
- package/dist/{chunk-3EOG34QN.cjs → chunk-F24JURN2.cjs} +561 -258
- package/dist/chunk-F24JURN2.cjs.map +1 -0
- package/dist/{chunk-2GKXPZRL.cjs → chunk-FXGXUWSI.cjs} +23 -23
- package/dist/chunk-FXGXUWSI.cjs.map +1 -0
- package/dist/{chunk-Q6FBISNP.js → chunk-G6IW2IX3.js} +601 -350
- package/dist/chunk-G6IW2IX3.js.map +1 -0
- package/dist/{chunk-G2N3KJYJ.js → chunk-Q6QLU6YQ.js} +662 -253
- package/dist/chunk-Q6QLU6YQ.js.map +1 -0
- package/dist/{chunk-C3LVKPWQ.js → chunk-RQYZNW2I.js} +532 -229
- package/dist/chunk-RQYZNW2I.js.map +1 -0
- package/dist/{chunk-XNNNIOJU.js → chunk-UB2ANTWF.js} +5 -5
- package/dist/{chunk-XNNNIOJU.js.map → chunk-UB2ANTWF.js.map} +1 -1
- package/dist/{chunk-C25NWWIH.cjs → chunk-UHKFJBY5.cjs} +605 -350
- package/dist/chunk-UHKFJBY5.cjs.map +1 -0
- package/dist/{chunk-MR32IJQO.cjs → chunk-WZA3DJJH.cjs} +15 -15
- package/dist/chunk-WZA3DJJH.cjs.map +1 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +35 -30
- package/dist/index.d.ts +35 -30
- package/dist/index.js +5 -5
- package/dist/interaction/index.cjs +319 -352
- package/dist/interaction/index.cjs.map +1 -1
- package/dist/interaction/index.d.cts +3 -3
- package/dist/interaction/index.d.ts +3 -3
- package/dist/interaction/index.js +94 -127
- package/dist/interaction/index.js.map +1 -1
- package/dist/{render-DU4lYbRl.d.ts → render-BDO4S5uF.d.cts} +16 -0
- package/dist/{render-DU4lYbRl.d.cts → render-BDO4S5uF.d.ts} +16 -0
- package/dist/{runtime-DG8X3Fwf.d.cts → runtime-C-C5v9po.d.cts} +2 -2
- package/dist/{runtime-kqD1RS17.d.ts → runtime-lCAfU-1Q.d.ts} +2 -2
- package/dist/{runtimeTypes-vRaHOIHi.d.ts → runtimeTypes-B7p6b1Bi.d.cts} +2 -2
- package/dist/{runtimeTypes-CvjlBZds.d.cts → runtimeTypes-BDA_CfWh.d.ts} +2 -2
- package/dist/stickyflow-diagram.global.js +197 -44
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/{types-B5jrEEcF.d.cts → types-CZJzycKw.d.cts} +1 -1
- package/dist/{types-B7IkZ0w4.d.ts → types-Dp8JVZLB.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.cjs.map +1 -1
- 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/dist/web-component/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2GKXPZRL.cjs.map +0 -1
- package/dist/chunk-3EOG34QN.cjs.map +0 -1
- package/dist/chunk-AAP24GBG.js.map +0 -1
- package/dist/chunk-C25NWWIH.cjs.map +0 -1
- package/dist/chunk-C3LVKPWQ.js.map +0 -1
- package/dist/chunk-EURX7QT3.cjs.map +0 -1
- package/dist/chunk-G2N3KJYJ.js.map +0 -1
- package/dist/chunk-MR32IJQO.cjs.map +0 -1
- package/dist/chunk-Q6FBISNP.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-BDO4S5uF.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-BDO4S5uF.js';
|
|
3
|
+
import { S as SflDocument, o as Side } from './runtimeTypes-BDA_CfWh.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-BDA_CfWh.js';
|
|
5
|
+
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-lCAfU-1Q.js';
|
|
6
6
|
|
|
7
7
|
declare const COMPONENT_CATEGORIES: readonly [{
|
|
8
8
|
readonly id: "action";
|
|
@@ -199,11 +199,6 @@ interface SflChartSeries {
|
|
|
199
199
|
labelOffsetX?: number;
|
|
200
200
|
labelOffsetY?: number;
|
|
201
201
|
}
|
|
202
|
-
type SflChartObject = SflCanvasObject & {
|
|
203
|
-
objectType: 'chart';
|
|
204
|
-
chart: SflChartData;
|
|
205
|
-
};
|
|
206
|
-
declare function isChartObject(canvasObject: SflCanvasObject): canvasObject is SflChartObject;
|
|
207
202
|
|
|
208
203
|
interface SflDimensionData {
|
|
209
204
|
start: {
|
|
@@ -217,11 +212,6 @@ interface SflDimensionData {
|
|
|
217
212
|
offset: number;
|
|
218
213
|
unit?: string;
|
|
219
214
|
}
|
|
220
|
-
type SflDimensionObject = SflCanvasObject & {
|
|
221
|
-
objectType: 'dimension';
|
|
222
|
-
dimension: SflDimensionData;
|
|
223
|
-
};
|
|
224
|
-
declare function isDimensionObject(canvasObject: SflCanvasObject): canvasObject is SflDimensionObject;
|
|
225
215
|
|
|
226
216
|
interface SflIsometricData {
|
|
227
217
|
depth: number;
|
|
@@ -229,11 +219,6 @@ interface SflIsometricData {
|
|
|
229
219
|
footprint?: Array<[number, number]>;
|
|
230
220
|
form: 'box' | 'sphere';
|
|
231
221
|
}
|
|
232
|
-
type SflIsometricObject = SflCanvasObject & {
|
|
233
|
-
objectType: 'isometric';
|
|
234
|
-
isometric: SflIsometricData;
|
|
235
|
-
};
|
|
236
|
-
declare function isIsometricObject(canvasObject: SflCanvasObject): canvasObject is SflIsometricObject;
|
|
237
222
|
|
|
238
223
|
interface SflPathData {
|
|
239
224
|
points: Array<{
|
|
@@ -247,11 +232,6 @@ interface SflPathData {
|
|
|
247
232
|
closed?: boolean;
|
|
248
233
|
value?: number;
|
|
249
234
|
}
|
|
250
|
-
type SflPathObject = SflCanvasObject & {
|
|
251
|
-
objectType: 'path';
|
|
252
|
-
path: SflPathData;
|
|
253
|
-
};
|
|
254
|
-
declare function isPathObject(canvasObject: SflCanvasObject): canvasObject is SflPathObject;
|
|
255
235
|
|
|
256
236
|
interface SflSwimlaneData {
|
|
257
237
|
orientation: 'horizontal' | 'vertical';
|
|
@@ -262,11 +242,6 @@ interface SflSwimlaneData {
|
|
|
262
242
|
color?: string;
|
|
263
243
|
}>;
|
|
264
244
|
}
|
|
265
|
-
type SflSwimlaneObject = SflCanvasObject & {
|
|
266
|
-
objectType: 'swimlane';
|
|
267
|
-
swimlane: SflSwimlaneData;
|
|
268
|
-
};
|
|
269
|
-
declare function isSwimlaneObject(canvasObject: SflCanvasObject): canvasObject is SflSwimlaneObject;
|
|
270
245
|
|
|
271
246
|
type SflCanvasObjectType = 'shape' | 'frame' | 'swimlane' | 'path' | 'chart' | 'component' | 'isometric' | 'dimension';
|
|
272
247
|
interface SflSymbolDefinition {
|
|
@@ -324,6 +299,36 @@ interface SflGroupOut {
|
|
|
324
299
|
parentFrameId?: string;
|
|
325
300
|
}
|
|
326
301
|
|
|
302
|
+
type SflChartObject = SflCanvasObject & {
|
|
303
|
+
objectType: 'chart';
|
|
304
|
+
chart: SflChartData;
|
|
305
|
+
};
|
|
306
|
+
declare function isChartObject(canvasObject: SflCanvasObject): canvasObject is SflChartObject;
|
|
307
|
+
|
|
308
|
+
type SflDimensionObject = SflCanvasObject & {
|
|
309
|
+
objectType: 'dimension';
|
|
310
|
+
dimension: SflDimensionData;
|
|
311
|
+
};
|
|
312
|
+
declare function isDimensionObject(canvasObject: SflCanvasObject): canvasObject is SflDimensionObject;
|
|
313
|
+
|
|
314
|
+
type SflIsometricObject = SflCanvasObject & {
|
|
315
|
+
objectType: 'isometric';
|
|
316
|
+
isometric: SflIsometricData;
|
|
317
|
+
};
|
|
318
|
+
declare function isIsometricObject(canvasObject: SflCanvasObject): canvasObject is SflIsometricObject;
|
|
319
|
+
|
|
320
|
+
type SflPathObject = SflCanvasObject & {
|
|
321
|
+
objectType: 'path';
|
|
322
|
+
path: SflPathData;
|
|
323
|
+
};
|
|
324
|
+
declare function isPathObject(canvasObject: SflCanvasObject): canvasObject is SflPathObject;
|
|
325
|
+
|
|
326
|
+
type SflSwimlaneObject = SflCanvasObject & {
|
|
327
|
+
objectType: 'swimlane';
|
|
328
|
+
swimlane: SflSwimlaneData;
|
|
329
|
+
};
|
|
330
|
+
declare function isSwimlaneObject(canvasObject: SflCanvasObject): canvasObject is SflSwimlaneObject;
|
|
331
|
+
|
|
327
332
|
type SflDiagnostic = Diagnostic;
|
|
328
333
|
interface SflCanvasState {
|
|
329
334
|
canvasObjects: SflCanvasObject[];
|
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, 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-
|
|
1
|
+
export { buildBindingGraph, createBindingRuntime, createDataSource, interactiveElements, renderBound } from './chunk-UB2ANTWF.js';
|
|
2
|
+
import { collectCanvasObjects } from './chunk-Q6QLU6YQ.js';
|
|
3
|
+
export { decodeColor, decodeShadow, defineComponent, render, renderCanvas, sflToRenderInput } from './chunk-Q6QLU6YQ.js';
|
|
4
|
+
import { sflToCanvasState } from './chunk-G6IW2IX3.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-G6IW2IX3.js';
|
|
6
6
|
|
|
7
7
|
// src/model/shape/supportedTypes.ts
|
|
8
8
|
var SHAPE_TYPES = [
|