Selaa lähdekoodia

Increase links arrow sizes

luis 7 vuotta sitten
vanhempi
commit
1f5b7c3c43

+ 2 - 0
browser/vue-flow/src/components/flow/link.vue

@@ -53,6 +53,8 @@ export default {
           oy2 = -oy2
         }
       }
+      ox1 += 20
+      ox2 -= 20
 
       return `
       M${x1},${y1} 

+ 3 - 2
browser/vue-flow/src/components/flow/svgdefs.svg

@@ -1,7 +1,8 @@
 <defs>
-    <marker id="head" class="flow-link__head" orient="auto" markerWidth="4" markerHeight="8" refX="0.1" refY="4">
-      <path d="M0,0 V8 L4,4 Z"/>
+    <marker id="head" class="flow-link__head" orient="auto" markerWidth="6" markerHeight="8" refX="2" refY="4">
+      <path d="M0,0 V8 L6,4 Z"/>
     </marker>
+
 		<filter x="-.1" y="-.2" width="1.2" height="1.4" id="solid-white" class="flow-socket__detail-solid">
       <feFlood flood-color="rgba(230,230,230,0.7)"/>
       <feComposite in="SourceGraphic"/>