Skip to content

Commit e124c2b

Browse files
committed
Fix - Print - Add warmup for domToPng method in Safari
1 parent 835403e commit e124c2b

39 files changed

+62
-39
lines changed

src/components/vue-ui-3d-bar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ async function getImage({ scale = 2} = {}) {
530530
if (!bar3dChart.value) return
531531
const { width, height } = bar3dChart.value.getBoundingClientRect();
532532
const aspectRatio = width / height;
533-
const { imageUri, base64 } = await img(({ domElement: bar3dChart.value, base64: true, img: true, scale }))
533+
const { imageUri, base64 } = await img({ domElement: bar3dChart.value, base64: true, img: true, scale })
534534
return {
535535
imageUri,
536536
base64,

src/components/vue-ui-age-pyramid.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ async function getImage({ scale = 2} = {}) {
460460
if (!agePyramid.value) return
461461
const { width, height } = agePyramid.value.getBoundingClientRect();
462462
const aspectRatio = width / height;
463-
const { imageUri, base64 } = await img(({ domElement: agePyramid.value, base64: true, img: true, scale}))
463+
const { imageUri, base64 } = await img({ domElement: agePyramid.value, base64: true, img: true, scale})
464464
return {
465465
imageUri,
466466
base64,

src/components/vue-ui-bullet.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ async function getImage({ scale = 2} = {}) {
361361
if (!bulletChart.value) return
362362
const { width, height } = bulletChart.value.getBoundingClientRect();
363363
const aspectRatio = width / height;
364-
const { imageUri, base64 } = await img(({ domElement: bulletChart.value, base64: true, img: true, scale}))
364+
const { imageUri, base64 } = await img({ domElement: bulletChart.value, base64: true, img: true, scale})
365365
return {
366366
imageUri,
367367
base64,

src/components/vue-ui-chestnut.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ async function getImage({ scale = 2} = {}) {
538538
if (!chestnutChart.value) return;
539539
const { width, height } = chestnutChart.value.getBoundingClientRect();
540540
const aspectRatio = width / height;
541-
const { imageUri, base64 } = await img(({ domElement: chestnutChart.value, base64: true, img: true, scale}))
541+
const { imageUri, base64 } = await img({ domElement: chestnutChart.value, base64: true, img: true, scale})
542542
return {
543543
imageUri,
544544
base64,

src/components/vue-ui-chord.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ async function getImage({ scale = 2} = {}) {
813813
if (!chordChart.value) return
814814
const { width, height } = chordChart.value.getBoundingClientRect();
815815
const aspectRatio = width / height;
816-
const { imageUri, base64 } = await img(({ domElement: chordChart.value, base64: true, img: true, scale }))
816+
const { imageUri, base64 } = await img({ domElement: chordChart.value, base64: true, img: true, scale })
817817
return {
818818
imageUri,
819819
base64,

src/components/vue-ui-circle-pack.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ async function getImage({ scale = 2} = {}) {
449449
if (!circlePackChart.value) return;
450450
const { width, height } = circlePackChart.value.getBoundingClientRect();
451451
const aspectRatio = width / height;
452-
const { imageUri, base64 } = await img(({ domElement: circlePackChart.value, base64: true, img: true, scale}))
452+
const { imageUri, base64 } = await img({ domElement: circlePackChart.value, base64: true, img: true, scale})
453453
return {
454454
imageUri,
455455
base64,

src/components/vue-ui-donut-evolution.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ async function getImage({ scale = 2} = {}) {
624624
if (!donutEvolutionChart.value) return;
625625
const { width, height } = donutEvolutionChart.value.getBoundingClientRect();
626626
const aspectRatio = width / height;
627-
const { imageUri, base64 } = await img(({ domElement: donutEvolutionChart.value, base64: true, img: true, scale}))
627+
const { imageUri, base64 } = await img({ domElement: donutEvolutionChart.value, base64: true, img: true, scale})
628628
return {
629629
imageUri,
630630
base64,

src/components/vue-ui-donut.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ async function getImage({ scale = 2} = {}) {
812812
if (!donutChart.value) return
813813
const { width, height } = donutChart.value.getBoundingClientRect()
814814
const aspectRatio = width / height
815-
const { imageUri, base64 } = await img(({ domElement: donutChart.value, base64: true, img: true, scale}))
815+
const { imageUri, base64 } = await img({ domElement: donutChart.value, base64: true, img: true, scale})
816816
return {
817817
imageUri,
818818
base64,

src/components/vue-ui-dumbbell.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ async function getImage({ scale = 2} = {}) {
452452
if (!dumbbellChart.value) return;
453453
const { width, height } = dumbbellChart.value.getBoundingClientRect();
454454
const aspectRatio = width / height;
455-
const { imageUri, base64 } = await img(({ domElement: dumbbellChart.value, base64: true, img: true, scale }))
455+
const { imageUri, base64 } = await img({ domElement: dumbbellChart.value, base64: true, img: true, scale })
456456
return {
457457
imageUri,
458458
base64,

src/components/vue-ui-flow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ async function getImage({ scale = 2} = {}) {
772772
if (!flowChart.value) return;
773773
const { width, height } = flowChart.value.getBoundingClientRect();
774774
const aspectRatio = width / height;
775-
const { imageUri, base64 } = await img(({ domElement: flowChart.value, base64: true, img: true, scale}))
775+
const { imageUri, base64 } = await img({ domElement: flowChart.value, base64: true, img: true, scale})
776776
return {
777777
imageUri,
778778
base64,

0 commit comments

Comments
 (0)