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.
- package/CHANGELOG.md +14 -0
- package/dist/binding/index.cjs +9 -9
- package/dist/binding/index.d.cts +4 -4
- package/dist/binding/index.d.ts +4 -4
- package/dist/binding/index.js +3 -3
- package/dist/{chunk-5PJ55GPG.cjs → chunk-5G3BEXQU.cjs} +1069 -713
- package/dist/chunk-5G3BEXQU.cjs.map +1 -0
- package/dist/{chunk-EGUPN56K.js → chunk-BFQWCOEC.js} +3 -3
- package/dist/{chunk-EGUPN56K.js.map → chunk-BFQWCOEC.js.map} +1 -1
- package/dist/{chunk-KRSX4UZ7.cjs → chunk-F24JURN2.cjs} +293 -46
- package/dist/chunk-F24JURN2.cjs.map +1 -0
- package/dist/{chunk-TECWZVIM.cjs → chunk-FXGXUWSI.cjs} +23 -23
- package/dist/{chunk-TECWZVIM.cjs.map → chunk-FXGXUWSI.cjs.map} +1 -1
- package/dist/{chunk-HRU6VOEC.js → chunk-G6IW2IX3.js} +44 -7
- package/dist/chunk-G6IW2IX3.js.map +1 -0
- package/dist/{chunk-SDOHUNBW.js → chunk-Q6QLU6YQ.js} +428 -72
- package/dist/chunk-Q6QLU6YQ.js.map +1 -0
- package/dist/{chunk-VPNOVRWP.js → chunk-RQYZNW2I.js} +262 -15
- package/dist/chunk-RQYZNW2I.js.map +1 -0
- package/dist/{chunk-L7CEX5JV.js → chunk-UB2ANTWF.js} +4 -4
- package/dist/{chunk-L7CEX5JV.js.map → chunk-UB2ANTWF.js.map} +1 -1
- package/dist/{chunk-LSEMXRB5.cjs → chunk-UHKFJBY5.cjs} +44 -7
- package/dist/chunk-UHKFJBY5.cjs.map +1 -0
- package/dist/{chunk-SCD3AHMY.cjs → chunk-WZA3DJJH.cjs} +15 -15
- package/dist/{chunk-SCD3AHMY.cjs.map → chunk-WZA3DJJH.cjs.map} +1 -1
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/interaction/index.cjs +240 -237
- package/dist/interaction/index.cjs.map +1 -1
- package/dist/interaction/index.d.cts +3 -3
- package/dist/interaction/index.d.ts +3 -3
- package/dist/interaction/index.js +6 -3
- package/dist/interaction/index.js.map +1 -1
- package/dist/{render-DU4lYbRl.d.cts → render-BDO4S5uF.d.cts} +16 -0
- package/dist/{render-DU4lYbRl.d.ts → render-BDO4S5uF.d.ts} +16 -0
- package/dist/{runtime-Bkv7QW7H.d.cts → runtime-C-C5v9po.d.cts} +2 -2
- package/dist/{runtime-DJ4K4_HZ.d.ts → runtime-lCAfU-1Q.d.ts} +2 -2
- package/dist/{runtimeTypes-C1shzoyr.d.ts → runtimeTypes-B7p6b1Bi.d.cts} +2 -2
- package/dist/{runtimeTypes-BvJBZLkr.d.cts → runtimeTypes-BDA_CfWh.d.ts} +2 -2
- package/dist/stickyflow-diagram.global.js +197 -44
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/{types-B5jrEEcF.d.cts → types-CZJzycKw.d.cts} +1 -1
- package/dist/{types-B7IkZ0w4.d.ts → types-Dp8JVZLB.d.ts} +1 -1
- package/dist/viewer/index.cjs +9 -9
- package/dist/viewer/index.d.cts +4 -4
- package/dist/viewer/index.d.ts +4 -4
- package/dist/viewer/index.js +4 -4
- package/dist/web-component/index.cjs +6 -6
- package/dist/web-component/index.d.cts +2 -2
- package/dist/web-component/index.d.ts +2 -2
- package/dist/web-component/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-5PJ55GPG.cjs.map +0 -1
- package/dist/chunk-HRU6VOEC.js.map +0 -1
- package/dist/chunk-KRSX4UZ7.cjs.map +0 -1
- package/dist/chunk-LSEMXRB5.cjs.map +0 -1
- package/dist/chunk-SDOHUNBW.js.map +0 -1
- package/dist/chunk-VPNOVRWP.js.map +0 -1
|
@@ -478,6 +478,36 @@ var BUILT_IN_DESCRIPTORS = [
|
|
|
478
478
|
pointerScale: true,
|
|
479
479
|
size: { width: 200, height: 200 }
|
|
480
480
|
},
|
|
481
|
+
{
|
|
482
|
+
type: "hand",
|
|
483
|
+
group: "readout",
|
|
484
|
+
category: "instrument",
|
|
485
|
+
value: { type: "number", writable: false, default: 0 },
|
|
486
|
+
properties: {
|
|
487
|
+
max: { type: "number", default: 60, min: 1, max: 7200 },
|
|
488
|
+
start: { type: "number", default: 0, min: -360, max: 360 },
|
|
489
|
+
length: { type: "number", default: 0.8, min: 0.05, max: 1, step: 0.01 },
|
|
490
|
+
tail: { type: "number", default: 0, min: 0, max: 1, step: 0.01 },
|
|
491
|
+
gap: { type: "number", default: 0, min: 0, max: 1, step: 0.01 },
|
|
492
|
+
width: { type: "number", default: 6, min: 0.5, max: 80 },
|
|
493
|
+
taper: { type: "number", default: 0.4, min: 0, max: 1, step: 0.05 },
|
|
494
|
+
color: { type: "color", default: "#ffffff" },
|
|
495
|
+
root: { type: "color", default: "", optional: true },
|
|
496
|
+
fade: { type: "number", default: 0, min: 0, max: 1, step: 0.05 },
|
|
497
|
+
tipFade: { type: "number", default: 0, min: 0, max: 1, step: 0.05 },
|
|
498
|
+
soft: { type: "number", default: 0, min: 0, max: 40 },
|
|
499
|
+
bloom: { type: "number", default: 0, min: 0, max: 60 },
|
|
500
|
+
glow: { type: "number", default: 0, min: 0, max: 80 },
|
|
501
|
+
glowColor: { type: "color", default: "", optional: true },
|
|
502
|
+
hub: { type: "number", default: 0, min: 0, max: 80 },
|
|
503
|
+
hubFill: { type: "color", default: "#000000", optional: true },
|
|
504
|
+
hubRing: { type: "number", default: 2, min: 0, max: 40 },
|
|
505
|
+
animate: { type: "number", default: 0, min: 0, max: 2e3, step: 10 }
|
|
506
|
+
},
|
|
507
|
+
interaction: "none",
|
|
508
|
+
pointerScale: false,
|
|
509
|
+
size: { width: 200, height: 200, minWidth: 20, minHeight: 20, aspect: 1 }
|
|
510
|
+
},
|
|
481
511
|
{
|
|
482
512
|
type: "ruler",
|
|
483
513
|
group: "input",
|
|
@@ -1168,6 +1198,7 @@ var NAMED_BLOCK_KINDS = [
|
|
|
1168
1198
|
"Component",
|
|
1169
1199
|
"Shape",
|
|
1170
1200
|
"Text",
|
|
1201
|
+
"Image",
|
|
1171
1202
|
"Isometric",
|
|
1172
1203
|
"Dimension",
|
|
1173
1204
|
"Link",
|
|
@@ -2636,6 +2667,7 @@ var CANVAS_OBJECT_BLOCK_KINDS = [
|
|
|
2636
2667
|
"Entity",
|
|
2637
2668
|
"Shape",
|
|
2638
2669
|
"Text",
|
|
2670
|
+
"Image",
|
|
2639
2671
|
"Container",
|
|
2640
2672
|
"Path",
|
|
2641
2673
|
"Chart",
|
|
@@ -3200,6 +3232,9 @@ function declaredCanvasObjectKind(block2, properties) {
|
|
|
3200
3232
|
if (block2.kind === "Text") {
|
|
3201
3233
|
return "text";
|
|
3202
3234
|
}
|
|
3235
|
+
if (block2.kind === "Image") {
|
|
3236
|
+
return "image";
|
|
3237
|
+
}
|
|
3203
3238
|
if (block2.kind === "Isometric") {
|
|
3204
3239
|
return "isometric";
|
|
3205
3240
|
}
|
|
@@ -3260,13 +3295,14 @@ function readCanvasObjectGeometry(block2, origin, layoutProperty, positionOverri
|
|
|
3260
3295
|
|
|
3261
3296
|
// src/sflSemantic/canvasObjects/processing/presentation.ts
|
|
3262
3297
|
var STRUCTURAL_PROPERTIES = /* @__PURE__ */ new Set(["id", "kind", "text", "shape", "parent", "order", "orientation", "lanes"]);
|
|
3298
|
+
var TUPLE_PROPERTIES = /* @__PURE__ */ new Set(["crop", "imageSize"]);
|
|
3263
3299
|
function readCanvasObjectPresentation(properties) {
|
|
3264
3300
|
const presentation = {};
|
|
3265
3301
|
for (const [key, value] of properties) {
|
|
3266
3302
|
if (STRUCTURAL_PROPERTIES.has(key)) {
|
|
3267
3303
|
continue;
|
|
3268
3304
|
}
|
|
3269
|
-
const text = asString(value);
|
|
3305
|
+
const text = TUPLE_PROPERTIES.has(key) ? tupleValues(value)?.join(",") : asString(value);
|
|
3270
3306
|
if (text !== void 0) {
|
|
3271
3307
|
presentation[key] = text;
|
|
3272
3308
|
}
|
|
@@ -3593,7 +3629,7 @@ function collectBlockDiagnostics(block2, styleBlocks, layoutBlocks, diagnostics)
|
|
|
3593
3629
|
severity: "warning",
|
|
3594
3630
|
code: "unresolved-style-or-layout",
|
|
3595
3631
|
ownerId: block2.name,
|
|
3596
|
-
message: `"${reference}" is not a Style or Layout defined at the top level of the document \
|
|
3632
|
+
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.`
|
|
3597
3633
|
});
|
|
3598
3634
|
}
|
|
3599
3635
|
}
|
|
@@ -3689,7 +3725,7 @@ function collectUnsupportedChartTypes(doc) {
|
|
|
3689
3725
|
severity: "warning",
|
|
3690
3726
|
code: "unsupported-chart-type",
|
|
3691
3727
|
ownerId: block2.name,
|
|
3692
|
-
message: `Unsupported chart type '${declared}' \
|
|
3728
|
+
message: `Unsupported chart type '${declared}' \u2014 drawn as a plain series plot. Supported: ${CHART_TYPES.join(", ")}.`
|
|
3693
3729
|
});
|
|
3694
3730
|
}
|
|
3695
3731
|
}
|
|
@@ -3712,7 +3748,7 @@ function collectEmptySeries(doc) {
|
|
|
3712
3748
|
severity: "warning",
|
|
3713
3749
|
code: "series-without-values",
|
|
3714
3750
|
ownerId: series.name,
|
|
3715
|
-
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 \
|
|
3751
|
+
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.`
|
|
3716
3752
|
});
|
|
3717
3753
|
}
|
|
3718
3754
|
}
|
|
@@ -3738,7 +3774,7 @@ function collectUnsupportedGridShapes(doc) {
|
|
|
3738
3774
|
severity: "warning",
|
|
3739
3775
|
code: "unsupported-grid-shape",
|
|
3740
3776
|
ownerId: block2.name,
|
|
3741
|
-
message: `gridShape: circle isn't supported on '${chartType}' \
|
|
3777
|
+
message: `gridShape: circle isn't supported on '${chartType}' \u2014 drawn with the standard rectangular grid instead. Supported: ${[...OPTIONAL_CIRCULAR_GRID_CHART_TYPES].join(", ")}.`
|
|
3742
3778
|
});
|
|
3743
3779
|
}
|
|
3744
3780
|
}
|
|
@@ -3781,6 +3817,7 @@ function collectUnsupportedComponentTypes(sflDocument) {
|
|
|
3781
3817
|
var OBJECTS = /* @__PURE__ */ new Set([
|
|
3782
3818
|
"Shape",
|
|
3783
3819
|
"Text",
|
|
3820
|
+
"Image",
|
|
3784
3821
|
"Container",
|
|
3785
3822
|
"Chart",
|
|
3786
3823
|
"Path",
|
|
@@ -6155,5 +6192,5 @@ exports.tokenizeSource = tokenizeSource;
|
|
|
6155
6192
|
exports.topRoundedRectPath = topRoundedRectPath;
|
|
6156
6193
|
exports.wrapText = wrapText;
|
|
6157
6194
|
exports.zoneColorAtValue = zoneColorAtValue;
|
|
6158
|
-
//# sourceMappingURL=chunk-
|
|
6159
|
-
//# sourceMappingURL=chunk-
|
|
6195
|
+
//# sourceMappingURL=chunk-UHKFJBY5.cjs.map
|
|
6196
|
+
//# sourceMappingURL=chunk-UHKFJBY5.cjs.map
|