Skip to content

Commit 233aa47

Browse files
committed
chore(examples): update screenshot example
1 parent 5433a76 commit 233aa47

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/vite/src/Screenshot/ScreenshotExample.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,12 @@ const elements = ref<Elements>([
1414
])
1515
1616
const { screenshot } = useScreenshot()
17-
18-
function onClick() {
19-
screenshot(ImageType.SVG)
20-
}
2117
</script>
2218

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

0 commit comments

Comments
 (0)