-1
package.json
-1
package.json
-25
test/empty.gltf
-25
test/empty.gltf
···
1
-
{
2
-
"asset": {
3
-
"version": "2.0"
4
-
},
5
-
"accessors": [
6
-
{
7
-
"type": "VEC3",
8
-
"componentType": 5126,
9
-
"count": 3,
10
-
"min": [0, 0, 0],
11
-
"max": [1, 1, 1]
12
-
}
13
-
],
14
-
"meshes": [
15
-
{
16
-
"primitives": [
17
-
{
18
-
"attributes": {
19
-
"POSITION": 0
20
-
}
21
-
}
22
-
]
23
-
}
24
-
]
25
-
}
-18
test/gen_test.js
-18
test/gen_test.js
···
1
-
import fetch from 'node-fetch';
2
-
3
-
const VERSION = '2.0';
4
-
const CONTENT_URL = `https://api.github.com/repos/KhronosGroup/glTF-Sample-Models/contents/${VERSION}/`;
5
-
const RAW_BASE_URL = 'https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/';
6
-
const VIEWER_BASE_URL = `http://localhost:3000/#model=${RAW_BASE_URL}${VERSION}/`;
7
-
8
-
fetch(CONTENT_URL)
9
-
.then((response) => response.json())
10
-
.then((directories) => {
11
-
console.log('Samples:');
12
-
directories.forEach((entry) => {
13
-
const basename = entry.path.split('/').pop();
14
-
const prettyBasename = `${basename}.gltf:`;
15
-
console.log(` - ${prettyBasename} ${VIEWER_BASE_URL}${basename}/glTF/${basename}.gltf`);
16
-
});
17
-
console.log(`\n 🍺 Found ${directories.length} sample models. \n\n`);
18
-
});
-1
test/package.json
-1
test/package.json
···
1
-
{"type": "module"}
-47
yarn.lock
-47
yarn.lock
···
117
117
resolved "https://registry.yarnpkg.com/dat.gui/-/dat.gui-0.7.9.tgz#860cab06053b028e327820eabdf25a13cf07b17e"
118
118
integrity sha512-sCNc1OHobc+Erc1HqiswYgHdVNpSJUlk/Hz8vzOCsER7rl+oF/4+v8GXFUyCgtXpoCX6+bnmg07DedLvBLwYKQ==
119
119
120
-
data-uri-to-buffer@^4.0.0:
121
-
version "4.0.0"
122
-
resolved "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz"
123
-
integrity sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==
124
-
125
120
decode-uri-component@^0.2.2:
126
121
version "0.2.2"
127
122
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9"
···
155
150
"@esbuild/win32-ia32" "0.16.17"
156
151
"@esbuild/win32-x64" "0.16.17"
157
152
158
-
fetch-blob@^3.1.2:
159
-
version "3.1.4"
160
-
resolved "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.1.4.tgz"
161
-
integrity sha512-Eq5Xv5+VlSrYWEqKrusxY1C3Hm/hjeAsCGVG3ft7pZahlUAChpGZT/Ms1WmSLnEAisEXszjzu/s+ce6HZB2VHA==
162
-
dependencies:
163
-
node-domexception "^1.0.0"
164
-
web-streams-polyfill "^3.0.3"
165
-
166
-
fetch-blob@^3.1.4:
167
-
version "3.1.5"
168
-
resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-3.1.5.tgz#0077bf5f3fcdbd9d75a0b5362f77dbb743489863"
169
-
integrity sha512-N64ZpKqoLejlrwkIAnb9iLSA3Vx/kjgzpcDhygcqJ2KKjky8nCgUQ+dzXtbrLaWZGZNmNfQTsiQ0weZ1svglHg==
170
-
dependencies:
171
-
node-domexception "^1.0.0"
172
-
web-streams-polyfill "^3.0.3"
173
-
174
153
filter-obj@^1.1.0:
175
154
version "1.1.0"
176
155
resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b"
177
156
integrity sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==
178
157
179
-
formdata-polyfill@^4.0.10:
180
-
version "4.0.10"
181
-
resolved "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz"
182
-
integrity sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==
183
-
dependencies:
184
-
fetch-blob "^3.1.2"
185
-
186
158
fsevents@~2.3.2:
187
159
version "2.3.2"
188
160
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
···
238
210
version "2.6.2"
239
211
resolved "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz"
240
212
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
241
-
242
-
node-domexception@^1.0.0:
243
-
version "1.0.0"
244
-
resolved "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz"
245
-
integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==
246
-
247
-
node-fetch@^3.2.10:
248
-
version "3.3.0"
249
-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.0.tgz#37e71db4ecc257057af828d523a7243d651d91e4"
250
-
integrity sha512-BKwRP/O0UvoMKp7GNdwPlObhYGB5DQqwhEDQlNKuoqwVYSxkSZCSbHjnFFmUEtwSKRPU4kNK8PbDYYitwaE3QA==
251
-
dependencies:
252
-
data-uri-to-buffer "^4.0.0"
253
-
fetch-blob "^3.1.4"
254
-
formdata-polyfill "^4.0.10"
255
213
256
214
path-parse@^1.0.7:
257
215
version "1.0.7"
···
356
314
rollup "^3.7.0"
357
315
optionalDependencies:
358
316
fsevents "~2.3.2"
359
-
360
-
web-streams-polyfill@^3.0.3:
361
-
version "3.1.1"
362
-
resolved "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.1.1.tgz"
363
-
integrity sha512-Czi3fG883e96T4DLEPRvufrF2ydhOOW1+1a6c3gNjH2aIh50DNFBdfwh2AKoOf1rXvpvavAoA11Qdq9+BKjE0Q==
364
317
365
318
wordwrap@^1.0.0:
366
319
version "1.0.0"