Viewport.js 336 B

12345678910111213141516171819202122232425
  1. "use strict";
  2. /**
  3. * Used to indicate how the user views the content inside of the canvas.
  4. *
  5. * @class
  6. */
  7. function Viewport()
  8. {
  9. /**
  10. * UUID of the object.
  11. */
  12. this.uuid = UUID.generate();
  13. /**
  14. * Position of the viewport.
  15. */
  16. this.position = new Vector2(0, 0);
  17. /**
  18. * Zoom level of the viewport.
  19. */
  20. this.zoom = 1.0;
  21. }