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.
- package/CHANGELOG.md +26 -0
- 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-TECWZVIM.cjs → chunk-4KBU4CFU.cjs} +23 -23
- package/dist/{chunk-TECWZVIM.cjs.map → chunk-4KBU4CFU.cjs.map} +1 -1
- package/dist/{chunk-EGUPN56K.js → chunk-BFQWCOEC.js} +3 -3
- package/dist/{chunk-EGUPN56K.js.map → chunk-BFQWCOEC.js.map} +1 -1
- package/dist/{chunk-VPNOVRWP.js → chunk-DGAVCN4D.js} +262 -15
- package/dist/chunk-DGAVCN4D.js.map +1 -0
- package/dist/{chunk-5PJ55GPG.cjs → chunk-EHH6ZDK6.cjs} +1076 -713
- package/dist/chunk-EHH6ZDK6.cjs.map +1 -0
- package/dist/{chunk-HRU6VOEC.js → chunk-G6IW2IX3.js} +44 -7
- package/dist/chunk-G6IW2IX3.js.map +1 -0
- package/dist/{chunk-SDOHUNBW.js → chunk-TQIYK5OA.js} +435 -72
- package/dist/chunk-TQIYK5OA.js.map +1 -0
- package/dist/{chunk-L7CEX5JV.js → chunk-UD6IG2PG.js} +4 -4
- package/dist/{chunk-L7CEX5JV.js.map → chunk-UD6IG2PG.js.map} +1 -1
- package/dist/{chunk-LSEMXRB5.cjs → chunk-UHKFJBY5.cjs} +44 -7
- package/dist/chunk-UHKFJBY5.cjs.map +1 -0
- package/dist/{chunk-KRSX4UZ7.cjs → chunk-VYQ6N5SI.cjs} +293 -46
- package/dist/chunk-VYQ6N5SI.cjs.map +1 -0
- package/dist/{chunk-SCD3AHMY.cjs → chunk-WZA3DJJH.cjs} +15 -15
- package/dist/{chunk-SCD3AHMY.cjs.map → chunk-WZA3DJJH.cjs.map} +1 -1
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/interaction/index.cjs +308 -256
- package/dist/interaction/index.cjs.map +1 -1
- package/dist/interaction/index.d.cts +5 -4
- package/dist/interaction/index.d.ts +5 -4
- package/dist/interaction/index.js +74 -23
- package/dist/interaction/index.js.map +1 -1
- package/dist/{render-DU4lYbRl.d.cts → render-BDO4S5uF.d.cts} +16 -0
- package/dist/{render-DU4lYbRl.d.ts → render-BDO4S5uF.d.ts} +16 -0
- package/dist/{runtime-Bkv7QW7H.d.cts → runtime-C-C5v9po.d.cts} +2 -2
- package/dist/{runtime-DJ4K4_HZ.d.ts → runtime-lCAfU-1Q.d.ts} +2 -2
- package/dist/{runtimeTypes-C1shzoyr.d.ts → runtimeTypes-B7p6b1Bi.d.cts} +2 -2
- package/dist/{runtimeTypes-BvJBZLkr.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.d.cts +2 -2
- package/dist/web-component/index.d.ts +2 -2
- package/dist/web-component/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-5PJ55GPG.cjs.map +0 -1
- package/dist/chunk-HRU6VOEC.js.map +0 -1
- package/dist/chunk-KRSX4UZ7.cjs.map +0 -1
- package/dist/chunk-LSEMXRB5.cjs.map +0 -1
- package/dist/chunk-SDOHUNBW.js.map +0 -1
- 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-
|
|
2
|
-
import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-
|
|
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-
|
|
2
|
-
import { R as Row, c as BindingRuntimeOptions, b as BindingRuntime } from './runtimeTypes-
|
|
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-
|
|
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-
|
|
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';
|