dom-2d-camera
Advanced tools
Changelog
v2.0.1
previousMouseX
and previousMouseY
Changelog
v2.0.0
isPan: [isPanX, isPanY]
and isZoom: [isZoomX, isZoomY]
Breaking Changes:
camera-2d-simple
being bumped to v3
. For details see the change log.Changelog
v1.2.2
refresh()
irrelevant. You do not need to call it anymore.Changelog
v1.2.1
defaultMouseDownMoveAction
Changelog
v1.2.0
defaultMouseDownMoveAction
, which is pan
by default and can also be rotate
rotate
or pan
via a modifier key, rotateKey
is now renamed to mouseDownMoveModKey
, which is by default alt
Changelog
v1.1.0
rotateKey
. Valid keys are alt
, shift
, ctrl
, and cmd
Changelog
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