Comments (3)
Hi matjazmav,
EasyPZ by default works on SVGs using the "transform" attribute. However, EasyPZ is highly configurable and you can use it to react to pan and zoom interactions by transforming elements however you like. In the canvas examples, we use EasyPZ to set the transform within the canvas context. You could do something similar depending on what html elements you have, and change their sizes. What's the application?
from easypz.
How would I use it with <img>
?
Blank page with an image.
https://jsfiddle.net/wge1v43b/1/
<img easypz src="data:image/png;base64,iVBORw0KGgoA...K5CYII=" style="width: 90%;">
<script src="https://code.easypz.io/easypz.latest.js"></script>
from easypz.
@matjazmav and @hrvoj3e sorry for the big delay, but here's a small example. https://jsfiddle.net/michaschwab/smLe31hq/17/
from easypz.
Related Issues (20)
- problems resizing HOT 2
- EasyPZ - Is there a way to update the transform object? HOT 2
- Update bounds on the fly HOT 1
- Programmatically detach EasyPZ HOT 3
- Remove Pan and Zoom Methods from Element HOT 1
- Bounds only respects initial zoom
- Module version for use with "import" HOT 4
- 1.1.11 is broken? HOT 1
- Going from touch to mouse HOT 2
- Touch interactions are broken HOT 1
- Play lottie animation HOT 2
- Bounding to element using Javascript does not work HOT 1
- There is no exmpale for transforming webgl canvas
- Please add zoomTo and panTo HOT 2
- zoom is unusably faster in chrome than ff HOT 6
- License HOT 1
- HTML zooming leads to incorrect translate values HOT 3
- EasyPZ enabling constructor not working HOT 3
- Using with canvas and in react HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easypz.