Huge News!Announcing our $40M Series B led by Abstract Ventures.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

13

2.0.1

Diff

Changelog

Source

v2.0.1

  • Fix laggy drag behavior, which was caused by incorrect updates of previousMouseX and previousMouseY
flekschas
published 2.0.0 •

Changelog

Source

v2.0.0

  • Support x and y independent panning and zooming via isPan: [isPanX, isPanY] and isZoom: [isZoomX, isZoomY]

Breaking Changes:

  • New major version due to camera-2d-simple being bumped to v3. For details see the change log.
flekschas
published 1.2.3 •

Changelog

Source

v1.2.3

  • Avoid calling refresh internally as it's not needed.
flekschas
published 1.2.2 •

Changelog

Source

v1.2.2

  • Fix an issue with zooming in situations with nested scroll bars. Note, this change makes refresh() irrelevant. You do not need to call it anymore.
flekschas
published 1.2.1 •

Changelog

Source

v1.2.1

  • Fix an issue in switching between defaultMouseDownMoveAction
  • Fix an issue with the zoom center when the page is scrolled
flekschas
published 1.2.0 •

Changelog

Source

v1.2.0

  • Change panning and rotating modification behavior:
    • The default bahvior on mouse down + move is now defined via defaultMouseDownMoveAction, which is pan by default and can also be rotate
    • To dynamically switch the behavior to rotate or pan via a modifier key, rotateKey is now renamed to mouseDownMoveModKey, which is by default alt
flekschas
published 1.1.0 •

Changelog

Source

v1.1.0

  • Allow changing the modifier key for rotating the camera via rotateKey. Valid keys are alt, shift, ctrl, and cmd
flekschas
published 1.0.2 •

Changelog

Source

v1.0.2

  • Fix incorrect default parameters for viewCenter and scaleBounds
flekschas
published 1.0.1 •

Changelog

Source

v1.0.1

  • Add scaleBounds option to the constructor for limiting the scale extent
flekschas
published 1.0.0 •

Changelog

Source

v1.0.0

Important

  • Rename this package from canvas-camera-2d to dom-2d-camera

  • Add isNdc option, which is set to true by default. If set to false the camera is working in pixel coordinates

  • Add viewCenter option to the constructor for working in pixel coordinates

  • Add the following options for event handlers to be fired after the camera has updated:

    • onKeyDown
    • onKeyUp
    • onMouseDown
    • onMouseUp
    • onMouseMove
    • onWheel
  • Decrease dependencies on 3rd-party packages

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