akkoma-fe/src/components/pinch_zoom/pinch_zoom.js
FloatingGhost f288d0c219
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Make everything work with a strict CSP
2023-01-02 15:16:42 +00:00

13 lines
250 B
JavaScript

import PinchZoom from '@floatingghost/pinch-zoom-element'
export default {
methods: {
setTransform ({ scale, x, y }) {
this.$el.setTransform({ scale, x, y })
}
},
created () {
// Make lint happy
(() => PinchZoom)()
}
}