stickyflow 0.7.0 → 0.9.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 (63) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +1 -1
  3. package/dist/binding/index.cjs +9 -9
  4. package/dist/binding/index.d.cts +4 -4
  5. package/dist/binding/index.d.ts +4 -4
  6. package/dist/binding/index.js +3 -3
  7. package/dist/{chunk-OWNVXKXN.cjs → chunk-B3YRZVMR.cjs} +23 -23
  8. package/dist/chunk-B3YRZVMR.cjs.map +1 -0
  9. package/dist/{chunk-JCRPLPKV.js → chunk-BUVUJMWT.js} +5 -5
  10. package/dist/chunk-BUVUJMWT.js.map +1 -0
  11. package/dist/{chunk-ZNHYW47T.js → chunk-CM35H45Z.js} +3 -3
  12. package/dist/{chunk-ZNHYW47T.js.map → chunk-CM35H45Z.js.map} +1 -1
  13. package/dist/{chunk-JQK4IGXJ.js → chunk-D2266VBZ.js} +440 -8
  14. package/dist/chunk-D2266VBZ.js.map +1 -0
  15. package/dist/{chunk-SDMQRSRW.js → chunk-FS6L462E.js} +455 -136
  16. package/dist/chunk-FS6L462E.js.map +1 -0
  17. package/dist/{chunk-EKAWJFJQ.cjs → chunk-OUWGWDJ2.cjs} +15 -15
  18. package/dist/{chunk-EKAWJFJQ.cjs.map → chunk-OUWGWDJ2.cjs.map} +1 -1
  19. package/dist/{chunk-KXYSO6GC.cjs → chunk-QL7MNEMT.cjs} +444 -7
  20. package/dist/chunk-QL7MNEMT.cjs.map +1 -0
  21. package/dist/{chunk-BUOWM3LC.cjs → chunk-SQBF2BKT.cjs} +382 -73
  22. package/dist/chunk-SQBF2BKT.cjs.map +1 -0
  23. package/dist/{chunk-A73UJ5AQ.cjs → chunk-YSXD5IVZ.cjs} +1074 -755
  24. package/dist/chunk-YSXD5IVZ.cjs.map +1 -0
  25. package/dist/{chunk-MUKIGLR5.js → chunk-ZCGZJBAT.js} +353 -44
  26. package/dist/chunk-ZCGZJBAT.js.map +1 -0
  27. package/dist/index.cjs +36 -36
  28. package/dist/index.d.cts +5 -5
  29. package/dist/index.d.ts +5 -5
  30. package/dist/index.js +5 -5
  31. package/dist/interaction/index.cjs +268 -235
  32. package/dist/interaction/index.cjs.map +1 -1
  33. package/dist/interaction/index.d.cts +2 -2
  34. package/dist/interaction/index.d.ts +2 -2
  35. package/dist/interaction/index.js +44 -11
  36. package/dist/interaction/index.js.map +1 -1
  37. package/dist/{render-BU2uYzjG.d.cts → render-DU4lYbRl.d.cts} +29 -11
  38. package/dist/{render-BU2uYzjG.d.ts → render-DU4lYbRl.d.ts} +29 -11
  39. package/dist/{runtime-B7KiTmn8.d.cts → runtime-DG8X3Fwf.d.cts} +2 -2
  40. package/dist/{runtime-BPzyD-Nd.d.ts → runtime-kqD1RS17.d.ts} +2 -2
  41. package/dist/{runtimeTypes-DalvhScn.d.ts → runtimeTypes-CvjlBZds.d.cts} +7 -3
  42. package/dist/{runtimeTypes-BIP70z72.d.cts → runtimeTypes-vRaHOIHi.d.ts} +7 -3
  43. package/dist/stickyflow-diagram.global.js +294 -39
  44. package/dist/stickyflow-diagram.global.js.map +1 -1
  45. package/dist/{types-D_2NZ6lL.d.cts → types-B5jrEEcF.d.cts} +1 -1
  46. package/dist/{types-DMWs27Hn.d.ts → types-B7IkZ0w4.d.ts} +1 -1
  47. package/dist/viewer/index.cjs +9 -9
  48. package/dist/viewer/index.d.cts +4 -4
  49. package/dist/viewer/index.d.ts +4 -4
  50. package/dist/viewer/index.js +4 -4
  51. package/dist/web-component/index.cjs +6 -6
  52. package/dist/web-component/index.d.cts +2 -2
  53. package/dist/web-component/index.d.ts +2 -2
  54. package/dist/web-component/index.js +4 -4
  55. package/package.json +1 -1
  56. package/dist/chunk-A73UJ5AQ.cjs.map +0 -1
  57. package/dist/chunk-BUOWM3LC.cjs.map +0 -1
  58. package/dist/chunk-JCRPLPKV.js.map +0 -1
  59. package/dist/chunk-JQK4IGXJ.js.map +0 -1
  60. package/dist/chunk-KXYSO6GC.cjs.map +0 -1
  61. package/dist/chunk-MUKIGLR5.js.map +0 -1
  62. package/dist/chunk-OWNVXKXN.cjs.map +0 -1
  63. package/dist/chunk-SDMQRSRW.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { O as SceneRole, Q as ShaderParameter, J as RenderOptions } from './render-BU2uYzjG.cjs';
1
+ import { O as SceneRole, Q as ShaderParameter, J as RenderOptions } from './render-DU4lYbRl.cjs';
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-BU2uYzjG.js';
1
+ import { O as SceneRole, Q as ShaderParameter, J as RenderOptions } from './render-DU4lYbRl.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 chunkBUOWM3LC_cjs = require('../chunk-BUOWM3LC.cjs');
4
- require('../chunk-A73UJ5AQ.cjs');
5
- require('../chunk-EKAWJFJQ.cjs');
6
- require('../chunk-KXYSO6GC.cjs');
3
+ var chunkSQBF2BKT_cjs = require('../chunk-SQBF2BKT.cjs');
4
+ require('../chunk-YSXD5IVZ.cjs');
5
+ require('../chunk-OUWGWDJ2.cjs');
6
+ require('../chunk-QL7MNEMT.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "SHADER_DEFAULTS", {
11
11
  enumerable: true,
12
- get: function () { return chunkBUOWM3LC_cjs.SHADER_DEFAULTS; }
12
+ get: function () { return chunkSQBF2BKT_cjs.SHADER_DEFAULTS; }
13
13
  });
14
14
  Object.defineProperty(exports, "connectInteraction", {
15
15
  enumerable: true,
16
- get: function () { return chunkBUOWM3LC_cjs.connectInteraction; }
16
+ get: function () { return chunkSQBF2BKT_cjs.connectInteraction; }
17
17
  });
18
18
  Object.defineProperty(exports, "createViewer", {
19
19
  enumerable: true,
20
- get: function () { return chunkBUOWM3LC_cjs.createViewer; }
20
+ get: function () { return chunkSQBF2BKT_cjs.createViewer; }
21
21
  });
22
22
  Object.defineProperty(exports, "registerShaderProgram", {
23
23
  enumerable: true,
24
- get: function () { return chunkBUOWM3LC_cjs.registerShaderProgram; }
24
+ get: function () { return chunkSQBF2BKT_cjs.registerShaderProgram; }
25
25
  });
26
26
  Object.defineProperty(exports, "shaderProgram", {
27
27
  enumerable: true,
28
- get: function () { return chunkBUOWM3LC_cjs.shaderProgram; }
28
+ get: function () { return chunkSQBF2BKT_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-D_2NZ6lL.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-D_2NZ6lL.cjs';
3
- import { b as BindingRuntime } from '../runtimeTypes-BIP70z72.cjs';
4
- import { Q as ShaderParameter } from '../render-BU2uYzjG.cjs';
1
+ import { V as Viewer, a as ViewerOptions } from '../types-B5jrEEcF.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-B5jrEEcF.cjs';
3
+ import { b as BindingRuntime } from '../runtimeTypes-CvjlBZds.cjs';
4
+ import { Q as ShaderParameter } from '../render-DU4lYbRl.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-DMWs27Hn.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-DMWs27Hn.js';
3
- import { b as BindingRuntime } from '../runtimeTypes-DalvhScn.js';
4
- import { Q as ShaderParameter } from '../render-BU2uYzjG.js';
1
+ import { V as Viewer, a as ViewerOptions } from '../types-B7IkZ0w4.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-B7IkZ0w4.js';
3
+ import { b as BindingRuntime } from '../runtimeTypes-vRaHOIHi.js';
4
+ import { Q as ShaderParameter } from '../render-DU4lYbRl.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-MUKIGLR5.js';
2
- import '../chunk-SDMQRSRW.js';
3
- import '../chunk-ZNHYW47T.js';
4
- import '../chunk-JQK4IGXJ.js';
1
+ export { SHADER_DEFAULTS, connectInteraction, createViewer, registerShaderProgram, shaderProgram } from '../chunk-ZCGZJBAT.js';
2
+ import '../chunk-FS6L462E.js';
3
+ import '../chunk-CM35H45Z.js';
4
+ import '../chunk-D2266VBZ.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 chunkBUOWM3LC_cjs = require('../chunk-BUOWM3LC.cjs');
4
- var chunkA73UJ5AQ_cjs = require('../chunk-A73UJ5AQ.cjs');
5
- require('../chunk-EKAWJFJQ.cjs');
6
- require('../chunk-KXYSO6GC.cjs');
3
+ var chunkSQBF2BKT_cjs = require('../chunk-SQBF2BKT.cjs');
4
+ var chunkYSXD5IVZ_cjs = require('../chunk-YSXD5IVZ.cjs');
5
+ require('../chunk-OUWGWDJ2.cjs');
6
+ require('../chunk-QL7MNEMT.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 chunkBUOWM3LC_cjs.createViewer({
46
+ return chunkSQBF2BKT_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 = chunkA73UJ5AQ_cjs.render(source, { padding: config.padding }).svg;
55
+ container.innerHTML = chunkYSXD5IVZ_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-D_2NZ6lL.cjs';
2
- import '../render-BU2uYzjG.cjs';
1
+ import { V as Viewer } from '../types-B5jrEEcF.cjs';
2
+ import '../render-DU4lYbRl.cjs';
3
3
 
4
4
  interface DiagramConfig {
5
5
  source: string | null;
@@ -1,5 +1,5 @@
1
- import { V as Viewer } from '../types-DMWs27Hn.js';
2
- import '../render-BU2uYzjG.js';
1
+ import { V as Viewer } from '../types-B7IkZ0w4.js';
2
+ import '../render-DU4lYbRl.js';
3
3
 
4
4
  interface DiagramConfig {
5
5
  source: string | null;
@@ -1,7 +1,7 @@
1
- import { createViewer } from '../chunk-MUKIGLR5.js';
2
- import { render } from '../chunk-SDMQRSRW.js';
3
- import '../chunk-ZNHYW47T.js';
4
- import '../chunk-JQK4IGXJ.js';
1
+ import { createViewer } from '../chunk-ZCGZJBAT.js';
2
+ import { render } from '../chunk-FS6L462E.js';
3
+ import '../chunk-CM35H45Z.js';
4
+ import '../chunk-D2266VBZ.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.7.0",
3
+ "version": "0.9.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",