Skip to content

Commit

Permalink
Merge pull request #8 from CatsJuice/fix/export-svg-size
Browse files Browse the repository at this point in the history
perf(svg-canvas): reduce accuracy of mask, closes #7
  • Loading branch information
CatsJuice authored Jul 25, 2023
2 parents 8f2f8aa + 1c31983 commit b4e557f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SvgCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const paths = computed(() => lines.value.map(line => ({
} as any)))
const brushworkLines = computed(() => lines.value.map((line) => {
const points = getStroke(line, props.brushOptions)
const d = `M${points.map(p => p.join(',')).join('L')}Z`
const d = `M${points.map(p => p.map(v => v.toFixed(2)).join(',')).join('L')}Z`
return { d }
}))
Expand Down

0 comments on commit b4e557f

Please sign in to comment.