Browse Source

Update scripts

customisations
alemart 1 year ago
parent
commit
7c84c90140
2 changed files with 10 additions and 6 deletions
  1. 8
    4
      dist/encantar.js
  2. 2
    2
      dist/encantar.min.js

+ 8
- 4
dist/encantar.js View File

5
  * https://github.com/alemart/encantar-js
5
  * https://github.com/alemart/encantar-js
6
  *
6
  *
7
  * @license LGPL-3.0-or-later
7
  * @license LGPL-3.0-or-later
8
- * Date: 2024-08-15T23:42:41.661Z
8
+ * Date: 2024-09-02T19:15:04.498Z
9
  */
9
  */
10
 (function webpackUniversalModuleDefinition(root, factory) {
10
 (function webpackUniversalModuleDefinition(root, factory) {
11
 	if(typeof exports === 'object' && typeof module === 'object')
11
 	if(typeof exports === 'object' && typeof module === 'object')
20031
         title.style.fontWeight = 'bold';
20031
         title.style.fontWeight = 'bold';
20032
         title.style.padding = '2px';
20032
         title.style.padding = '2px';
20033
         title.innerHTML = '✨';
20033
         title.innerHTML = '✨';
20034
-        title.innerText += 'encantAR.js ' + AR.version;
20034
+        title.innerText += 'encantar.js ' + AR.version;
20035
         return title;
20035
         return title;
20036
     }
20036
     }
20037
     /**
20037
     /**
25432
      * Release
25432
      * Release
25433
      */
25433
      */
25434
     release() {
25434
     release() {
25435
-        this._container.style.backgroundColor = 'initial';
25436
-        this._container.style.touchAction = 'auto';
25435
+        this._container.style.removeProperty('background-color');
25436
+        this._container.style.removeProperty('touch-action');
25437
     }
25437
     }
25438
 }
25438
 }
25439
 /**
25439
 /**
25454
         this._backgroundCanvas = this._styleCanvas(this._createCanvas(initialSize), BACKGROUND_ZINDEX);
25454
         this._backgroundCanvas = this._styleCanvas(this._createCanvas(initialSize), BACKGROUND_ZINDEX);
25455
         parent.appendChild(this._backgroundCanvas);
25455
         parent.appendChild(this._backgroundCanvas);
25456
         parent.appendChild(this._foregroundCanvas);
25456
         parent.appendChild(this._foregroundCanvas);
25457
+        this._backgroundCanvas.hidden = true;
25458
+        this._foregroundCanvas.hidden = true;
25457
     }
25459
     }
25458
     /**
25460
     /**
25459
      * The background canvas
25461
      * The background canvas
25471
      * Initialize
25473
      * Initialize
25472
      */
25474
      */
25473
     init() {
25475
     init() {
25476
+        this._backgroundCanvas.hidden = false;
25477
+        this._foregroundCanvas.hidden = false;
25474
     }
25478
     }
25475
     /**
25479
     /**
25476
      * Release
25480
      * Release

+ 2
- 2
dist/encantar.min.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save