pinch_zoom.js (250B)
- import PinchZoom from '@kazvmoe-infra/pinch-zoom-element'
- export default {
- methods: {
- setTransform ({ scale, x, y }) {
- this.$el.setTransform({ scale, x, y })
- }
- },
- created () {
- // Make lint happy
- (() => PinchZoom)()
- }
- }
git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
pinch_zoom.js (250B)
- import PinchZoom from '@kazvmoe-infra/pinch-zoom-element'
- export default {
- methods: {
- setTransform ({ scale, x, y }) {
- this.$el.setTransform({ scale, x, y })
- }
- },
- created () {
- // Make lint happy
- (() => PinchZoom)()
- }
- }