Skip to content

Commit 3958e7a

Browse files
authored
TSL: Color Space revision (#1216)
* TSL: Color Space revision * Update three.js * Add src * Update patch and delete src * Update declarations * Add examples * Update patch and delete examples
1 parent e8cb4c3 commit 3958e7a

File tree

7 files changed

+92
-158
lines changed

7 files changed

+92
-158
lines changed

examples-testing/changes.patch

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9702,7 +9702,7 @@ index efd09cfc..e4832209 100644
97029702
canvas.width = tileWidth;
97039703
context.drawImage(image, tileWidth * i, 0, tileWidth, tileWidth, 0, 0, tileWidth, tileWidth);
97049704
diff --git a/examples-testing/examples/webgl_panorama_equirectangular.ts b/examples-testing/examples/webgl_panorama_equirectangular.ts
9705-
index 55274522..850cc6aa 100644
9705+
index 40796f6e..6d631dee 100644
97069706
--- a/examples-testing/examples/webgl_panorama_equirectangular.ts
97079707
+++ b/examples-testing/examples/webgl_panorama_equirectangular.ts
97089708
@@ -1,6 +1,6 @@
@@ -9722,43 +9722,7 @@ index 55274522..850cc6aa 100644
97229722

97239723
camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 1100);
97249724

9725-
@@ -48,15 +48,15 @@ function init() {
9726-
9727-
document.addEventListener('dragover', function (event) {
9728-
event.preventDefault();
9729-
- event.dataTransfer.dropEffect = 'copy';
9730-
+ event.dataTransfer!.dropEffect = 'copy';
9731-
});
9732-
9733-
document.addEventListener('dragenter', function () {
9734-
- document.body.style.opacity = 0.5;
9735-
+ document.body.style.opacity = '0.5';
9736-
});
9737-
9738-
document.addEventListener('dragleave', function () {
9739-
- document.body.style.opacity = 1;
9740-
+ document.body.style.opacity = '1';
9741-
});
9742-
9743-
document.addEventListener('drop', function (event) {
9744-
@@ -64,12 +64,12 @@ function init() {
9745-
9746-
const reader = new FileReader();
9747-
reader.addEventListener('load', function (event) {
9748-
- material.map.image.src = event.target.result;
9749-
- material.map.needsUpdate = true;
9750-
+ material.map!.image.src = event.target!.result;
9751-
+ material.map!.needsUpdate = true;
9752-
});
9753-
- reader.readAsDataURL(event.dataTransfer.files[0]);
9754-
+ reader.readAsDataURL(event.dataTransfer!.files[0]);
9755-
9756-
- document.body.style.opacity = 1;
9757-
+ document.body.style.opacity = '1';
9758-
});
9759-
9760-
//
9761-
@@ -84,7 +84,7 @@ function onWindowResize() {
9725+
@@ -54,7 +54,7 @@ function onWindowResize() {
97629726
renderer.setSize(window.innerWidth, window.innerHeight);
97639727
}
97649728

@@ -9767,7 +9731,7 @@ index 55274522..850cc6aa 100644
97679731
if (event.isPrimary === false) return;
97689732

97699733
isUserInteracting = true;
9770-
@@ -99,14 +99,14 @@ function onPointerDown(event) {
9734+
@@ -69,14 +69,14 @@ function onPointerDown(event) {
97719735
document.addEventListener('pointerup', onPointerUp);
97729736
}
97739737

@@ -9784,7 +9748,7 @@ index 55274522..850cc6aa 100644
97849748
if (event.isPrimary === false) return;
97859749

97869750
isUserInteracting = false;
9787-
@@ -115,7 +115,7 @@ function onPointerUp() {
9751+
@@ -85,7 +85,7 @@ function onPointerUp() {
97889752
document.removeEventListener('pointerup', onPointerUp);
97899753
}
97909754

0 commit comments

Comments
 (0)