stickyflow 0.11.0 → 0.11.2

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 (32) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/binding/index.cjs +8 -8
  3. package/dist/binding/index.js +2 -2
  4. package/dist/{chunk-FXGXUWSI.cjs → chunk-4KBU4CFU.cjs} +7 -7
  5. package/dist/{chunk-FXGXUWSI.cjs.map → chunk-4KBU4CFU.cjs.map} +1 -1
  6. package/dist/{chunk-RQYZNW2I.js → chunk-DGAVCN4D.js} +3 -3
  7. package/dist/{chunk-RQYZNW2I.js.map → chunk-DGAVCN4D.js.map} +1 -1
  8. package/dist/{chunk-5G3BEXQU.cjs → chunk-EHH6ZDK6.cjs} +9 -2
  9. package/dist/chunk-EHH6ZDK6.cjs.map +1 -0
  10. package/dist/{chunk-Q6QLU6YQ.js → chunk-TQIYK5OA.js} +9 -2
  11. package/dist/chunk-TQIYK5OA.js.map +1 -0
  12. package/dist/{chunk-UB2ANTWF.js → chunk-UD6IG2PG.js} +3 -3
  13. package/dist/{chunk-UB2ANTWF.js.map → chunk-UD6IG2PG.js.map} +1 -1
  14. package/dist/{chunk-F24JURN2.cjs → chunk-VYQ6N5SI.cjs} +4 -4
  15. package/dist/{chunk-F24JURN2.cjs.map → chunk-VYQ6N5SI.cjs.map} +1 -1
  16. package/dist/index.cjs +14 -14
  17. package/dist/index.js +3 -3
  18. package/dist/interaction/index.cjs +83 -19
  19. package/dist/interaction/index.cjs.map +1 -1
  20. package/dist/interaction/index.d.cts +2 -1
  21. package/dist/interaction/index.d.ts +2 -1
  22. package/dist/interaction/index.js +83 -20
  23. package/dist/interaction/index.js.map +1 -1
  24. package/dist/stickyflow-diagram.global.js +1 -1
  25. package/dist/stickyflow-diagram.global.js.map +1 -1
  26. package/dist/viewer/index.cjs +7 -7
  27. package/dist/viewer/index.js +2 -2
  28. package/dist/web-component/index.cjs +4 -4
  29. package/dist/web-component/index.js +2 -2
  30. package/package.json +1 -1
  31. package/dist/chunk-5G3BEXQU.cjs.map +0 -1
  32. package/dist/chunk-Q6QLU6YQ.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -17,6 +17,24 @@ Two things count as breaking here that are easy to overlook:
17
17
 
18
18
  ## [Unreleased]
19
19
 
20
+ ## [0.11.2] - 2026-10-31
21
+
22
+ ### Fixed
23
+
24
+ - `applyMoveChanges` skips an object whose frame moves in the same drag. Its position is relative to the frame, so it moved twice before.
25
+
26
+ ## [0.11.1] - 2026-10-30
27
+
28
+ ### Added
29
+
30
+ - `applyMoveChanges` writes the objects of one drag at once and reads the document one time.
31
+ - The color popover has a pipette next to the hex field, in browsers that offer the EyeDropper API.
32
+
33
+ ### Fixed
34
+
35
+ - A `Text` is picked and dragged by its whole box, not only by its letters. The rendered SVG of a text changes by a `pointer-events` attribute.
36
+ - An `Image` follows the pointer while it is resized, instead of jumping to its new size at the end.
37
+
20
38
  ## [0.11.0] - 2026-10-28
21
39
 
22
40
  ### Added
@@ -1,34 +1,34 @@
1
1
  'use strict';
2
2
 
3
- var chunkFXGXUWSI_cjs = require('../chunk-FXGXUWSI.cjs');
4
- require('../chunk-5G3BEXQU.cjs');
3
+ var chunk4KBU4CFU_cjs = require('../chunk-4KBU4CFU.cjs');
4
+ require('../chunk-EHH6ZDK6.cjs');
5
5
  require('../chunk-UHKFJBY5.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "buildBindingGraph", {
10
10
  enumerable: true,
11
- get: function () { return chunkFXGXUWSI_cjs.buildBindingGraph; }
11
+ get: function () { return chunk4KBU4CFU_cjs.buildBindingGraph; }
12
12
  });
13
13
  Object.defineProperty(exports, "collectContracts", {
14
14
  enumerable: true,
15
- get: function () { return chunkFXGXUWSI_cjs.collectContracts; }
15
+ get: function () { return chunk4KBU4CFU_cjs.collectContracts; }
16
16
  });
17
17
  Object.defineProperty(exports, "createBindingRuntime", {
18
18
  enumerable: true,
19
- get: function () { return chunkFXGXUWSI_cjs.createBindingRuntime; }
19
+ get: function () { return chunk4KBU4CFU_cjs.createBindingRuntime; }
20
20
  });
21
21
  Object.defineProperty(exports, "createDataSource", {
22
22
  enumerable: true,
23
- get: function () { return chunkFXGXUWSI_cjs.createDataSource; }
23
+ get: function () { return chunk4KBU4CFU_cjs.createDataSource; }
24
24
  });
25
25
  Object.defineProperty(exports, "interactiveElements", {
26
26
  enumerable: true,
27
- get: function () { return chunkFXGXUWSI_cjs.interactiveElements; }
27
+ get: function () { return chunk4KBU4CFU_cjs.interactiveElements; }
28
28
  });
29
29
  Object.defineProperty(exports, "renderBound", {
30
30
  enumerable: true,
31
- get: function () { return chunkFXGXUWSI_cjs.renderBound; }
31
+ get: function () { return chunk4KBU4CFU_cjs.renderBound; }
32
32
  });
33
33
  //# sourceMappingURL=index.cjs.map
34
34
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- export { buildBindingGraph, collectContracts, createBindingRuntime, createDataSource, interactiveElements, renderBound } from '../chunk-UB2ANTWF.js';
2
- import '../chunk-Q6QLU6YQ.js';
1
+ export { buildBindingGraph, collectContracts, createBindingRuntime, createDataSource, interactiveElements, renderBound } from '../chunk-UD6IG2PG.js';
2
+ import '../chunk-TQIYK5OA.js';
3
3
  import '../chunk-G6IW2IX3.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk5G3BEXQU_cjs = require('./chunk-5G3BEXQU.cjs');
3
+ var chunkEHH6ZDK6_cjs = require('./chunk-EHH6ZDK6.cjs');
4
4
  var chunkUHKFJBY5_cjs = require('./chunk-UHKFJBY5.cjs');
5
5
 
6
6
  // src/binding/types.ts
@@ -821,7 +821,7 @@ function initialValue(input, id, componentType) {
821
821
  }
822
822
  function createRuntimeState(sfl, options) {
823
823
  const graph = buildBindingGraph(chunkUHKFJBY5_cjs.expandDocument(chunkUHKFJBY5_cjs.parseSource(sfl)));
824
- const input = structuredClone(chunk5G3BEXQU_cjs.sflToRenderInput(sfl));
824
+ const input = structuredClone(chunkEHH6ZDK6_cjs.sflToRenderInput(sfl));
825
825
  const elementState = /* @__PURE__ */ new Map();
826
826
  for (const [name, info] of graph.elements) {
827
827
  if (!graph.contracts.has(name)) {
@@ -966,7 +966,7 @@ function flush(state) {
966
966
  if (!changed) {
967
967
  return null;
968
968
  }
969
- const result = chunk5G3BEXQU_cjs.renderCanvas(state.input, { ...state.options.renderOptions, linkHitAreas: true });
969
+ const result = chunkEHH6ZDK6_cjs.renderCanvas(state.input, { ...state.options.renderOptions, linkHitAreas: true });
970
970
  for (const listener of [...state.listeners]) {
971
971
  listener(result);
972
972
  }
@@ -1121,7 +1121,7 @@ var within = (value) => Math.min(1, Math.max(0, value));
1121
1121
  function slideAlong(properties, width, height, x, y) {
1122
1122
  const vertical = properties.direction === "vertical";
1123
1123
  const length = vertical ? height : width;
1124
- const reach = chunk5G3BEXQU_cjs.sliderReach(properties.variant, vertical ? width : height);
1124
+ const reach = chunkEHH6ZDK6_cjs.sliderReach(properties.variant, vertical ? width : height);
1125
1125
  const position = vertical ? 1 - y : x;
1126
1126
  return length > reach * 2 ? within((position * length - reach) / (length - reach * 2)) : position;
1127
1127
  }
@@ -1309,7 +1309,7 @@ function renderBound(sfl, options = {}) {
1309
1309
  runtime.registerSource(name, { get: () => rows, subscribe: () => () => void 0 });
1310
1310
  }
1311
1311
  runtime.flush();
1312
- return chunk5G3BEXQU_cjs.renderCanvas(runtime.input, renderOptions);
1312
+ return chunkEHH6ZDK6_cjs.renderCanvas(runtime.input, renderOptions);
1313
1313
  }
1314
1314
 
1315
1315
  exports.buildBindingGraph = buildBindingGraph;
@@ -1318,5 +1318,5 @@ exports.createBindingRuntime = createBindingRuntime;
1318
1318
  exports.createDataSource = createDataSource;
1319
1319
  exports.interactiveElements = interactiveElements;
1320
1320
  exports.renderBound = renderBound;
1321
- //# sourceMappingURL=chunk-FXGXUWSI.cjs.map
1322
- //# sourceMappingURL=chunk-FXGXUWSI.cjs.map
1321
+ //# sourceMappingURL=chunk-4KBU4CFU.cjs.map
1322
+ //# sourceMappingURL=chunk-4KBU4CFU.cjs.map