stickyflow 0.2.0 → 0.4.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 (51) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-KFJIFHXG.js → chunk-65IVT4GK.js} +475 -199
  4. package/dist/chunk-65IVT4GK.js.map +1 -0
  5. package/dist/{chunk-6JKNT2YC.js → chunk-BYMIYXP5.js} +17 -7
  6. package/dist/chunk-BYMIYXP5.js.map +1 -0
  7. package/dist/{chunk-N6WVHOUQ.js → chunk-CSXQD3ON.js} +28 -15
  8. package/dist/chunk-CSXQD3ON.js.map +1 -0
  9. package/dist/{chunk-YM3XFBI4.cjs → chunk-CXL254BT.cjs} +17 -6
  10. package/dist/chunk-CXL254BT.cjs.map +1 -0
  11. package/dist/{chunk-S5BVAAEF.cjs → chunk-DDCTNLLD.cjs} +989 -713
  12. package/dist/chunk-DDCTNLLD.cjs.map +1 -0
  13. package/dist/{chunk-34PK7HEU.cjs → chunk-HFOGKSNU.cjs} +18 -18
  14. package/dist/{chunk-34PK7HEU.cjs.map → chunk-HFOGKSNU.cjs.map} +1 -1
  15. package/dist/{chunk-IIOJFR73.cjs → chunk-UXDWH2JC.cjs} +56 -43
  16. package/dist/chunk-UXDWH2JC.cjs.map +1 -0
  17. package/dist/{chunk-6LQJUAD4.js → chunk-XEN5QIIJ.js} +6 -6
  18. package/dist/{chunk-6LQJUAD4.js.map → chunk-XEN5QIIJ.js.map} +1 -1
  19. package/dist/index.cjs +24 -24
  20. package/dist/index.d.cts +4 -4
  21. package/dist/index.d.ts +4 -4
  22. package/dist/index.js +4 -4
  23. package/dist/interaction/index.cjs +780 -382
  24. package/dist/interaction/index.cjs.map +1 -1
  25. package/dist/interaction/index.d.cts +12 -3
  26. package/dist/interaction/index.d.ts +12 -3
  27. package/dist/interaction/index.js +562 -165
  28. package/dist/interaction/index.js.map +1 -1
  29. package/dist/{render-r1GYvjNm.d.cts → render-C5X74hds.d.cts} +75 -4
  30. package/dist/{render-r1GYvjNm.d.ts → render-C5X74hds.d.ts} +75 -4
  31. package/dist/{runtimeTypes-ByiafBwg.d.ts → runtimeTypes-D8hPZ62T.d.ts} +1 -1
  32. package/dist/{runtimeTypes-DwLeD-em.d.cts → runtimeTypes-yTSAvtCn.d.cts} +1 -1
  33. package/dist/stickyflow-diagram.global.js +37 -35
  34. package/dist/stickyflow-diagram.global.js.map +1 -1
  35. package/dist/{types-T7W2yTQF.d.cts → types-BDKDf4zr.d.cts} +1 -1
  36. package/dist/{types-ndGA1kbl.d.ts → types-CdgGdtoD.d.ts} +1 -1
  37. package/dist/viewer/index.cjs +9 -9
  38. package/dist/viewer/index.d.cts +4 -4
  39. package/dist/viewer/index.d.ts +4 -4
  40. package/dist/viewer/index.js +4 -4
  41. package/dist/web-component/index.cjs +6 -6
  42. package/dist/web-component/index.d.cts +2 -2
  43. package/dist/web-component/index.d.ts +2 -2
  44. package/dist/web-component/index.js +4 -4
  45. package/package.json +1 -1
  46. package/dist/chunk-6JKNT2YC.js.map +0 -1
  47. package/dist/chunk-IIOJFR73.cjs.map +0 -1
  48. package/dist/chunk-KFJIFHXG.js.map +0 -1
  49. package/dist/chunk-N6WVHOUQ.js.map +0 -1
  50. package/dist/chunk-S5BVAAEF.cjs.map +0 -1
  51. package/dist/chunk-YM3XFBI4.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { u as SceneRole, v as ShaderParameter, g as RenderOptions } from './render-r1GYvjNm.cjs';
1
+ import { u as SceneRole, v as ShaderParameter, g as RenderOptions } from './render-C5X74hds.cjs';
2
2
 
3
3
  type Unsubscribe = () => void;
4
4
  declare class Emitter<EventMap extends object> {
@@ -1,4 +1,4 @@
1
- import { u as SceneRole, v as ShaderParameter, g as RenderOptions } from './render-r1GYvjNm.js';
1
+ import { u as SceneRole, v as ShaderParameter, g as RenderOptions } from './render-C5X74hds.js';
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 chunkIIOJFR73_cjs = require('../chunk-IIOJFR73.cjs');
4
- require('../chunk-S5BVAAEF.cjs');
5
- require('../chunk-34PK7HEU.cjs');
6
- require('../chunk-YM3XFBI4.cjs');
3
+ var chunkUXDWH2JC_cjs = require('../chunk-UXDWH2JC.cjs');
4
+ require('../chunk-DDCTNLLD.cjs');
5
+ require('../chunk-HFOGKSNU.cjs');
6
+ require('../chunk-CXL254BT.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "SHADER_DEFAULTS", {
11
11
  enumerable: true,
12
- get: function () { return chunkIIOJFR73_cjs.SHADER_DEFAULTS; }
12
+ get: function () { return chunkUXDWH2JC_cjs.SHADER_DEFAULTS; }
13
13
  });
14
14
  Object.defineProperty(exports, "connectInteraction", {
15
15
  enumerable: true,
16
- get: function () { return chunkIIOJFR73_cjs.connectInteraction; }
16
+ get: function () { return chunkUXDWH2JC_cjs.connectInteraction; }
17
17
  });
18
18
  Object.defineProperty(exports, "createViewer", {
19
19
  enumerable: true,
20
- get: function () { return chunkIIOJFR73_cjs.createViewer; }
20
+ get: function () { return chunkUXDWH2JC_cjs.createViewer; }
21
21
  });
22
22
  Object.defineProperty(exports, "registerShaderProgram", {
23
23
  enumerable: true,
24
- get: function () { return chunkIIOJFR73_cjs.registerShaderProgram; }
24
+ get: function () { return chunkUXDWH2JC_cjs.registerShaderProgram; }
25
25
  });
26
26
  Object.defineProperty(exports, "shaderProgram", {
27
27
  enumerable: true,
28
- get: function () { return chunkIIOJFR73_cjs.shaderProgram; }
28
+ get: function () { return chunkUXDWH2JC_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-T7W2yTQF.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-T7W2yTQF.cjs';
3
- import { b as BindingRuntime } from '../runtimeTypes-DwLeD-em.cjs';
4
- import '../render-r1GYvjNm.cjs';
1
+ import { V as Viewer, a as ViewerOptions } from '../types-BDKDf4zr.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-BDKDf4zr.cjs';
3
+ import { b as BindingRuntime } from '../runtimeTypes-yTSAvtCn.cjs';
4
+ import '../render-C5X74hds.cjs';
5
5
 
6
6
  interface InteractionOptions {
7
7
  enabled?: () => boolean;
@@ -1,7 +1,7 @@
1
- import { V as Viewer, a as ViewerOptions } from '../types-ndGA1kbl.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-ndGA1kbl.js';
3
- import { b as BindingRuntime } from '../runtimeTypes-ByiafBwg.js';
4
- import '../render-r1GYvjNm.js';
1
+ import { V as Viewer, a as ViewerOptions } from '../types-CdgGdtoD.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-CdgGdtoD.js';
3
+ import { b as BindingRuntime } from '../runtimeTypes-D8hPZ62T.js';
4
+ import '../render-C5X74hds.js';
5
5
 
6
6
  interface InteractionOptions {
7
7
  enabled?: () => boolean;
@@ -1,6 +1,6 @@
1
- export { SHADER_DEFAULTS, connectInteraction, createViewer, registerShaderProgram, shaderProgram } from '../chunk-N6WVHOUQ.js';
2
- import '../chunk-KFJIFHXG.js';
3
- import '../chunk-6LQJUAD4.js';
4
- import '../chunk-6JKNT2YC.js';
1
+ export { SHADER_DEFAULTS, connectInteraction, createViewer, registerShaderProgram, shaderProgram } from '../chunk-CSXQD3ON.js';
2
+ import '../chunk-65IVT4GK.js';
3
+ import '../chunk-XEN5QIIJ.js';
4
+ import '../chunk-BYMIYXP5.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 chunkIIOJFR73_cjs = require('../chunk-IIOJFR73.cjs');
4
- var chunkS5BVAAEF_cjs = require('../chunk-S5BVAAEF.cjs');
5
- require('../chunk-34PK7HEU.cjs');
6
- require('../chunk-YM3XFBI4.cjs');
3
+ var chunkUXDWH2JC_cjs = require('../chunk-UXDWH2JC.cjs');
4
+ var chunkDDCTNLLD_cjs = require('../chunk-DDCTNLLD.cjs');
5
+ require('../chunk-HFOGKSNU.cjs');
6
+ require('../chunk-CXL254BT.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 chunkIIOJFR73_cjs.createViewer({
46
+ return chunkUXDWH2JC_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 = chunkS5BVAAEF_cjs.render(source, { padding: config.padding }).svg;
55
+ container.innerHTML = chunkDDCTNLLD_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-T7W2yTQF.cjs';
2
- import '../render-r1GYvjNm.cjs';
1
+ import { V as Viewer } from '../types-BDKDf4zr.cjs';
2
+ import '../render-C5X74hds.cjs';
3
3
 
4
4
  interface DiagramConfig {
5
5
  source: string | null;
@@ -1,5 +1,5 @@
1
- import { V as Viewer } from '../types-ndGA1kbl.js';
2
- import '../render-r1GYvjNm.js';
1
+ import { V as Viewer } from '../types-CdgGdtoD.js';
2
+ import '../render-C5X74hds.js';
3
3
 
4
4
  interface DiagramConfig {
5
5
  source: string | null;
@@ -1,7 +1,7 @@
1
- import { createViewer } from '../chunk-N6WVHOUQ.js';
2
- import { render } from '../chunk-KFJIFHXG.js';
3
- import '../chunk-6LQJUAD4.js';
4
- import '../chunk-6JKNT2YC.js';
1
+ import { createViewer } from '../chunk-CSXQD3ON.js';
2
+ import { render } from '../chunk-65IVT4GK.js';
3
+ import '../chunk-XEN5QIIJ.js';
4
+ import '../chunk-BYMIYXP5.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.2.0",
3
+ "version": "0.4.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",