Skip to content

Commit c30a543

Browse files
vendoring gl-matrix
1 parent 0ee8f27 commit c30a543

File tree

7 files changed

+23
-15
lines changed

7 files changed

+23
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cp ../RLtools.js/rl_tools.js blob/rl_tools.js
1313
```
1414

1515
```
16-
npm install three@0.156.0 mathjs@14.3.1 stats.js@0.17.0 jsfive@0.4.0
16+
npm install three@0.156.0 mathjs@14.3.1 stats.js@0.17.0 jsfive@0.4.0 gl-matrix@3.4.3
1717
npm uninstall rltools; npm install rltools@file:../rltools.js/
1818
npm install --save-dev esbuild
1919
./bundle.sh

blob

controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { vec3, mat3, vec4, mat4, quat } from 'https://esm.sh/gl-matrix';
1+
import { vec3, mat3, vec4, mat4, quat } from 'gl-matrix'; // vendored through the importmap in index.html
22

33
export default class Controller {
44
constructor() {

dependencies/dependencies.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Explicit imports (no occidental clashes)
22

33
export {Stats as default} from 'stats.js'
4+
export { vec3, mat3, vec4, mat4, quat } from 'gl-matrix';
45

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"stats.js": "./blob/lib/dependencies.js",
4040
"jsfive": "./blob/lib/jsfive.js",
4141
"l2f-interface": "./blob/l2f-interface.js",
42-
"rltools": "./blob/lib/rltools.js"
42+
"rltools": "./blob/lib/rltools.js",
43+
"gl-matrix": "./blob/lib/dependencies.js"
4344
}
4445
}
4546
</script>

package-lock.json

Lines changed: 16 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"dependencies": {
3+
"gl-matrix": "^3.4.3",
34
"jsfive": "^0.4.0",
45
"mathjs": "^14.3.1",
56
"rltools": "file:../rltools.js",

0 commit comments

Comments
 (0)