Skip to content

Commit

Permalink
chore(examples): update screenshot example
Browse files Browse the repository at this point in the history
  • Loading branch information
bcakmakoglu committed Nov 6, 2022
1 parent 5433a76 commit 233aa47
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/vite/src/Screenshot/ScreenshotExample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ const elements = ref<Elements>([
])
const { screenshot } = useScreenshot()
function onClick() {
screenshot(ImageType.SVG)
}
</script>

<template>
<VueFlow v-model="elements" fit-view-on-init style="background-color: white" class="vue-flow-basic-example">
<Panel :position="PanelPosition.TopCenter">
<button @click="onClick">Click to save Screenshot</button>
<button @click="screenshot">Click to save Screenshot</button>
</Panel>
</VueFlow>
</template>

0 comments on commit 233aa47

Please sign in to comment.