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.
- package/CHANGELOG.md +6 -0
- package/dist/binding/index.cjs +8 -8
- package/dist/binding/index.d.cts +4 -4
- package/dist/binding/index.d.ts +4 -4
- package/dist/binding/index.js +2 -2
- package/dist/{chunk-EG7VZJZX.cjs → chunk-5JPONNKW.cjs} +7 -7
- package/dist/{chunk-EG7VZJZX.cjs.map → chunk-5JPONNKW.cjs.map} +1 -1
- package/dist/{chunk-3XPNGIMV.cjs → chunk-6TTSSFCF.cjs} +4 -4
- package/dist/{chunk-3XPNGIMV.cjs.map → chunk-6TTSSFCF.cjs.map} +1 -1
- package/dist/{chunk-UCOMSZPC.js → chunk-LLBTELO3.js} +4 -3
- package/dist/chunk-LLBTELO3.js.map +1 -0
- package/dist/{chunk-Q4OIDWT6.js → chunk-NZPLAEDJ.js} +3 -3
- package/dist/{chunk-Q4OIDWT6.js.map → chunk-NZPLAEDJ.js.map} +1 -1
- package/dist/{chunk-LDRUTQF7.js → chunk-P7HTMWBT.js} +3 -3
- package/dist/{chunk-LDRUTQF7.js.map → chunk-P7HTMWBT.js.map} +1 -1
- package/dist/{chunk-ZE2KRWOM.cjs → chunk-PSC7G6NL.cjs} +4 -3
- package/dist/chunk-PSC7G6NL.cjs.map +1 -0
- package/dist/index.cjs +14 -14
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/interaction/index.cjs +1 -1
- package/dist/interaction/index.cjs.map +1 -1
- package/dist/interaction/index.d.cts +2 -2
- package/dist/interaction/index.d.ts +2 -2
- package/dist/interaction/index.js +1 -1
- package/dist/interaction/index.js.map +1 -1
- package/dist/{render-BDO4S5uF.d.cts → render-BMhLssMa.d.cts} +1 -0
- package/dist/{render-BDO4S5uF.d.ts → render-BMhLssMa.d.ts} +1 -0
- package/dist/{runtime-DaconR36.d.ts → runtime-7Tpn2PHh.d.ts} +2 -2
- package/dist/{runtime-BJDaqo6f.d.cts → runtime-BPBjVGa6.d.cts} +2 -2
- package/dist/{runtimeTypes-BE_GI1yU.d.ts → runtimeTypes-Bt9twc5R.d.ts} +1 -1
- package/dist/{runtimeTypes-BE_nllY6.d.cts → runtimeTypes-CRv6IJs-.d.cts} +1 -1
- package/dist/stickyflow-diagram.global.js +1 -1
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/{types-CZJzycKw.d.cts → types-BnU5MZNj.d.cts} +1 -1
- package/dist/{types-Dp8JVZLB.d.ts → types-CLZFgmcG.d.ts} +1 -1
- package/dist/viewer/index.cjs +7 -7
- package/dist/viewer/index.d.cts +4 -4
- package/dist/viewer/index.d.ts +4 -4
- package/dist/viewer/index.js +2 -2
- package/dist/web-component/index.cjs +4 -4
- package/dist/web-component/index.d.cts +2 -2
- package/dist/web-component/index.d.ts +2 -2
- package/dist/web-component/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-UCOMSZPC.js.map +0 -1
- package/dist/chunk-ZE2KRWOM.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,12 @@ Two things count as breaking here that are easy to overlook:
|
|
|
17
17
|
|
|
18
18
|
## [Unreleased]
|
|
19
19
|
|
|
20
|
+
## [0.12.1] - 2026-10-31
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- An object in a `Screen` can be dragged beyond its edge. In a frame it still stays inside.
|
|
25
|
+
|
|
20
26
|
## [0.12.0] - 2026-10-31
|
|
21
27
|
|
|
22
28
|
### Added
|
package/dist/binding/index.cjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunk5JPONNKW_cjs = require('../chunk-5JPONNKW.cjs');
|
|
4
|
+
require('../chunk-PSC7G6NL.cjs');
|
|
5
5
|
require('../chunk-SKGJXCAO.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 chunk5JPONNKW_cjs.buildBindingGraph; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "collectContracts", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk5JPONNKW_cjs.collectContracts; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createBindingRuntime", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk5JPONNKW_cjs.createBindingRuntime; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "createDataSource", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk5JPONNKW_cjs.createDataSource; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "interactiveElements", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk5JPONNKW_cjs.interactiveElements; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "renderBound", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk5JPONNKW_cjs.renderBound; }
|
|
32
32
|
});
|
|
33
33
|
//# sourceMappingURL=index.cjs.map
|
|
34
34
|
//# sourceMappingURL=index.cjs.map
|
package/dist/binding/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
import '../render-
|
|
1
|
+
import { S as SflDocument, D as DataSourceContract, B as BindingDiagnostic } from '../runtimeTypes-CRv6IJs-.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-CRv6IJs-.cjs';
|
|
3
|
+
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from '../runtime-BPBjVGa6.cjs';
|
|
4
|
+
import '../render-BMhLssMa.cjs';
|
|
5
5
|
|
|
6
6
|
declare function collectContracts(sflDocument: SflDocument): {
|
|
7
7
|
contracts: Map<string, DataSourceContract>;
|
package/dist/binding/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
import '../render-
|
|
1
|
+
import { S as SflDocument, D as DataSourceContract, B as BindingDiagnostic } from '../runtimeTypes-Bt9twc5R.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-Bt9twc5R.js';
|
|
3
|
+
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from '../runtime-7Tpn2PHh.js';
|
|
4
|
+
import '../render-BMhLssMa.js';
|
|
5
5
|
|
|
6
6
|
declare function collectContracts(sflDocument: SflDocument): {
|
|
7
7
|
contracts: Map<string, DataSourceContract>;
|
package/dist/binding/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { buildBindingGraph, collectContracts, createBindingRuntime, createDataSource, interactiveElements, renderBound } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { buildBindingGraph, collectContracts, createBindingRuntime, createDataSource, interactiveElements, renderBound } from '../chunk-P7HTMWBT.js';
|
|
2
|
+
import '../chunk-LLBTELO3.js';
|
|
3
3
|
import '../chunk-4SXXMOXR.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
|
|
3
|
+
var chunkPSC7G6NL_cjs = require('./chunk-PSC7G6NL.cjs');
|
|
4
4
|
var chunkSKGJXCAO_cjs = require('./chunk-SKGJXCAO.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(chunkSKGJXCAO_cjs.expandDocument(chunkSKGJXCAO_cjs.parseSource(sfl)));
|
|
824
|
-
const input = structuredClone(
|
|
824
|
+
const input = structuredClone(chunkPSC7G6NL_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 =
|
|
969
|
+
const result = chunkPSC7G6NL_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 =
|
|
1124
|
+
const reach = chunkPSC7G6NL_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
|
|
1312
|
+
return chunkPSC7G6NL_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-
|
|
1322
|
-
//# sourceMappingURL=chunk-
|
|
1321
|
+
//# sourceMappingURL=chunk-5JPONNKW.cjs.map
|
|
1322
|
+
//# sourceMappingURL=chunk-5JPONNKW.cjs.map
|