add dash-array to siblings

This commit is contained in:
axolotle
2021-04-20 15:39:41 +02:00
parent ad0266dbf8
commit eece18184e
2 changed files with 19 additions and 4 deletions
+11 -2
View File
@@ -8,7 +8,7 @@
v-for="(item, index) in links"
:key="`link_${index}`"
:d="lineGenerator([item.source, item.target])"
stroke="black"
:class="['link', item.linkType || item.target.data.linkType]"
/>
<template v-for="(node, index) in nodes">
@@ -152,8 +152,17 @@ export default {
</script>
<style lang="scss" scoped>
path {
.link {
stroke: grey;
&.siblings {
stroke-dasharray: 4;
}
&.parents {
stroke: red;
opacity: .3;
}
}
text {