Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

camera-2d-simple

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

camera-2d-simple - npm Package Versions

2

3.0.0

Diff

Changelog

Source

v3.0.0

  • Add translation bounds: camera.setTranslationBounds([xTranslationBounds, yTranslationBounds])
  • Add camera.minScaling, camera.maxScaling, camera.minDistance, and camera.maxDistance for convenience
  • Update scaleBounds 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]
flekschas
published 2.2.1 •

Changelog

Source

v2.2.1

  • Fix incorrectly reported camera.rotation
flekschas
published 2.2.0 •

Changelog

Source

v2.2.0

  • Add scaleBounds to allow limiting the scaling
flekschas
published 2.1.0 •

Changelog

Source

v2.1.0

  • Add support for a custom view center to allow using the camera with non normalized-device coordinates. For that I added initViewCenter as the forth argument to the constructor and.setViewCenter() for adjusting the view center.
  • Rename .set() to setView() and deprecate .set()
  • Ensure that target is a tuple to avoid confusion
flekschas
published 2.0.1 •

Changelog

Source

v2.0.1

  • Micro change in how glMatrix is imported
flekschas
published 2.0.0 •

Changelog

Source

v2.0.0

  • Add tests
  • Add camera.translate() and camera.scale() as synonyms for camera.pan() and camera.zoom()
  • Add camera.set(view) to directly set specific view matrix
  • Fixed rotation
  • Cleaned up code
  • Changed camera.view() to camera.view
  • Removed camera.position and camera.transformation as both are unnecessary.
  • Update to glMatrix v3
  • Release as ESM
flekschas
published 2.0.0-rc2 •

flekschas
published 2.0.0-rc1 •

flekschas
published 1.2.0 •

Changelog

Source

v1.2.0

  • Rotate around the viewport center
  • Switch to prettier
flekschas
published 1.1.0 •

Changelog

Source

v1.1.0

  • Add camera.rotate() for rotations along the z axis.
  • Add camera.reset() to reset the view to its original target, distance, and rotation.
2
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