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

dom-2d-camera

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-2d-camera - npm Package Versions

23

2.2.6

Diff
flekschas
published 2.2.6 •

Changelog

Source

v2.2.6

  • Fix: do not prevent default wheel behavior when the camera is fixed.
flekschas
published 2.2.5 •

Changelog

Source

v2.2.5

  • Fix return value of tick() for programmatic changes while interactive panning and zooming is fixed.
flekschas
published 2.2.4 •

Changelog

Source

v2.2.4

  • Avoid preventing wheel events when isZoom is false.
  • Allow zooming when holding SHIFT
flekschas
published 2.2.3 •

Changelog

Source

v2.2.3

  • Fix a bug preventing rotation in certain edge cases.
flekschas
published 2.2.2 •

Changelog

Source

v2.2.2

  • Fix incorrect default value of isPanInverted introduced in v2.2.0 to be backward compatible
flekschas
published 2.2.1 •

Changelog

Source

v2.2.1

  • Make sure that camera.tick() only returns true when the user effectively panned or rotated
flekschas
published 2.2.0 •

Changelog

Source

v2.2.0

  • Allow inverting the horizontal and vertical panning direction via isPanInverted: [false, true]. This can be useful in conjunction with WebGL.
  • Fix a glitch during panning when the mouse cursor leaves the <canvas /> element.
flekschas
published 2.1.0 •

Changelog

Source

v2.1.0

  • Make sure that tick() returns true when the camera has been changed programmatically
flekschas
published 2.0.3 •

Changelog

Source

v2.0.3

  • Hotfix for v2.0.2!
flekschas
published 2.0.2 •

Changelog

Source

v2.0.2

  • Fix incorrect mouse position when zooming without having focus the browser window.

Important:

  • Revert the deprecation of refresh(). Please call camera.refresh() when the canvas element was resized. This allows speeding up mouseMove and wheel event handler by avoiding an expensive getBoundingClientRect() call.