stickyflow 0.10.0 → 0.11.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 (60) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/binding/index.cjs +9 -9
  3. package/dist/binding/index.d.cts +4 -4
  4. package/dist/binding/index.d.ts +4 -4
  5. package/dist/binding/index.js +3 -3
  6. package/dist/{chunk-5PJ55GPG.cjs → chunk-5G3BEXQU.cjs} +1069 -713
  7. package/dist/chunk-5G3BEXQU.cjs.map +1 -0
  8. package/dist/{chunk-EGUPN56K.js → chunk-BFQWCOEC.js} +3 -3
  9. package/dist/{chunk-EGUPN56K.js.map → chunk-BFQWCOEC.js.map} +1 -1
  10. package/dist/{chunk-KRSX4UZ7.cjs → chunk-F24JURN2.cjs} +293 -46
  11. package/dist/chunk-F24JURN2.cjs.map +1 -0
  12. package/dist/{chunk-TECWZVIM.cjs → chunk-FXGXUWSI.cjs} +23 -23
  13. package/dist/{chunk-TECWZVIM.cjs.map → chunk-FXGXUWSI.cjs.map} +1 -1
  14. package/dist/{chunk-HRU6VOEC.js → chunk-G6IW2IX3.js} +44 -7
  15. package/dist/chunk-G6IW2IX3.js.map +1 -0
  16. package/dist/{chunk-SDOHUNBW.js → chunk-Q6QLU6YQ.js} +428 -72
  17. package/dist/chunk-Q6QLU6YQ.js.map +1 -0
  18. package/dist/{chunk-VPNOVRWP.js → chunk-RQYZNW2I.js} +262 -15
  19. package/dist/chunk-RQYZNW2I.js.map +1 -0
  20. package/dist/{chunk-L7CEX5JV.js → chunk-UB2ANTWF.js} +4 -4
  21. package/dist/{chunk-L7CEX5JV.js.map → chunk-UB2ANTWF.js.map} +1 -1
  22. package/dist/{chunk-LSEMXRB5.cjs → chunk-UHKFJBY5.cjs} +44 -7
  23. package/dist/chunk-UHKFJBY5.cjs.map +1 -0
  24. package/dist/{chunk-SCD3AHMY.cjs → chunk-WZA3DJJH.cjs} +15 -15
  25. package/dist/{chunk-SCD3AHMY.cjs.map → chunk-WZA3DJJH.cjs.map} +1 -1
  26. package/dist/index.cjs +36 -36
  27. package/dist/index.d.cts +5 -5
  28. package/dist/index.d.ts +5 -5
  29. package/dist/index.js +5 -5
  30. package/dist/interaction/index.cjs +240 -237
  31. package/dist/interaction/index.cjs.map +1 -1
  32. package/dist/interaction/index.d.cts +3 -3
  33. package/dist/interaction/index.d.ts +3 -3
  34. package/dist/interaction/index.js +6 -3
  35. package/dist/interaction/index.js.map +1 -1
  36. package/dist/{render-DU4lYbRl.d.cts → render-BDO4S5uF.d.cts} +16 -0
  37. package/dist/{render-DU4lYbRl.d.ts → render-BDO4S5uF.d.ts} +16 -0
  38. package/dist/{runtime-Bkv7QW7H.d.cts → runtime-C-C5v9po.d.cts} +2 -2
  39. package/dist/{runtime-DJ4K4_HZ.d.ts → runtime-lCAfU-1Q.d.ts} +2 -2
  40. package/dist/{runtimeTypes-C1shzoyr.d.ts → runtimeTypes-B7p6b1Bi.d.cts} +2 -2
  41. package/dist/{runtimeTypes-BvJBZLkr.d.cts → runtimeTypes-BDA_CfWh.d.ts} +2 -2
  42. package/dist/stickyflow-diagram.global.js +197 -44
  43. package/dist/stickyflow-diagram.global.js.map +1 -1
  44. package/dist/{types-B5jrEEcF.d.cts → types-CZJzycKw.d.cts} +1 -1
  45. package/dist/{types-B7IkZ0w4.d.ts → types-Dp8JVZLB.d.ts} +1 -1
  46. package/dist/viewer/index.cjs +9 -9
  47. package/dist/viewer/index.d.cts +4 -4
  48. package/dist/viewer/index.d.ts +4 -4
  49. package/dist/viewer/index.js +4 -4
  50. package/dist/web-component/index.cjs +6 -6
  51. package/dist/web-component/index.d.cts +2 -2
  52. package/dist/web-component/index.d.ts +2 -2
  53. package/dist/web-component/index.js +4 -4
  54. package/package.json +1 -1
  55. package/dist/chunk-5PJ55GPG.cjs.map +0 -1
  56. package/dist/chunk-HRU6VOEC.js.map +0 -1
  57. package/dist/chunk-KRSX4UZ7.cjs.map +0 -1
  58. package/dist/chunk-LSEMXRB5.cjs.map +0 -1
  59. package/dist/chunk-SDOHUNBW.js.map +0 -1
  60. package/dist/chunk-VPNOVRWP.js.map +0 -1
@@ -476,6 +476,36 @@ var BUILT_IN_DESCRIPTORS = [
476
476
  pointerScale: true,
477
477
  size: { width: 200, height: 200 }
478
478
  },
479
+ {
480
+ type: "hand",
481
+ group: "readout",
482
+ category: "instrument",
483
+ value: { type: "number", writable: false, default: 0 },
484
+ properties: {
485
+ max: { type: "number", default: 60, min: 1, max: 7200 },
486
+ start: { type: "number", default: 0, min: -360, max: 360 },
487
+ length: { type: "number", default: 0.8, min: 0.05, max: 1, step: 0.01 },
488
+ tail: { type: "number", default: 0, min: 0, max: 1, step: 0.01 },
489
+ gap: { type: "number", default: 0, min: 0, max: 1, step: 0.01 },
490
+ width: { type: "number", default: 6, min: 0.5, max: 80 },
491
+ taper: { type: "number", default: 0.4, min: 0, max: 1, step: 0.05 },
492
+ color: { type: "color", default: "#ffffff" },
493
+ root: { type: "color", default: "", optional: true },
494
+ fade: { type: "number", default: 0, min: 0, max: 1, step: 0.05 },
495
+ tipFade: { type: "number", default: 0, min: 0, max: 1, step: 0.05 },
496
+ soft: { type: "number", default: 0, min: 0, max: 40 },
497
+ bloom: { type: "number", default: 0, min: 0, max: 60 },
498
+ glow: { type: "number", default: 0, min: 0, max: 80 },
499
+ glowColor: { type: "color", default: "", optional: true },
500
+ hub: { type: "number", default: 0, min: 0, max: 80 },
501
+ hubFill: { type: "color", default: "#000000", optional: true },
502
+ hubRing: { type: "number", default: 2, min: 0, max: 40 },
503
+ animate: { type: "number", default: 0, min: 0, max: 2e3, step: 10 }
504
+ },
505
+ interaction: "none",
506
+ pointerScale: false,
507
+ size: { width: 200, height: 200, minWidth: 20, minHeight: 20, aspect: 1 }
508
+ },
479
509
  {
480
510
  type: "ruler",
481
511
  group: "input",
@@ -1166,6 +1196,7 @@ var NAMED_BLOCK_KINDS = [
1166
1196
  "Component",
1167
1197
  "Shape",
1168
1198
  "Text",
1199
+ "Image",
1169
1200
  "Isometric",
1170
1201
  "Dimension",
1171
1202
  "Link",
@@ -2634,6 +2665,7 @@ var CANVAS_OBJECT_BLOCK_KINDS = [
2634
2665
  "Entity",
2635
2666
  "Shape",
2636
2667
  "Text",
2668
+ "Image",
2637
2669
  "Container",
2638
2670
  "Path",
2639
2671
  "Chart",
@@ -3198,6 +3230,9 @@ function declaredCanvasObjectKind(block2, properties) {
3198
3230
  if (block2.kind === "Text") {
3199
3231
  return "text";
3200
3232
  }
3233
+ if (block2.kind === "Image") {
3234
+ return "image";
3235
+ }
3201
3236
  if (block2.kind === "Isometric") {
3202
3237
  return "isometric";
3203
3238
  }
@@ -3258,13 +3293,14 @@ function readCanvasObjectGeometry(block2, origin, layoutProperty, positionOverri
3258
3293
 
3259
3294
  // src/sflSemantic/canvasObjects/processing/presentation.ts
3260
3295
  var STRUCTURAL_PROPERTIES = /* @__PURE__ */ new Set(["id", "kind", "text", "shape", "parent", "order", "orientation", "lanes"]);
3296
+ var TUPLE_PROPERTIES = /* @__PURE__ */ new Set(["crop", "imageSize"]);
3261
3297
  function readCanvasObjectPresentation(properties) {
3262
3298
  const presentation = {};
3263
3299
  for (const [key, value] of properties) {
3264
3300
  if (STRUCTURAL_PROPERTIES.has(key)) {
3265
3301
  continue;
3266
3302
  }
3267
- const text = asString(value);
3303
+ const text = TUPLE_PROPERTIES.has(key) ? tupleValues(value)?.join(",") : asString(value);
3268
3304
  if (text !== void 0) {
3269
3305
  presentation[key] = text;
3270
3306
  }
@@ -3591,7 +3627,7 @@ function collectBlockDiagnostics(block2, styleBlocks, layoutBlocks, diagnostics)
3591
3627
  severity: "warning",
3592
3628
  code: "unresolved-style-or-layout",
3593
3629
  ownerId: block2.name,
3594
- message: `"${reference}" is not a Style or Layout defined at the top level of the document \xC3\xA2\xE2\u201A\xAC\xE2\u20AC\x9D "${block2.name}" gets no shape, fill, or stroke from it.`
3630
+ message: `"${reference}" is not a Style or Layout defined at the top level of the document \u2014 "${block2.name}" gets no shape, fill, or stroke from it.`
3595
3631
  });
3596
3632
  }
3597
3633
  }
@@ -3687,7 +3723,7 @@ function collectUnsupportedChartTypes(doc) {
3687
3723
  severity: "warning",
3688
3724
  code: "unsupported-chart-type",
3689
3725
  ownerId: block2.name,
3690
- message: `Unsupported chart type '${declared}' \xC3\u0192\xC2\xA2\xC3\xA2\xE2\u20AC\u0161\xC2\xAC\xC3\xA2\xE2\u201A\xAC\xC2\x9D drawn as a plain series plot. Supported: ${CHART_TYPES.join(", ")}.`
3726
+ message: `Unsupported chart type '${declared}' \u2014 drawn as a plain series plot. Supported: ${CHART_TYPES.join(", ")}.`
3691
3727
  });
3692
3728
  }
3693
3729
  }
@@ -3710,7 +3746,7 @@ function collectEmptySeries(doc) {
3710
3746
  severity: "warning",
3711
3747
  code: "series-without-values",
3712
3748
  ownerId: series.name,
3713
- message: `Series '${series.name}' has no values. If this was meant to be an Axis or Rule, it needs that keyword in front of the name \xC3\u0192\xC2\xA2\xC3\xA2\xE2\u20AC\u0161\xC2\xAC\xC3\xA2\xE2\u201A\xAC\xC2\x9D inside data{}, a bare name is read as a Series.`
3749
+ message: `Series '${series.name}' has no values. If this was meant to be an Axis or Rule, it needs that keyword in front of the name \u2014 inside data{}, a bare name is read as a Series.`
3714
3750
  });
3715
3751
  }
3716
3752
  }
@@ -3736,7 +3772,7 @@ function collectUnsupportedGridShapes(doc) {
3736
3772
  severity: "warning",
3737
3773
  code: "unsupported-grid-shape",
3738
3774
  ownerId: block2.name,
3739
- message: `gridShape: circle isn't supported on '${chartType}' \xC3\u0192\xC2\xA2\xC3\xA2\xE2\u20AC\u0161\xC2\xAC\xC3\xA2\xE2\u201A\xAC\xC2\x9D drawn with the standard rectangular grid instead. Supported: ${[...OPTIONAL_CIRCULAR_GRID_CHART_TYPES].join(", ")}.`
3775
+ message: `gridShape: circle isn't supported on '${chartType}' \u2014 drawn with the standard rectangular grid instead. Supported: ${[...OPTIONAL_CIRCULAR_GRID_CHART_TYPES].join(", ")}.`
3740
3776
  });
3741
3777
  }
3742
3778
  }
@@ -3779,6 +3815,7 @@ function collectUnsupportedComponentTypes(sflDocument) {
3779
3815
  var OBJECTS = /* @__PURE__ */ new Set([
3780
3816
  "Shape",
3781
3817
  "Text",
3818
+ "Image",
3782
3819
  "Container",
3783
3820
  "Chart",
3784
3821
  "Path",
@@ -5998,5 +6035,5 @@ function localShapePath(type, x, y, width, height) {
5998
6035
  }
5999
6036
 
6000
6037
  export { AXIS_COS, AXIS_SIN, BAR_LABEL, CATEGORY_LABEL_ROW, CHART_COLORS, CHART_TITLE_PROP, CHART_TYPES, COMPONENT_CATEGORIES, CORNER_RADIUS_ATTR, DEFAULT_FONT, DEFAULT_HEATMAP_ZONES, DEFAULT_HEX_RADIUS, DEFAULT_ROLLING_NUMBER_STYLE, DEFAULT_ZONE_FILL, DOM_CONTRACT_VERSION, EMPTY_BOUNDS, ISOMETRIC_LABEL_OFFSET_ATTR, ISOMETRIC_SIZE_ATTR, LABEL_WIDTH, LEADER_INSET, PATH_CLOSED_ATTR, PATH_POINTS_ATTR, PATH_POINT_INDEX_ATTR, PATH_TENSION_ATTR, SQUARE_CORNER_ATTR, SYMBOL_BOUNDS_ATTR, SYMBOL_POINTS_ATTR, SYMBOL_TENSION_ATTR, VISIBLE_ISOMETRIC_FACES, angleForAxisValue, axisBands, axisLabelProp, barCategoryCount, barLabelSize, barPath, barShapePath, bottomRoundedRectPath, boxBounds, calculateLinkRoute, canonicalizeSource, categoryProp, chartText, chartTicks, cleanFootprint, clipSegmentToRect, colorWithAlpha, componentRegistryVersion, componentTypes, computeBoxplotStats, contrastTextColor, cornersRoundedRectPath, createPieGeometry, createPieSlicePath, createVerticalErrorWhiskerNode, deriveFaceFills, edgePointToward, elementCenter, ellipsizeToWidth, errorBarRange, estimateTextWidth, expandDocument, extrudeFootprint, finite, flattenPath, formatBarLabel, formatFieldValue, formatRollingNumber, freeformPathData, gapInsetAngle, getComponentDescriptor, getLineMidpoint, heuristicRichMeasure, horizontalRows, hsvToRgb, interpolateHexColorStops, isBuiltInComponentType, isChartObject, isDimensionObject, isGenericComponent, isHorizontalBar, isIsometricObject, isLightColor, isPathObject, isSwimlaneObject, isometricBounds, isometricFaceCenter, isometricFaces, isometricTopFaceCenter, labelAboveFrame, labelBelowFrame, labelGapDash, labelTilt, leftRoundedRectPath, linePathData, localShapePath, mapChartValue, maxApexCornerRadius, maxPieCornerRadius, paint, parseHexRgb, parseSource, pathBounds, pathToSymbol, personLabelArea, pieApexRadius, pieArcPoint, pieUsesInnerArc, pillCornerRadius, pillPath, pointAtNormalizedPort, pointAtPort, radarCategoryCount, radarPointAt, radarRadius, radarRadiusForValue, radarSeriesPath, radarValueAtPoint, radarVertexPoint, registerComponentDescriptor, relativeOffsetOnRectangleSide, renderPieLabels, representativeColor, resolveChartShadow, resolvePieRadii, resolveRollingNumberStyle, rgbToHex, rgbToHsv, rightRoundedRectPath, rotatedBounds, roundedBarPath, roundedOrthogonalPathData, roundedPolygonPath, rowTop, ruleAtProp, ruleTextProp, sameHueContrastColor, sameHueTint, segmentedBarPath, seriesColorProp, seriesLabelOffsetXProp, seriesLabelOffsetYProp, seriesLabelProp, seriesValueColorProp, seriesValueProp, sflToCanvasState, shadeFill, stackRank, stackSequence, stackedSegment, symbolToPath, tag, tiltedLabelRoom, tokenizeSource, topRoundedRectPath, wrapText, zoneColorAtValue };
6001
- //# sourceMappingURL=chunk-HRU6VOEC.js.map
6002
- //# sourceMappingURL=chunk-HRU6VOEC.js.map
6038
+ //# sourceMappingURL=chunk-G6IW2IX3.js.map
6039
+ //# sourceMappingURL=chunk-G6IW2IX3.js.map