Skip to content

Commit

Permalink
using local three.js files with importmap
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Oct 25, 2024
1 parent bae3288 commit 4261c33
Show file tree
Hide file tree
Showing 11 changed files with 2,004 additions and 2,006 deletions.
3,922 changes: 1,961 additions & 1,961 deletions build/artoolkitNFT.debug.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions examples/ARToolkitNFT_ES6_customInit_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<meta charset="utf-8">
<title>ARToolkitNFT_ES6 example</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=1">
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@v0.169.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@v0.169.0/examples/jsm/"
}
}
</script>
<script type="importmap">
{
"imports": {
"three": "./js/third_party/three.js/three.module.min.js",
"three/addons/": "./js/third_party/three.js/"
}
}
</script>
<link rel="stylesheet" href="css/nft-style.css">
</head>
<body>
Expand Down
4 changes: 1 addition & 3 deletions examples/ARToolkitNFT_ES6_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
<head>
<meta charset="utf-8">
<title>ARToolkitNFT_ES6 example</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=1">
<!--"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js",-->
<script type="importmap">
{
"imports": {
"three": "./js/third_party/three.js/three.module.min.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@v0.169.0/examples/jsm/"
"three/addons/": "./js/third_party/three.js/"
}
}
</script>
Expand Down
16 changes: 8 additions & 8 deletions examples/ARToolkitNFT_ES6_gltf_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<meta charset="utf-8">
<title>ARToolkitNFT_ES6 example</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=1">
<script type="importmap">
{
"imports": {
"three": "./js/third_party/three.js/three.module.min.js",
"three/addons/": "./js/third_party/three.js/"
}
}
</script>
<script type="importmap">
{
"imports": {
"three": "./js/third_party/three.js/three.module.min.js",
"three/addons/": "./js/third_party/three.js/"
}
}
</script>
<link rel="stylesheet" href="css/nft-style.css">
</head>
<body>
Expand Down
16 changes: 8 additions & 8 deletions examples/ARToolkitNFT_ES6_gray_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<meta charset="utf-8">
<title>ARToolkitNFT_ES6 example</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=1">
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@v0.169.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@v0.169.0/examples/jsm/"
}
}
</script>
<script type="importmap">
{
"imports": {
"three": "./js/third_party/three.js/three.module.min.js",
"three/addons/": "./js/third_party/three.js/"
}
}
</script>
<link rel="stylesheet" href="css/nft-style.css">
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions examples/ARToolkitNFT_ES6_threading_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@v0.169.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@v0.169.0/examples/jsm/"
"three": "./js/third_party/three.js/three.module.min.js",
"three/addons/": "./js/third_party/three.js/"
}
}
</script>
Expand Down
16 changes: 8 additions & 8 deletions examples/ARtoolkitNFT_multi_ES6_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<meta charset="utf-8">
<title>ARToolkitNFT_ES6 multi marker example</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=1">
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@v0.169.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@v0.169.0/examples/jsm/"
}
}
</script>
<script type="importmap">
{
"imports": {
"three": "./js/third_party/three.js/three.module.min.js",
"three/addons/": "./js/third_party/three.js/"
}
}
</script>
<link rel="stylesheet" href="css/nft-style.css">
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions examples/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@v0.169.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@v0.169.0/examples/jsm/"
"three": "./js/third_party/three.js/three.module.min.js",
"three/addons/": "./js/third_party/three.js/"
}
}
</script>
Expand Down
4 changes: 2 additions & 2 deletions examples/basic_embed_ES6.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@v0.169.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@v0.169.0/examples/jsm/"
"three": "./js/third_party/three.js/three.module.min.js",
"three/addons/": "./js/third_party/three.js/"
}
}
</script>
Expand Down
4 changes: 2 additions & 2 deletions examples/basic_threading.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@v0.169.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@v0.169.0/examples/jsm/"
"three": "./js/third_party/three.js/three.module.min.js",
"three/addons/": "./js/third_party/three.js/"
}
}
</script>
Expand Down
4 changes: 2 additions & 2 deletions examples/multi.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@v0.169.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@v0.169.0/examples/jsm/"
"three": "./js/third_party/three.js/three.module.min.js",
"three/addons/": "./js/third_party/three.js/"
}
}
</script>
Expand Down

0 comments on commit 4261c33

Please sign in to comment.