A
A
andrei_pro2020-02-08 23:27:48
JavaScript
andrei_pro, 2020-02-08 23:27:48

Create a new Vue object from a component?

Hello. The task is this: there is an application, you need to export to an image with the ability to specify settings (scale).

The logic is this:
All elements are in the component. We take create a new instance (so that the main application does not change in any way) vue change the scale, take html through newVue.$el and make an image with the domtoimage library or through canvas.

Here's a demo, it's not very clear how to make a new vue instance and apply settings to it?

https://codesandbox.io/embed/falling-river-dkmvl?f...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2020-02-09
@Robur

try to just change the scale through css, take a screenshot and return it as it was, without touching either the code, the house or the vue components.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question