stickyflow 0.9.2 → 0.10.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 (58) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/dist/binding/index.cjs +9 -9
  4. package/dist/binding/index.d.cts +3 -3
  5. package/dist/binding/index.d.ts +3 -3
  6. package/dist/binding/index.js +3 -3
  7. package/dist/{chunk-EURX7QT3.cjs → chunk-5PJ55GPG.cjs} +883 -830
  8. package/dist/chunk-5PJ55GPG.cjs.map +1 -0
  9. package/dist/{chunk-AAP24GBG.js → chunk-EGUPN56K.js} +3 -3
  10. package/dist/chunk-EGUPN56K.js.map +1 -0
  11. package/dist/{chunk-Q6FBISNP.js → chunk-HRU6VOEC.js} +545 -331
  12. package/dist/chunk-HRU6VOEC.js.map +1 -0
  13. package/dist/{chunk-3EOG34QN.cjs → chunk-KRSX4UZ7.cjs} +308 -252
  14. package/dist/chunk-KRSX4UZ7.cjs.map +1 -0
  15. package/dist/{chunk-XNNNIOJU.js → chunk-L7CEX5JV.js} +5 -5
  16. package/dist/{chunk-XNNNIOJU.js.map → chunk-L7CEX5JV.js.map} +1 -1
  17. package/dist/{chunk-C25NWWIH.cjs → chunk-LSEMXRB5.cjs} +549 -331
  18. package/dist/chunk-LSEMXRB5.cjs.map +1 -0
  19. package/dist/{chunk-MR32IJQO.cjs → chunk-SCD3AHMY.cjs} +15 -15
  20. package/dist/chunk-SCD3AHMY.cjs.map +1 -0
  21. package/dist/{chunk-G2N3KJYJ.js → chunk-SDOHUNBW.js} +237 -184
  22. package/dist/chunk-SDOHUNBW.js.map +1 -0
  23. package/dist/{chunk-2GKXPZRL.cjs → chunk-TECWZVIM.cjs} +23 -23
  24. package/dist/chunk-TECWZVIM.cjs.map +1 -0
  25. package/dist/{chunk-C3LVKPWQ.js → chunk-VPNOVRWP.js} +279 -223
  26. package/dist/chunk-VPNOVRWP.js.map +1 -0
  27. package/dist/index.cjs +36 -36
  28. package/dist/index.d.cts +33 -28
  29. package/dist/index.d.ts +33 -28
  30. package/dist/index.js +5 -5
  31. package/dist/interaction/index.cjs +358 -337
  32. package/dist/interaction/index.cjs.map +1 -1
  33. package/dist/interaction/index.js +133 -112
  34. package/dist/interaction/index.js.map +1 -1
  35. package/dist/{runtime-DG8X3Fwf.d.cts → runtime-Bkv7QW7H.d.cts} +1 -1
  36. package/dist/{runtime-kqD1RS17.d.ts → runtime-DJ4K4_HZ.d.ts} +1 -1
  37. package/dist/{runtimeTypes-CvjlBZds.d.cts → runtimeTypes-BvJBZLkr.d.cts} +1 -1
  38. package/dist/{runtimeTypes-vRaHOIHi.d.ts → runtimeTypes-C1shzoyr.d.ts} +1 -1
  39. package/dist/stickyflow-diagram.global.js +41 -41
  40. package/dist/stickyflow-diagram.global.js.map +1 -1
  41. package/dist/viewer/index.cjs +9 -9
  42. package/dist/viewer/index.d.cts +1 -1
  43. package/dist/viewer/index.d.ts +1 -1
  44. package/dist/viewer/index.js +4 -4
  45. package/dist/web-component/index.cjs +6 -6
  46. package/dist/web-component/index.cjs.map +1 -1
  47. package/dist/web-component/index.js +4 -4
  48. package/dist/web-component/index.js.map +1 -1
  49. package/package.json +1 -1
  50. package/dist/chunk-2GKXPZRL.cjs.map +0 -1
  51. package/dist/chunk-3EOG34QN.cjs.map +0 -1
  52. package/dist/chunk-AAP24GBG.js.map +0 -1
  53. package/dist/chunk-C25NWWIH.cjs.map +0 -1
  54. package/dist/chunk-C3LVKPWQ.js.map +0 -1
  55. package/dist/chunk-EURX7QT3.cjs.map +0 -1
  56. package/dist/chunk-G2N3KJYJ.js.map +0 -1
  57. package/dist/chunk-MR32IJQO.cjs.map +0 -1
  58. package/dist/chunk-Q6FBISNP.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -17,6 +17,22 @@ Two things count as breaking here that are easy to overlook:
17
17
 
18
18
  ## [Unreleased]
19
19
 
20
+ ## [0.10.0] - 2026-10-28
21
+
22
+ ### Added
23
+
24
+ - The `Template` and `Use` blocks describe blocks once and set them again and again. A `Template` holds the blocks, and its own properties are the parameters with their default values, as `color: "#c4315f"`. A `Use` names the Template after the colon, as in `Use oak : tree`, and gives `at` for the place and a value for any parameter. In the blocks of the Template, `x` and `y` are the place of the Use, the parameters are names, and the computed values of `Repeat` work, so `size: 12, height * 1.6, 12` is valid. The blocks that a Use makes are named after it, as `oak_trunk`. A `Use` can be in a `Repeat`, so a wood is a Repeat of Uses, and a Template can use another one up to four deep. Both are worked out when a document is read, as `Repeat` is, and the text is not changed. Removing a block that a Use made removes the Use, or the cell of the Repeat that holds it.
25
+
26
+ ## [0.9.3] - 2026-10-28
27
+
28
+ ### Fixed
29
+
30
+ - A block that a `Repeat` made could be selected but not removed, as it has no lines of its own and the removal found nothing to cut. `removeCanvasObject` now keeps the cell of that block out of the Repeat, by adding it to the `where` of the Repeat, so the block and the other blocks of that cell are gone and every other cell is as it was. Moving, resizing and styling a made block still change nothing, as they have to change the Repeat.
31
+
32
+ ### Changed
33
+
34
+ - The language is version 1.6, which is the version that has the `Repeat` block. Documents that declare an earlier version are read as before, as the reader takes the version number as it is written.
35
+
20
36
  ## [0.9.2] - 2026-10-28
21
37
 
22
38
  ### Added
package/README.md CHANGED
@@ -174,7 +174,7 @@ Binding and live input need only `stickyflow/binding` and `stickyflow/viewer`. E
174
174
 
175
175
  ## What it draws
176
176
 
177
- Shapes, links, frames, swimlanes, paths and text. Fifteen chart types. Isometric objects. A Repeat block puts many alike parts on a grid from a few lines. Shader surfaces and components. Data sources with bindings, and events with handlers, so a document can react to data and input.
177
+ Shapes, links, frames, swimlanes, paths and text. Fifteen chart types. Isometric objects. A Repeat block puts many alike parts on a grid from a few lines. A Template describes a part once, and a Use sets it again with values of its own. Shader surfaces and components. Data sources with bindings, and events with handlers, so a document can react to data and input.
178
178
 
179
179
  ## Principles
180
180
 
@@ -1,34 +1,34 @@
1
1
  'use strict';
2
2
 
3
- var chunk2GKXPZRL_cjs = require('../chunk-2GKXPZRL.cjs');
4
- require('../chunk-EURX7QT3.cjs');
5
- require('../chunk-C25NWWIH.cjs');
3
+ var chunkTECWZVIM_cjs = require('../chunk-TECWZVIM.cjs');
4
+ require('../chunk-5PJ55GPG.cjs');
5
+ require('../chunk-LSEMXRB5.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "buildBindingGraph", {
10
10
  enumerable: true,
11
- get: function () { return chunk2GKXPZRL_cjs.buildBindingGraph; }
11
+ get: function () { return chunkTECWZVIM_cjs.buildBindingGraph; }
12
12
  });
13
13
  Object.defineProperty(exports, "collectContracts", {
14
14
  enumerable: true,
15
- get: function () { return chunk2GKXPZRL_cjs.collectContracts; }
15
+ get: function () { return chunkTECWZVIM_cjs.collectContracts; }
16
16
  });
17
17
  Object.defineProperty(exports, "createBindingRuntime", {
18
18
  enumerable: true,
19
- get: function () { return chunk2GKXPZRL_cjs.createBindingRuntime; }
19
+ get: function () { return chunkTECWZVIM_cjs.createBindingRuntime; }
20
20
  });
21
21
  Object.defineProperty(exports, "createDataSource", {
22
22
  enumerable: true,
23
- get: function () { return chunk2GKXPZRL_cjs.createDataSource; }
23
+ get: function () { return chunkTECWZVIM_cjs.createDataSource; }
24
24
  });
25
25
  Object.defineProperty(exports, "interactiveElements", {
26
26
  enumerable: true,
27
- get: function () { return chunk2GKXPZRL_cjs.interactiveElements; }
27
+ get: function () { return chunkTECWZVIM_cjs.interactiveElements; }
28
28
  });
29
29
  Object.defineProperty(exports, "renderBound", {
30
30
  enumerable: true,
31
- get: function () { return chunk2GKXPZRL_cjs.renderBound; }
31
+ get: function () { return chunkTECWZVIM_cjs.renderBound; }
32
32
  });
33
33
  //# sourceMappingURL=index.cjs.map
34
34
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
- import { S as SflDocument, D as DataSourceContract, B as BindingDiagnostic } from '../runtimeTypes-CvjlBZds.cjs';
2
- export { 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, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from '../runtimeTypes-CvjlBZds.cjs';
3
- export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from '../runtime-DG8X3Fwf.cjs';
1
+ import { S as SflDocument, D as DataSourceContract, B as BindingDiagnostic } from '../runtimeTypes-BvJBZLkr.cjs';
2
+ export { 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, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from '../runtimeTypes-BvJBZLkr.cjs';
3
+ export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from '../runtime-Bkv7QW7H.cjs';
4
4
  import '../render-DU4lYbRl.cjs';
5
5
 
6
6
  declare function collectContracts(sflDocument: SflDocument): {
@@ -1,6 +1,6 @@
1
- import { S as SflDocument, D as DataSourceContract, B as BindingDiagnostic } from '../runtimeTypes-vRaHOIHi.js';
2
- export { 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, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from '../runtimeTypes-vRaHOIHi.js';
3
- export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from '../runtime-kqD1RS17.js';
1
+ import { S as SflDocument, D as DataSourceContract, B as BindingDiagnostic } from '../runtimeTypes-C1shzoyr.js';
2
+ export { 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, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from '../runtimeTypes-C1shzoyr.js';
3
+ export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from '../runtime-DJ4K4_HZ.js';
4
4
  import '../render-DU4lYbRl.js';
5
5
 
6
6
  declare function collectContracts(sflDocument: SflDocument): {
@@ -1,5 +1,5 @@
1
- export { buildBindingGraph, collectContracts, createBindingRuntime, createDataSource, interactiveElements, renderBound } from '../chunk-XNNNIOJU.js';
2
- import '../chunk-G2N3KJYJ.js';
3
- import '../chunk-Q6FBISNP.js';
1
+ export { buildBindingGraph, collectContracts, createBindingRuntime, createDataSource, interactiveElements, renderBound } from '../chunk-L7CEX5JV.js';
2
+ import '../chunk-SDOHUNBW.js';
3
+ import '../chunk-HRU6VOEC.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map