@vived/app 2.15.3 → 2.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ class DevicePreviewImp {
11
11
  constructor() {
12
12
  this.observers = new _1.ObserverList();
13
13
  this._usePreview = false;
14
- this._previewSize = ValueObjects_1.Vector2.zero();
14
+ this._previewSize = ValueObjects_1.Vector2.Zero();
15
15
  this.setDevicePreview = (x, y) => {
16
16
  if (this._usePreview &&
17
17
  this._previewSize.x === x &&
@@ -24,7 +24,7 @@ class DevicePreviewImp {
24
24
  this.clearDevicePreview = () => {
25
25
  if (!this._usePreview)
26
26
  return;
27
- this._previewSize = ValueObjects_1.Vector2.zero();
27
+ this._previewSize = ValueObjects_1.Vector2.Zero();
28
28
  this._usePreview = false;
29
29
  this.observers.notify();
30
30
  };
@@ -18,7 +18,7 @@ class TouchInputImp {
18
18
  this.getTouchOffsetPosition = (touch) => {
19
19
  if (!this.eventElementBounds) {
20
20
  console.warn("No target bounds");
21
- return ValueObjects_1.Vector2.zero();
21
+ return ValueObjects_1.Vector2.Zero();
22
22
  }
23
23
  const x = touch.clientX - this.eventElementBounds.x;
24
24
  const y = touch.clientY - this.eventElementBounds.y;
@@ -6,7 +6,7 @@ class PixelDollyFocusCamera {
6
6
  constructor(focusCamera) {
7
7
  this.focusCamera = focusCamera;
8
8
  this.sensitivity = 0.05;
9
- this.previousPixelPosition = ValueObjects_1.Vector2.zero();
9
+ this.previousPixelPosition = ValueObjects_1.Vector2.Zero();
10
10
  this.doDolly = (pixelPosition) => {
11
11
  const pixelDeltaY = pixelPosition.y - this.previousPixelPosition.y;
12
12
  const deltaRadius = pixelDeltaY * this.sensitivity;
@@ -1,6 +1,6 @@
1
1
  import { Angle } from ".";
2
2
  export declare class Vector2 {
3
- static zero(): Vector2;
3
+ static Zero(): Vector2;
4
4
  static One(): Vector2;
5
5
  static Equal(a: Vector2, b: Vector2): boolean;
6
6
  static Add(a: Vector2, b: Vector2): Vector2;
@@ -7,7 +7,7 @@ class Vector2 {
7
7
  this.x = x;
8
8
  this.y = y;
9
9
  }
10
- static zero() {
10
+ static Zero() {
11
11
  return new Vector2(0, 0);
12
12
  }
13
13
  static One() {
@@ -35,7 +35,7 @@ class Vector2 {
35
35
  get unit() {
36
36
  const mag = this.magnitued;
37
37
  if (mag === 0) {
38
- return Vector2.zero();
38
+ return Vector2.Zero();
39
39
  }
40
40
  const unitX = this.x / mag;
41
41
  const unitY = this.y / mag;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vived/app",
3
- "version": "2.15.3",
3
+ "version": "2.15.4",
4
4
  "description": "Public package for the VIVED Learning App system",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",