stickyflow 0.11.2 → 0.11.3

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkEHH6ZDK6_cjs = require('./chunk-EHH6ZDK6.cjs');
3
+ var chunkK5PGMZAD_cjs = require('./chunk-K5PGMZAD.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(chunkEHH6ZDK6_cjs.sflToRenderInput(sfl));
824
+ const input = structuredClone(chunkK5PGMZAD_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 = chunkEHH6ZDK6_cjs.renderCanvas(state.input, { ...state.options.renderOptions, linkHitAreas: true });
969
+ const result = chunkK5PGMZAD_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 = chunkEHH6ZDK6_cjs.sliderReach(properties.variant, vertical ? width : height);
1124
+ const reach = chunkK5PGMZAD_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 chunkEHH6ZDK6_cjs.renderCanvas(runtime.input, renderOptions);
1312
+ return chunkK5PGMZAD_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-4KBU4CFU.cjs.map
1322
- //# sourceMappingURL=chunk-4KBU4CFU.cjs.map
1321
+ //# sourceMappingURL=chunk-GQRJSA73.cjs.map
1322
+ //# sourceMappingURL=chunk-GQRJSA73.cjs.map