stickyflow 0.6.0 → 0.8.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 (62) hide show
  1. package/CHANGELOG.md +39 -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-MFNUJA26.js → chunk-CZW3ARXQ.js} +156 -23
  7. package/dist/chunk-CZW3ARXQ.js.map +1 -0
  8. package/dist/{chunk-WRDVNMFS.js → chunk-EDOPENSE.js} +848 -38
  9. package/dist/chunk-EDOPENSE.js.map +1 -0
  10. package/dist/{chunk-4LENHH6C.cjs → chunk-FQ7GMLCM.cjs} +15 -15
  11. package/dist/{chunk-4LENHH6C.cjs.map → chunk-FQ7GMLCM.cjs.map} +1 -1
  12. package/dist/{chunk-4G2R7PEL.js → chunk-GLZVHUSW.js} +220 -12
  13. package/dist/chunk-GLZVHUSW.js.map +1 -0
  14. package/dist/{chunk-KTNCDNDB.cjs → chunk-IR2T47NW.cjs} +876 -66
  15. package/dist/chunk-IR2T47NW.cjs.map +1 -0
  16. package/dist/{chunk-ULQZ6CZW.js → chunk-LFEGZJWC.js} +3 -3
  17. package/dist/{chunk-ULQZ6CZW.js.map → chunk-LFEGZJWC.js.map} +1 -1
  18. package/dist/{chunk-XJ4W6TW4.cjs → chunk-LNW5VIEA.cjs} +225 -11
  19. package/dist/chunk-LNW5VIEA.cjs.map +1 -0
  20. package/dist/{chunk-FVHVOJS2.js → chunk-MAPNY7MJ.js} +872 -174
  21. package/dist/chunk-MAPNY7MJ.js.map +1 -0
  22. package/dist/{chunk-WQRT5PVT.cjs → chunk-VOYX6JMW.cjs} +1479 -780
  23. package/dist/chunk-VOYX6JMW.cjs.map +1 -0
  24. package/dist/{chunk-JIJMZMGY.cjs → chunk-XPM3E7NV.cjs} +170 -37
  25. package/dist/chunk-XPM3E7NV.cjs.map +1 -0
  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 +266 -235
  31. package/dist/interaction/index.cjs.map +1 -1
  32. package/dist/interaction/index.d.cts +2 -2
  33. package/dist/interaction/index.d.ts +2 -2
  34. package/dist/interaction/index.js +42 -11
  35. package/dist/interaction/index.js.map +1 -1
  36. package/dist/{render-Db0eSz_s.d.cts → render-Bp2FLEzv.d.cts} +14 -1
  37. package/dist/{render-Db0eSz_s.d.ts → render-Bp2FLEzv.d.ts} +14 -1
  38. package/dist/{runtime-n2yG-_j-.d.ts → runtime-CWIGxRcL.d.ts} +2 -2
  39. package/dist/{runtime-BhivvBeL.d.cts → runtime-DIag-XBa.d.cts} +2 -2
  40. package/dist/{runtimeTypes-DnI7mRF5.d.ts → runtimeTypes-BYODuxHk.d.cts} +2 -1
  41. package/dist/{runtimeTypes-CrkMHvVi.d.cts → runtimeTypes-C7sSLfOK.d.ts} +2 -1
  42. package/dist/stickyflow-diagram.global.js +490 -36
  43. package/dist/stickyflow-diagram.global.js.map +1 -1
  44. package/dist/{types-D4cH4f1a.d.ts → types-B9QM_H3R.d.ts} +1 -1
  45. package/dist/{types-BHfUKT4s.d.cts → types-D2w6D_wG.d.cts} +1 -1
  46. package/dist/viewer/index.cjs +9 -9
  47. package/dist/viewer/index.d.cts +5 -4
  48. package/dist/viewer/index.d.ts +5 -4
  49. package/dist/viewer/index.js +4 -4
  50. package/dist/web-component/index.cjs +6 -6
  51. package/dist/web-component/index.d.cts +2 -2
  52. package/dist/web-component/index.d.ts +2 -2
  53. package/dist/web-component/index.js +4 -4
  54. package/package.json +1 -1
  55. package/dist/chunk-4G2R7PEL.js.map +0 -1
  56. package/dist/chunk-FVHVOJS2.js.map +0 -1
  57. package/dist/chunk-JIJMZMGY.cjs.map +0 -1
  58. package/dist/chunk-KTNCDNDB.cjs.map +0 -1
  59. package/dist/chunk-MFNUJA26.js.map +0 -1
  60. package/dist/chunk-WQRT5PVT.cjs.map +0 -1
  61. package/dist/chunk-WRDVNMFS.js.map +0 -1
  62. package/dist/chunk-XJ4W6TW4.cjs.map +0 -1
@@ -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;
@@ -481,15 +482,25 @@ interface ChartBase {
481
482
  textColor?: string;
482
483
  axisLabelColor?: string;
483
484
  legendColor?: string;
485
+ legendGap?: number;
484
486
  axisLineWidth?: number;
485
487
  axisLineColor?: string;
486
488
  axisLineStyle?: 'solid' | 'dashed' | 'dotted';
487
489
  tickLength?: number;
488
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';
489
499
  axisFontFamily?: string;
490
500
  showValueAxis?: boolean;
491
501
  categoryAlign?: 'center' | 'left' | 'inside';
492
502
  titleSize?: number;
503
+ titleAlign?: 'left' | 'center' | 'right';
493
504
  titleWeight?: 'normal' | 'bold';
494
505
  titleColor?: string;
495
506
  gridAxes?: 'both' | 'x' | 'y';
@@ -723,6 +734,7 @@ type ShaderParameter = string | number | boolean;
723
734
  interface Shader {
724
735
  name: string;
725
736
  program: string;
737
+ surfacePadding?: number;
726
738
  parameters: Record<string, ShaderParameter>;
727
739
  }
728
740
 
@@ -864,6 +876,7 @@ interface SceneStyle {
864
876
  lineJoin?: 'miter' | 'round' | 'bevel';
865
877
  opacity?: number;
866
878
  pointerEvents?: 'none' | 'all' | 'stroke';
879
+ transition?: number;
867
880
  shadow?: {
868
881
  color: string;
869
882
  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;
@@ -481,15 +482,25 @@ interface ChartBase {
481
482
  textColor?: string;
482
483
  axisLabelColor?: string;
483
484
  legendColor?: string;
485
+ legendGap?: number;
484
486
  axisLineWidth?: number;
485
487
  axisLineColor?: string;
486
488
  axisLineStyle?: 'solid' | 'dashed' | 'dotted';
487
489
  tickLength?: number;
488
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';
489
499
  axisFontFamily?: string;
490
500
  showValueAxis?: boolean;
491
501
  categoryAlign?: 'center' | 'left' | 'inside';
492
502
  titleSize?: number;
503
+ titleAlign?: 'left' | 'center' | 'right';
493
504
  titleWeight?: 'normal' | 'bold';
494
505
  titleColor?: string;
495
506
  gridAxes?: 'both' | 'x' | 'y';
@@ -723,6 +734,7 @@ type ShaderParameter = string | number | boolean;
723
734
  interface Shader {
724
735
  name: string;
725
736
  program: string;
737
+ surfacePadding?: number;
726
738
  parameters: Record<string, ShaderParameter>;
727
739
  }
728
740
 
@@ -864,6 +876,7 @@ interface SceneStyle {
864
876
  lineJoin?: 'miter' | 'round' | 'bevel';
865
877
  opacity?: number;
866
878
  pointerEvents?: 'none' | 'all' | 'stroke';
879
+ transition?: number;
867
880
  shadow?: {
868
881
  color: string;
869
882
  opacity: number;
@@ -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-Bp2FLEzv.js';
2
+ import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-C7sSLfOK.js';
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.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-Bp2FLEzv.cjs';
2
+ import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-BYODuxHk.cjs';
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-Bp2FLEzv.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-Bp2FLEzv.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;