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.
- package/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/dist/binding/index.cjs +9 -9
- package/dist/binding/index.d.cts +3 -3
- package/dist/binding/index.d.ts +3 -3
- package/dist/binding/index.js +3 -3
- package/dist/{chunk-EURX7QT3.cjs → chunk-5PJ55GPG.cjs} +883 -830
- package/dist/chunk-5PJ55GPG.cjs.map +1 -0
- package/dist/{chunk-AAP24GBG.js → chunk-EGUPN56K.js} +3 -3
- package/dist/chunk-EGUPN56K.js.map +1 -0
- package/dist/{chunk-Q6FBISNP.js → chunk-HRU6VOEC.js} +545 -331
- package/dist/chunk-HRU6VOEC.js.map +1 -0
- package/dist/{chunk-3EOG34QN.cjs → chunk-KRSX4UZ7.cjs} +308 -252
- package/dist/chunk-KRSX4UZ7.cjs.map +1 -0
- package/dist/{chunk-XNNNIOJU.js → chunk-L7CEX5JV.js} +5 -5
- package/dist/{chunk-XNNNIOJU.js.map → chunk-L7CEX5JV.js.map} +1 -1
- package/dist/{chunk-C25NWWIH.cjs → chunk-LSEMXRB5.cjs} +549 -331
- package/dist/chunk-LSEMXRB5.cjs.map +1 -0
- package/dist/{chunk-MR32IJQO.cjs → chunk-SCD3AHMY.cjs} +15 -15
- package/dist/chunk-SCD3AHMY.cjs.map +1 -0
- package/dist/{chunk-G2N3KJYJ.js → chunk-SDOHUNBW.js} +237 -184
- package/dist/chunk-SDOHUNBW.js.map +1 -0
- package/dist/{chunk-2GKXPZRL.cjs → chunk-TECWZVIM.cjs} +23 -23
- package/dist/chunk-TECWZVIM.cjs.map +1 -0
- package/dist/{chunk-C3LVKPWQ.js → chunk-VPNOVRWP.js} +279 -223
- package/dist/chunk-VPNOVRWP.js.map +1 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +33 -28
- package/dist/index.d.ts +33 -28
- package/dist/index.js +5 -5
- package/dist/interaction/index.cjs +358 -337
- package/dist/interaction/index.cjs.map +1 -1
- package/dist/interaction/index.js +133 -112
- package/dist/interaction/index.js.map +1 -1
- package/dist/{runtime-DG8X3Fwf.d.cts → runtime-Bkv7QW7H.d.cts} +1 -1
- package/dist/{runtime-kqD1RS17.d.ts → runtime-DJ4K4_HZ.d.ts} +1 -1
- package/dist/{runtimeTypes-CvjlBZds.d.cts → runtimeTypes-BvJBZLkr.d.cts} +1 -1
- package/dist/{runtimeTypes-vRaHOIHi.d.ts → runtimeTypes-C1shzoyr.d.ts} +1 -1
- package/dist/stickyflow-diagram.global.js +41 -41
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/viewer/index.cjs +9 -9
- package/dist/viewer/index.d.cts +1 -1
- package/dist/viewer/index.d.ts +1 -1
- package/dist/viewer/index.js +4 -4
- package/dist/web-component/index.cjs +6 -6
- package/dist/web-component/index.cjs.map +1 -1
- package/dist/web-component/index.js +4 -4
- package/dist/web-component/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2GKXPZRL.cjs.map +0 -1
- package/dist/chunk-3EOG34QN.cjs.map +0 -1
- package/dist/chunk-AAP24GBG.js.map +0 -1
- package/dist/chunk-C25NWWIH.cjs.map +0 -1
- package/dist/chunk-C3LVKPWQ.js.map +0 -1
- package/dist/chunk-EURX7QT3.cjs.map +0 -1
- package/dist/chunk-G2N3KJYJ.js.map +0 -1
- package/dist/chunk-MR32IJQO.cjs.map +0 -1
- 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
|
|
package/dist/binding/index.cjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
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
|
|
11
|
+
get: function () { return chunkTECWZVIM_cjs.buildBindingGraph; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "collectContracts", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkTECWZVIM_cjs.collectContracts; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createBindingRuntime", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkTECWZVIM_cjs.createBindingRuntime; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "createDataSource", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkTECWZVIM_cjs.createDataSource; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "interactiveElements", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkTECWZVIM_cjs.interactiveElements; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "renderBound", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkTECWZVIM_cjs.renderBound; }
|
|
32
32
|
});
|
|
33
33
|
//# sourceMappingURL=index.cjs.map
|
|
34
34
|
//# sourceMappingURL=index.cjs.map
|
package/dist/binding/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SflDocument, D as DataSourceContract, B as BindingDiagnostic } from '../runtimeTypes-
|
|
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-
|
|
3
|
-
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from '../runtime-
|
|
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): {
|
package/dist/binding/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SflDocument, D as DataSourceContract, B as BindingDiagnostic } from '../runtimeTypes-
|
|
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-
|
|
3
|
-
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from '../runtime-
|
|
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): {
|
package/dist/binding/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { buildBindingGraph, collectContracts, createBindingRuntime, createDataSource, interactiveElements, renderBound } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
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
|