New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

canvasinteractor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvasinteractor

## What is it ... ?

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

canvasInteractor

What is it ... ?

canvasInteractor is a micro-library (4.7 kB compressed) used to handle pointer events for simple geometry editing together with one or more HTML canvases. It implements a global event loop based on requestAnimationFrame and supports throttling of pointermove and wheel events via its custom tick event for efficient animation. Cartesian coordinates with user defined origin are possible, it allows zoom, pan and drag interactions.

canvasInteractor is the modern and more minimal successor of deprecated canvas-area.
It was primarily implemented for use by my students for web-kinematics projects.

Read more about it ... example please !

CDN

Use a local instance or following link for canvasInteractor.js.

  • https://cdn.jsdelivr.net/gh/goessner/canvasInteractor/canvasInteractor.js
  • https://cdn.jsdelivr.net/gh/goessner/canvasInteractor/canvasInteractor.min.js

FAQ

  • Does not work properly with Mobile Device X and Touch Screen Y ?

    • Desktop browsers only are addressed primarily.
    • Implementation of touch events is experimental (pan works with touch).
  • Can you implement feature X and possibly feature Y ?

    • canvasInteractor serves my personal needs very well as it is.
    • So ... no, I won't.
    • Please go ahead and implement it by yourself.
    • If you think, your enhancement is of common interest, you are very welcome, to send me a pull request.

Changelog

[1.0.0] on April 19, 2018

  • Complete rewrite.

License

canvasInteractor is licensed under the MIT License

© Stefan Gössner

Keywords

FAQs

Package last updated on 19 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc