@ngroznykh/papirus 0.5.8 → 0.5.9
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/papirus.js
CHANGED
|
@@ -11426,9 +11426,10 @@ class SvgExporter {
|
|
|
11426
11426
|
};
|
|
11427
11427
|
}
|
|
11428
11428
|
resolveMarkerConfig(edge, side) {
|
|
11429
|
-
const
|
|
11430
|
-
if (
|
|
11431
|
-
|
|
11429
|
+
const usesExplicitMarkers = edge.startMarker !== void 0 || edge.endMarker !== void 0;
|
|
11430
|
+
if (usesExplicitMarkers) {
|
|
11431
|
+
const marker = side === "start" ? edge.startMarker : edge.endMarker;
|
|
11432
|
+
return marker && marker.type !== "none" ? marker : null;
|
|
11432
11433
|
}
|
|
11433
11434
|
if (side === "end") {
|
|
11434
11435
|
return edge.arrowType === "none" ? null : { type: "arrow" };
|