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.
Files changed (60) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/binding/index.cjs +9 -9
  3. package/dist/binding/index.d.cts +4 -4
  4. package/dist/binding/index.d.ts +4 -4
  5. package/dist/binding/index.js +3 -3
  6. package/dist/{chunk-WQRT5PVT.cjs → chunk-A73UJ5AQ.cjs} +1165 -672
  7. package/dist/chunk-A73UJ5AQ.cjs.map +1 -0
  8. package/dist/{chunk-KTNCDNDB.cjs → chunk-BUOWM3LC.cjs} +745 -62
  9. package/dist/chunk-BUOWM3LC.cjs.map +1 -0
  10. package/dist/{chunk-4LENHH6C.cjs → chunk-EKAWJFJQ.cjs} +15 -15
  11. package/dist/{chunk-4LENHH6C.cjs.map → chunk-EKAWJFJQ.cjs.map} +1 -1
  12. package/dist/{chunk-MFNUJA26.js → chunk-JCRPLPKV.js} +156 -23
  13. package/dist/chunk-JCRPLPKV.js.map +1 -0
  14. package/dist/{chunk-4G2R7PEL.js → chunk-JQK4IGXJ.js} +173 -9
  15. package/dist/chunk-JQK4IGXJ.js.map +1 -0
  16. package/dist/{chunk-XJ4W6TW4.cjs → chunk-KXYSO6GC.cjs} +174 -8
  17. package/dist/chunk-KXYSO6GC.cjs.map +1 -0
  18. package/dist/{chunk-WRDVNMFS.js → chunk-MUKIGLR5.js} +717 -34
  19. package/dist/chunk-MUKIGLR5.js.map +1 -0
  20. package/dist/{chunk-JIJMZMGY.cjs → chunk-OWNVXKXN.cjs} +170 -37
  21. package/dist/chunk-OWNVXKXN.cjs.map +1 -0
  22. package/dist/{chunk-FVHVOJS2.js → chunk-SDMQRSRW.js} +549 -57
  23. package/dist/chunk-SDMQRSRW.js.map +1 -0
  24. package/dist/{chunk-ULQZ6CZW.js → chunk-ZNHYW47T.js} +3 -3
  25. package/dist/{chunk-ULQZ6CZW.js.map → chunk-ZNHYW47T.js.map} +1 -1
  26. package/dist/index.cjs +42 -34
  27. package/dist/index.d.cts +34 -6
  28. package/dist/index.d.ts +34 -6
  29. package/dist/index.js +5 -5
  30. package/dist/interaction/index.cjs +230 -230
  31. package/dist/interaction/index.d.cts +2 -2
  32. package/dist/interaction/index.d.ts +2 -2
  33. package/dist/interaction/index.js +2 -2
  34. package/dist/{render-Db0eSz_s.d.cts → render-BU2uYzjG.d.cts} +4 -1
  35. package/dist/{render-Db0eSz_s.d.ts → render-BU2uYzjG.d.ts} +4 -1
  36. package/dist/{runtime-BhivvBeL.d.cts → runtime-B7KiTmn8.d.cts} +2 -2
  37. package/dist/{runtime-n2yG-_j-.d.ts → runtime-BPzyD-Nd.d.ts} +2 -2
  38. package/dist/{runtimeTypes-DnI7mRF5.d.ts → runtimeTypes-BIP70z72.d.cts} +2 -1
  39. package/dist/{runtimeTypes-CrkMHvVi.d.cts → runtimeTypes-DalvhScn.d.ts} +2 -1
  40. package/dist/stickyflow-diagram.global.js +387 -36
  41. package/dist/stickyflow-diagram.global.js.map +1 -1
  42. package/dist/{types-D4cH4f1a.d.ts → types-DMWs27Hn.d.ts} +1 -1
  43. package/dist/{types-BHfUKT4s.d.cts → types-D_2NZ6lL.d.cts} +1 -1
  44. package/dist/viewer/index.cjs +9 -9
  45. package/dist/viewer/index.d.cts +5 -4
  46. package/dist/viewer/index.d.ts +5 -4
  47. package/dist/viewer/index.js +4 -4
  48. package/dist/web-component/index.cjs +6 -6
  49. package/dist/web-component/index.d.cts +2 -2
  50. package/dist/web-component/index.d.ts +2 -2
  51. package/dist/web-component/index.js +4 -4
  52. package/package.json +1 -1
  53. package/dist/chunk-4G2R7PEL.js.map +0 -1
  54. package/dist/chunk-FVHVOJS2.js.map +0 -1
  55. package/dist/chunk-JIJMZMGY.cjs.map +0 -1
  56. package/dist/chunk-KTNCDNDB.cjs.map +0 -1
  57. package/dist/chunk-MFNUJA26.js.map +0 -1
  58. package/dist/chunk-WQRT5PVT.cjs.map +0 -1
  59. package/dist/chunk-WRDVNMFS.js.map +0 -1
  60. package/dist/chunk-XJ4W6TW4.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
- import { O as OwnerRef, E as Emitter$1, V as Viewer, U as Unsubscribe } from '../types-BHfUKT4s.cjs';
2
- import { Z as Side, I as IsometricFace } from '../render-Db0eSz_s.cjs';
1
+ import { O as OwnerRef, E as Emitter$1, V as Viewer, U as Unsubscribe } from '../types-D_2NZ6lL.cjs';
2
+ import { Z as Side, I as IsometricFace } from '../render-BU2uYzjG.cjs';
3
3
 
4
4
  interface TextChangeEvent {
5
5
  owner: OwnerRef;
@@ -1,5 +1,5 @@
1
- import { O as OwnerRef, E as Emitter$1, V as Viewer, U as Unsubscribe } from '../types-D4cH4f1a.js';
2
- import { Z as Side, I as IsometricFace } from '../render-Db0eSz_s.js';
1
+ import { O as OwnerRef, E as Emitter$1, V as Viewer, U as Unsubscribe } from '../types-DMWs27Hn.js';
2
+ import { Z as Side, I as IsometricFace } from '../render-BU2uYzjG.js';
3
3
 
4
4
  interface TextChangeEvent {
5
5
  owner: OwnerRef;
@@ -1,5 +1,5 @@
1
- import { screenRectOf, Emitter, resolveOwner, isCameraGesture, pointerUserPoint, clearAlignmentGuides, updateAlignmentGuides, pxPerUnit, findOwnerNode, isPrimary, SVG_NAMESPACE, isTextLabel, findSnapCandidateBounds, symbolDeclaredBounds, updateQuickDuplicateBubbles, isometricGeometryOf, ISO_HALO_ATTR, ISO_DUPLICATE_BUBBLES_ATTR, updateHalo, axisArrowPlacements, updateAxisArrowGroup, PATH_HALO_ATTR, findAllOwnerNodes, findIsometricApexCandidates, DERIVED_HEIGHT_ROLES, resizeHandlePositions, pathGeometryOf } from '../chunk-ULQZ6CZW.js';
2
- import { sflToCanvasState, isIsometricObject, tokenizeSource, roundedOrthogonalPathData, seriesLabelOffsetXProp, seriesLabelOffsetYProp, radarVertexPoint, AXIS_SIN, AXIS_COS, freeformPathData, CORNER_RADIUS_ATTR, isometricFaces, roundedPolygonPath, isometricTopFaceCenter, calculateLinkRoute, pointAtPort, roundedBarPath, barShapePath, formatBarLabel, LABEL_WIDTH, LEADER_INSET, clipSegmentToRect, radarValueAtPoint, radarSeriesPath, estimateTextWidth, wrapText, personLabelArea, isometricFaceCenter, PATH_POINT_INDEX_ATTR, linePathData, barLabelSize, BAR_LABEL, pillPath, getLineMidpoint, labelGapDash, pillCornerRadius, SQUARE_CORNER_ATTR, cornersRoundedRectPath, localShapePath, relativeOffsetOnRectangleSide, edgePointToward, SYMBOL_POINTS_ATTR, SYMBOL_TENSION_ATTR } from '../chunk-4G2R7PEL.js';
1
+ import { screenRectOf, Emitter, resolveOwner, isCameraGesture, pointerUserPoint, clearAlignmentGuides, updateAlignmentGuides, pxPerUnit, findOwnerNode, isPrimary, SVG_NAMESPACE, isTextLabel, findSnapCandidateBounds, symbolDeclaredBounds, updateQuickDuplicateBubbles, isometricGeometryOf, ISO_HALO_ATTR, ISO_DUPLICATE_BUBBLES_ATTR, updateHalo, axisArrowPlacements, updateAxisArrowGroup, PATH_HALO_ATTR, findAllOwnerNodes, findIsometricApexCandidates, DERIVED_HEIGHT_ROLES, resizeHandlePositions, pathGeometryOf } from '../chunk-ZNHYW47T.js';
2
+ import { sflToCanvasState, isIsometricObject, tokenizeSource, roundedOrthogonalPathData, seriesLabelOffsetXProp, seriesLabelOffsetYProp, radarVertexPoint, AXIS_SIN, AXIS_COS, freeformPathData, CORNER_RADIUS_ATTR, isometricFaces, roundedPolygonPath, isometricTopFaceCenter, calculateLinkRoute, pointAtPort, roundedBarPath, barShapePath, formatBarLabel, LABEL_WIDTH, LEADER_INSET, clipSegmentToRect, radarValueAtPoint, radarSeriesPath, estimateTextWidth, wrapText, personLabelArea, isometricFaceCenter, PATH_POINT_INDEX_ATTR, linePathData, barLabelSize, BAR_LABEL, pillPath, getLineMidpoint, labelGapDash, pillCornerRadius, SQUARE_CORNER_ATTR, cornersRoundedRectPath, localShapePath, relativeOffsetOnRectangleSide, edgePointToward, SYMBOL_POINTS_ATTR, SYMBOL_TENSION_ATTR } from '../chunk-JQK4IGXJ.js';
3
3
 
4
4
  // src/runtime/interaction/chartValue/coordinates.ts
5
5
  function pointerUserY(svg, event) {
@@ -1,7 +1,7 @@
1
1
  type ComponentGroup = 'readout' | 'input' | 'action' | 'navigation';
2
2
  type ComponentValueType = 'number' | 'string' | 'boolean';
3
3
  type ComponentValue = number | string | boolean;
4
- type ComponentInteraction = 'none' | 'toggle' | 'press' | 'scale';
4
+ type ComponentInteraction = 'none' | 'toggle' | 'press' | 'scale' | 'slide' | 'pick' | 'turn' | 'range';
5
5
  interface ComponentValueDescriptor {
6
6
  type: ComponentValueType;
7
7
  writable: boolean;
@@ -37,6 +37,7 @@ interface ComponentSize {
37
37
  interface ComponentDescriptor {
38
38
  type: string;
39
39
  group: ComponentGroup;
40
+ category?: string;
40
41
  value?: ComponentValueDescriptor;
41
42
  properties: Record<string, ComponentPropertyDescriptor>;
42
43
  interaction: ComponentInteraction;
@@ -723,6 +724,7 @@ type ShaderParameter = string | number | boolean;
723
724
  interface Shader {
724
725
  name: string;
725
726
  program: string;
727
+ surfacePadding?: number;
726
728
  parameters: Record<string, ShaderParameter>;
727
729
  }
728
730
 
@@ -864,6 +866,7 @@ interface SceneStyle {
864
866
  lineJoin?: 'miter' | 'round' | 'bevel';
865
867
  opacity?: number;
866
868
  pointerEvents?: 'none' | 'all' | 'stroke';
869
+ transition?: number;
867
870
  shadow?: {
868
871
  color: string;
869
872
  opacity: number;
@@ -1,7 +1,7 @@
1
1
  type ComponentGroup = 'readout' | 'input' | 'action' | 'navigation';
2
2
  type ComponentValueType = 'number' | 'string' | 'boolean';
3
3
  type ComponentValue = number | string | boolean;
4
- type ComponentInteraction = 'none' | 'toggle' | 'press' | 'scale';
4
+ type ComponentInteraction = 'none' | 'toggle' | 'press' | 'scale' | 'slide' | 'pick' | 'turn' | 'range';
5
5
  interface ComponentValueDescriptor {
6
6
  type: ComponentValueType;
7
7
  writable: boolean;
@@ -37,6 +37,7 @@ interface ComponentSize {
37
37
  interface ComponentDescriptor {
38
38
  type: string;
39
39
  group: ComponentGroup;
40
+ category?: string;
40
41
  value?: ComponentValueDescriptor;
41
42
  properties: Record<string, ComponentPropertyDescriptor>;
42
43
  interaction: ComponentInteraction;
@@ -723,6 +724,7 @@ type ShaderParameter = string | number | boolean;
723
724
  interface Shader {
724
725
  name: string;
725
726
  program: string;
727
+ surfacePadding?: number;
726
728
  parameters: Record<string, ShaderParameter>;
727
729
  }
728
730
 
@@ -864,6 +866,7 @@ interface SceneStyle {
864
866
  lineJoin?: 'miter' | 'round' | 'bevel';
865
867
  opacity?: number;
866
868
  pointerEvents?: 'none' | 'all' | 'stroke';
869
+ transition?: number;
867
870
  shadow?: {
868
871
  color: string;
869
872
  opacity: number;
@@ -1,5 +1,5 @@
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';
1
+ import { J as RenderOptions, K as RenderResult } from './render-BU2uYzjG.cjs';
2
+ import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-BIP70z72.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 { 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';
1
+ import { J as RenderOptions, K as RenderResult } from './render-BU2uYzjG.js';
2
+ import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-DalvhScn.js';
3
3
 
4
4
  declare function createBindingRuntime(sfl: string, options?: BindingRuntimeOptions): BindingRuntime;
5
5
  interface RenderBoundOptions extends RenderOptions {
@@ -1,4 +1,4 @@
1
- import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-Db0eSz_s.js';
1
+ import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-BU2uYzjG.cjs';
2
2
 
3
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];
@@ -234,6 +234,7 @@ interface BindingRuntime {
234
234
  release(id: string, tapped: boolean): void;
235
235
  activate(id: string): void;
236
236
  change(id: string, value: ComponentValue): boolean;
237
+ slide(id: string, x: number, y?: number): void;
237
238
  drag(id: string, pointer?: number): void;
238
239
  tick(seconds: number): void;
239
240
  flush(): RenderResult | null;
@@ -1,4 +1,4 @@
1
- import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-Db0eSz_s.cjs';
1
+ import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-BU2uYzjG.js';
2
2
 
3
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];
@@ -234,6 +234,7 @@ interface BindingRuntime {
234
234
  release(id: string, tapped: boolean): void;
235
235
  activate(id: string): void;
236
236
  change(id: string, value: ComponentValue): boolean;
237
+ slide(id: string, x: number, y?: number): void;
237
238
  drag(id: string, pointer?: number): void;
238
239
  tick(seconds: number): void;
239
240
  flush(): RenderResult | null;