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,4 +1,4 @@
1
- import { O as SceneRole, Q as ShaderParameter, J as RenderOptions } from './render-Db0eSz_s.js';
1
+ import { O as SceneRole, Q as ShaderParameter, J as RenderOptions } from './render-Bp2FLEzv.js';
2
2
 
3
3
  type Unsubscribe = () => void;
4
4
  declare class Emitter<EventMap extends object> {
@@ -1,4 +1,4 @@
1
- import { O as SceneRole, Q as ShaderParameter, J as RenderOptions } from './render-Db0eSz_s.cjs';
1
+ import { O as SceneRole, Q as ShaderParameter, J as RenderOptions } from './render-Bp2FLEzv.cjs';
2
2
 
3
3
  type Unsubscribe = () => void;
4
4
  declare class Emitter<EventMap extends object> {
@@ -1,31 +1,31 @@
1
1
  'use strict';
2
2
 
3
- var chunkKTNCDNDB_cjs = require('../chunk-KTNCDNDB.cjs');
4
- require('../chunk-WQRT5PVT.cjs');
5
- require('../chunk-4LENHH6C.cjs');
6
- require('../chunk-XJ4W6TW4.cjs');
3
+ var chunkIR2T47NW_cjs = require('../chunk-IR2T47NW.cjs');
4
+ require('../chunk-VOYX6JMW.cjs');
5
+ require('../chunk-FQ7GMLCM.cjs');
6
+ require('../chunk-LNW5VIEA.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "SHADER_DEFAULTS", {
11
11
  enumerable: true,
12
- get: function () { return chunkKTNCDNDB_cjs.SHADER_DEFAULTS; }
12
+ get: function () { return chunkIR2T47NW_cjs.SHADER_DEFAULTS; }
13
13
  });
14
14
  Object.defineProperty(exports, "connectInteraction", {
15
15
  enumerable: true,
16
- get: function () { return chunkKTNCDNDB_cjs.connectInteraction; }
16
+ get: function () { return chunkIR2T47NW_cjs.connectInteraction; }
17
17
  });
18
18
  Object.defineProperty(exports, "createViewer", {
19
19
  enumerable: true,
20
- get: function () { return chunkKTNCDNDB_cjs.createViewer; }
20
+ get: function () { return chunkIR2T47NW_cjs.createViewer; }
21
21
  });
22
22
  Object.defineProperty(exports, "registerShaderProgram", {
23
23
  enumerable: true,
24
- get: function () { return chunkKTNCDNDB_cjs.registerShaderProgram; }
24
+ get: function () { return chunkIR2T47NW_cjs.registerShaderProgram; }
25
25
  });
26
26
  Object.defineProperty(exports, "shaderProgram", {
27
27
  enumerable: true,
28
- get: function () { return chunkKTNCDNDB_cjs.shaderProgram; }
28
+ get: function () { return chunkIR2T47NW_cjs.shaderProgram; }
29
29
  });
30
30
  //# sourceMappingURL=index.cjs.map
31
31
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
- import { V as Viewer, a as ViewerOptions } from '../types-BHfUKT4s.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-BHfUKT4s.cjs';
3
- import { b as BindingRuntime } from '../runtimeTypes-CrkMHvVi.cjs';
4
- import '../render-Db0eSz_s.cjs';
1
+ import { V as Viewer, a as ViewerOptions } from '../types-D2w6D_wG.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-D2w6D_wG.cjs';
3
+ import { b as BindingRuntime } from '../runtimeTypes-BYODuxHk.cjs';
4
+ import { Q as ShaderParameter } from '../render-Bp2FLEzv.cjs';
5
5
 
6
6
  interface InteractionOptions {
7
7
  enabled?: () => boolean;
@@ -32,6 +32,7 @@ declare const SHADER_DEFAULTS: {
32
32
  interface ShaderProgram {
33
33
  name: string;
34
34
  fragmentSource: string;
35
+ defaultParameters?: Readonly<Record<string, ShaderParameter>>;
35
36
  usesBackdrop?: boolean;
36
37
  replacesBaseFill?: boolean;
37
38
  }
@@ -1,7 +1,7 @@
1
- import { V as Viewer, a as ViewerOptions } from '../types-D4cH4f1a.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-D4cH4f1a.js';
3
- import { b as BindingRuntime } from '../runtimeTypes-DnI7mRF5.js';
4
- import '../render-Db0eSz_s.js';
1
+ import { V as Viewer, a as ViewerOptions } from '../types-B9QM_H3R.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-B9QM_H3R.js';
3
+ import { b as BindingRuntime } from '../runtimeTypes-C7sSLfOK.js';
4
+ import { Q as ShaderParameter } from '../render-Bp2FLEzv.js';
5
5
 
6
6
  interface InteractionOptions {
7
7
  enabled?: () => boolean;
@@ -32,6 +32,7 @@ declare const SHADER_DEFAULTS: {
32
32
  interface ShaderProgram {
33
33
  name: string;
34
34
  fragmentSource: string;
35
+ defaultParameters?: Readonly<Record<string, ShaderParameter>>;
35
36
  usesBackdrop?: boolean;
36
37
  replacesBaseFill?: boolean;
37
38
  }
@@ -1,6 +1,6 @@
1
- export { SHADER_DEFAULTS, connectInteraction, createViewer, registerShaderProgram, shaderProgram } from '../chunk-WRDVNMFS.js';
2
- import '../chunk-FVHVOJS2.js';
3
- import '../chunk-ULQZ6CZW.js';
4
- import '../chunk-4G2R7PEL.js';
1
+ export { SHADER_DEFAULTS, connectInteraction, createViewer, registerShaderProgram, shaderProgram } from '../chunk-EDOPENSE.js';
2
+ import '../chunk-MAPNY7MJ.js';
3
+ import '../chunk-LFEGZJWC.js';
4
+ import '../chunk-GLZVHUSW.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 chunkKTNCDNDB_cjs = require('../chunk-KTNCDNDB.cjs');
4
- var chunkWQRT5PVT_cjs = require('../chunk-WQRT5PVT.cjs');
5
- require('../chunk-4LENHH6C.cjs');
6
- require('../chunk-XJ4W6TW4.cjs');
3
+ var chunkIR2T47NW_cjs = require('../chunk-IR2T47NW.cjs');
4
+ var chunkVOYX6JMW_cjs = require('../chunk-VOYX6JMW.cjs');
5
+ require('../chunk-FQ7GMLCM.cjs');
6
+ require('../chunk-LNW5VIEA.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 chunkKTNCDNDB_cjs.createViewer({
46
+ return chunkIR2T47NW_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 = chunkWQRT5PVT_cjs.render(source, { padding: config.padding }).svg;
55
+ container.innerHTML = chunkVOYX6JMW_cjs.render(source, { padding: config.padding }).svg;
56
56
  }
57
57
  function mountShadowDiagram(root, config) {
58
58
  const container = createShadowContainer(root);
@@ -1,5 +1,5 @@
1
- import { V as Viewer } from '../types-BHfUKT4s.cjs';
2
- import '../render-Db0eSz_s.cjs';
1
+ import { V as Viewer } from '../types-D2w6D_wG.cjs';
2
+ import '../render-Bp2FLEzv.cjs';
3
3
 
4
4
  interface DiagramConfig {
5
5
  source: string | null;
@@ -1,5 +1,5 @@
1
- import { V as Viewer } from '../types-D4cH4f1a.js';
2
- import '../render-Db0eSz_s.js';
1
+ import { V as Viewer } from '../types-B9QM_H3R.js';
2
+ import '../render-Bp2FLEzv.js';
3
3
 
4
4
  interface DiagramConfig {
5
5
  source: string | null;
@@ -1,7 +1,7 @@
1
- import { createViewer } from '../chunk-WRDVNMFS.js';
2
- import { render } from '../chunk-FVHVOJS2.js';
3
- import '../chunk-ULQZ6CZW.js';
4
- import '../chunk-4G2R7PEL.js';
1
+ import { createViewer } from '../chunk-EDOPENSE.js';
2
+ import { render } from '../chunk-MAPNY7MJ.js';
3
+ import '../chunk-LFEGZJWC.js';
4
+ import '../chunk-GLZVHUSW.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.6.0",
3
+ "version": "0.8.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",