aboutsummaryrefslogtreecommitdiff
path: root/src/components/pinch_zoom/pinch_zoom.js
diff options
context:
space:
mode:
authorIlja <ilja@ilja.space>2022-03-26 12:07:57 +0100
committerIlja <ilja@ilja.space>2022-03-26 12:07:57 +0100
commitc34fdd46daedf94b8c777e541623f166dabde798 (patch)
treef3f766970638cbffdbeac29b4b8a39d66f3b34bc /src/components/pinch_zoom/pinch_zoom.js
parent2dd75ca76cd36846e76d74fc2f4d5dcedfcc66d7 (diff)
parentfd77c583bf18be81b628d92b1f95cc14a2d9c09d (diff)
Merge remote-tracking branch 'pleroma/develop' into improve_delete_user_confirmation_message
Diffstat (limited to 'src/components/pinch_zoom/pinch_zoom.js')
-rw-r--r--src/components/pinch_zoom/pinch_zoom.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/pinch_zoom/pinch_zoom.js b/src/components/pinch_zoom/pinch_zoom.js
new file mode 100644
index 00000000..82670ddf
--- /dev/null
+++ b/src/components/pinch_zoom/pinch_zoom.js
@@ -0,0 +1,13 @@
+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)()
+ }
+}