stickyflow 0.9.0 → 0.9.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.js +2 -2
- package/dist/{chunk-YSXD5IVZ.cjs → chunk-5EY7EK5V.cjs} +21 -6
- package/dist/chunk-5EY7EK5V.cjs.map +1 -0
- package/dist/{chunk-ZCGZJBAT.js → chunk-7ZEC7AB4.js} +3 -3
- package/dist/{chunk-ZCGZJBAT.js.map → chunk-7ZEC7AB4.js.map} +1 -1
- package/dist/{chunk-B3YRZVMR.cjs → chunk-BL5NCXS4.cjs} +7 -7
- package/dist/{chunk-B3YRZVMR.cjs.map → chunk-BL5NCXS4.cjs.map} +1 -1
- package/dist/{chunk-BUVUJMWT.js → chunk-IKTSCLIK.js} +3 -3
- package/dist/{chunk-BUVUJMWT.js.map → chunk-IKTSCLIK.js.map} +1 -1
- package/dist/{chunk-SQBF2BKT.cjs → chunk-RUSNRDLI.cjs} +4 -4
- package/dist/{chunk-SQBF2BKT.cjs.map → chunk-RUSNRDLI.cjs.map} +1 -1
- package/dist/{chunk-FS6L462E.js → chunk-TH2HFMEL.js} +21 -6
- package/dist/chunk-TH2HFMEL.js.map +1 -0
- package/dist/index.cjs +14 -14
- package/dist/index.js +3 -3
- package/dist/stickyflow-diagram.global.js +31 -31
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/viewer/index.cjs +7 -7
- package/dist/viewer/index.js +2 -2
- package/dist/web-component/index.cjs +4 -4
- package/dist/web-component/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-FS6L462E.js.map +0 -1
- package/dist/chunk-YSXD5IVZ.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5EY7EK5V_cjs = require('./chunk-5EY7EK5V.cjs');
|
|
4
4
|
var chunkQL7MNEMT_cjs = require('./chunk-QL7MNEMT.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(chunkQL7MNEMT_cjs.expandRepeats(chunkQL7MNEMT_cjs.parseSource(sfl)));
|
|
824
|
-
const input = structuredClone(
|
|
824
|
+
const input = structuredClone(chunk5EY7EK5V_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 = chunk5EY7EK5V_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 = chunk5EY7EK5V_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 chunk5EY7EK5V_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-BL5NCXS4.cjs.map
|
|
1322
|
+
//# sourceMappingURL=chunk-BL5NCXS4.cjs.map
|