canvasframework 0.3.6 → 0.3.8
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.
- package/core/CanvasFramework.js +12 -6
- package/index.js +1 -1
- package/package.json +1 -1
package/core/CanvasFramework.js
CHANGED
|
@@ -952,12 +952,18 @@ class CanvasFramework {
|
|
|
952
952
|
}
|
|
953
953
|
|
|
954
954
|
handleResize() {
|
|
955
|
-
|
|
956
|
-
this.
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
955
|
+
// Pour WebGL, NE PAS redimensionner automatiquement
|
|
956
|
+
if (!this.useWebGL) {
|
|
957
|
+
this.width = window.innerWidth;
|
|
958
|
+
this.height = window.innerHeight;
|
|
959
|
+
this.setupCanvas();
|
|
960
|
+
|
|
961
|
+
for (const comp of this.components) {
|
|
962
|
+
if (comp._resize) {
|
|
963
|
+
comp._resize(this.width, this.height);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
961
967
|
}
|
|
962
968
|
|
|
963
969
|
add(component) {
|
package/index.js
CHANGED