@weasel-js/diagram-formats 1.15.2 → 1.16.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/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -903,6 +903,9 @@ function graphOut(doc, opts, format, holdsPools = false) {
|
|
|
903
903
|
if (page.data.edges.some((e) => e.waypoints !== void 0 && e.waypoints.length > 0)) {
|
|
904
904
|
warnings.add(`${format} holds no routes; connectors' bends were dropped.`);
|
|
905
905
|
}
|
|
906
|
+
if (page.data.edges.some((e) => dataEdgeStyle(e, theme).trim !== void 0)) {
|
|
907
|
+
warnings.add(`${format} draws a connector whole; trims were dropped.`);
|
|
908
|
+
}
|
|
906
909
|
return { page, theme, ...tree, byId, edges: [...page.data.edges], warnings };
|
|
907
910
|
}
|
|
908
911
|
function hexColor(css) {
|
|
@@ -1792,6 +1795,7 @@ function markerParts(end2, marker2, warn) {
|
|
|
1792
1795
|
function edgeStyle(edge, theme, warn) {
|
|
1793
1796
|
const style = dataEdgeStyle(edge, theme);
|
|
1794
1797
|
const router = edge.router ?? "straight";
|
|
1798
|
+
if (style.trim !== void 0) warn("Trims on connectors were left out; they were written whole.");
|
|
1795
1799
|
return [
|
|
1796
1800
|
["edgeStyle", router === "orthogonal" || router === "avoid" ? "orthogonalEdgeStyle" : "none"],
|
|
1797
1801
|
["curved", router === "bezier" ? 1 : void 0],
|
|
@@ -6852,6 +6856,7 @@ function readEdge3(node, labels, page, theme) {
|
|
|
6852
6856
|
label: label === void 0 ? void 0 : colorOf2(dataOf(label).fill),
|
|
6853
6857
|
width: stroke?.width,
|
|
6854
6858
|
dash: stroke?.dash,
|
|
6859
|
+
trim: stroke?.trim,
|
|
6855
6860
|
markerStart: stroke?.markerStart ?? null,
|
|
6856
6861
|
markerEnd: stroke?.markerEnd ?? null
|
|
6857
6862
|
}, {
|