stickyflow 0.3.0 → 0.5.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.
- package/CHANGELOG.md +33 -0
- package/README.md +51 -5
- package/dist/binding/index.cjs +34 -0
- package/dist/binding/index.cjs.map +1 -0
- package/dist/binding/index.d.cts +11 -0
- package/dist/binding/index.d.ts +11 -0
- package/dist/binding/index.js +5 -0
- package/dist/binding/index.js.map +1 -0
- package/dist/{chunk-XEN5QIIJ.js → chunk-7VW2XKVB.js} +3 -3
- package/dist/{chunk-XEN5QIIJ.js.map → chunk-7VW2XKVB.js.map} +1 -1
- package/dist/chunk-BODZN3ZI.js +1182 -0
- package/dist/chunk-BODZN3ZI.js.map +1 -0
- package/dist/{chunk-CSXQD3ON.js → chunk-G7NRK5AG.js} +1128 -1081
- package/dist/chunk-G7NRK5AG.js.map +1 -0
- package/dist/{chunk-BYMIYXP5.js → chunk-IEHE6WVN.js} +197 -19
- package/dist/chunk-IEHE6WVN.js.map +1 -0
- package/dist/{chunk-HFOGKSNU.cjs → chunk-L3VJXZFD.cjs} +15 -15
- package/dist/{chunk-HFOGKSNU.cjs.map → chunk-L3VJXZFD.cjs.map} +1 -1
- package/dist/{chunk-65IVT4GK.js → chunk-LTGF5OHP.js} +1008 -631
- package/dist/chunk-LTGF5OHP.js.map +1 -0
- package/dist/chunk-TWDLOXRM.cjs +1189 -0
- package/dist/chunk-TWDLOXRM.cjs.map +1 -0
- package/dist/{chunk-UXDWH2JC.cjs → chunk-VK3T6O5Z.cjs} +1165 -1118
- package/dist/chunk-VK3T6O5Z.cjs.map +1 -0
- package/dist/{chunk-CXL254BT.cjs → chunk-XY2GZUHC.cjs} +204 -18
- package/dist/chunk-XY2GZUHC.cjs.map +1 -0
- package/dist/{chunk-DDCTNLLD.cjs → chunk-ZMLQIMJK.cjs} +1504 -1128
- package/dist/chunk-ZMLQIMJK.cjs.map +1 -0
- package/dist/index.cjs +53 -1013
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -14
- package/dist/index.d.ts +22 -14
- package/dist/index.js +6 -993
- package/dist/index.js.map +1 -1
- package/dist/interaction/index.cjs +474 -305
- package/dist/interaction/index.cjs.map +1 -1
- package/dist/interaction/index.d.cts +11 -3
- package/dist/interaction/index.d.ts +11 -3
- package/dist/interaction/index.js +255 -87
- package/dist/interaction/index.js.map +1 -1
- package/dist/{render-C5X74hds.d.cts → render-CgX_y15a.d.cts} +193 -116
- package/dist/{render-C5X74hds.d.ts → render-CgX_y15a.d.ts} +193 -116
- package/dist/runtime-DnUxca3Y.d.ts +10 -0
- package/dist/runtime-reWgr7MP.d.cts +10 -0
- package/dist/{runtimeTypes-D8hPZ62T.d.ts → runtimeTypes-CEBGueYM.d.ts} +10 -5
- package/dist/{runtimeTypes-yTSAvtCn.d.cts → runtimeTypes-D60w6nyF.d.cts} +10 -5
- package/dist/stickyflow-diagram.global.js +35 -35
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/{types-BDKDf4zr.d.cts → types-DYLC_lsk.d.ts} +3 -2
- package/dist/{types-CdgGdtoD.d.ts → types-DvhMpqrL.d.cts} +3 -2
- 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 +6 -1
- package/dist/chunk-65IVT4GK.js.map +0 -1
- package/dist/chunk-BYMIYXP5.js.map +0 -1
- package/dist/chunk-CSXQD3ON.js.map +0 -1
- package/dist/chunk-CXL254BT.cjs.map +0 -1
- package/dist/chunk-DDCTNLLD.cjs.map +0 -1
- package/dist/chunk-UXDWH2JC.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as SceneRole, O as ShaderParameter, H as RenderOptions } from './render-CgX_y15a.js';
|
|
2
2
|
|
|
3
3
|
type Unsubscribe = () => void;
|
|
4
4
|
declare class Emitter<EventMap extends object> {
|
|
@@ -106,7 +106,8 @@ interface Viewer {
|
|
|
106
106
|
exportSvg(): string;
|
|
107
107
|
exportImage(options?: ViewerImageExportOptions): Promise<Blob>;
|
|
108
108
|
setShaderParameters(ownerId: string, parameters: Record<string, ShaderParameter>): boolean;
|
|
109
|
-
|
|
109
|
+
setComponentValue(componentId: string, value: string | number): boolean;
|
|
110
|
+
setWidgetValue(componentId: string, value: string | number): boolean;
|
|
110
111
|
setPaused(paused: boolean): void;
|
|
111
112
|
clearOverrides(): void;
|
|
112
113
|
update(next: ViewerSource): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as SceneRole, O as ShaderParameter, H as RenderOptions } from './render-CgX_y15a.cjs';
|
|
2
2
|
|
|
3
3
|
type Unsubscribe = () => void;
|
|
4
4
|
declare class Emitter<EventMap extends object> {
|
|
@@ -106,7 +106,8 @@ interface Viewer {
|
|
|
106
106
|
exportSvg(): string;
|
|
107
107
|
exportImage(options?: ViewerImageExportOptions): Promise<Blob>;
|
|
108
108
|
setShaderParameters(ownerId: string, parameters: Record<string, ShaderParameter>): boolean;
|
|
109
|
-
|
|
109
|
+
setComponentValue(componentId: string, value: string | number): boolean;
|
|
110
|
+
setWidgetValue(componentId: string, value: string | number): boolean;
|
|
110
111
|
setPaused(paused: boolean): void;
|
|
111
112
|
clearOverrides(): void;
|
|
112
113
|
update(next: ViewerSource): void;
|
package/dist/viewer/index.cjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkVK3T6O5Z_cjs = require('../chunk-VK3T6O5Z.cjs');
|
|
4
|
+
require('../chunk-ZMLQIMJK.cjs');
|
|
5
|
+
require('../chunk-L3VJXZFD.cjs');
|
|
6
|
+
require('../chunk-XY2GZUHC.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "SHADER_DEFAULTS", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkVK3T6O5Z_cjs.SHADER_DEFAULTS; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "connectInteraction", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkVK3T6O5Z_cjs.connectInteraction; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "createViewer", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkVK3T6O5Z_cjs.createViewer; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "registerShaderProgram", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkVK3T6O5Z_cjs.registerShaderProgram; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "shaderProgram", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkVK3T6O5Z_cjs.shaderProgram; }
|
|
29
29
|
});
|
|
30
30
|
//# sourceMappingURL=index.cjs.map
|
|
31
31
|
//# sourceMappingURL=index.cjs.map
|
package/dist/viewer/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as Viewer, a as ViewerOptions } from '../types-
|
|
2
|
-
export { M as Modifiers, b as OwnerPointerEvent, O as OwnerRef, S as SceneDiff, c as SceneDiffEvent, d as SelectionChangeEvent, U as Unsubscribe, e as ViewBox, f as ViewerErrorEvent, g as ViewerEventHandler, h as ViewerEventMap, i as ViewerEventName, j as ViewerImageExportOptions, k as ViewerImageFormat, l as ViewerSource } from '../types-
|
|
3
|
-
import { b as BindingRuntime } from '../runtimeTypes-
|
|
4
|
-
import '../render-
|
|
1
|
+
import { V as Viewer, a as ViewerOptions } from '../types-DvhMpqrL.cjs';
|
|
2
|
+
export { M as Modifiers, b as OwnerPointerEvent, O as OwnerRef, S as SceneDiff, c as SceneDiffEvent, d as SelectionChangeEvent, U as Unsubscribe, e as ViewBox, f as ViewerErrorEvent, g as ViewerEventHandler, h as ViewerEventMap, i as ViewerEventName, j as ViewerImageExportOptions, k as ViewerImageFormat, l as ViewerSource } from '../types-DvhMpqrL.cjs';
|
|
3
|
+
import { b as BindingRuntime } from '../runtimeTypes-D60w6nyF.cjs';
|
|
4
|
+
import '../render-CgX_y15a.cjs';
|
|
5
5
|
|
|
6
6
|
interface InteractionOptions {
|
|
7
7
|
enabled?: () => boolean;
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as Viewer, a as ViewerOptions } from '../types-
|
|
2
|
-
export { M as Modifiers, b as OwnerPointerEvent, O as OwnerRef, S as SceneDiff, c as SceneDiffEvent, d as SelectionChangeEvent, U as Unsubscribe, e as ViewBox, f as ViewerErrorEvent, g as ViewerEventHandler, h as ViewerEventMap, i as ViewerEventName, j as ViewerImageExportOptions, k as ViewerImageFormat, l as ViewerSource } from '../types-
|
|
3
|
-
import { b as BindingRuntime } from '../runtimeTypes-
|
|
4
|
-
import '../render-
|
|
1
|
+
import { V as Viewer, a as ViewerOptions } from '../types-DYLC_lsk.js';
|
|
2
|
+
export { M as Modifiers, b as OwnerPointerEvent, O as OwnerRef, S as SceneDiff, c as SceneDiffEvent, d as SelectionChangeEvent, U as Unsubscribe, e as ViewBox, f as ViewerErrorEvent, g as ViewerEventHandler, h as ViewerEventMap, i as ViewerEventName, j as ViewerImageExportOptions, k as ViewerImageFormat, l as ViewerSource } from '../types-DYLC_lsk.js';
|
|
3
|
+
import { b as BindingRuntime } from '../runtimeTypes-CEBGueYM.js';
|
|
4
|
+
import '../render-CgX_y15a.js';
|
|
5
5
|
|
|
6
6
|
interface InteractionOptions {
|
|
7
7
|
enabled?: () => boolean;
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { SHADER_DEFAULTS, connectInteraction, createViewer, registerShaderProgram, shaderProgram } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { SHADER_DEFAULTS, connectInteraction, createViewer, registerShaderProgram, shaderProgram } from '../chunk-G7NRK5AG.js';
|
|
2
|
+
import '../chunk-LTGF5OHP.js';
|
|
3
|
+
import '../chunk-7VW2XKVB.js';
|
|
4
|
+
import '../chunk-IEHE6WVN.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkVK3T6O5Z_cjs = require('../chunk-VK3T6O5Z.cjs');
|
|
4
|
+
var chunkZMLQIMJK_cjs = require('../chunk-ZMLQIMJK.cjs');
|
|
5
|
+
require('../chunk-L3VJXZFD.cjs');
|
|
6
|
+
require('../chunk-XY2GZUHC.cjs');
|
|
7
7
|
|
|
8
8
|
// src/runtime/webComponent/config.ts
|
|
9
9
|
var OBSERVED_ATTRS = ["source", "interactive", "padding", "diagram-id"];
|
|
@@ -43,7 +43,7 @@ function showRenderError(container, error) {
|
|
|
43
43
|
container.replaceChildren(box);
|
|
44
44
|
}
|
|
45
45
|
function mountInteractiveDiagram(container, source, config) {
|
|
46
|
-
return
|
|
46
|
+
return chunkVK3T6O5Z_cjs.createViewer({
|
|
47
47
|
container,
|
|
48
48
|
source,
|
|
49
49
|
interactive: true,
|
|
@@ -52,7 +52,7 @@ function mountInteractiveDiagram(container, source, config) {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
function mountStaticDiagram(container, source, config) {
|
|
55
|
-
container.innerHTML =
|
|
55
|
+
container.innerHTML = chunkZMLQIMJK_cjs.render(source, { padding: config.padding }).svg;
|
|
56
56
|
}
|
|
57
57
|
function mountShadowDiagram(root, config) {
|
|
58
58
|
const container = createShadowContainer(root);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createViewer } from '../chunk-
|
|
2
|
-
import { render } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
import { createViewer } from '../chunk-G7NRK5AG.js';
|
|
2
|
+
import { render } from '../chunk-LTGF5OHP.js';
|
|
3
|
+
import '../chunk-7VW2XKVB.js';
|
|
4
|
+
import '../chunk-IEHE6WVN.js';
|
|
5
5
|
|
|
6
6
|
// src/runtime/webComponent/config.ts
|
|
7
7
|
var OBSERVED_ATTRS = ["source", "interactive", "padding", "diagram-id"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stickyflow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Framework-independent SFL parser, render-scene, SVG runtime and interactive viewer.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,6 +41,11 @@
|
|
|
41
41
|
"import": "./dist/index.js",
|
|
42
42
|
"require": "./dist/index.cjs"
|
|
43
43
|
},
|
|
44
|
+
"./binding": {
|
|
45
|
+
"types": "./dist/binding/index.d.ts",
|
|
46
|
+
"import": "./dist/binding/index.js",
|
|
47
|
+
"require": "./dist/binding/index.cjs"
|
|
48
|
+
},
|
|
44
49
|
"./viewer": {
|
|
45
50
|
"types": "./dist/viewer/index.d.ts",
|
|
46
51
|
"import": "./dist/viewer/index.js",
|