Skip to content

Instantly share code, notes, and snippets.

View boriswinner's full-sized avatar

Boris Timofeenko boriswinner

  • St. Petersburg
View GitHub Profile
@boriswinner
boriswinner / UsageScript.vue
Created February 27, 2024 05:56
PaperJS + Vue 3 Composition API: Drawing Tool
<script setup lang="ts">
import VectorCanvas from "path/to/componentVectorCanvas.vue";
const drawingSVG = ref()
</script>
<template>
<VectorCanvas ref="signCanvas" :width="400" :height="300" />
<button color="white" text-color="black" label="Apply" @click="drawingSVG = signCanvas.saveImage()" />
</template>