Skip to content

Commit 519d8b2

Browse files
committed
Improvement - Atom - PenAndPaper - Smooth current path too
1 parent 2d10424 commit 519d8b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/atoms/PenAndPaper.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ const range = ref(null);
358358
<circle v-if="path.path.replace('M', '').split(' ').length === 2" :cx="path.path.replace('M', '').split(' ')[0]" :cy="path.path.replace('M', '').split(' ')[1]" :r="path.strokeWidth / 2" :fill="path.color"/>
359359
<path v-else class="vue-ui-pen-and-paper-path" :d="path.path" :stroke="path.color" :stroke-width="path.strokeWidth" fill="none" />
360360
</template>
361-
<path class="vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing" v-if="isDrawing" :d="currentPath" :stroke="currentColor" :stroke-width="strokeWidth * 1.1" fill="none" />
361+
<path class="vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing" v-if="isDrawing" :d="smoothPath(currentPath)" :stroke="currentColor" :stroke-width="strokeWidth * 1.1" fill="none" />
362362
</svg>
363363
</template>
364364

0 commit comments

Comments
 (0)