stickyflow 0.11.3 → 0.12.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 +17 -0
- package/dist/binding/index.cjs +9 -9
- package/dist/binding/index.d.cts +3 -3
- package/dist/binding/index.d.ts +3 -3
- package/dist/binding/index.js +3 -3
- package/dist/{chunk-WZA3DJJH.cjs → chunk-3OF37CZX.cjs} +15 -15
- package/dist/{chunk-WZA3DJJH.cjs.map → chunk-3OF37CZX.cjs.map} +1 -1
- package/dist/{chunk-V22J7Z4H.cjs → chunk-3XPNGIMV.cjs} +37 -37
- package/dist/chunk-3XPNGIMV.cjs.map +1 -0
- package/dist/{chunk-G6IW2IX3.js → chunk-4SXXMOXR.js} +31 -5
- package/dist/chunk-4SXXMOXR.js.map +1 -0
- package/dist/{chunk-GQRJSA73.cjs → chunk-EG7VZJZX.cjs} +23 -23
- package/dist/{chunk-GQRJSA73.cjs.map → chunk-EG7VZJZX.cjs.map} +1 -1
- package/dist/{chunk-BFQWCOEC.js → chunk-FYSJMUJI.js} +3 -3
- package/dist/{chunk-BFQWCOEC.js.map → chunk-FYSJMUJI.js.map} +1 -1
- package/dist/{chunk-W25SXORW.js → chunk-LDRUTQF7.js} +4 -4
- package/dist/{chunk-W25SXORW.js.map → chunk-LDRUTQF7.js.map} +1 -1
- package/dist/{chunk-IQQ5KBL6.js → chunk-Q4OIDWT6.js} +6 -6
- package/dist/chunk-Q4OIDWT6.js.map +1 -0
- package/dist/{chunk-UHKFJBY5.cjs → chunk-SKGJXCAO.cjs} +31 -5
- package/dist/chunk-SKGJXCAO.cjs.map +1 -0
- package/dist/{chunk-EBHO2FJ5.js → chunk-UCOMSZPC.js} +10 -9
- package/dist/chunk-UCOMSZPC.js.map +1 -0
- package/dist/{chunk-K5PGMZAD.cjs → chunk-ZE2KRWOM.cjs} +663 -662
- package/dist/chunk-ZE2KRWOM.cjs.map +1 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/interaction/index.cjs +275 -237
- package/dist/interaction/index.cjs.map +1 -1
- package/dist/interaction/index.js +41 -3
- package/dist/interaction/index.js.map +1 -1
- package/dist/{runtime-C-C5v9po.d.cts → runtime-BJDaqo6f.d.cts} +1 -1
- package/dist/{runtime-lCAfU-1Q.d.ts → runtime-DaconR36.d.ts} +1 -1
- package/dist/{runtimeTypes-BDA_CfWh.d.ts → runtimeTypes-BE_GI1yU.d.ts} +1 -1
- package/dist/{runtimeTypes-B7p6b1Bi.d.cts → runtimeTypes-BE_nllY6.d.cts} +1 -1
- package/dist/stickyflow-diagram.global.js +39 -39
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/viewer/index.cjs +9 -9
- package/dist/viewer/index.d.cts +1 -1
- package/dist/viewer/index.d.ts +1 -1
- package/dist/viewer/index.js +4 -4
- package/dist/web-component/index.cjs +6 -6
- package/dist/web-component/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-EBHO2FJ5.js.map +0 -1
- package/dist/chunk-G6IW2IX3.js.map +0 -1
- package/dist/chunk-IQQ5KBL6.js.map +0 -1
- package/dist/chunk-K5PGMZAD.cjs.map +0 -1
- package/dist/chunk-UHKFJBY5.cjs.map +0 -1
- package/dist/chunk-V22J7Z4H.cjs.map +0 -1
|
@@ -1190,6 +1190,7 @@ var NAMED_BLOCK_KINDS = [
|
|
|
1190
1190
|
"Group",
|
|
1191
1191
|
"Entity",
|
|
1192
1192
|
"Container",
|
|
1193
|
+
"Screen",
|
|
1193
1194
|
"Path",
|
|
1194
1195
|
"Chart",
|
|
1195
1196
|
"Widget",
|
|
@@ -2667,6 +2668,7 @@ var CANVAS_OBJECT_BLOCK_KINDS = [
|
|
|
2667
2668
|
"Text",
|
|
2668
2669
|
"Image",
|
|
2669
2670
|
"Container",
|
|
2671
|
+
"Screen",
|
|
2670
2672
|
"Path",
|
|
2671
2673
|
"Chart",
|
|
2672
2674
|
"Widget",
|
|
@@ -3218,6 +3220,9 @@ function resolveSwimlaneObject(base, properties) {
|
|
|
3218
3220
|
|
|
3219
3221
|
// src/sflSemantic/canvasObjects/processing/classification.ts
|
|
3220
3222
|
function declaredCanvasObjectKind(block2, properties) {
|
|
3223
|
+
if (block2.kind === "Screen") {
|
|
3224
|
+
return "screen";
|
|
3225
|
+
}
|
|
3221
3226
|
if (block2.kind === "Path") {
|
|
3222
3227
|
return "path";
|
|
3223
3228
|
}
|
|
@@ -3242,7 +3247,7 @@ function declaredCanvasObjectKind(block2, properties) {
|
|
|
3242
3247
|
return asString(properties.get("kind")) ?? "";
|
|
3243
3248
|
}
|
|
3244
3249
|
function canvasObjectTypeForKind(kind) {
|
|
3245
|
-
if (kind === "frame") {
|
|
3250
|
+
if (kind === "frame" || kind === "screen") {
|
|
3246
3251
|
return "frame";
|
|
3247
3252
|
}
|
|
3248
3253
|
if (kind === "swimlane") {
|
|
@@ -3397,7 +3402,7 @@ var CanvasTreeResolver = class {
|
|
|
3397
3402
|
}
|
|
3398
3403
|
#resolveChild(child, location, nextFlowPosition) {
|
|
3399
3404
|
const sourceIndex = this.#sequence++;
|
|
3400
|
-
if (child.kind === "Container") {
|
|
3405
|
+
if (child.kind === "Container" || child.kind === "Screen") {
|
|
3401
3406
|
return this.#resolveContainer(child, location, nextFlowPosition, sourceIndex);
|
|
3402
3407
|
}
|
|
3403
3408
|
if (isCanvasObjectBlockKind(child.kind)) {
|
|
@@ -3817,6 +3822,7 @@ var OBJECTS = /* @__PURE__ */ new Set([
|
|
|
3817
3822
|
"Text",
|
|
3818
3823
|
"Image",
|
|
3819
3824
|
"Container",
|
|
3825
|
+
"Screen",
|
|
3820
3826
|
"Chart",
|
|
3821
3827
|
"Path",
|
|
3822
3828
|
"Widget",
|
|
@@ -3856,6 +3862,25 @@ function collectDuplicateNames(sflDocument) {
|
|
|
3856
3862
|
return diagnostics;
|
|
3857
3863
|
}
|
|
3858
3864
|
|
|
3865
|
+
// src/sflSemantic/diagnostics/screens.ts
|
|
3866
|
+
var MODEL_SCREEN_LINES = ["device", "screen", "screenColor", "at"];
|
|
3867
|
+
function collectModelScreenLines(sflDocument) {
|
|
3868
|
+
if (Number(sflDocument.version) < 1.7) {
|
|
3869
|
+
return [];
|
|
3870
|
+
}
|
|
3871
|
+
return sflDocument.blocks.filter((block2) => block2.kind === "Model").flatMap((model) => {
|
|
3872
|
+
const properties = directProperties(model);
|
|
3873
|
+
return MODEL_SCREEN_LINES.filter((key) => properties.has(key)).map(
|
|
3874
|
+
(key) => ({
|
|
3875
|
+
severity: "warning",
|
|
3876
|
+
code: "model-screen-line",
|
|
3877
|
+
ownerId: model.name,
|
|
3878
|
+
message: `'${key}' on a Model is no longer used from sfl 1.7. Put the design into a Screen block.`
|
|
3879
|
+
})
|
|
3880
|
+
);
|
|
3881
|
+
});
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3859
3884
|
// src/sflSemantic/canvasState/resolution.ts
|
|
3860
3885
|
function createCanvasResolution(doc) {
|
|
3861
3886
|
const definitions = collectCanvasDefinitions(doc);
|
|
@@ -3867,7 +3892,8 @@ function createCanvasResolution(doc) {
|
|
|
3867
3892
|
...collectUnsupportedGridShapes(doc),
|
|
3868
3893
|
...collectEmptySeries(doc),
|
|
3869
3894
|
...collectUnsupportedComponentTypes(doc),
|
|
3870
|
-
...collectDuplicateNames(doc)
|
|
3895
|
+
...collectDuplicateNames(doc),
|
|
3896
|
+
...collectModelScreenLines(doc)
|
|
3871
3897
|
],
|
|
3872
3898
|
canvasObjectResolutionContext: createCanvasObjectPropertyReaders(definitions)
|
|
3873
3899
|
};
|
|
@@ -6035,5 +6061,5 @@ function localShapePath(type, x, y, width, height) {
|
|
|
6035
6061
|
}
|
|
6036
6062
|
|
|
6037
6063
|
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 };
|
|
6038
|
-
//# sourceMappingURL=chunk-
|
|
6039
|
-
//# sourceMappingURL=chunk-
|
|
6064
|
+
//# sourceMappingURL=chunk-4SXXMOXR.js.map
|
|
6065
|
+
//# sourceMappingURL=chunk-4SXXMOXR.js.map
|