camera-2d-simple
Advanced tools
Changelog
v3.0.0
camera.setTranslationBounds([xTranslationBounds, yTranslationBounds])
camera.minScaling
, camera.maxScaling
, camera.minDistance
, and camera.maxDistance
for conveniencescaleBounds
to support x and y scale bounds: camera.setScaleBounds([xScaleBounds, yScaleBounds])
Breaking Change:
camera.scaling
is now a tuple: [xScaling, yScaling]
camera.distance
is now a tuple: [xDistance, yDistance]
Changelog
v2.1.0
initViewCenter
as the forth argument to the constructor and.setViewCenter()
for adjusting the view center..set()
to setView()
and deprecate .set()
target
is a tuple to avoid confusionChangelog
v2.0.0
camera.translate()
and camera.scale()
as synonyms for camera.pan()
and camera.zoom()
camera.set(view)
to directly set specific view matrixcamera.view()
to camera.view
camera.position
and camera.transformation
as both are unnecessary.