-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce75bd0
commit eefa8f7
Showing
22 changed files
with
92 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import * as THREE from "three"; | ||
|
||
export class OrthographicCamera extends THREE.OrthographicCamera { | ||
constructor(left, right, top, bottom, near, far, tjs = null) { | ||
super(left, right, top, bottom, near, far); | ||
this.tjs = tjs; | ||
} | ||
|
||
// Custom method to update zoom | ||
updateZoom(value) { | ||
if (this.zoom !== value) { | ||
this.zoom = value; | ||
this.updateProjectionMatrix(); // Required to apply the zoom change | ||
this.dispatchObjectEvent({ | ||
data: value, | ||
action: "zoom", | ||
catalog: "camera", | ||
}); | ||
} | ||
} | ||
|
||
// Custom method to update position | ||
updatePosition(x, y, z) { | ||
const newPos = new THREE.Vector3(x, y, z); | ||
if (!this.position.equals(newPos)) { | ||
this.position.copy(newPos); | ||
this.dispatchObjectEvent({ | ||
data: [x, y, z], | ||
action: "position", | ||
catalog: "camera", | ||
}); | ||
} | ||
} | ||
|
||
dispatchObjectEvent(data) { | ||
const event = new CustomEvent("weas", { detail: data }); | ||
this.tjs.containerElement.dispatchEvent(event); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-414 Bytes
(99%)
tests/e2e/gui.spec.js-snapshots/Animation-frame-0-move-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-637 Bytes
(99%)
tests/e2e/gui.spec.js-snapshots/Animation-frame-0-redo-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+26 Bytes
(100%)
tests/e2e/gui.spec.js-snapshots/Animation-frame-0-undo-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-91 Bytes
(100%)
tests/e2e/gui.spec.js-snapshots/Animation-frame-10-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-437 Bytes
(99%)
tests/e2e/gui.spec.js-snapshots/Animation-frame-10-move-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-531 Bytes
(99%)
tests/e2e/gui.spec.js-snapshots/Animation-frame-10-redo-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-75 Bytes
(100%)
tests/e2e/gui.spec.js-snapshots/Animation-frame-10-undo-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.21 KB
(100%)
tests/e2e/gui.spec.js-snapshots/Edit-Duplicate-Atoms-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+148 Bytes
(100%)
tests/e2e/gui.spec.js-snapshots/Edit-Move-Atoms-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+15 Bytes
(100%)
tests/e2e/gui.spec.js-snapshots/Edit-Object-Duplicate-Object-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+35 Bytes
(100%)
tests/e2e/gui.spec.js-snapshots/Edit-Object-Move-Object-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+148 Bytes
(100%)
tests/e2e/gui.spec.js-snapshots/Edit-Undo-Redos-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+582 Bytes
(100%)
tests/e2e/gui.spec.js-snapshots/Edit-Undo-Redos-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+49 Bytes
(100%)
tests/e2e/gui.spec.js-snapshots/Edit-Undo-Redos-4-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+351 Bytes
(100%)
tests/e2e/gui.spec.js-snapshots/Edit-Undo-Redos-5-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+74 Bytes
(100%)
tests/e2e/gui.spec.js-snapshots/Edit-Undo-Redos-6-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.09 KB
(100%)
tests/e2e/gui.spec.js-snapshots/Selection-Move-Selected-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.