Bläddra i källkod

Update to encantar.js

customisations
alemart 1 år sedan
förälder
incheckning
b27811123b
93 ändrade filer med 247 tillägg och 26378 borttagningar
  1. 1
    3
      CONTRIBUTING.md
  2. 13
    13
      README.md
  3. 10
    10
      demos/assets/aframe-with-encantar.js
  4. 12
    12
      demos/assets/three-with-encantar.js
  5. 2
    2
      demos/hello-aframe/NOTICE.html
  6. 6
    6
      demos/hello-aframe/README.html
  7. 0
    6
      demos/hello-aframe/demo.js
  8. 3
    3
      demos/hello-aframe/index.html
  9. 3
    3
      demos/hello-aframe/video.html
  10. 2
    2
      demos/hello-three/NOTICE.html
  11. 6
    6
      demos/hello-three/README.html
  12. 2
    8
      demos/hello-three/demo.js
  13. 3
    3
      demos/hello-three/index.html
  14. 3
    3
      demos/hello-three/video.html
  15. 2
    2
      demos/hello-webgl/NOTICE.html
  16. 6
    6
      demos/hello-webgl/README.html
  17. 1
    7
      demos/hello-webgl/demo.js
  18. 2
    2
      demos/hello-webgl/index.html
  19. 2
    2
      demos/hello-webgl/video.html
  20. 2
    2
      demos/hello-world/NOTICE.html
  21. 6
    6
      demos/hello-world/README.html
  22. 0
    6
      demos/hello-world/demo.js
  23. 2
    2
      demos/hello-world/index.html
  24. 2
    2
      demos/hello-world/video.html
  25. 2
    2
      demos/touch-three/NOTICE.html
  26. 6
    6
      demos/touch-three/README.html
  27. 2
    8
      demos/touch-three/demo.js
  28. 3
    3
      demos/touch-three/index.html
  29. 3
    3
      demos/touch-three/video.html
  30. 0
    26076
      dist/martins.js
  31. 0
    20
      dist/martins.min.js
  32. 2
    2
      docs/api/martins.md
  33. 1
    1
      docs/api/speedy-matrix.md
  34. 2
    2
      docs/api/speedy.md
  35. 7
    7
      docs/demos.md
  36. 5
    7
      docs/faq.md
  37. 6
    6
      docs/getting-started/activate-your-webcam.md
  38. 3
    3
      docs/getting-started/concepts.md
  39. 6
    6
      docs/getting-started/create-the-augmented-scene.md
  40. 11
    11
      docs/getting-started/index.md
  41. 3
    3
      docs/getting-started/next-steps.md
  42. 4
    4
      docs/getting-started/set-up-a-web-server.md
  43. 2
    2
      docs/getting-started/set-up-the-session.md
  44. 12
    12
      docs/getting-started/set-up-the-tracker.md
  45. Binär
      docs/img/martins-icon.png
  46. 1
    1
      docs_overrides/demo.html
  47. 3
    3
      docs_overrides/download.html
  48. 1
    1
      docs_overrides/main.html
  49. 1
    1
      docs_overrides/partials/share.html
  50. 1
    1
      docs_overrides/support-my-work.html
  51. 4
    5
      mkdocs.yml
  52. 2
    2
      package-lock.json
  53. 5
    5
      package.json
  54. 1
    1
      src/core/frame.ts
  55. 1
    1
      src/core/gizmos.ts
  56. 1
    1
      src/core/hud.ts
  57. 2
    2
      src/core/session.ts
  58. 1
    1
      src/core/settings.ts
  59. 2
    2
      src/core/stats-panel.ts
  60. 1
    1
      src/core/stats.ts
  61. 1
    1
      src/core/time.ts
  62. 1
    1
      src/core/viewport.ts
  63. 1
    1
      src/geometry/camera-model.ts
  64. 1
    1
      src/geometry/pose.ts
  65. 1
    1
      src/geometry/transform.ts
  66. 1
    1
      src/geometry/view.ts
  67. 1
    1
      src/geometry/viewer-pose.ts
  68. 1
    1
      src/geometry/viewer.ts
  69. 9
    9
      src/main.ts
  70. 1
    1
      src/sources/camera-source.ts
  71. 1
    1
      src/sources/canvas-source.ts
  72. 1
    1
      src/sources/source-factory.ts
  73. 1
    1
      src/sources/source.ts
  74. 1
    1
      src/sources/video-source.ts
  75. 1
    1
      src/trackers/image-tracker/image-tracker-event.ts
  76. 1
    1
      src/trackers/image-tracker/image-tracker.ts
  77. 1
    1
      src/trackers/image-tracker/reference-image-database.ts
  78. 1
    1
      src/trackers/image-tracker/reference-image.ts
  79. 1
    1
      src/trackers/image-tracker/settings.ts
  80. 1
    1
      src/trackers/image-tracker/states/initial.ts
  81. 1
    1
      src/trackers/image-tracker/states/pre-tracking.ts
  82. 1
    1
      src/trackers/image-tracker/states/scanning.ts
  83. 1
    1
      src/trackers/image-tracker/states/state.ts
  84. 1
    1
      src/trackers/image-tracker/states/tracking.ts
  85. 1
    1
      src/trackers/image-tracker/states/training.ts
  86. 1
    1
      src/trackers/tracker-factory.ts
  87. 1
    1
      src/trackers/tracker.ts
  88. 1
    1
      src/utils/ar-events.ts
  89. 1
    1
      src/utils/asap.ts
  90. 1
    1
      src/utils/errors.ts
  91. 1
    1
      src/utils/resolution.ts
  92. 4
    4
      src/utils/utils.ts
  93. 6
    6
      webpack.config.js

+ 1
- 3
CONTRIBUTING.md Visa fil

1
 # How to contribute
1
 # How to contribute
2
 
2
 
3
-Thank you for your interest in contributing to MARTINS.js! 👍
4
-
5
-In order to contribute to MARTINS.js, you must certify that you have the right to submit your contribution according to the [Developer Certificate of Origin (DCO)](https://developercertificate.org). Each commit must include a `Signed-off-by` line at the end of the commit message, as in the template below:
3
+Please certify that you have the right to submit your contribution according to the [Developer Certificate of Origin (DCO)](https://developercertificate.org). Each commit must include a `Signed-off-by` line at the end of the commit message, as in the template below:
6
 
4
 
7
 ```
5
 ```
8
 Signed-off-by: Your Name <your.email@addr.es>
6
 Signed-off-by: Your Name <your.email@addr.es>

+ 13
- 13
README.md Visa fil

1
-# MARTINS.js WebAR engine
1
+# encantAR.js WebAR engine
2
 
2
 
3
-[![GitHub release (latest by date)](https://img.shields.io/github/v/release/alemart/martins-js)](https://github.com/alemart/martins-js/releases/) ![GitHub file size in bytes on a specified ref (branch/commit/tag)](https://img.shields.io/github/size/alemart/martins-js/dist/martins.min.js?branch=master&label=minified%20js) [![GitHub Repo stars](https://img.shields.io/github/stars/alemart/martins-js?logo=github)](https://github.com/alemart/martins-js/stargazers) [![GitHub Sponsors](https://img.shields.io/github/sponsors/alemart?logo=github)](https://github.com/sponsors/alemart/)
3
+[![GitHub release (latest by date)](https://img.shields.io/github/v/release/alemart/encantar-js)](https://github.com/alemart/encantar-js/releases/) ![GitHub file size in bytes on a specified ref (branch/commit/tag)](https://img.shields.io/github/size/alemart/encantar-js/dist/encantar.min.js?branch=master&label=minified%20js) [![GitHub Repo stars](https://img.shields.io/github/stars/alemart/encantar-js?logo=github)](https://github.com/alemart/encantar-js/stargazers) [![GitHub Sponsors](https://img.shields.io/github/sponsors/alemart?logo=github)](https://github.com/sponsors/alemart/)
4
 
4
 
5
-Create amazing Augmented Reality experiences with **MARTINS.js**, a GPU-accelerated Augmented Reality engine for the web.
5
+Create amazing Augmented Reality experiences with **encantAR.js**, a GPU-accelerated Augmented Reality engine for the web.
6
 
6
 
7
-:books: Documentation: <https://alemart.github.io/martins-js/>
7
+:books: Documentation: <https://alemart.github.io/encantar-js/>
8
 
8
 
9
 ## Features
9
 ## Features
10
 
10
 
13
 
13
 
14
 ## Try a demo
14
 ## Try a demo
15
 
15
 
16
-:arrow_right: [Launch now!](https://alemart.github.io/martins-js/demo)
16
+:arrow_right: [Launch now!](https://alemart.github.io/encantar-js/demo)
17
 
17
 
18
 >
18
 >
19
 > **Guidelines:**
19
 > **Guidelines:**
23
 > * The physical environment should be properly illuminated.
23
 > * The physical environment should be properly illuminated.
24
 >
24
 >
25
 
25
 
26
-## Why use MARTINS.js?
26
+## Why use encantAR.js?
27
 
27
 
28
-* **No need to download apps!** MARTINS.js is a WebAR engine: it runs in web browsers. Users can access the AR experiences immediately.
29
-* **Easy to get started!** MARTINS.js can be used with a `<script>` tag in your page. A static HTML page is enough to get started.
30
-* **Fast and powerful!** MARTINS.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
31
-* **Fully standalone!** MARTINS.js is built from scratch using standard web technologies. No need for additional hardware or software!
28
+* **No need to download apps!** encantAR.js is a WebAR engine: it runs in web browsers. Users can access the AR experiences immediately.
29
+* **Easy to get started!** encantAR.js can be used with a `<script>` tag in your page. A static HTML page is enough to get started.
30
+* **Fast and powerful!** encantAR.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
31
+* **Fully standalone!** encantAR.js is built from scratch using standard web technologies. No need for additional hardware or software!
32
 * **Free and open-source!** Get started right away!
32
 * **Free and open-source!** Get started right away!
33
 
33
 
34
 ## Browser compatibility
34
 ## Browser compatibility
35
 
35
 
36
-MARTINS.js is compatible with all major web browsers:
36
+encantAR.js is compatible with all major web browsers:
37
 
37
 
38
 | Chrome | Edge | Firefox | Opera | Safari* |
38
 | Chrome | Edge | Firefox | Opera | Safari* |
39
 | ------ | ---- | ------- | ----- | ------- |
39
 | ------ | ---- | ------- | ----- | ------- |
41
 
41
 
42
 \* use Safari 15.2 or later.
42
 \* use Safari 15.2 or later.
43
 
43
 
44
-MARTINS.js requires WebGL2 and WebAssembly.
44
+encantAR.js requires WebGL2 and WebAssembly.
45
 
45
 
46
 ## About
46
 ## About
47
 
47
 
48
-MARTINS.js is developed by [Alexandre Martins](https://github.com/alemart) and released under the [LGPL](LICENSE.md). It is based on [Speedy Vision](https://github.com/alemart/speedy-vision).
48
+encantAR.js is developed by [Alexandre Martins](https://github.com/alemart) and released under the [LGPL](LICENSE.md). It is based on [Speedy Vision](https://github.com/alemart/speedy-vision).

demos/assets/aframe-with-martins.js → demos/assets/aframe-with-encantar.js Visa fil

1
 /**
1
 /**
2
- * @file MARTINS.js & AFRAME glue code
2
+ * @file aframe plugin for encantar.js
3
  * @author Alexandre Martins (https://github.com/alemart)
3
  * @author Alexandre Martins (https://github.com/alemart)
4
  * @license LGPL-3.0-or-later
4
  * @license LGPL-3.0-or-later
5
  */
5
  */
6
 
6
 
7
 /* Usage of the indicated versions is encouraged */
7
 /* Usage of the indicated versions is encouraged */
8
-__THIS_GLUE_CODE_HAS_BEEN_TESTED_WITH__({
9
-    'MARTINS.js': { version: '0.2.0' },
10
-        'AFRAME': { version: '1.4.2' }
8
+__THIS_PLUGIN_HAS_BEEN_TESTED_WITH__({
9
+    'encantar.js': { version: '0.2.0' },
10
+         'aframe': { version: '1.4.2' }
11
 });
11
 });
12
 
12
 
13
 /**
13
 /**
14
- * Connect MARTINS.js to AFRAME
14
+ * Connect encantar.js to aframe
15
  * @param {(canvas: HTMLCanvasElement) => Promise<Session> | SpeedyPromise<Session>} startARSession
15
  * @param {(canvas: HTMLCanvasElement) => Promise<Session> | SpeedyPromise<Session>} startARSession
16
  */
16
  */
17
-function linkMartinsToAFRAME(startARSession)
17
+function encantar(startARSession)
18
 {
18
 {
19
     AFRAME.registerSystem('ar-system', {
19
     AFRAME.registerSystem('ar-system', {
20
         init()
20
         init()
218
 
218
 
219
 // Start automatically
219
 // Start automatically
220
 if(typeof startARSession === 'function')
220
 if(typeof startARSession === 'function')
221
-    linkMartinsToAFRAME(startARSession);
221
+    encantar(startARSession);
222
 else
222
 else
223
     alert('Missing startARSession');
223
     alert('Missing startARSession');
224
 
224
 
226
  * Version check
226
  * Version check
227
  * @param {object} json
227
  * @param {object} json
228
  */
228
  */
229
-function __THIS_GLUE_CODE_HAS_BEEN_TESTED_WITH__(json)
229
+function __THIS_PLUGIN_HAS_BEEN_TESTED_WITH__(json)
230
 {
230
 {
231
     try { Martins, AFRAME;
231
     try { Martins, AFRAME;
232
-    const versionOf = { 'MARTINS.js': Martins.version.replace(/-.*$/, ''), 'AFRAME': AFRAME.version };
233
-    const check = (x,v,w) => v !== w ? console.warn(`\n\n\nWARNING\n\nThis glue code has been tested with ${x} version ${v}. The version in use is ${w}. Usage of ${x} version ${v} is recommended instead.\n\n\n`) : void 0;
232
+    const versionOf = { 'encantar.js': Martins.version.replace(/-.*$/, ''), 'aframe': AFRAME.version };
233
+    const check = (x,v,w) => v !== w ? console.warn(`\n\n\nWARNING\n\nThis plugin has been tested with ${x} version ${v}. The version in use is ${w}. Usage of ${x} version ${v} is recommended instead.\n\n\n`) : void 0;
234
     for(const [x, expected] of Object.entries(json)) check(x, expected.version, versionOf[x]);
234
     for(const [x, expected] of Object.entries(json)) check(x, expected.version, versionOf[x]);
235
     } catch(e) { alert(e.message); }
235
     } catch(e) { alert(e.message); }
236
 }
236
 }

demos/assets/three-with-martins.js → demos/assets/three-with-encantar.js Visa fil

1
 /**
1
 /**
2
- * @file MARTINS.js & THREE.js glue code
2
+ * @file three.js plugin for encantar.js
3
  * @author Alexandre Martins (https://github.com/alemart)
3
  * @author Alexandre Martins (https://github.com/alemart)
4
  * @license LGPL-3.0-or-later
4
  * @license LGPL-3.0-or-later
5
  */
5
  */
6
 
6
 
7
 /* Usage of the indicated versions is encouraged */
7
 /* Usage of the indicated versions is encouraged */
8
-__THIS_GLUE_CODE_HAS_BEEN_TESTED_WITH__({
9
-    'MARTINS.js': { version: '0.2.0' },
10
-      'THREE.js': { version: '147' }
8
+__THIS_PLUGIN_HAS_BEEN_TESTED_WITH__({
9
+    'encantar.js': { version: '0.2.1' },
10
+       'three.js': { version: '147' }
11
 });
11
 });
12
 
12
 
13
 /**
13
 /**
14
  * Use this object to create your augmented scene
14
  * Use this object to create your augmented scene
15
  * @typedef {object} ARSystem
15
  * @typedef {object} ARSystem
16
- * @property {Session} session MARTINS.js Session
16
+ * @property {Session} session AR Session
17
  * @property {Frame} frame current Frame
17
  * @property {Frame} frame current Frame
18
  * @property {ReferenceImage | null} referenceImage corresponds to the target being tracked (if any)
18
  * @property {ReferenceImage | null} referenceImage corresponds to the target being tracked (if any)
19
- * @property {THREE.Scene} scene THREE.js Scene
19
+ * @property {THREE.Scene} scene three.js Scene
20
  * @property {THREE.Group} root a 3D object that is automatically aligned with the physical target
20
  * @property {THREE.Group} root a 3D object that is automatically aligned with the physical target
21
  * @property {THREE.Camera} camera a camera adjusted for AR
21
  * @property {THREE.Camera} camera a camera adjusted for AR
22
- * @property {THREE.WebGLRenderer} renderer THREE.js renderer
22
+ * @property {THREE.WebGLRenderer} renderer three.js renderer
23
  */
23
  */
24
 
24
 
25
 /**
25
 /**
26
- * Connect MARTINS.js to THREE.js
26
+ * Connect encantar.js to three.js
27
  * @param {() => Promise<Session> | SpeedyPromise<Session>} startARSession
27
  * @param {() => Promise<Session> | SpeedyPromise<Session>} startARSession
28
  * @param {(ar: ARSystem) => void} [animateVirtualScene] animation callback
28
  * @param {(ar: ARSystem) => void} [animateVirtualScene] animation callback
29
  * @param {(ar: ARSystem) => void | Promise<void> | SpeedyPromise<Session>} [initializeVirtualScene] initialization callback
29
  * @param {(ar: ARSystem) => void | Promise<void> | SpeedyPromise<Session>} [initializeVirtualScene] initialization callback
30
  * @returns {Promise<ARSystem> | SpeedyPromise<ARSystem>}
30
  * @returns {Promise<ARSystem> | SpeedyPromise<ARSystem>}
31
  */
31
  */
32
-function linkMartinsToTHREE(startARSession, animateVirtualScene, initializeVirtualScene)
32
+function encantar(startARSession, animateVirtualScene, initializeVirtualScene)
33
 {
33
 {
34
     const ar = /** @type {ARSystem} */ ({
34
     const ar = /** @type {ARSystem} */ ({
35
         session: null,
35
         session: null,
144
  * Version check
144
  * Version check
145
  * @param {object} json
145
  * @param {object} json
146
  */
146
  */
147
-function __THIS_GLUE_CODE_HAS_BEEN_TESTED_WITH__(json)
147
+function __THIS_PLUGIN_HAS_BEEN_TESTED_WITH__(json)
148
 {
148
 {
149
     window.addEventListener('load', () => {
149
     window.addEventListener('load', () => {
150
     try { Martins, __THREE__;
150
     try { Martins, __THREE__;
151
-    const versionOf = { 'MARTINS.js': Martins.version.replace(/-.*$/, ''), 'THREE.js': __THREE__ };
152
-    const check = (x,v,w) => v !== w ? console.warn(`\n\n\nWARNING\n\nThis glue code has been tested with ${x} version ${v}. The version in use is ${w}. Usage of ${x} version ${v} is recommended instead.\n\n\n`) : void 0;
151
+    const versionOf = { 'encantar.js': Martins.version.replace(/-.*$/, ''), 'three.js': __THREE__ };
152
+    const check = (x,v,w) => v !== w ? console.warn(`\n\n\nWARNING\n\nThis plugin has been tested with ${x} version ${v}. The version in use is ${w}. Usage of ${x} version ${v} is recommended instead.\n\n\n`) : void 0;
153
     for(const [x, expected] of Object.entries(json)) check(x, expected.version, versionOf[x]);
153
     for(const [x, expected] of Object.entries(json)) check(x, expected.version, versionOf[x]);
154
     } catch(e) { alert(e.message); }
154
     } catch(e) { alert(e.message); }
155
     });
155
     });

+ 2
- 2
demos/hello-aframe/NOTICE.html Visa fil

17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
18
         <ol>
18
         <ol>
19
             <li>
19
             <li>
20
-                MARTINS.js: GPU-accelerated Augmented Reality for the web<br>
20
+                encantAR.js: GPU-accelerated Augmented Reality for the web<br>
21
                 Copyright &copy; 2022-present Alexandre Martins<br>
21
                 Copyright &copy; 2022-present Alexandre Martins<br>
22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
23
-                <a href="https://github.com/alemart/martins-js" target="_blank" rel="external">https://github.com/alemart/martins-js</a>
23
+                <a href="https://github.com/alemart/encantar-js" target="_blank" rel="external">https://github.com/alemart/encantar-js</a>
24
             </li>
24
             </li>
25
             <li>
25
             <li>
26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>
26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>

+ 6
- 6
demos/hello-aframe/README.html Visa fil

2
 <html>
2
 <html>
3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
-        <title>MARTINS.js WebAR demo with A-Frame</title>
5
+        <title>encantAR.js WebAR demo with A-Frame</title>
6
         <style>
6
         <style>
7
         li + li {
7
         li + li {
8
             margin-top: 1em;
8
             margin-top: 1em;
42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
43
 
43
 
44
         <h2>Share</h2>
44
         <h2>Share</h2>
45
-        <p>This application is powered by <a href="https://alemart.github.io/martins-js" target="_blank">MARTINS.js: GPU-accelerated Augmented Reality for the web</a>.</p>
45
+        <p>This application is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantAR.js: GPU-accelerated Augmented Reality for the web</a>.</p>
46
         <div>
46
         <div>
47
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/martins-js&quote=%23martins-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/martins-js&hashtags=martins-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
47
+            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantar-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
+            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantar-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
+            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
+            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
51
         </div>
51
         </div>
52
     </body>
52
     </body>
53
 </html>
53
 </html>

+ 0
- 6
demos/hello-aframe/demo.js Visa fil

1
-/**
2
- * @file MARTINS.js WebAR demo with A-Frame
3
- * @author Alexandre Martins (https://github.com/alemart)
4
- * @license LGPL-3.0-or-later
5
- */
6
-
7
 async function startARSession(canvas)
1
 async function startARSession(canvas)
8
 {
2
 {
9
     if(!Martins.isSupported()) {
3
     if(!Martins.isSupported()) {

+ 3
- 3
demos/hello-aframe/index.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with A-Frame</title>
6
+        <title>encantAR.js WebAR demo with A-Frame</title>
7
         <link href="demo.css" rel="stylesheet">
7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/aframe@1.4.2/dist/aframe-v1.4.2.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/aframe@1.4.2/dist/aframe-v1.4.2.min.js"></script>
10
         <script src="../assets/aframe-particle-system-component.min.js"></script>
10
         <script src="../assets/aframe-particle-system-component.min.js"></script>
11
         <script src="demo.js"></script>
11
         <script src="demo.js"></script>
12
-        <script src="../assets/aframe-with-martins.js"></script>
12
+        <script src="../assets/aframe-with-encantar.js"></script>
13
     </head>
13
     </head>
14
     <body>
14
     <body>
15
         <div id="ar-viewport">
15
         <div id="ar-viewport">

+ 3
- 3
demos/hello-aframe/video.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with A-Frame</title>
6
+        <title>encantAR.js WebAR demo with A-Frame</title>
7
         <link href="demo.css" rel="stylesheet">
7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/aframe@1.4.2/dist/aframe-v1.4.2.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/aframe@1.4.2/dist/aframe-v1.4.2.min.js"></script>
10
         <script src="../assets/aframe-particle-system-component.min.js"></script>
10
         <script src="../assets/aframe-particle-system-component.min.js"></script>
11
         <script src="demo.js"></script>
11
         <script src="demo.js"></script>
12
-        <script src="../assets/aframe-with-martins.js"></script>
12
+        <script src="../assets/aframe-with-encantar.js"></script>
13
     </head>
13
     </head>
14
     <body>
14
     <body>
15
         <div id="ar-viewport">
15
         <div id="ar-viewport">

+ 2
- 2
demos/hello-three/NOTICE.html Visa fil

17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
18
         <ol>
18
         <ol>
19
             <li>
19
             <li>
20
-                MARTINS.js: GPU-accelerated Augmented Reality for the web<br>
20
+                encantAR.js: GPU-accelerated Augmented Reality for the web<br>
21
                 Copyright &copy; 2022-present Alexandre Martins<br>
21
                 Copyright &copy; 2022-present Alexandre Martins<br>
22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
23
-                <a href="https://github.com/alemart/martins-js" target="_blank" rel="external">https://github.com/alemart/martins-js</a>
23
+                <a href="https://github.com/alemart/encantar-js" target="_blank" rel="external">https://github.com/alemart/encantar-js</a>
24
             </li>
24
             </li>
25
             <li>
25
             <li>
26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>
26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>

+ 6
- 6
demos/hello-three/README.html Visa fil

2
 <html>
2
 <html>
3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
-        <title>MARTINS.js WebAR demo with three.js</title>
5
+        <title>encantAR.js WebAR demo with three.js</title>
6
         <style>
6
         <style>
7
         li + li {
7
         li + li {
8
             margin-top: 1em;
8
             margin-top: 1em;
42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
43
 
43
 
44
         <h2>Share</h2>
44
         <h2>Share</h2>
45
-        <p>This application is powered by <a href="https://alemart.github.io/martins-js" target="_blank">MARTINS.js: GPU-accelerated Augmented Reality for the web</a>.</p>
45
+        <p>This application is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantAR.js: GPU-accelerated Augmented Reality for the web</a>.</p>
46
         <div>
46
         <div>
47
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/martins-js&quote=%23martins-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/martins-js&hashtags=martins-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
47
+            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantar-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
+            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantar-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
+            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
+            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
51
         </div>
51
         </div>
52
     </body>
52
     </body>
53
 </html>
53
 </html>

+ 2
- 8
demos/hello-three/demo.js Visa fil

1
-/**
2
- * @file MARTINS.js WebAR demo with three.js
3
- * @author Alexandre Martins (https://github.com/alemart)
4
- * @license LGPL-3.0-or-later
5
- */
6
-
7
 window.addEventListener('load', () => {
1
 window.addEventListener('load', () => {
8
 
2
 
9
     const my = { };
3
     const my = { };
157
         return session;
151
         return session;
158
     }
152
     }
159
 
153
 
160
-    // link MARTINS.js to THREE.js
161
-    linkMartinsToTHREE(startARSession, animate, initialize);
154
+    // enchant!
155
+    encantar(startARSession, animate, initialize);
162
 
156
 
163
 });
157
 });

+ 3
- 3
demos/hello-three/index.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with three.js</title>
6
+        <title>encantAR.js WebAR demo with three.js</title>
7
         <link href="demo.css" rel="stylesheet">
7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/GLTFLoader.js"></script>
10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/GLTFLoader.js"></script>
11
-        <script src="../assets/three-with-martins.js"></script>
11
+        <script src="../assets/three-with-encantar.js"></script>
12
         <script src="demo.js"></script>
12
         <script src="demo.js"></script>
13
     </head>
13
     </head>
14
     <body>
14
     <body>

+ 3
- 3
demos/hello-three/video.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with three.js</title>
6
+        <title>encantAR.js WebAR demo with three.js</title>
7
         <link href="demo.css" rel="stylesheet">
7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/GLTFLoader.js"></script>
10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/GLTFLoader.js"></script>
11
-        <script src="../assets/three-with-martins.js"></script>
11
+        <script src="../assets/three-with-encantar.js"></script>
12
         <script src="demo.js"></script>
12
         <script src="demo.js"></script>
13
     </head>
13
     </head>
14
     <body>
14
     <body>

+ 2
- 2
demos/hello-webgl/NOTICE.html Visa fil

17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
18
         <ol>
18
         <ol>
19
             <li>
19
             <li>
20
-                MARTINS.js: GPU-accelerated Augmented Reality for the web<br>
20
+                encantAR.js: GPU-accelerated Augmented Reality for the web<br>
21
                 Copyright &copy; 2022-present Alexandre Martins<br>
21
                 Copyright &copy; 2022-present Alexandre Martins<br>
22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
23
-                <a href="https://github.com/alemart/martins-js" target="_blank" rel="external">https://github.com/alemart/martins-js</a>
23
+                <a href="https://github.com/alemart/encantar-js" target="_blank" rel="external">https://github.com/alemart/encantar-js</a>
24
             </li>
24
             </li>
25
             <li>
25
             <li>
26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>
26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>

+ 6
- 6
demos/hello-webgl/README.html Visa fil

2
 <html>
2
 <html>
3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
-        <title>MARTINS.js WebAR demo with WebGL</title>
5
+        <title>encantAR.js WebAR demo with WebGL</title>
6
         <style>
6
         <style>
7
         li + li {
7
         li + li {
8
             margin-top: 1em;
8
             margin-top: 1em;
42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
43
 
43
 
44
         <h2>Share</h2>
44
         <h2>Share</h2>
45
-        <p>This application is powered by <a href="https://alemart.github.io/martins-js" target="_blank">MARTINS.js: GPU-accelerated Augmented Reality for the web</a>.</p>
45
+        <p>This application is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantAR.js: GPU-accelerated Augmented Reality for the web</a>.</p>
46
         <div>
46
         <div>
47
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/martins-js&quote=%23martins-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/martins-js&hashtags=martins-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
47
+            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantar-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
+            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantar-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
+            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
+            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
51
         </div>
51
         </div>
52
     </body>
52
     </body>
53
 </html>
53
 </html>

+ 1
- 7
demos/hello-webgl/demo.js Visa fil

1
-/**
2
- * @file MARTINS.js WebAR demo with WebGL
3
- * @author Alexandre Martins (https://github.com/alemart)
4
- * @license LGPL-3.0-or-later
5
- */
6
-
7
 /*
1
 /*
8
 
2
 
9
 Note:
3
 Note:
842
 
836
 
843
 /*
837
 /*
844
 
838
 
845
-MARTINS.js + WebGL code:
839
+encantar.js + WebGL code:
846
 
840
 
847
 */
841
 */
848
 
842
 

+ 2
- 2
demos/hello-webgl/index.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with WebGL</title>
6
+        <title>encantAR.js WebAR demo with WebGL</title>
7
         <link href="demo.css" rel="stylesheet">
7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9
         <script src="demo.js"></script>
9
         <script src="demo.js"></script>
10
     </head>
10
     </head>
11
     <body>
11
     <body>

+ 2
- 2
demos/hello-webgl/video.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with WebGL</title>
6
+        <title>encantAR.js WebAR demo with WebGL</title>
7
         <link href="demo.css" rel="stylesheet">
7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9
         <script src="demo.js"></script>
9
         <script src="demo.js"></script>
10
     </head>
10
     </head>
11
     <body>
11
     <body>

+ 2
- 2
demos/hello-world/NOTICE.html Visa fil

17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
18
         <ol>
18
         <ol>
19
             <li>
19
             <li>
20
-                MARTINS.js: GPU-accelerated Augmented Reality for the web<br>
20
+                encantAR.js: GPU-accelerated Augmented Reality for the web<br>
21
                 Copyright &copy; 2022-present Alexandre Martins<br>
21
                 Copyright &copy; 2022-present Alexandre Martins<br>
22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
23
-                <a href="https://github.com/alemart/martins-js" target="_blank" rel="external">https://github.com/alemart/martins-js</a>
23
+                <a href="https://github.com/alemart/encantar-js" target="_blank" rel="external">https://github.com/alemart/encantar-js</a>
24
             </li>
24
             </li>
25
             <li>
25
             <li>
26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>
26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>

+ 6
- 6
demos/hello-world/README.html Visa fil

2
 <html>
2
 <html>
3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
-        <title>MARTINS.js WebAR template</title>
5
+        <title>encantAR.js WebAR template</title>
6
         <style>
6
         <style>
7
         li + li {
7
         li + li {
8
             margin-top: 1em;
8
             margin-top: 1em;
42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
43
 
43
 
44
         <h2>Share</h2>
44
         <h2>Share</h2>
45
-        <p>This application is powered by <a href="https://alemart.github.io/martins-js" target="_blank">MARTINS.js: GPU-accelerated Augmented Reality for the web</a>.</p>
45
+        <p>This application is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantAR.js: GPU-accelerated Augmented Reality for the web</a>.</p>
46
         <div>
46
         <div>
47
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/martins-js&quote=%23martins-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/martins-js&hashtags=martins-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
47
+            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantar-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
+            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantar-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
+            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
+            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
51
         </div>
51
         </div>
52
     </body>
52
     </body>
53
 </html>
53
 </html>

+ 0
- 6
demos/hello-world/demo.js Visa fil

1
-/**
2
- * @file MARTINS.js WebAR template: Hello, world!
3
- * @author Alexandre Martins (https://github.com/alemart)
4
- * @license LGPL-3.0-or-later
5
- */
6
-
7
 window.addEventListener('load', async function() {
1
 window.addEventListener('load', async function() {
8
     try {
2
     try {
9
         const session = await startARSession();
3
         const session = await startARSession();

+ 2
- 2
demos/hello-world/index.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR template</title>
6
+        <title>encantAR.js WebAR template</title>
7
         <link href="demo.css" rel="stylesheet">
7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9
         <script src="demo.js"></script>
9
         <script src="demo.js"></script>
10
     </head>
10
     </head>
11
     <body>
11
     <body>

+ 2
- 2
demos/hello-world/video.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR template</title>
6
+        <title>encantAR.js WebAR template</title>
7
         <link href="demo.css" rel="stylesheet">
7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9
         <script src="demo.js"></script>
9
         <script src="demo.js"></script>
10
     </head>
10
     </head>
11
     <body>
11
     <body>

+ 2
- 2
demos/touch-three/NOTICE.html Visa fil

17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
17
         <p>This application contains free and open-source software and this page sets forth the corresponding attribution notices.</p>
18
         <ol>
18
         <ol>
19
             <li>
19
             <li>
20
-                MARTINS.js: GPU-accelerated Augmented Reality for the web<br>
20
+                encantAR.js: GPU-accelerated Augmented Reality for the web<br>
21
                 Copyright &copy; 2022-present Alexandre Martins<br>
21
                 Copyright &copy; 2022-present Alexandre Martins<br>
22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
22
                 License: <a href="#lgpl">GNU Lesser General Public License, version 3</a><br>
23
-                <a href="https://github.com/alemart/martins-js" target="_blank" rel="external">https://github.com/alemart/martins-js</a>
23
+                <a href="https://github.com/alemart/encantar-js" target="_blank" rel="external">https://github.com/alemart/encantar-js</a>
24
             </li>
24
             </li>
25
             <li>
25
             <li>
26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>
26
                 Speedy Vision: GPU-accelerated Computer Vision for JavaScript<br>

+ 6
- 6
demos/touch-three/README.html Visa fil

2
 <html>
2
 <html>
3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
-        <title>MARTINS.js WebAR demo with three.js and touch interaction</title>
5
+        <title>encantAR.js WebAR demo with three.js and touch interaction</title>
6
         <style>
6
         <style>
7
         li + li {
7
         li + li {
8
             margin-top: 1em;
8
             margin-top: 1em;
42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
42
         <img src="qr-code.gif" alt="QR code" class="qr-code">
43
 
43
 
44
         <h2>Share</h2>
44
         <h2>Share</h2>
45
-        <p>This application is powered by <a href="https://alemart.github.io/martins-js" target="_blank">MARTINS.js: GPU-accelerated Augmented Reality for the web</a>.</p>
45
+        <p>This application is powered by <a href="https://alemart.github.io/encantar-js" target="_blank">encantAR.js: GPU-accelerated Augmented Reality for the web</a>.</p>
46
         <div>
46
         <div>
47
-            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/martins-js&quote=%23martins-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
-            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/martins-js&hashtags=martins-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
-            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
-            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/martins-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
47
+            <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Falemart.github.io/encantar-js&quote=%23encantar-js" target="_blank" rel="external" class="button"><img src="../assets/facebook.png" alt="Share on Facebook"></a>
48
+            <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Falemart.github.io/encantar-js&hashtags=encantar-js" target="_blank" rel="external" class="button"><img src="../assets/twitter.png" alt="Share on X"></a>
49
+            <a href="https://wa.me/?text=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/whatsapp.png" alt="Share via WhatsApp"></a>
50
+            <a href="https://t.me/share/url?url=https%3A%2F%2Falemart.github.io/encantar-js" target="_blank" rel="external" class="button"><img src="../assets/telegram.png" alt="Share via Telegram"></a>
51
         </div>
51
         </div>
52
     </body>
52
     </body>
53
 </html>
53
 </html>

+ 2
- 8
demos/touch-three/demo.js Visa fil

1
-/**
2
- * @file MARTINS.js WebAR demo with three.js and touch interaction
3
- * @author Alexandre Martins (https://github.com/alemart)
4
- * @license LGPL-3.0-or-later
5
- */
6
-
7
 window.addEventListener('load', () => {
1
 window.addEventListener('load', () => {
8
 
2
 
9
     const my = { };
3
     const my = { };
187
         return session;
181
         return session;
188
     }
182
     }
189
 
183
 
190
-    // link MARTINS.js to THREE.js
191
-    linkMartinsToTHREE(startARSession, animate, initialize);
184
+    // enchant!
185
+    encantar(startARSession, animate, initialize);
192
 
186
 
193
 });
187
 });

+ 3
- 3
demos/touch-three/index.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with three.js and touch interaction</title>
6
+        <title>encantAR.js WebAR demo with three.js and touch interaction</title>
7
         <link href="demo.css" rel="stylesheet">
7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/FontLoader.js"></script>
10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/FontLoader.js"></script>
11
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/geometries/TextGeometry.js"></script>
11
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/geometries/TextGeometry.js"></script>
12
-        <script src="../assets/three-with-martins.js"></script>
12
+        <script src="../assets/three-with-encantar.js"></script>
13
         <script src="demo.js"></script>
13
         <script src="demo.js"></script>
14
     </head>
14
     </head>
15
     <body>
15
     <body>

+ 3
- 3
demos/touch-three/video.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
5
         <meta name="viewport" content="width=device-width,initial-scale=1">
6
-        <title>MARTINS.js WebAR demo with three.js and touch interaction</title>
6
+        <title>encantAR.js WebAR demo with three.js and touch interaction</title>
7
         <link href="demo.css" rel="stylesheet">
7
         <link href="demo.css" rel="stylesheet">
8
-        <script src="../../dist/martins.min.js"></script>
8
+        <script src="../../dist/encantar.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
9
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/FontLoader.js"></script>
10
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/loaders/FontLoader.js"></script>
11
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/geometries/TextGeometry.js"></script>
11
         <script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/geometries/TextGeometry.js"></script>
12
-        <script src="../assets/three-with-martins.js"></script>
12
+        <script src="../assets/three-with-encantar.js"></script>
13
         <script src="demo.js"></script>
13
         <script src="demo.js"></script>
14
     </head>
14
     </head>
15
     <body>
15
     <body>

+ 0
- 26076
dist/martins.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 0
- 20
dist/martins.min.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 2
- 2
docs/api/martins.md Visa fil

1
 # Martins
1
 # Martins
2
 
2
 
3
-The `Martins` namespace is the entry point of the features and components of MARTINS.js.
3
+The `Martins` namespace is the entry point of the features and components of encantAR.js.
4
 
4
 
5
 I have documented the instantiation of the components of the engine in their respective pages.
5
 I have documented the instantiation of the components of the engine in their respective pages.
6
 
6
 
16
 
16
 
17
 `Martins.version: string, read-only`
17
 `Martins.version: string, read-only`
18
 
18
 
19
-The version of MARTINS.js.
19
+The version of encantAR.js.
20
 
20
 
21
 ## Methods
21
 ## Methods
22
 
22
 

+ 1
- 1
docs/api/speedy-matrix.md Visa fil

1
 # SpeedyMatrix
1
 # SpeedyMatrix
2
 
2
 
3
-[Speedy](speedy.md) includes its own fast implementation of matrices. They are used extensively in MARTINS.js.
3
+[Speedy](speedy.md) includes its own fast implementation of matrices. They are used extensively in encantAR.js.
4
 
4
 
5
 ## Properties
5
 ## Properties
6
 
6
 

+ 2
- 2
docs/api/speedy.md Visa fil

1
 # Speedy
1
 # Speedy
2
 
2
 
3
-MARTINS.js is built using [Speedy Vision](https://github.com/alemart/speedy-vision){ ._blank }, a GPU-accelerated Computer Vision library which is another project of mine.
3
+encantAR.js is built using [Speedy Vision](https://github.com/alemart/speedy-vision){ ._blank }, a GPU-accelerated Computer Vision library which is another project of mine.
4
 
4
 
5
-Many features provided by Speedy Vision are very useful (e.g., matrices). I have decided to include some of them in parts of the MARTINS.js API for convenience.
5
+Many features provided by Speedy Vision are very useful (e.g., matrices). I have decided to include some of them in parts of the encantAR.js API for convenience.
6
 
6
 
7
 In this documentation, I provide a quick reference of some of the classes used in Speedy Vision. This reference is minimal. For a more complete reference, please visit the [website of the project](https://github.com/alemart/speedy-vision){ ._blank }.
7
 In this documentation, I provide a quick reference of some of the classes used in Speedy Vision. This reference is minimal. For a more complete reference, please visit the [website of the project](https://github.com/alemart/speedy-vision){ ._blank }.
8
 
8
 

+ 7
- 7
docs/demos.md Visa fil

14
 
14
 
15
 Create an augmented scene with [A-Frame](https://aframe.io){ ._blank }. This is the easiest demo to edit!
15
 Create an augmented scene with [A-Frame](https://aframe.io){ ._blank }. This is the easiest demo to edit!
16
 
16
 
17
-[Launch demo](/martins-js/demos/hello-aframe/README.html){ ._blank .md-button }
17
+[Launch demo](/encantar-js/demos/hello-aframe/README.html){ ._blank .md-button }
18
 
18
 
19
 ### WebAR with three.js
19
 ### WebAR with three.js
20
 
20
 
21
 Create an augmented scene with [three.js](https://threejs.org){ ._blank }.
21
 Create an augmented scene with [three.js](https://threejs.org){ ._blank }.
22
 
22
 
23
-[Launch demo](/martins-js/demos/hello-three/README.html){ ._blank .md-button }
23
+[Launch demo](/encantar-js/demos/hello-three/README.html){ ._blank .md-button }
24
 
24
 
25
 ### WebAR with WebGL only
25
 ### WebAR with WebGL only
26
 
26
 
27
 Create an augmented scene without additional libraries.
27
 Create an augmented scene without additional libraries.
28
 
28
 
29
-[Launch demo](/martins-js/demos/hello-webgl/README.html){ ._blank .md-button }
29
+[Launch demo](/encantar-js/demos/hello-webgl/README.html){ ._blank .md-button }
30
 
30
 
31
 ### Hello, world!
31
 ### Hello, world!
32
 
32
 
33
 A basic template to help you get started.
33
 A basic template to help you get started.
34
 
34
 
35
-[Launch demo](/martins-js/demos/hello-world/README.html){ ._blank .md-button }
35
+[Launch demo](/encantar-js/demos/hello-world/README.html){ ._blank .md-button }
36
 
36
 
37
 ## Interactive demos
37
 ## Interactive demos
38
 
38
 
40
 
40
 
41
 Have virtual elements respond to touch input.
41
 Have virtual elements respond to touch input.
42
 
42
 
43
-[Launch demo](/martins-js/demos/touch-three/README.html){ ._blank .md-button }
43
+[Launch demo](/encantar-js/demos/touch-three/README.html){ ._blank .md-button }
44
 
44
 
45
 ## Guidelines
45
 ## Guidelines
46
 
46
 
60
 * Run on a console:
60
 * Run on a console:
61
 
61
 
62
 ```sh
62
 ```sh
63
-git clone git@github.com:alemart/martins-js.git
64
-cd martins-js
63
+git clone git@github.com:alemart/encantar-js.git
64
+cd encantar-js
65
 npm start
65
 npm start
66
 ```
66
 ```
67
 
67
 

+ 5
- 7
docs/faq.md Visa fil

1
 # Questions & Answers
1
 # Questions & Answers
2
 
2
 
3
-## What is MARTINS.js?
3
+## What is encantAR.js?
4
 
4
 
5
-MARTINS.js is a GPU-accelerated Augmented Reality engine for the web. It's a standalone WebAR technology for creating AR experiences that run in web browsers. Users don't need specialized hardware nor dedicated software - only a modern web browser.
6
-
7
-MARTINS is a recursive acronym for MARTINS Augmented Reality Technology for Internet Software. It also happens to be my name. See, AR is part of my name. Can you believe it? :sunglasses:
5
+encantAR.js is a standalone GPU-accelerated Augmented Reality engine for the web. The name derives from the Portuguese and Spanish word _encantar_, which means: to enchant, to delight, to love, to fascinate, to put a magical spell.
8
 
6
 
9
 ## What is WebAR?
7
 ## What is WebAR?
10
 
8
 
12
 
10
 
13
 ## Is this WebXR?
11
 ## Is this WebXR?
14
 
12
 
15
-No, MARTINS.js is not WebXR. The WebXR API allows you to access functionalities of VR and AR-capable devices in web browsers. It relies on other technologies, such as Google's ARCore or Apple's ARKit, to run the show. Those technologies are great, but they are supported on specific devices, which may or may not match your users' devices. On the other hand, MARTINS.js is fully standalone and is built from scratch using standard web technologies such as WebGL2 and WebAssembly, which are widely available. My intention is to give it broad compatibility.
13
+No, encantAR.js is not WebXR. The WebXR API allows you to access functionalities of VR and AR-capable devices in web browsers. It relies on other technologies, such as Google's ARCore or Apple's ARKit, to run the show. Those technologies are great, but they are supported on specific devices, which may or may not match your users' devices. On the other hand, encantAR.js is fully standalone and is built from scratch using standard web technologies such as WebGL2 and WebAssembly, which are widely available. My intention is to give it broad compatibility.
16
 
14
 
17
 ## Why do my models appear "laid down" in AR?
15
 ## Why do my models appear "laid down" in AR?
18
 
16
 
19
-MARTINS.js uses a right-handed coordinate system with the Z-axis pointing "up". The same convention is used in [Blender](https://www.blender.org){ ._blank }. When exporting your own models, make sure that the Z-axis points "up" and that the ground plane is the XY-plane. If your models appear "laid down" in AR, this is probably the issue.
17
+encantAR.js uses a right-handed coordinate system with the Z-axis pointing "up". The same convention is used in [Blender](https://www.blender.org){ ._blank }. When exporting your own models, make sure that the Z-axis points "up" and that the ground plane is the XY-plane. If your models appear "laid down" in AR, this is probably the issue.
20
 
18
 
21
 !!! info "Fix with code"
19
 !!! info "Fix with code"
22
 
20
 
26
 
24
 
27
 [Get in touch!](https://github.com/alemart)
25
 [Get in touch!](https://github.com/alemart)
28
 
26
 
29
-## I love WebAR!
27
+## I am enchanted!
30
 
28
 
31
 I know! :wink:
29
 I know! :wink:

+ 6
- 6
docs/getting-started/activate-your-webcam.md Visa fil

4
 
4
 
5
 ## Change the source of data
5
 ## Change the source of data
6
 
6
 
7
-Instead of using a video file, we're going to use your webcam. We simply need to change the source of data and instruct MARTINS.js to use your webcam. We'll do it with 1 new line of code!
7
+Instead of using a video file, we're going to use your webcam. We simply need to change the source of data and instruct encantAR.js to use your webcam. We'll do it with 1 new line of code!
8
 
8
 
9
 ```js title="ar-demo.js" hl_lines="20-22"
9
 ```js title="ar-demo.js" hl_lines="20-22"
10
 async function startARSession()
10
 async function startARSession()
51
     <head>
51
     <head>
52
         <meta charset="utf-8">
52
         <meta charset="utf-8">
53
         <meta name="viewport" content="width=device-width,initial-scale=1">
53
         <meta name="viewport" content="width=device-width,initial-scale=1">
54
-        <title>MARTINS.js WebAR demo</title>
55
-        <script src="martins.js"></script>
54
+        <title>encantAR.js WebAR demo</title>
55
+        <script src="encantar.js"></script>
56
         <script src="ar-demo.js"></script>
56
         <script src="ar-demo.js"></script>
57
         <style>body { background-color: #3d5afe; }</style>
57
         <style>body { background-color: #3d5afe; }</style>
58
     </head>
58
     </head>
81
 
81
 
82
 !!! tip "Check your physical scene"
82
 !!! tip "Check your physical scene"
83
 
83
 
84
-    Good lighting conditions are important for a good user experience. Even though the MARTINS.js can handle various lighting conditions, you should get your physical scene appropriately illuminated.
84
+    Good lighting conditions are important for a good user experience. Even though the encantAR.js can handle various lighting conditions, you should get your physical scene appropriately illuminated.
85
 
85
 
86
     When developing your own WebAR experiences, ask yourself:
86
     When developing your own WebAR experiences, ask yourself:
87
     
87
     
125
     <head>
125
     <head>
126
         <meta charset="utf-8">
126
         <meta charset="utf-8">
127
         <meta name="viewport" content="width=device-width,initial-scale=1">
127
         <meta name="viewport" content="width=device-width,initial-scale=1">
128
-        <title>MARTINS.js WebAR demo</title>
128
+        <title>encantAR.js WebAR demo</title>
129
         <!-- <script> tags of the rendering engine of your choice -->
129
         <!-- <script> tags of the rendering engine of your choice -->
130
-        <script src="martins.js"></script>
130
+        <script src="encantar.js"></script>
131
         <script src="ar-demo.js"></script>
131
         <script src="ar-demo.js"></script>
132
         <style>
132
         <style>
133
         body { background-color: #3d5afe; }
133
         body { background-color: #3d5afe; }

+ 3
- 3
docs/getting-started/concepts.md Visa fil

16
 
16
 
17
 4. A **WebAR experience** is an Augmented Reality experience developed using WebAR technology.
17
 4. A **WebAR experience** is an Augmented Reality experience developed using WebAR technology.
18
 
18
 
19
-5. **MARTINS.js** is a WebAR technology. I also call it a WebAR engine. Lots of computations have to be performed behind the scenes in order to make an Augmented Reality experience possible. MARTINS.js uses the GPU[^2] to accelerate many of those computations. In fact, the GPU and the CPU[^3] are used together. This approach improves the performance of the WebAR experience and ultimately leads to a better user experience.
19
+5. **encantAR.js** is a WebAR technology. I also call it a WebAR engine. Lots of computations have to be performed behind the scenes in order to make an Augmented Reality experience possible. encantAR.js uses the GPU[^2] to accelerate many of those computations. In fact, the GPU and the CPU[^3] are used together. This approach improves the performance of the WebAR experience and ultimately leads to a better user experience.
20
 
20
 
21
-Now that those terms are clarified, I say this: you can use MARTINS.js to create amazing WebAR experiences! :wink:
21
+Now that those terms are clarified, I say this: you can use encantAR.js to create amazing WebAR experiences! :wink:
22
 
22
 
23
 [^1]: This definition of AR experience is convenient in different ways. For example, it makes the term "WebAR experience", which is arguably better than "WebAR app" (no apps are downloaded), well-defined. I make a distinction between AR experience and experience of AR. An experience of AR is an event in consciousness in which AR is experienced. I sometimes use the latter definition.
23
 [^1]: This definition of AR experience is convenient in different ways. For example, it makes the term "WebAR experience", which is arguably better than "WebAR app" (no apps are downloaded), well-defined. I make a distinction between AR experience and experience of AR. An experience of AR is an event in consciousness in which AR is experienced. I sometimes use the latter definition.
24
 [^2]: Graphics Processing Unit
24
 [^2]: Graphics Processing Unit
26
 
26
 
27
 ## Practical concepts
27
 ## Practical concepts
28
 
28
 
29
-Let me explain some concepts that you'll see over and over again when developing WebAR experiences with MARTINS.js:
29
+Let me explain some concepts that you'll see over and over again when developing WebAR experiences with encantAR.js:
30
 
30
 
31
 1. The experience of Augmented Reality is created by augmenting the physical scene with the virtual scene.
31
 1. The experience of Augmented Reality is created by augmenting the physical scene with the virtual scene.
32
 
32
 

+ 6
- 6
docs/getting-started/create-the-augmented-scene.md Visa fil

4
 
4
 
5
 ## Pick a 3D rendering technology
5
 ## Pick a 3D rendering technology
6
 
6
 
7
-MARTINS.js is not a 3D rendering technology. It is an Augmented Reality technology that provides the data you need in order to augment your physical scenes. There are free and open-source 3D rendering technologies for the web that you can find online and use with MARTINS.js. Popular solutions include: A-Frame, Babylon.js and Three.js. You can also use other solutions. MARTINS.js lets you pick any 3D rendering technology.
7
+encantAR.js is not a 3D rendering technology. It is an Augmented Reality technology that provides the data you need in order to augment your physical scenes. There are free and open-source 3D rendering technologies for the web that you can find online and use with encantAR.js. Popular solutions include: A-Frame, Babylon.js and Three.js. You can also use other solutions. encantAR.js lets you pick any 3D rendering technology.
8
 
8
 
9
-Once you pick a 3D rendering technology, you need to integrate it with MARTINS.js. There is a code that is responsible for that integration. I call it a _glue code_. Among other things, a glue code transports the tracking results from MARTINS.js to the 3D rendering technology of your choice - it really is a "glue" connecting them.
9
+Once you pick a 3D rendering technology, you need to integrate it with encantAR.js. There is a code that is responsible for that integration. I call it a _glue code_. Among other things, a glue code transports the tracking results from encantAR.js to the 3D rendering technology of your choice - it really is a "glue" connecting them.
10
 
10
 
11
 ## Write the glue code
11
 ## Write the glue code
12
 
12
 
32
 
32
 
33
 ### A-Frame
33
 ### A-Frame
34
 
34
 
35
-[A-Frame](https://aframe.io){ ._blank } is an open-source framework used to build virtual reality (VR) experiences for the web. When you combine it with MARTINS.js, you become able to use it to create AR experiences too - without the need of special hardware or software.
35
+[A-Frame](https://aframe.io){ ._blank } is an open-source framework used to build virtual reality (VR) experiences for the web. When you combine it with encantAR.js, you become able to use it to create AR experiences too - without the need of special hardware or software.
36
 
36
 
37
 A-Frame is built on top of [Three.js](#threejs) and extends it in powerful ways. It introduces a HTML-based declarative approach for [scene graphs](https://en.wikipedia.org/wiki/Scene_graph){ ._blank }, empowering them with the [Entity-Component-System](https://en.wikipedia.org/wiki/Entity_component_system){ ._blank }, a software pattern commonly used in game development. Sounds complicated? It is not!
37
 A-Frame is built on top of [Three.js](#threejs) and extends it in powerful ways. It introduces a HTML-based declarative approach for [scene graphs](https://en.wikipedia.org/wiki/Scene_graph){ ._blank }, empowering them with the [Entity-Component-System](https://en.wikipedia.org/wiki/Entity_component_system){ ._blank }, a software pattern commonly used in game development. Sounds complicated? It is not!
38
 
38
 
44
     <head>
44
     <head>
45
         <meta charset="utf-8">
45
         <meta charset="utf-8">
46
         <meta name="viewport" content="width=device-width,initial-scale=1">
46
         <meta name="viewport" content="width=device-width,initial-scale=1">
47
-        <title>MARTINS.js WebAR demo</title>
47
+        <title>encantAR.js WebAR demo</title>
48
         <!-- include A-Frame -->
48
         <!-- include A-Frame -->
49
         <script src="aframe-vX.Y.Z.min.js"></script>
49
         <script src="aframe-vX.Y.Z.min.js"></script>
50
-        <script src="martins.js"></script>
50
+        <script src="encantar.js"></script>
51
         <script src="ar-demo.js"></script>
51
         <script src="ar-demo.js"></script>
52
         <!-- this is my glue code for A-Frame -->
52
         <!-- this is my glue code for A-Frame -->
53
-        <script src="aframe-with-martins.js"></script>
53
+        <script src="aframe-with-encantar.js"></script>
54
         <style>body { background-color: #3d5afe; }</style>
54
         <style>body { background-color: #3d5afe; }</style>
55
     </head>
55
     </head>
56
     <body>
56
     <body>

+ 11
- 11
docs/getting-started/index.md Visa fil

1
-# Welcome to MARTINS.js!
1
+# Welcome to encantAR.js!
2
 
2
 
3
-[![GitHub release (latest by date)](https://img.shields.io/github/v/release/alemart/martins-js)](https://github.com/alemart/martins-js/releases/) ![GitHub file size in bytes on a specified ref (branch/commit/tag)](https://img.shields.io/github/size/alemart/martins-js/dist/martins.min.js?branch=master&label=minified%20js) [![GitHub Repo stars](https://img.shields.io/github/stars/alemart/martins-js?logo=github)](https://github.com/alemart/martins-js/stargazers) [![GitHub Sponsors](https://img.shields.io/github/sponsors/alemart?logo=github)](https://github.com/sponsors/alemart/)
3
+[![GitHub release (latest by date)](https://img.shields.io/github/v/release/alemart/encantar-js)](https://github.com/alemart/encantar-js/releases/) ![GitHub file size in bytes on a specified ref (branch/commit/tag)](https://img.shields.io/github/size/alemart/encantar-js/dist/encantar.min.js?branch=master&label=minified%20js) [![GitHub Repo stars](https://img.shields.io/github/stars/alemart/encantar-js?logo=github)](https://github.com/alemart/encantar-js/stargazers) [![GitHub Sponsors](https://img.shields.io/github/sponsors/alemart?logo=github)](https://github.com/sponsors/alemart/)
4
 
4
 
5
-Create amazing Augmented Reality experiences with **MARTINS.js**, a GPU-accelerated Augmented Reality engine for the web.
5
+Create amazing Augmented Reality experiences with **encantAR.js**, a GPU-accelerated Augmented Reality engine for the web.
6
 
6
 
7
 [Get started](./introduction.md){ .md-button .md-button--primary } [Try a demo](../demo.md){ .md-button .md-button } [:heart:{ .heart } Support my work](../support-my-work.md){ .md-button }
7
 [Get started](./introduction.md){ .md-button .md-button--primary } [Try a demo](../demo.md){ .md-button .md-button } [:heart:{ .heart } Support my work](../support-my-work.md){ .md-button }
8
 
8
 
11
 * **Runs everywhere**: on Android, on iOS, and even on Desktop computers. No need of AR-capable devices.
11
 * **Runs everywhere**: on Android, on iOS, and even on Desktop computers. No need of AR-capable devices.
12
 * **Image tracking**. Use it to track detailed images such as: book covers, cartoons and photos.
12
 * **Image tracking**. Use it to track detailed images such as: book covers, cartoons and photos.
13
 
13
 
14
-## Why use MARTINS.js?
14
+## Why use encantAR.js?
15
 
15
 
16
-* **No need to download apps!** MARTINS.js is a WebAR engine: it runs in web browsers. Users can access the AR experiences immediately.
17
-* **Easy to get started!** MARTINS.js can be used with a `<script>` tag in your page. A static HTML page is enough to get started.
18
-* **Fast and powerful!** MARTINS.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
19
-* **Fully standalone!** MARTINS.js is built from scratch using standard web technologies. No need for additional hardware or software!
16
+* **No need to download apps!** encantAR.js is a WebAR engine: it runs in web browsers. Users can access the AR experiences immediately.
17
+* **Easy to get started!** encantAR.js can be used with a `<script>` tag in your page. A static HTML page is enough to get started.
18
+* **Fast and powerful!** encantAR.js is GPU-accelerated. It uses WebGL2 and WebAssembly for turbocharged performance.
19
+* **Fully standalone!** encantAR.js is built from scratch using standard web technologies. No need for additional hardware or software!
20
 * **Free and open-source!** Get started right away!
20
 * **Free and open-source!** Get started right away!
21
 
21
 
22
 ## Browser compatibility
22
 ## Browser compatibility
23
 
23
 
24
-MARTINS.js is compatible with all major web browsers:
24
+encantAR.js is compatible with all major web browsers:
25
 
25
 
26
 | Chrome | Edge | Firefox | Opera | Safari* |
26
 | Chrome | Edge | Firefox | Opera | Safari* |
27
 |:------:|:----:|:-------:|:-----:|:-------:|
27
 |:------:|:----:|:-------:|:-----:|:-------:|
29
 
29
 
30
 \* use Safari 15.2 or later.
30
 \* use Safari 15.2 or later.
31
 
31
 
32
-MARTINS.js requires WebGL2 and WebAssembly.
32
+encantAR.js requires WebGL2 and WebAssembly.
33
 
33
 
34
 ## About
34
 ## About
35
 
35
 
36
-MARTINS.js is developed by [Alexandre Martins](https://github.com/alemart) and released under the [LGPL](../license.md). It is based on [Speedy Vision](https://github.com/alemart/speedy-vision).
36
+encantAR.js is developed by [Alexandre Martins](https://github.com/alemart) and released under the [LGPL](../license.md). It is based on [Speedy Vision](https://github.com/alemart/speedy-vision).

+ 3
- 3
docs/getting-started/next-steps.md Visa fil

1
 # Next steps
1
 # Next steps
2
 
2
 
3
-Congratulations! You have created your first WebAR experience with MARTINS.js! :sunglasses:
3
+Congratulations! You have created your first WebAR experience with encantAR.js! :sunglasses:
4
 
4
 
5
 Let me tell you some of the steps you can take from now on.
5
 Let me tell you some of the steps you can take from now on.
6
 
6
 
84
 
84
 
85
 !!! tip "Use the minified code"
85
 !!! tip "Use the minified code"
86
 
86
 
87
-    When deploying your WebAR experiences, make sure to include the minified `martins.min.js` file instead of the regular `martins.js`. The latter is suitable for development. The former, for production.
87
+    When deploying your WebAR experiences, make sure to include the minified `encantar.min.js` file instead of the regular `encantar.js`. The latter is suitable for development. The former, for production.
88
 
88
 
89
 ## Support my work
89
 ## Support my work
90
 
90
 
91
 If you came this far in the guide, WebAR probably excites you. It is definitely something you want. I know, it is awesome! The possibilities are endless. Even better than getting your creative juices boiling with enthusiasm is the feeling of joy I have for sharing this work with you.
91
 If you came this far in the guide, WebAR probably excites you. It is definitely something you want. I know, it is awesome! The possibilities are endless. Even better than getting your creative juices boiling with enthusiasm is the feeling of joy I have for sharing this work with you.
92
 
92
 
93
-I develop MARTINS.js independently. Creating this WebAR engine required a lot of time, effort, skill and specialized knowledge. Please support my work today, so that I can make it even more awesome!
93
+I develop encantAR.js independently. Creating this WebAR engine required a lot of time, effort, skill and specialized knowledge. Please support my work today, so that I can make it even more awesome!
94
 
94
 
95
 [:heart:{ .heart } Support my work](../support-my-work.md){ .md-button }
95
 [:heart:{ .heart } Support my work](../support-my-work.md){ .md-button }

+ 4
- 4
docs/getting-started/set-up-a-web-server.md Visa fil

7
 Let's create a file structure for our AR experience:
7
 Let's create a file structure for our AR experience:
8
 
8
 
9
 1. Create a new folder called `ar-demo` in your filesystem
9
 1. Create a new folder called `ar-demo` in your filesystem
10
-2. Download the [latest release of MARTINS.js](../download.md){ ._blank } and extract `dist/martins.js` to `ar-demo/`
10
+2. Download the [latest release of encantAR.js](../download.md){ ._blank } and extract `dist/encantar.js` to `ar-demo/`
11
 3. Create a new empty file called `index.html` and store it in `ar-demo/`
11
 3. Create a new empty file called `index.html` and store it in `ar-demo/`
12
 
12
 
13
 You will have the following file structure:
13
 You will have the following file structure:
14
 
14
 
15
     ar-demo/
15
     ar-demo/
16
     ├── index.html
16
     ├── index.html
17
-    └── martins.js
17
+    └── encantar.js
18
 
18
 
19
 ## Add boilerplate code
19
 ## Add boilerplate code
20
 
20
 
26
     <head>
26
     <head>
27
         <meta charset="utf-8">
27
         <meta charset="utf-8">
28
         <meta name="viewport" content="width=device-width,initial-scale=1">
28
         <meta name="viewport" content="width=device-width,initial-scale=1">
29
-        <title>MARTINS.js WebAR demo</title>
30
-        <script src="martins.js"></script>
29
+        <title>encantAR.js WebAR demo</title>
30
+        <script src="encantar.js"></script>
31
         <style>body { background-color: #3d5afe; }</style>
31
         <style>body { background-color: #3d5afe; }</style>
32
     </head>
32
     </head>
33
     <body>
33
     <body>

+ 2
- 2
docs/getting-started/set-up-the-session.md Visa fil

12
     <head>
12
     <head>
13
         <meta charset="utf-8">
13
         <meta charset="utf-8">
14
         <meta name="viewport" content="width=device-width,initial-scale=1">
14
         <meta name="viewport" content="width=device-width,initial-scale=1">
15
-        <title>MARTINS.js WebAR demo</title>
16
-        <script src="martins.js"></script>
15
+        <title>encantAR.js WebAR demo</title>
16
+        <script src="encantar.js"></script>
17
         <script src="ar-demo.js"></script>
17
         <script src="ar-demo.js"></script>
18
         <style>body { background-color: #3d5afe; }</style>
18
         <style>body { background-color: #3d5afe; }</style>
19
     </head>
19
     </head>

+ 12
- 12
docs/getting-started/set-up-the-tracker.md Visa fil

23
     <head>
23
     <head>
24
         <meta charset="utf-8">
24
         <meta charset="utf-8">
25
         <meta name="viewport" content="width=device-width,initial-scale=1">
25
         <meta name="viewport" content="width=device-width,initial-scale=1">
26
-        <title>MARTINS.js WebAR demo</title>
27
-        <script src="martins.js"></script>
26
+        <title>encantAR.js WebAR demo</title>
27
+        <script src="encantar.js"></script>
28
         <style>body { background-color: #3d5afe; }</style>
28
         <style>body { background-color: #3d5afe; }</style>
29
     </head>
29
     </head>
30
     <body>
30
     <body>
50
     <head>
50
     <head>
51
         <meta charset="utf-8">
51
         <meta charset="utf-8">
52
         <meta name="viewport" content="width=device-width,initial-scale=1">
52
         <meta name="viewport" content="width=device-width,initial-scale=1">
53
-        <title>MARTINS.js WebAR demo</title>
54
-        <script src="martins.js"></script>
53
+        <title>encantAR.js WebAR demo</title>
54
+        <script src="encantar.js"></script>
55
         <style>body { background-color: #3d5afe; }</style>
55
         <style>body { background-color: #3d5afe; }</style>
56
     </head>
56
     </head>
57
     <body>
57
     <body>
75
 
75
 
76
     ar-demo/
76
     ar-demo/
77
     ├── index.html
77
     ├── index.html
78
-    ├── martins.js
78
+    ├── encantar.js
79
     ├── my-reference-image.webp
79
     ├── my-reference-image.webp
80
     ├── my-video.mp4
80
     ├── my-video.mp4
81
     └── my-video.webm
81
     └── my-video.webm
88
     <head>
88
     <head>
89
         <meta charset="utf-8">
89
         <meta charset="utf-8">
90
         <meta name="viewport" content="width=device-width,initial-scale=1">
90
         <meta name="viewport" content="width=device-width,initial-scale=1">
91
-        <title>MARTINS.js WebAR demo</title>
92
-        <script src="martins.js"></script>
91
+        <title>encantAR.js WebAR demo</title>
92
+        <script src="encantar.js"></script>
93
         <style>body { background-color: #3d5afe; }</style>
93
         <style>body { background-color: #3d5afe; }</style>
94
     </head>
94
     </head>
95
     <body>
95
     <body>
108
 
108
 
109
 Before we track anything with an Image Tracker, we must tell it what to track. There are two steps to this: first, we instantiate an Image Tracker. Next, we link our reference image to it.
109
 Before we track anything with an Image Tracker, we must tell it what to track. There are two steps to this: first, we instantiate an Image Tracker. Next, we link our reference image to it.
110
 
110
 
111
-We'll be writing a little bit of JavaScript code now. In order to keep our code clean, we'll be writing the JavaScript code to a new file. Let's add a `<script>` tag below `martins.js` as follows:
111
+We'll be writing a little bit of JavaScript code now. In order to keep our code clean, we'll be writing the JavaScript code to a new file. Let's add a `<script>` tag below `encantar.js` as follows:
112
 
112
 
113
 ```html title="index.html" hl_lines="8"
113
 ```html title="index.html" hl_lines="8"
114
 <!doctype html>
114
 <!doctype html>
116
     <head>
116
     <head>
117
         <meta charset="utf-8">
117
         <meta charset="utf-8">
118
         <meta name="viewport" content="width=device-width,initial-scale=1">
118
         <meta name="viewport" content="width=device-width,initial-scale=1">
119
-        <title>MARTINS.js WebAR demo</title>
120
-        <script src="martins.js"></script>
119
+        <title>encantAR.js WebAR demo</title>
120
+        <script src="encantar.js"></script>
121
         <script src="ar-demo.js"></script>
121
         <script src="ar-demo.js"></script>
122
         <style>body { background-color: #3d5afe; }</style>
122
         <style>body { background-color: #3d5afe; }</style>
123
     </head>
123
     </head>
154
 
154
 
155
 The `Martins` namespace holds the various elements featured by the engine. We'll be using it extensively.
155
 The `Martins` namespace holds the various elements featured by the engine. We'll be using it extensively.
156
 
156
 
157
-MARTINS.js only requires standard web technologies that have been around for a while. Still, it's a good practice to check if those technologies are supported by the target system. If they are not, we display a message and quit. If they are, we instantiate an Image Tracker.
157
+encantAR.js only requires standard web technologies that have been around for a while. Still, it's a good practice to check if those technologies are supported by the target system. If they are not, we display a message and quit. If they are, we instantiate an Image Tracker.
158
 
158
 
159
 Before moving on, make sure that you have the following directory structure at this point:
159
 Before moving on, make sure that you have the following directory structure at this point:
160
 
160
 
161
     ar-demo/
161
     ar-demo/
162
     ├── ar-demo.js
162
     ├── ar-demo.js
163
     ├── index.html
163
     ├── index.html
164
-    ├── martins.js
164
+    ├── encantar.js
165
     ├── my-reference-image.webp
165
     ├── my-reference-image.webp
166
     ├── my-video.mp4
166
     ├── my-video.mp4
167
     └── my-video.webm
167
     └── my-video.webm

Binär
docs/img/martins-icon.png Visa fil


+ 1
- 1
docs_overrides/demo.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta http-equiv="refresh" content="0; url='{{ 'demos/hello-webgl/README.html' | url }}'">
5
         <meta http-equiv="refresh" content="0; url='{{ 'demos/hello-webgl/README.html' | url }}'">
6
-        <title>MARTINS.js WebAR demo</title>
6
+        <title>encantAR.js WebAR demo</title>
7
     </head>
7
     </head>
8
     <body>
8
     <body>
9
         <p>Redirecting to <a href="{{ 'demos/hello-webgl/README.html' | url }}">{{ 'demos/hello-webgl/README.html' | url }}</a>...</p>
9
         <p>Redirecting to <a href="{{ 'demos/hello-webgl/README.html' | url }}">{{ 'demos/hello-webgl/README.html' | url }}</a>...</p>

+ 3
- 3
docs_overrides/download.html Visa fil

2
 <html>
2
 <html>
3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
-        <meta http-equiv="refresh" content="0; url='https://github.com/alemart/martins-js/releases'">
6
-        <title>Download MARTINS.js</title>
5
+        <meta http-equiv="refresh" content="0; url='https://github.com/alemart/encantar-js/releases'">
6
+        <title>Download encantAR.js</title>
7
     </head>
7
     </head>
8
     <body>
8
     <body>
9
-        <p>Redirecting to <a href="https://github.com/alemart/martins-js/releases">https://github.com/alemart/martins-js/releases</a>...</p>
9
+        <p>Redirecting to <a href="https://github.com/alemart/encantar-js/releases">https://github.com/alemart/encantar-js/releases</a>...</p>
10
     </body>
10
     </body>
11
 </html>
11
 </html>

+ 1
- 1
docs_overrides/main.html Visa fil

12
 
12
 
13
 {% block libs %}
13
 {% block libs %}
14
 {{ super() }}
14
 {{ super() }}
15
-<script data-goatcounter="https://martins-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
15
+<script data-goatcounter="https://encantar-js.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
16
 {% endblock %}
16
 {% endblock %}
17
 
17
 
18
 {% block _announce %}
18
 {% block _announce %}

+ 1
- 1
docs_overrides/partials/share.html Visa fil

9
 </a>
9
 </a>
10
 
10
 
11
 <!-- Sharingbutton Twitter -->
11
 <!-- Sharingbutton Twitter -->
12
-<a class="resp-sharing-button__link" href="https://twitter.com/intent/tweet/?text=%23MARTINSjs%20%23WebAR&amp;url={{ page.canonical_url | urlencode }}" target="_blank" rel="noopener" aria-label="">
12
+<a class="resp-sharing-button__link" href="https://twitter.com/intent/tweet/?text=%23encantar-js%20%23webar%20%23augmented-reality&amp;url={{ page.canonical_url | urlencode }}" target="_blank" rel="noopener" aria-label="">
13
   <div class="resp-sharing-button resp-sharing-button--twitter resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
13
   <div class="resp-sharing-button resp-sharing-button--twitter resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
14
     <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.44 4.83c-.8.37-1.5.38-2.22.02.93-.56.98-.96 1.32-2.02-.88.52-1.86.9-2.9 1.1-.82-.88-2-1.43-3.3-1.43-2.5 0-4.55 2.04-4.55 4.54 0 .36.03.7.1 1.04-3.77-.2-7.12-2-9.36-4.75-.4.67-.6 1.45-.6 2.3 0 1.56.8 2.95 2 3.77-.74-.03-1.44-.23-2.05-.57v.06c0 2.2 1.56 4.03 3.64 4.44-.67.2-1.37.2-2.06.08.58 1.8 2.26 3.12 4.25 3.16C5.78 18.1 3.37 18.74 1 18.46c2 1.3 4.4 2.04 6.97 2.04 8.35 0 12.92-6.92 12.92-12.93 0-.2 0-.4-.02-.6.9-.63 1.96-1.22 2.56-2.14z"/></svg>
14
     <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.44 4.83c-.8.37-1.5.38-2.22.02.93-.56.98-.96 1.32-2.02-.88.52-1.86.9-2.9 1.1-.82-.88-2-1.43-3.3-1.43-2.5 0-4.55 2.04-4.55 4.54 0 .36.03.7.1 1.04-3.77-.2-7.12-2-9.36-4.75-.4.67-.6 1.45-.6 2.3 0 1.56.8 2.95 2 3.77-.74-.03-1.44-.23-2.05-.57v.06c0 2.2 1.56 4.03 3.64 4.44-.67.2-1.37.2-2.06.08.58 1.8 2.26 3.12 4.25 3.16C5.78 18.1 3.37 18.74 1 18.46c2 1.3 4.4 2.04 6.97 2.04 8.35 0 12.92-6.92 12.92-12.93 0-.2 0-.4-.02-.6.9-.63 1.96-1.22 2.56-2.14z"/></svg>
15
     </div>
15
     </div>

+ 1
- 1
docs_overrides/support-my-work.html Visa fil

3
     <head>
3
     <head>
4
         <meta charset="utf-8">
4
         <meta charset="utf-8">
5
         <meta http-equiv="refresh" content="0; url='https://github.com/sponsors/alemart'">
5
         <meta http-equiv="refresh" content="0; url='https://github.com/sponsors/alemart'">
6
-        <title>MARTINS.js - Support my work</title>
6
+        <title>encantAR.js - Support my work</title>
7
     </head>
7
     </head>
8
     <body>
8
     <body>
9
         <p>Redirecting to <a href="https://github.com/sponsors/alemart">GitHub Sponsors</a>...</p>
9
         <p>Redirecting to <a href="https://github.com/sponsors/alemart">GitHub Sponsors</a>...</p>

+ 4
- 5
mkdocs.yml Visa fil

1
-site_name: "MARTINS.js: GPU-accelerated Augmented Reality for the web"
2
-site_url: https://alemart.github.io/martins-js
1
+site_name: "encantAR.js: GPU-accelerated Augmented Reality for the web"
2
+site_url: https://alemart.github.io/encantar-js
3
 site_author: Alexandre Martins
3
 site_author: Alexandre Martins
4
 site_description: Open source WebAR engine. Runs everywhere. Easy to get started.
4
 site_description: Open source WebAR engine. Runs everywhere. Easy to get started.
5
 copyright: Copyright &copy; 2022 - present Alexandre Martins
5
 copyright: Copyright &copy; 2022 - present Alexandre Martins
6
 
6
 
7
-repo_name: alemart/martins-js
8
-repo_url: https://github.com/alemart/martins-js
7
+repo_name: alemart/encantar-js
8
+repo_url: https://github.com/alemart/encantar-js
9
 
9
 
10
 theme:
10
 theme:
11
   name: material
11
   name: material
12
   custom_dir: docs_overrides
12
   custom_dir: docs_overrides
13
   features: [ 'navigation.tabs', 'navigation.tabs.sticky' ]
13
   features: [ 'navigation.tabs', 'navigation.tabs.sticky' ]
14
-  logo: img/martins-icon.png
15
 
14
 
16
 extra_css: [ 'style/extra.css' ]
15
 extra_css: [ 'style/extra.css' ]
17
 extra_javascript: [ 'js/extra.js' ]
16
 extra_javascript: [ 'js/extra.js' ]

+ 2
- 2
package-lock.json Visa fil

1
 {
1
 {
2
-  "name": "martins-js",
2
+  "name": "encantar-js",
3
   "version": "0.2.1-wip",
3
   "version": "0.2.1-wip",
4
   "lockfileVersion": 2,
4
   "lockfileVersion": 2,
5
   "requires": true,
5
   "requires": true,
6
   "packages": {
6
   "packages": {
7
     "": {
7
     "": {
8
-      "name": "martins-js",
8
+      "name": "encantar-js",
9
       "version": "0.2.1-wip",
9
       "version": "0.2.1-wip",
10
       "license": "LGPL-3.0-or-later",
10
       "license": "LGPL-3.0-or-later",
11
       "dependencies": {
11
       "dependencies": {

+ 5
- 5
package.json Visa fil

1
 {
1
 {
2
-  "name": "martins-js",
2
+  "name": "encantar-js",
3
   "version": "0.2.1-wip",
3
   "version": "0.2.1-wip",
4
   "description": "GPU-accelerated Augmented Reality for the web",
4
   "description": "GPU-accelerated Augmented Reality for the web",
5
   "author": "Alexandre Martins <alemartf@gmail.com> (https://github.com/alemart)",
5
   "author": "Alexandre Martins <alemartf@gmail.com> (https://github.com/alemart)",
6
-  "homepage": "https://github.com/alemart/martins-js",
6
+  "homepage": "https://github.com/alemart/encantar-js",
7
   "license": "LGPL-3.0-or-later",
7
   "license": "LGPL-3.0-or-later",
8
-  "repository": "github:alemart/martins-js",
8
+  "repository": "github:alemart/encantar-js",
9
   "funding": "https://github.com/sponsors/alemart",
9
   "funding": "https://github.com/sponsors/alemart",
10
   "keywords": [
10
   "keywords": [
11
     "augmented reality",
11
     "augmented reality",
21
     "webgl2",
21
     "webgl2",
22
     "wasm"
22
     "wasm"
23
   ],
23
   ],
24
-  "main": "dist/martins.js",
24
+  "main": "dist/encantar.js",
25
   "scripts": {
25
   "scripts": {
26
     "start": "webpack serve --mode development --env PORT=8000 --env minimize=1",
26
     "start": "webpack serve --mode development --env PORT=8000 --env minimize=1",
27
     "build-dev": "npm run update && npm run clean && webpack --mode development",
27
     "build-dev": "npm run update && npm run clean && webpack --mode development",
28
     "build": "npm run update && npm run clean && webpack --mode production && webpack --mode production --env minimize=1",
28
     "build": "npm run update && npm run clean && webpack --mode production && webpack --mode production --env minimize=1",
29
-    "clean": "rm -rf dist/martins*.js",
29
+    "clean": "rm -rf dist/encantar*.js",
30
     "update": "npm update speedy-vision",
30
     "update": "npm update speedy-vision",
31
     "deploy": "mkdocs gh-deploy",
31
     "deploy": "mkdocs gh-deploy",
32
     "test": "echo \"Error: no test specified\" && exit 1"
32
     "test": "echo \"Error: no test specified\" && exit 1"

+ 1
- 1
src/core/frame.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/core/gizmos.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/core/hud.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 2
- 2
src/core/session.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *
287
 
287
 
288
             // is the engine supported?
288
             // is the engine supported?
289
             if(!Session.isSupported())
289
             if(!Session.isSupported())
290
-                throw new NotSupportedError('You need a browser/device compatible with WebGL2 and WebAssembly in order to experience Augmented Reality with the MARTINS.js engine');
290
+                throw new NotSupportedError('You need a browser/device compatible with WebGL2 and WebAssembly in order to experience Augmented Reality with encantar.js');
291
 
291
 
292
             // block multiple immersive sessions
292
             // block multiple immersive sessions
293
             if(mode !== 'inline' && Session.count > 0)
293
             if(mode !== 'inline' && Session.count > 0)

+ 1
- 1
src/core/settings.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 2
- 2
src/core/stats-panel.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *
195
         container.style.fontSize = '14px';
195
         container.style.fontSize = '14px';
196
 
196
 
197
         // all sanitized
197
         // all sanitized
198
-        container.innerText = 'MARTINS.js ' + Martins.version;
198
+        container.innerText = 'encantAR.js ' + Martins.version;
199
 
199
 
200
         print('<br>');
200
         print('<br>');
201
         print('FPS: <span class="_ar_fps"></span> | ');
201
         print('FPS: <span class="_ar_fps"></span> | ');

+ 1
- 1
src/core/stats.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/core/time.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/core/viewport.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/geometry/camera-model.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/geometry/pose.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/geometry/transform.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/geometry/view.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/geometry/viewer-pose.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/geometry/viewer.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 9
- 9
src/main.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *
28
 import { SourceFactory } from './sources/source-factory';
28
 import { SourceFactory } from './sources/source-factory';
29
 import { Viewport, ViewportSettings } from './core/viewport';
29
 import { Viewport, ViewportSettings } from './core/viewport';
30
 import { Utils } from './utils/utils';
30
 import { Utils } from './utils/utils';
31
-declare const __MARTINS_VERSION__: string;
32
-declare const __MARTINS_DEVELOPMENT_MODE__: string;
33
-declare const __MARTINS_WEBSITE__: string;
31
+declare const __AR_VERSION__: string;
32
+declare const __AR_DEVELOPMENT_MODE__: string;
33
+declare const __AR_WEBSITE__: string;
34
 
34
 
35
 /**
35
 /**
36
  * GPU-accelerated Augmented Reality for the web
36
  * GPU-accelerated Augmented Reality for the web
86
      */
86
      */
87
     static get version(): string
87
     static get version(): string
88
     {
88
     {
89
-        if(__MARTINS_DEVELOPMENT_MODE__)
90
-            return __MARTINS_VERSION__ + '-dev';
89
+        if(__AR_DEVELOPMENT_MODE__)
90
+            return __AR_VERSION__ + '-dev';
91
         else
91
         else
92
-            return __MARTINS_VERSION__;
92
+            return __AR_VERSION__;
93
     }
93
     }
94
 
94
 
95
     /**
95
     /**
118
 
118
 
119
 // Display a notice
119
 // Display a notice
120
 Utils.log(
120
 Utils.log(
121
-    `MARTINS.js version ${Martins.version}. ` +
121
+    `encantAR.js version ${Martins.version}. ` +
122
     `GPU-accelerated Augmented Reality for the web by Alexandre Martins. ` +
122
     `GPU-accelerated Augmented Reality for the web by Alexandre Martins. ` +
123
-    __MARTINS_WEBSITE__
123
+    __AR_WEBSITE__
124
 );
124
 );

+ 1
- 1
src/sources/camera-source.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/sources/canvas-source.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/sources/source-factory.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/sources/source.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/sources/video-source.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/image-tracker/image-tracker-event.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/image-tracker/image-tracker.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/image-tracker/reference-image-database.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/image-tracker/reference-image.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/image-tracker/settings.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/image-tracker/states/initial.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/image-tracker/states/pre-tracking.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/image-tracker/states/scanning.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/image-tracker/states/state.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/image-tracker/states/tracking.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/image-tracker/states/training.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/tracker-factory.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/trackers/tracker.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/utils/ar-events.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/utils/asap.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/utils/errors.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 1
- 1
src/utils/resolution.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *

+ 4
- 4
src/utils/utils.ts Visa fil

1
 /*
1
 /*
2
- * MARTINS.js
2
+ * encantar.js
3
  * GPU-accelerated Augmented Reality for the web
3
  * GPU-accelerated Augmented Reality for the web
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
4
  * Copyright (C) 2022-2024 Alexandre Martins <alemartf(at)gmail.com>
5
  *
5
  *
42
      */
42
      */
43
     static log(message: string, ...args: any[]): void
43
     static log(message: string, ...args: any[]): void
44
     {
44
     {
45
-        console.log('[martins-js]', message, ...args);
45
+        console.log('[encantar-js]', message, ...args);
46
     }
46
     }
47
 
47
 
48
     /**
48
     /**
52
      */
52
      */
53
     static warning(message: string, ...args: any[]): void
53
     static warning(message: string, ...args: any[]): void
54
     {
54
     {
55
-        console.warn('[martins-js]', message, ...args);
55
+        console.warn('[encantar-js]', message, ...args);
56
     }
56
     }
57
 
57
 
58
     /**
58
     /**
62
      */
62
      */
63
     static error(message: string, ...args: any[]): void
63
     static error(message: string, ...args: any[]): void
64
     {
64
     {
65
-        console.error('[martins-js]', message, ...args);
65
+        console.error('[encantar-js]', message, ...args);
66
     }
66
     }
67
 
67
 
68
     /**
68
     /**

+ 6
- 6
webpack.config.js Visa fil

9
     devtool: argv.mode == 'development' ? 'source-map' : undefined,
9
     devtool: argv.mode == 'development' ? 'source-map' : undefined,
10
 
10
 
11
     output: {
11
     output: {
12
-        filename: !env.minimize ? 'martins.js' : 'martins.min.js',
12
+        filename: !env.minimize ? 'encantar.js' : 'encantar.min.js',
13
         path: path.resolve(__dirname, 'dist'),
13
         path: path.resolve(__dirname, 'dist'),
14
         publicPath: '/dist/',
14
         publicPath: '/dist/',
15
         library: {
15
         library: {
32
     plugins: [
32
     plugins: [
33
         new webpack.BannerPlugin({
33
         new webpack.BannerPlugin({
34
             banner: ((({ author, version, year, homepage, description, date }) => ([
34
             banner: ((({ author, version, year, homepage, description, date }) => ([
35
-                `MARTINS.js version ${version}`,
35
+                `encantAR.js version ${version}`,
36
                 `${description}`,
36
                 `${description}`,
37
                 `Copyright ${year} ${author}`,
37
                 `Copyright ${year} ${author}`,
38
                 `${homepage}`,
38
                 `${homepage}`,
42
             ].join('\n')))({
42
             ].join('\n')))({
43
                 ...pack,
43
                 ...pack,
44
                 'date': new Date().toISOString(),
44
                 'date': new Date().toISOString(),
45
-                'year': [ ...(new Set([2022, new Date().getFullYear()])) ].join('-'),
45
+                'year': [2022, new Date().getFullYear()].join('-'),
46
                 'author': pack.author.replace('@', '(at)'),
46
                 'author': pack.author.replace('@', '(at)'),
47
             }))
47
             }))
48
         }),
48
         }),
49
         new webpack.DefinePlugin({
49
         new webpack.DefinePlugin({
50
-            '__MARTINS_VERSION__': JSON.stringify(pack.version),
51
-            '__MARTINS_DEVELOPMENT_MODE__': argv.mode == 'development',
52
-            '__MARTINS_WEBSITE__': JSON.stringify(pack.homepage),
50
+            '__AR_VERSION__': JSON.stringify(pack.version),
51
+            '__AR_DEVELOPMENT_MODE__': argv.mode == 'development',
52
+            '__AR_WEBSITE__': JSON.stringify(pack.homepage),
53
         }),
53
         }),
54
         new webpack.IgnorePlugin({
54
         new webpack.IgnorePlugin({
55
             resourceRegExp: /\.ignore\./i,
55
             resourceRegExp: /\.ignore\./i,

Laddar…
Avbryt
Spara