stickyflow 0.10.0 → 0.11.1

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 +26 -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-TECWZVIM.cjs → chunk-4KBU4CFU.cjs} +23 -23
  7. package/dist/{chunk-TECWZVIM.cjs.map → chunk-4KBU4CFU.cjs.map} +1 -1
  8. package/dist/{chunk-EGUPN56K.js → chunk-BFQWCOEC.js} +3 -3
  9. package/dist/{chunk-EGUPN56K.js.map → chunk-BFQWCOEC.js.map} +1 -1
  10. package/dist/{chunk-VPNOVRWP.js → chunk-DGAVCN4D.js} +262 -15
  11. package/dist/chunk-DGAVCN4D.js.map +1 -0
  12. package/dist/{chunk-5PJ55GPG.cjs → chunk-EHH6ZDK6.cjs} +1076 -713
  13. package/dist/chunk-EHH6ZDK6.cjs.map +1 -0
  14. package/dist/{chunk-HRU6VOEC.js → chunk-G6IW2IX3.js} +44 -7
  15. package/dist/chunk-G6IW2IX3.js.map +1 -0
  16. package/dist/{chunk-SDOHUNBW.js → chunk-TQIYK5OA.js} +435 -72
  17. package/dist/chunk-TQIYK5OA.js.map +1 -0
  18. package/dist/{chunk-L7CEX5JV.js → chunk-UD6IG2PG.js} +4 -4
  19. package/dist/{chunk-L7CEX5JV.js.map → chunk-UD6IG2PG.js.map} +1 -1
  20. package/dist/{chunk-LSEMXRB5.cjs → chunk-UHKFJBY5.cjs} +44 -7
  21. package/dist/chunk-UHKFJBY5.cjs.map +1 -0
  22. package/dist/{chunk-KRSX4UZ7.cjs → chunk-VYQ6N5SI.cjs} +293 -46
  23. package/dist/chunk-VYQ6N5SI.cjs.map +1 -0
  24. package/dist/{chunk-SCD3AHMY.cjs → chunk-WZA3DJJH.cjs} +15 -15
  25. package/dist/{chunk-SCD3AHMY.cjs.map → chunk-WZA3DJJH.cjs.map} +1 -1
  26. package/dist/index.cjs +36 -36
  27. package/dist/index.d.cts +5 -5
  28. package/dist/index.d.ts +5 -5
  29. package/dist/index.js +5 -5
  30. package/dist/interaction/index.cjs +308 -256
  31. package/dist/interaction/index.cjs.map +1 -1
  32. package/dist/interaction/index.d.cts +5 -4
  33. package/dist/interaction/index.d.ts +5 -4
  34. package/dist/interaction/index.js +74 -23
  35. package/dist/interaction/index.js.map +1 -1
  36. package/dist/{render-DU4lYbRl.d.cts → render-BDO4S5uF.d.cts} +16 -0
  37. package/dist/{render-DU4lYbRl.d.ts → render-BDO4S5uF.d.ts} +16 -0
  38. package/dist/{runtime-Bkv7QW7H.d.cts → runtime-C-C5v9po.d.cts} +2 -2
  39. package/dist/{runtime-DJ4K4_HZ.d.ts → runtime-lCAfU-1Q.d.ts} +2 -2
  40. package/dist/{runtimeTypes-C1shzoyr.d.ts → runtimeTypes-B7p6b1Bi.d.cts} +2 -2
  41. package/dist/{runtimeTypes-BvJBZLkr.d.cts → runtimeTypes-BDA_CfWh.d.ts} +2 -2
  42. package/dist/stickyflow-diagram.global.js +197 -44
  43. package/dist/stickyflow-diagram.global.js.map +1 -1
  44. package/dist/{types-B5jrEEcF.d.cts → types-CZJzycKw.d.cts} +1 -1
  45. package/dist/{types-B7IkZ0w4.d.ts → types-Dp8JVZLB.d.ts} +1 -1
  46. package/dist/viewer/index.cjs +9 -9
  47. package/dist/viewer/index.d.cts +4 -4
  48. package/dist/viewer/index.d.ts +4 -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-5PJ55GPG.cjs.map +0 -1
  56. package/dist/chunk-HRU6VOEC.js.map +0 -1
  57. package/dist/chunk-KRSX4UZ7.cjs.map +0 -1
  58. package/dist/chunk-LSEMXRB5.cjs.map +0 -1
  59. package/dist/chunk-SDOHUNBW.js.map +0 -1
  60. package/dist/chunk-VPNOVRWP.js.map +0 -1
@@ -22,6 +22,7 @@ type ComponentPropertyDescriptor = {
22
22
  } | {
23
23
  type: 'color';
24
24
  default: string;
25
+ optional?: boolean;
25
26
  } | {
26
27
  type: 'enum';
27
28
  default: string;
@@ -743,6 +744,17 @@ interface Shader {
743
744
  type FontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
744
745
  type ShapeStrokeStyle = 'solid' | 'dashed' | 'dotted' | 'double';
745
746
  type ShapeType = 'rounded_rectangle' | 'rectangle' | 'diamond' | 'oval' | 'circle' | 'cylinder' | 'document' | 'pill' | 'person' | 'triangle' | 'hexagon' | 'parallelogram' | 'trapezoid' | 'note' | 'cloud' | 'predefined_process' | 'symbol';
747
+ interface ShapeImage {
748
+ src: string;
749
+ fit: 'cover' | 'contain' | 'fill';
750
+ pixels?: [number, number];
751
+ crop?: {
752
+ x: number;
753
+ y: number;
754
+ width: number;
755
+ height: number;
756
+ };
757
+ }
746
758
  interface Shape {
747
759
  id: string;
748
760
  name?: string;
@@ -783,6 +795,7 @@ interface Shape {
783
795
  laneId?: string | null;
784
796
  symbol?: SymbolDef | null;
785
797
  shader?: Shader;
798
+ image?: ShapeImage;
786
799
  }
787
800
  interface SymbolDef {
788
801
  name: string;
@@ -1118,6 +1131,9 @@ interface SceneImage extends SceneBase {
1118
1131
  width: number;
1119
1132
  height: number;
1120
1133
  href: string;
1134
+ aspect?: 'slice' | 'meet' | 'none';
1135
+ rotation?: number;
1136
+ rotationCenter?: Point;
1121
1137
  style: SceneStyle;
1122
1138
  }
1123
1139
  type RenderNode = SceneRect | SceneEllipse | ScenePath | SceneText | SceneShaderSurface | SceneRollingNumber | SceneImage;
@@ -22,6 +22,7 @@ type ComponentPropertyDescriptor = {
22
22
  } | {
23
23
  type: 'color';
24
24
  default: string;
25
+ optional?: boolean;
25
26
  } | {
26
27
  type: 'enum';
27
28
  default: string;
@@ -743,6 +744,17 @@ interface Shader {
743
744
  type FontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
744
745
  type ShapeStrokeStyle = 'solid' | 'dashed' | 'dotted' | 'double';
745
746
  type ShapeType = 'rounded_rectangle' | 'rectangle' | 'diamond' | 'oval' | 'circle' | 'cylinder' | 'document' | 'pill' | 'person' | 'triangle' | 'hexagon' | 'parallelogram' | 'trapezoid' | 'note' | 'cloud' | 'predefined_process' | 'symbol';
747
+ interface ShapeImage {
748
+ src: string;
749
+ fit: 'cover' | 'contain' | 'fill';
750
+ pixels?: [number, number];
751
+ crop?: {
752
+ x: number;
753
+ y: number;
754
+ width: number;
755
+ height: number;
756
+ };
757
+ }
746
758
  interface Shape {
747
759
  id: string;
748
760
  name?: string;
@@ -783,6 +795,7 @@ interface Shape {
783
795
  laneId?: string | null;
784
796
  symbol?: SymbolDef | null;
785
797
  shader?: Shader;
798
+ image?: ShapeImage;
786
799
  }
787
800
  interface SymbolDef {
788
801
  name: string;
@@ -1118,6 +1131,9 @@ interface SceneImage extends SceneBase {
1118
1131
  width: number;
1119
1132
  height: number;
1120
1133
  href: string;
1134
+ aspect?: 'slice' | 'meet' | 'none';
1135
+ rotation?: number;
1136
+ rotationCenter?: Point;
1121
1137
  style: SceneStyle;
1122
1138
  }
1123
1139
  type RenderNode = SceneRect | SceneEllipse | ScenePath | SceneText | SceneShaderSurface | SceneRollingNumber | SceneImage;
@@ -1,5 +1,5 @@
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-BvJBZLkr.cjs';
1
+ import { J as RenderOptions, K as RenderResult } from './render-BDO4S5uF.cjs';
2
+ import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-B7p6b1Bi.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-DU4lYbRl.js';
2
- import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-C1shzoyr.js';
1
+ import { J as RenderOptions, K as RenderResult } from './render-BDO4S5uF.js';
2
+ import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-BDA_CfWh.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-DU4lYbRl.js';
1
+ import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-BDO4S5uF.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", "Repeat", "Template", "Use"];
3
+ declare const NAMED_BLOCK_KINDS: readonly ["Project", "Model", "Group", "Entity", "Container", "Path", "Chart", "Widget", "Component", "Shape", "Text", "Image", "Isometric", "Dimension", "Link", "Connection", "Layout", "Style", "Shader", "Axis", "Series", "Rule", "Net", "Symbol", "Port", "DataSource", "Repeat", "Template", "Use"];
4
4
  type NamedBlockKind = (typeof NAMED_BLOCK_KINDS)[number];
5
5
  type BlockKind = NamedBlockKind | 'data';
6
6
  type Side = 'top' | 'bottom' | 'left' | 'right';
@@ -1,6 +1,6 @@
1
- import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-DU4lYbRl.cjs';
1
+ import { e as RenderInput, x as ComponentValue, K as RenderResult, J as RenderOptions } from './render-BDO4S5uF.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", "Repeat", "Template", "Use"];
3
+ declare const NAMED_BLOCK_KINDS: readonly ["Project", "Model", "Group", "Entity", "Container", "Path", "Chart", "Widget", "Component", "Shape", "Text", "Image", "Isometric", "Dimension", "Link", "Connection", "Layout", "Style", "Shader", "Axis", "Series", "Rule", "Net", "Symbol", "Port", "DataSource", "Repeat", "Template", "Use"];
4
4
  type NamedBlockKind = (typeof NAMED_BLOCK_KINDS)[number];
5
5
  type BlockKind = NamedBlockKind | 'data';
6
6
  type Side = 'top' | 'bottom' | 'left' | 'right';