diff --git a/README.md b/README.md index 9bf9370..9ff40ef 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,23 @@ ## Zoompinch +Apply a pinch-and-zoom experience that’s feels native and communicates the transform reactively in both directions. + +Play around with the [demo here](https://zoompinch.pages.dev) + +### Mathematical correct pinch on touch + +Unlike other libraries, _Pinchzoom_ does not just uses the center point between two fingers as projection center. The fingers get correctly projected on the virtual canvas. This makes rotation + +### Matrix Layer on top + +You can use a matrix layer on top that projects any virtual point within the canvas to the real absolute coordinates. + +### Currently supported platforms: + +- [x] Vue 3 +- [ ] Web components (work in progress) +- [ ] React + ### Install ```bash @@ -71,18 +89,6 @@ function handleClickOnLayer(event: MouseEvent) { - `wheel`: Boolean value wether wheel events will be connected - `gesture`: Boolean value, wether gesture events will be connected -## Scale, Move and Rotate - -Apply a pinch-and-zoom experience that’s feels native and communicates the transform reactively in both directions. - -## Mathematical correct pinch on touch - -Unlike other libraries, _Pinchzoom_ does not just uses the center point between two fingers as projection center. The fingers get correctly projected on the virtual canvas. This makes rotation - -## Matrix Layer on top - -You can use a matrix layer on top that projects any virtual point within the canvas to the real absolute coordinates. - ## Helper functions Because different use cases need different ways of modifying a transform, there exist a lot of helper functions diff --git a/playground/src/App.vue b/playground/src/App.vue index 9a28585..c5415a1 100644 --- a/playground/src/App.vue +++ b/playground/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/src/components/Playground.vue b/playground/src/components/Playground.vue index e297538..fb86656 100644 --- a/playground/src/components/Playground.vue +++ b/playground/src/components/Playground.vue @@ -1,4 +1,4 @@ -