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.
@@ -952,12 +952,18 @@ class CanvasFramework {
952
952
  }
953
953
 
954
954
  handleResize() {
955
- this.width = window.innerWidth;
956
- this.height = window.innerHeight;
957
- this.setupCanvas();
958
- for (const comp of this.components) {
959
- comp._resize(this.width, this.height);
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
@@ -91,7 +91,7 @@ export { default as FeatureFlags } from './manager/FeatureFlags.js';
91
91
 
92
92
  // Version du framework
93
93
 
94
- export const VERSION = '0.3.6';
94
+ export const VERSION = '0.3.8';
95
95
 
96
96
 
97
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvasframework",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Canvas-based cross-platform UI framework (Material & Cupertino)",
5
5
  "type": "module",
6
6
  "main": "./index.js",