2023-01-02 15:16:42 +00:00
|
|
|
import PinchZoom from '@floatingghost/pinch-zoom-element'
|
2021-08-02 21:42:10 +00:00
|
|
|
|
|
|
|
export default {
|
2021-08-02 23:11:59 +00:00
|
|
|
methods: {
|
2022-12-08 16:48:17 +00:00
|
|
|
setTransform({ scale, x, y }) {
|
2021-08-02 23:11:59 +00:00
|
|
|
this.$el.setTransform({ scale, x, y })
|
|
|
|
}
|
2021-08-02 23:44:01 +00:00
|
|
|
},
|
2022-12-08 16:48:17 +00:00
|
|
|
created() {
|
2021-08-02 23:44:01 +00:00
|
|
|
// Make lint happy
|
2022-12-08 16:48:17 +00:00
|
|
|
;(() => PinchZoom)()
|
2021-08-02 21:42:10 +00:00
|
|
|
}
|
|
|
|
}
|