Skip to content

Commit

Permalink
move vector-effect from CSS to SVG to maybe address Safari issue #64
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rind committed Dec 14, 2021
1 parent ba22df7 commit e9920ee
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/components/NetworkMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,20 @@
<line x1="105" y1="0" x2="-105" y2="0" />
</g>
<g id="coords-min" v-else>
<line x1="0" y1="-105" x2="0" y2="105" />
<line x1="105" y1="0" x2="-105" y2="0" />
<line
vector-effect="non-scaling-stroke"
x1="0"
y1="-102"
x2="0"
y2="102"
/>
<line
vector-effect="non-scaling-stroke"
x1="102"
y1="0"
x2="-102"
y2="0"
/>
</g>

<g id="sectors">
Expand Down Expand Up @@ -120,6 +132,7 @@
<text
v-if="alteriNames"
class="textbg"
vector-effect="non-scaling-stroke"
:x="mark.x"
:y="mark.y"
:text-anchor="mark.x < 0 ? 'end' : 'start'"
Expand Down Expand Up @@ -354,7 +367,6 @@ text {
.textbg {
stroke: white;
stroke-width: 3;
vector-effect: non-scaling-stroke;
}
circle#horizon-base {
Expand All @@ -372,7 +384,6 @@ circle#horizon-overlay {
#coords-min line {
stroke: lightgray;
stroke-width: 1;
vector-effect: non-scaling-stroke;
}
line {
Expand Down

0 comments on commit e9920ee

Please sign in to comment.