File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
apps/client/src/layouts/PagesLayout/MainToolbar Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 1818 v-model =" margin"
1919 style =" width : 160px "
2020 />
21+
22+ <Gap style =" height : 16px " />
23+
24+ <q-input
25+ label =" Scale (%):"
26+ type =" number"
27+ filled
28+ dense
29+ v-model =" scale"
30+ style =" width : 160px "
31+ />
2132 </q-card-section >
2233 </template >
2334
4354
4455<script lang="ts">
4556const margin = ref (100 );
57+
58+ const scale = ref (100 );
4659 </script >
4760
4861<script setup lang="ts">
@@ -87,7 +100,7 @@ async function takeScreenshot() {
87100 ` .display-world[data-page-id="${page .value .id }"] ` ,
88101 ) as HTMLElement ,
89102 {
90- scale: 1 / page .value .camera .react .zoom ,
103+ scale: ( 1 / page .value .camera .react .zoom ) * ( scale . value / 100 ) ,
91104
92105 x: - finalMargin * page .value .camera .react .zoom + displayRect .topLeft .x ,
93106 y: - finalMargin * page .value .camera .react .zoom + displayRect .topLeft .y ,
@@ -110,7 +123,7 @@ async function takeScreenshot() {
110123
111124 const dataUrl = canvas .toDataURL (' image/png' );
112125
113- download (dataUrl , ' screenshot.png' , ' image/png' );
126+ download (dataUrl , ' DeepNotes- screenshot.png' , ' image/png' );
114127
115128 dialogRef .value .onDialogOK ();
116129}
You can’t perform that action at this time.
0 commit comments