stickyflow 0.12.0 → 0.12.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/binding/index.cjs +8 -8
  3. package/dist/binding/index.d.cts +4 -4
  4. package/dist/binding/index.d.ts +4 -4
  5. package/dist/binding/index.js +2 -2
  6. package/dist/{chunk-EG7VZJZX.cjs → chunk-5JPONNKW.cjs} +7 -7
  7. package/dist/{chunk-EG7VZJZX.cjs.map → chunk-5JPONNKW.cjs.map} +1 -1
  8. package/dist/{chunk-3XPNGIMV.cjs → chunk-6TTSSFCF.cjs} +4 -4
  9. package/dist/{chunk-3XPNGIMV.cjs.map → chunk-6TTSSFCF.cjs.map} +1 -1
  10. package/dist/{chunk-UCOMSZPC.js → chunk-LLBTELO3.js} +4 -3
  11. package/dist/chunk-LLBTELO3.js.map +1 -0
  12. package/dist/{chunk-Q4OIDWT6.js → chunk-NZPLAEDJ.js} +3 -3
  13. package/dist/{chunk-Q4OIDWT6.js.map → chunk-NZPLAEDJ.js.map} +1 -1
  14. package/dist/{chunk-LDRUTQF7.js → chunk-P7HTMWBT.js} +3 -3
  15. package/dist/{chunk-LDRUTQF7.js.map → chunk-P7HTMWBT.js.map} +1 -1
  16. package/dist/{chunk-ZE2KRWOM.cjs → chunk-PSC7G6NL.cjs} +4 -3
  17. package/dist/chunk-PSC7G6NL.cjs.map +1 -0
  18. package/dist/index.cjs +14 -14
  19. package/dist/index.d.cts +5 -5
  20. package/dist/index.d.ts +5 -5
  21. package/dist/index.js +3 -3
  22. package/dist/interaction/index.cjs +1 -1
  23. package/dist/interaction/index.cjs.map +1 -1
  24. package/dist/interaction/index.d.cts +2 -2
  25. package/dist/interaction/index.d.ts +2 -2
  26. package/dist/interaction/index.js +1 -1
  27. package/dist/interaction/index.js.map +1 -1
  28. package/dist/{render-BDO4S5uF.d.cts → render-BMhLssMa.d.cts} +1 -0
  29. package/dist/{render-BDO4S5uF.d.ts → render-BMhLssMa.d.ts} +1 -0
  30. package/dist/{runtime-DaconR36.d.ts → runtime-7Tpn2PHh.d.ts} +2 -2
  31. package/dist/{runtime-BJDaqo6f.d.cts → runtime-BPBjVGa6.d.cts} +2 -2
  32. package/dist/{runtimeTypes-BE_GI1yU.d.ts → runtimeTypes-Bt9twc5R.d.ts} +1 -1
  33. package/dist/{runtimeTypes-BE_nllY6.d.cts → runtimeTypes-CRv6IJs-.d.cts} +1 -1
  34. package/dist/stickyflow-diagram.global.js +1 -1
  35. package/dist/stickyflow-diagram.global.js.map +1 -1
  36. package/dist/{types-CZJzycKw.d.cts → types-BnU5MZNj.d.cts} +1 -1
  37. package/dist/{types-Dp8JVZLB.d.ts → types-CLZFgmcG.d.ts} +1 -1
  38. package/dist/viewer/index.cjs +7 -7
  39. package/dist/viewer/index.d.cts +4 -4
  40. package/dist/viewer/index.d.ts +4 -4
  41. package/dist/viewer/index.js +2 -2
  42. package/dist/web-component/index.cjs +4 -4
  43. package/dist/web-component/index.d.cts +2 -2
  44. package/dist/web-component/index.d.ts +2 -2
  45. package/dist/web-component/index.js +2 -2
  46. package/package.json +1 -1
  47. package/dist/chunk-UCOMSZPC.js.map +0 -1
  48. package/dist/chunk-ZE2KRWOM.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkEG7VZJZX_cjs = require('./chunk-EG7VZJZX.cjs');
4
- var chunkZE2KRWOM_cjs = require('./chunk-ZE2KRWOM.cjs');
3
+ var chunk5JPONNKW_cjs = require('./chunk-5JPONNKW.cjs');
4
+ var chunkPSC7G6NL_cjs = require('./chunk-PSC7G6NL.cjs');
5
5
  var chunkSKGJXCAO_cjs = require('./chunk-SKGJXCAO.cjs');
6
6
 
7
7
  // src/model/shape/supportedTypes.ts
@@ -76,7 +76,7 @@ function flattenGroups(groups, buckets) {
76
76
  // src/adapters/importJson/assembly.ts
77
77
  function sflToImportJson(sfl) {
78
78
  const state = chunkSKGJXCAO_cjs.sflToCanvasState(sfl);
79
- const collected = chunkZE2KRWOM_cjs.collectCanvasObjects(state);
79
+ const collected = chunkPSC7G6NL_cjs.collectCanvasObjects(state);
80
80
  const canvas = emptyBuckets();
81
81
  const { groupBuckets, bucketFor } = createBucketResolver(indexGroupMembership(state.groups), canvas);
82
82
  for (const shape of collected.shapes) {
@@ -107,47 +107,47 @@ function sflToImportJson(sfl) {
107
107
 
108
108
  Object.defineProperty(exports, "buildBindingGraph", {
109
109
  enumerable: true,
110
- get: function () { return chunkEG7VZJZX_cjs.buildBindingGraph; }
110
+ get: function () { return chunk5JPONNKW_cjs.buildBindingGraph; }
111
111
  });
112
112
  Object.defineProperty(exports, "createBindingRuntime", {
113
113
  enumerable: true,
114
- get: function () { return chunkEG7VZJZX_cjs.createBindingRuntime; }
114
+ get: function () { return chunk5JPONNKW_cjs.createBindingRuntime; }
115
115
  });
116
116
  Object.defineProperty(exports, "createDataSource", {
117
117
  enumerable: true,
118
- get: function () { return chunkEG7VZJZX_cjs.createDataSource; }
118
+ get: function () { return chunk5JPONNKW_cjs.createDataSource; }
119
119
  });
120
120
  Object.defineProperty(exports, "interactiveElements", {
121
121
  enumerable: true,
122
- get: function () { return chunkEG7VZJZX_cjs.interactiveElements; }
122
+ get: function () { return chunk5JPONNKW_cjs.interactiveElements; }
123
123
  });
124
124
  Object.defineProperty(exports, "renderBound", {
125
125
  enumerable: true,
126
- get: function () { return chunkEG7VZJZX_cjs.renderBound; }
126
+ get: function () { return chunk5JPONNKW_cjs.renderBound; }
127
127
  });
128
128
  Object.defineProperty(exports, "decodeColor", {
129
129
  enumerable: true,
130
- get: function () { return chunkZE2KRWOM_cjs.decodeColor; }
130
+ get: function () { return chunkPSC7G6NL_cjs.decodeColor; }
131
131
  });
132
132
  Object.defineProperty(exports, "decodeShadow", {
133
133
  enumerable: true,
134
- get: function () { return chunkZE2KRWOM_cjs.decodeShadow; }
134
+ get: function () { return chunkPSC7G6NL_cjs.decodeShadow; }
135
135
  });
136
136
  Object.defineProperty(exports, "defineComponent", {
137
137
  enumerable: true,
138
- get: function () { return chunkZE2KRWOM_cjs.defineComponent; }
138
+ get: function () { return chunkPSC7G6NL_cjs.defineComponent; }
139
139
  });
140
140
  Object.defineProperty(exports, "render", {
141
141
  enumerable: true,
142
- get: function () { return chunkZE2KRWOM_cjs.render; }
142
+ get: function () { return chunkPSC7G6NL_cjs.render; }
143
143
  });
144
144
  Object.defineProperty(exports, "renderCanvas", {
145
145
  enumerable: true,
146
- get: function () { return chunkZE2KRWOM_cjs.renderCanvas; }
146
+ get: function () { return chunkPSC7G6NL_cjs.renderCanvas; }
147
147
  });
148
148
  Object.defineProperty(exports, "sflToRenderInput", {
149
149
  enumerable: true,
150
- get: function () { return chunkZE2KRWOM_cjs.sflToRenderInput; }
150
+ get: function () { return chunkPSC7G6NL_cjs.sflToRenderInput; }
151
151
  });
152
152
  Object.defineProperty(exports, "AXIS_COS", {
153
153
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- import { C as Component, G as GenericComponent, a as ComponentDescriptor, P as PathPoint, b as Point, R as RollingNumberComponent, c as RollingNumberComponentStyle, d as RulerComponent, T as TickScaleComponent, I as IsometricFace, D as Diagnostic, S as Shader, e as RenderInput, f as ShadowStyle, L as LinkStyle, g as Shape, h as Link, F as Frame, i as Swimlane, j as IsometricObject, k as FreeformPath, l as Chart } from './render-BDO4S5uF.cjs';
2
- export { B as Bounds, m as CHART_TYPES, n as ChartAxis, o as ChartRamp, p as ChartSeries, q as ChartType, r as ComponentDefinition, s as ComponentGroup, t as ComponentInteraction, u as ComponentPropertyDescriptor, v as ComponentSceneContext, w as ComponentSize, x as ComponentValue, y as ComponentValueDescriptor, z as ComponentValueType, A as Dimension, M as MeasureTextFactory, E as RenderDiagnostic, H as RenderNode, J as RenderOptions, K as RenderResult, N as RenderScene, O as SceneRole, Q as ShaderParameter, U as ShapeType, V as TextMetrics, W as defineComponent, X as render, Y as renderCanvas } from './render-BDO4S5uF.cjs';
3
- import { S as SflDocument, o as Side } from './runtimeTypes-BE_nllY6.cjs';
4
- export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-BE_nllY6.cjs';
5
- export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-BJDaqo6f.cjs';
1
+ import { C as Component, G as GenericComponent, a as ComponentDescriptor, P as PathPoint, b as Point, R as RollingNumberComponent, c as RollingNumberComponentStyle, d as RulerComponent, T as TickScaleComponent, I as IsometricFace, D as Diagnostic, S as Shader, e as RenderInput, f as ShadowStyle, L as LinkStyle, g as Shape, h as Link, F as Frame, i as Swimlane, j as IsometricObject, k as FreeformPath, l as Chart } from './render-BMhLssMa.cjs';
2
+ export { B as Bounds, m as CHART_TYPES, n as ChartAxis, o as ChartRamp, p as ChartSeries, q as ChartType, r as ComponentDefinition, s as ComponentGroup, t as ComponentInteraction, u as ComponentPropertyDescriptor, v as ComponentSceneContext, w as ComponentSize, x as ComponentValue, y as ComponentValueDescriptor, z as ComponentValueType, A as Dimension, M as MeasureTextFactory, E as RenderDiagnostic, H as RenderNode, J as RenderOptions, K as RenderResult, N as RenderScene, O as SceneRole, Q as ShaderParameter, U as ShapeType, V as TextMetrics, W as defineComponent, X as render, Y as renderCanvas } from './render-BMhLssMa.cjs';
3
+ import { S as SflDocument, o as Side } from './runtimeTypes-CRv6IJs-.cjs';
4
+ export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-CRv6IJs-.cjs';
5
+ export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-BPBjVGa6.cjs';
6
6
 
7
7
  declare const COMPONENT_CATEGORIES: readonly [{
8
8
  readonly id: "action";
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { C as Component, G as GenericComponent, a as ComponentDescriptor, P as PathPoint, b as Point, R as RollingNumberComponent, c as RollingNumberComponentStyle, d as RulerComponent, T as TickScaleComponent, I as IsometricFace, D as Diagnostic, S as Shader, e as RenderInput, f as ShadowStyle, L as LinkStyle, g as Shape, h as Link, F as Frame, i as Swimlane, j as IsometricObject, k as FreeformPath, l as Chart } from './render-BDO4S5uF.js';
2
- export { B as Bounds, m as CHART_TYPES, n as ChartAxis, o as ChartRamp, p as ChartSeries, q as ChartType, r as ComponentDefinition, s as ComponentGroup, t as ComponentInteraction, u as ComponentPropertyDescriptor, v as ComponentSceneContext, w as ComponentSize, x as ComponentValue, y as ComponentValueDescriptor, z as ComponentValueType, A as Dimension, M as MeasureTextFactory, E as RenderDiagnostic, H as RenderNode, J as RenderOptions, K as RenderResult, N as RenderScene, O as SceneRole, Q as ShaderParameter, U as ShapeType, V as TextMetrics, W as defineComponent, X as render, Y as renderCanvas } from './render-BDO4S5uF.js';
3
- import { S as SflDocument, o as Side } from './runtimeTypes-BE_GI1yU.js';
4
- export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-BE_GI1yU.js';
5
- export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-DaconR36.js';
1
+ import { C as Component, G as GenericComponent, a as ComponentDescriptor, P as PathPoint, b as Point, R as RollingNumberComponent, c as RollingNumberComponentStyle, d as RulerComponent, T as TickScaleComponent, I as IsometricFace, D as Diagnostic, S as Shader, e as RenderInput, f as ShadowStyle, L as LinkStyle, g as Shape, h as Link, F as Frame, i as Swimlane, j as IsometricObject, k as FreeformPath, l as Chart } from './render-BMhLssMa.js';
2
+ export { B as Bounds, m as CHART_TYPES, n as ChartAxis, o as ChartRamp, p as ChartSeries, q as ChartType, r as ComponentDefinition, s as ComponentGroup, t as ComponentInteraction, u as ComponentPropertyDescriptor, v as ComponentSceneContext, w as ComponentSize, x as ComponentValue, y as ComponentValueDescriptor, z as ComponentValueType, A as Dimension, M as MeasureTextFactory, E as RenderDiagnostic, H as RenderNode, J as RenderOptions, K as RenderResult, N as RenderScene, O as SceneRole, Q as ShaderParameter, U as ShapeType, V as TextMetrics, W as defineComponent, X as render, Y as renderCanvas } from './render-BMhLssMa.js';
3
+ import { S as SflDocument, o as Side } from './runtimeTypes-Bt9twc5R.js';
4
+ export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-Bt9twc5R.js';
5
+ export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-7Tpn2PHh.js';
6
6
 
7
7
  declare const COMPONENT_CATEGORIES: readonly [{
8
8
  readonly id: "action";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export { buildBindingGraph, createBindingRuntime, createDataSource, interactiveElements, renderBound } from './chunk-LDRUTQF7.js';
2
- import { collectCanvasObjects } from './chunk-UCOMSZPC.js';
3
- export { decodeColor, decodeShadow, defineComponent, render, renderCanvas, sflToRenderInput } from './chunk-UCOMSZPC.js';
1
+ export { buildBindingGraph, createBindingRuntime, createDataSource, interactiveElements, renderBound } from './chunk-P7HTMWBT.js';
2
+ import { collectCanvasObjects } from './chunk-LLBTELO3.js';
3
+ export { decodeColor, decodeShadow, defineComponent, render, renderCanvas, sflToRenderInput } from './chunk-LLBTELO3.js';
4
4
  import { sflToCanvasState } from './chunk-4SXXMOXR.js';
5
5
  export { AXIS_COS, AXIS_SIN, CHART_TYPES, COMPONENT_CATEGORIES, DOM_CONTRACT_VERSION, canonicalizeSource as canonicalize, componentTypes, flattenPath, getComponentDescriptor, isChartObject, isDimensionObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, pathBounds, pathToSymbol, sflToCanvasState, symbolToPath } from './chunk-4SXXMOXR.js';
6
6
 
@@ -3707,7 +3707,7 @@ function parentContainerBounds(svg, primary, groupIds) {
3707
3707
  return void 0;
3708
3708
  }
3709
3709
  const container = chunk3OF37CZX_cjs.findOwnerNode(svg, parentId, chunk3OF37CZX_cjs.isPrimary);
3710
- if (!container) {
3710
+ if (!container || container.getAttribute("data-sf-kind") === "screen") {
3711
3711
  return void 0;
3712
3712
  }
3713
3713
  const bbox = container.getBBox();