stickyflow 0.7.0 → 0.9.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 (63) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +1 -1
  3. package/dist/binding/index.cjs +9 -9
  4. package/dist/binding/index.d.cts +4 -4
  5. package/dist/binding/index.d.ts +4 -4
  6. package/dist/binding/index.js +3 -3
  7. package/dist/{chunk-OWNVXKXN.cjs → chunk-B3YRZVMR.cjs} +23 -23
  8. package/dist/chunk-B3YRZVMR.cjs.map +1 -0
  9. package/dist/{chunk-JCRPLPKV.js → chunk-BUVUJMWT.js} +5 -5
  10. package/dist/chunk-BUVUJMWT.js.map +1 -0
  11. package/dist/{chunk-ZNHYW47T.js → chunk-CM35H45Z.js} +3 -3
  12. package/dist/{chunk-ZNHYW47T.js.map → chunk-CM35H45Z.js.map} +1 -1
  13. package/dist/{chunk-JQK4IGXJ.js → chunk-D2266VBZ.js} +440 -8
  14. package/dist/chunk-D2266VBZ.js.map +1 -0
  15. package/dist/{chunk-SDMQRSRW.js → chunk-FS6L462E.js} +455 -136
  16. package/dist/chunk-FS6L462E.js.map +1 -0
  17. package/dist/{chunk-EKAWJFJQ.cjs → chunk-OUWGWDJ2.cjs} +15 -15
  18. package/dist/{chunk-EKAWJFJQ.cjs.map → chunk-OUWGWDJ2.cjs.map} +1 -1
  19. package/dist/{chunk-KXYSO6GC.cjs → chunk-QL7MNEMT.cjs} +444 -7
  20. package/dist/chunk-QL7MNEMT.cjs.map +1 -0
  21. package/dist/{chunk-BUOWM3LC.cjs → chunk-SQBF2BKT.cjs} +382 -73
  22. package/dist/chunk-SQBF2BKT.cjs.map +1 -0
  23. package/dist/{chunk-A73UJ5AQ.cjs → chunk-YSXD5IVZ.cjs} +1074 -755
  24. package/dist/chunk-YSXD5IVZ.cjs.map +1 -0
  25. package/dist/{chunk-MUKIGLR5.js → chunk-ZCGZJBAT.js} +353 -44
  26. package/dist/chunk-ZCGZJBAT.js.map +1 -0
  27. package/dist/index.cjs +36 -36
  28. package/dist/index.d.cts +5 -5
  29. package/dist/index.d.ts +5 -5
  30. package/dist/index.js +5 -5
  31. package/dist/interaction/index.cjs +268 -235
  32. package/dist/interaction/index.cjs.map +1 -1
  33. package/dist/interaction/index.d.cts +2 -2
  34. package/dist/interaction/index.d.ts +2 -2
  35. package/dist/interaction/index.js +44 -11
  36. package/dist/interaction/index.js.map +1 -1
  37. package/dist/{render-BU2uYzjG.d.cts → render-DU4lYbRl.d.cts} +29 -11
  38. package/dist/{render-BU2uYzjG.d.ts → render-DU4lYbRl.d.ts} +29 -11
  39. package/dist/{runtime-B7KiTmn8.d.cts → runtime-DG8X3Fwf.d.cts} +2 -2
  40. package/dist/{runtime-BPzyD-Nd.d.ts → runtime-kqD1RS17.d.ts} +2 -2
  41. package/dist/{runtimeTypes-DalvhScn.d.ts → runtimeTypes-CvjlBZds.d.cts} +7 -3
  42. package/dist/{runtimeTypes-BIP70z72.d.cts → runtimeTypes-vRaHOIHi.d.ts} +7 -3
  43. package/dist/stickyflow-diagram.global.js +294 -39
  44. package/dist/stickyflow-diagram.global.js.map +1 -1
  45. package/dist/{types-D_2NZ6lL.d.cts → types-B5jrEEcF.d.cts} +1 -1
  46. package/dist/{types-DMWs27Hn.d.ts → types-B7IkZ0w4.d.ts} +1 -1
  47. package/dist/viewer/index.cjs +9 -9
  48. package/dist/viewer/index.d.cts +4 -4
  49. package/dist/viewer/index.d.ts +4 -4
  50. package/dist/viewer/index.js +4 -4
  51. package/dist/web-component/index.cjs +6 -6
  52. package/dist/web-component/index.d.cts +2 -2
  53. package/dist/web-component/index.d.ts +2 -2
  54. package/dist/web-component/index.js +4 -4
  55. package/package.json +1 -1
  56. package/dist/chunk-A73UJ5AQ.cjs.map +0 -1
  57. package/dist/chunk-BUOWM3LC.cjs.map +0 -1
  58. package/dist/chunk-JCRPLPKV.js.map +0 -1
  59. package/dist/chunk-JQK4IGXJ.js.map +0 -1
  60. package/dist/chunk-KXYSO6GC.cjs.map +0 -1
  61. package/dist/chunk-MUKIGLR5.js.map +0 -1
  62. package/dist/chunk-OWNVXKXN.cjs.map +0 -1
  63. package/dist/chunk-SDMQRSRW.js.map +0 -1
@@ -482,15 +482,25 @@ interface ChartBase {
482
482
  textColor?: string;
483
483
  axisLabelColor?: string;
484
484
  legendColor?: string;
485
+ legendGap?: number;
485
486
  axisLineWidth?: number;
486
487
  axisLineColor?: string;
487
488
  axisLineStyle?: 'solid' | 'dashed' | 'dotted';
488
489
  tickLength?: number;
489
490
  axisFontSize?: number;
491
+ axisLabelAngle?: number;
492
+ axisLabelSpace?: number;
493
+ rowLabelSide?: 'left' | 'right';
494
+ columnLabelSide?: 'top' | 'bottom';
495
+ legendSide?: 'top' | 'bottom' | 'left' | 'right';
496
+ xLabelGap?: number;
497
+ yLabelGap?: number;
498
+ axisLabelAlign?: 'left' | 'center' | 'right';
490
499
  axisFontFamily?: string;
491
500
  showValueAxis?: boolean;
492
501
  categoryAlign?: 'center' | 'left' | 'inside';
493
502
  titleSize?: number;
503
+ titleAlign?: 'left' | 'center' | 'right';
494
504
  titleWeight?: 'normal' | 'bold';
495
505
  titleColor?: string;
496
506
  gridAxes?: 'both' | 'x' | 'y';
@@ -598,6 +608,7 @@ interface Frame {
598
608
  showLabel: boolean;
599
609
  labelPosition?: 'top' | 'bottom' | 'left' | 'right';
600
610
  shadow?: boolean;
611
+ clip?: boolean;
601
612
  layerGroup?: string;
602
613
  orderKey?: string;
603
614
  order?: number;
@@ -625,6 +636,7 @@ interface IsometricObject {
625
636
  strokeColor?: string;
626
637
  strokeWidth?: number;
627
638
  cornerRadius?: number;
639
+ seams?: boolean;
628
640
  hasShadow?: boolean;
629
641
  shadowStyle?: ShadowStyle;
630
642
  labelOffsetX?: number;
@@ -757,6 +769,8 @@ interface Shape {
757
769
  dash?: number[];
758
770
  strokeStyle?: ShapeStrokeStyle;
759
771
  opacity?: number;
772
+ blur?: number;
773
+ blend?: string;
760
774
  hasShadow?: boolean;
761
775
  shadowStyle?: ShadowStyle;
762
776
  layerGroup?: string;
@@ -882,19 +896,23 @@ interface SceneStyle {
882
896
  dy: number;
883
897
  };
884
898
  blur?: number;
899
+ blend?: string;
885
900
  saturate?: number;
886
- clip?: {
887
- type: 'rect';
888
- x: number;
889
- y: number;
890
- width: number;
891
- height: number;
892
- rx: number;
893
- } | {
894
- type: 'path';
895
- d: string;
896
- };
901
+ clip?: SceneClip;
897
902
  }
903
+ type SceneClip = ({
904
+ type: 'rect';
905
+ x: number;
906
+ y: number;
907
+ width: number;
908
+ height: number;
909
+ rx: number;
910
+ } | {
911
+ type: 'path';
912
+ d: string;
913
+ }) & {
914
+ within?: SceneClip;
915
+ };
898
916
  type SceneRole = 'shape' | 'link' | 'frame' | 'swimlane' | 'path' | 'chart' | 'widget' | 'isometric' | 'dimension';
899
917
  interface SceneAria {
900
918
  role: string;
@@ -482,15 +482,25 @@ interface ChartBase {
482
482
  textColor?: string;
483
483
  axisLabelColor?: string;
484
484
  legendColor?: string;
485
+ legendGap?: number;
485
486
  axisLineWidth?: number;
486
487
  axisLineColor?: string;
487
488
  axisLineStyle?: 'solid' | 'dashed' | 'dotted';
488
489
  tickLength?: number;
489
490
  axisFontSize?: number;
491
+ axisLabelAngle?: number;
492
+ axisLabelSpace?: number;
493
+ rowLabelSide?: 'left' | 'right';
494
+ columnLabelSide?: 'top' | 'bottom';
495
+ legendSide?: 'top' | 'bottom' | 'left' | 'right';
496
+ xLabelGap?: number;
497
+ yLabelGap?: number;
498
+ axisLabelAlign?: 'left' | 'center' | 'right';
490
499
  axisFontFamily?: string;
491
500
  showValueAxis?: boolean;
492
501
  categoryAlign?: 'center' | 'left' | 'inside';
493
502
  titleSize?: number;
503
+ titleAlign?: 'left' | 'center' | 'right';
494
504
  titleWeight?: 'normal' | 'bold';
495
505
  titleColor?: string;
496
506
  gridAxes?: 'both' | 'x' | 'y';
@@ -598,6 +608,7 @@ interface Frame {
598
608
  showLabel: boolean;
599
609
  labelPosition?: 'top' | 'bottom' | 'left' | 'right';
600
610
  shadow?: boolean;
611
+ clip?: boolean;
601
612
  layerGroup?: string;
602
613
  orderKey?: string;
603
614
  order?: number;
@@ -625,6 +636,7 @@ interface IsometricObject {
625
636
  strokeColor?: string;
626
637
  strokeWidth?: number;
627
638
  cornerRadius?: number;
639
+ seams?: boolean;
628
640
  hasShadow?: boolean;
629
641
  shadowStyle?: ShadowStyle;
630
642
  labelOffsetX?: number;
@@ -757,6 +769,8 @@ interface Shape {
757
769
  dash?: number[];
758
770
  strokeStyle?: ShapeStrokeStyle;
759
771
  opacity?: number;
772
+ blur?: number;
773
+ blend?: string;
760
774
  hasShadow?: boolean;
761
775
  shadowStyle?: ShadowStyle;
762
776
  layerGroup?: string;
@@ -882,19 +896,23 @@ interface SceneStyle {
882
896
  dy: number;
883
897
  };
884
898
  blur?: number;
899
+ blend?: string;
885
900
  saturate?: number;
886
- clip?: {
887
- type: 'rect';
888
- x: number;
889
- y: number;
890
- width: number;
891
- height: number;
892
- rx: number;
893
- } | {
894
- type: 'path';
895
- d: string;
896
- };
901
+ clip?: SceneClip;
897
902
  }
903
+ type SceneClip = ({
904
+ type: 'rect';
905
+ x: number;
906
+ y: number;
907
+ width: number;
908
+ height: number;
909
+ rx: number;
910
+ } | {
911
+ type: 'path';
912
+ d: string;
913
+ }) & {
914
+ within?: SceneClip;
915
+ };
898
916
  type SceneRole = 'shape' | 'link' | 'frame' | 'swimlane' | 'path' | 'chart' | 'widget' | 'isometric' | 'dimension';
899
917
  interface SceneAria {
900
918
  role: string;
@@ -1,5 +1,5 @@
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';
1
+ import { J as RenderOptions, K as RenderResult } from './render-DU4lYbRl.cjs';
2
+ import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-CvjlBZds.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-BU2uYzjG.js';
2
- import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-DalvhScn.js';
1
+ import { J as RenderOptions, K as RenderResult } from './render-DU4lYbRl.js';
2
+ import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-vRaHOIHi.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 { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-BU2uYzjG.js';
1
+ import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-DU4lYbRl.cjs';
2
2
 
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"];
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", "Repeat"];
4
4
  type NamedBlockKind = (typeof NAMED_BLOCK_KINDS)[number];
5
5
  type BlockKind = NamedBlockKind | 'data';
6
6
  type Side = 'top' | 'bottom' | 'left' | 'right';
@@ -97,7 +97,11 @@ interface SflStyle {
97
97
  properties: SflProperty[];
98
98
  bindings?: SflBinding[];
99
99
  }
100
- type SflValue = SflStringValue | SflNumberValue | SflTupleValue | SflListValue | SflIdentValue | SflEndpointValue;
100
+ type SflValue = SflStringValue | SflNumberValue | SflTupleValue | SflListValue | SflIdentValue | SflEndpointValue | SflExprValue;
101
+ interface SflExprValue {
102
+ type: 'expr';
103
+ items: SflExpr[];
104
+ }
101
105
  interface SflStringValue {
102
106
  type: 'string';
103
107
  value: string;
@@ -1,6 +1,6 @@
1
- import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-BU2uYzjG.cjs';
1
+ import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-DU4lYbRl.js';
2
2
 
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"];
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", "Repeat"];
4
4
  type NamedBlockKind = (typeof NAMED_BLOCK_KINDS)[number];
5
5
  type BlockKind = NamedBlockKind | 'data';
6
6
  type Side = 'top' | 'bottom' | 'left' | 'right';
@@ -97,7 +97,11 @@ interface SflStyle {
97
97
  properties: SflProperty[];
98
98
  bindings?: SflBinding[];
99
99
  }
100
- type SflValue = SflStringValue | SflNumberValue | SflTupleValue | SflListValue | SflIdentValue | SflEndpointValue;
100
+ type SflValue = SflStringValue | SflNumberValue | SflTupleValue | SflListValue | SflIdentValue | SflEndpointValue | SflExprValue;
101
+ interface SflExprValue {
102
+ type: 'expr';
103
+ items: SflExpr[];
104
+ }
101
105
  interface SflStringValue {
102
106
  type: 'string';
103
107
  value: string;