Coder Social home page Coder Social logo

Does it work on html elements about easypz HOT 3 OPEN

michaschwab avatar michaschwab commented on May 18, 2024
Does it work on html elements

from easypz.

Comments (3)

michaschwab avatar michaschwab commented on May 18, 2024

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.

hrvoj3e avatar hrvoj3e commented on May 18, 2024

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.

michaschwab avatar michaschwab commented on May 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.