-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathpackage.json
414 lines (414 loc) · 15.6 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
{
"name": "gltf-vscode",
"displayName": "glTF Tools",
"description": "Tools for glTF and GLB 3D models",
"version": "2.5.1",
"publisher": "cesium",
"license": "Apache-2.0",
"repository": {
"url": "https://github.com/AnalyticalGraphicsInc/gltf-vscode"
},
"keywords": [
"glTF",
"glb",
"Khronos",
"3D",
"model"
],
"icon": "images/gltf.png",
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Formatters",
"Linters",
"Debuggers"
],
"galleryBanner": {
"color": "#383838",
"theme": "dark"
},
"activationEvents": [
"onLanguage:json"
],
"main": "./out/src/extension",
"contributes": {
"configuration": {
"title": "glTF configuration",
"properties": {
"glTF.defaultV1Engine": {
"type": "string",
"default": "Cesium",
"enum": [
"Babylon.js",
"Cesium",
"Filament",
"Three.js"
],
"description": "The default 3D engine that will be used when previewing a glTF 1.0 model. You can always change the current engine within the preview pane."
},
"glTF.defaultV2Engine": {
"type": "string",
"default": "Babylon.js",
"enum": [
"Babylon.js",
"Cesium",
"Filament",
"Three.js"
],
"description": "The default 3D engine that will be used when previewing a glTF 2.0 model. You can always change the current engine within the preview pane."
},
"glTF.Babylon.environment": {
"type": "string",
"default": "{extensionRootPath}environments/babylon/symmetrical_garden.env",
"description": "The path to an HDR environment, or a BabylonJS-ready pre-filtered ENV or DDS environment file. Pre-filtering gives quicker load performance, see: https://doc.babylonjs.com/how_to/use_hdr_environment"
},
"glTF.Filament.environment": {
"type": "string",
"default": "{extensionRootPath}environments/ktx/symmetrical_garden_ibl.ktx",
"description": "The path to an HDR environment for use in Filament, processed into a KTX file by 'cmgen' (a tool bundled with Google Filament). The name should end in '_ibl.ktx' and there should be a matching '_skybox.ktx' file alongside it."
},
"glTF.Three.environment": {
"type": "string",
"default": "{extensionRootPath}environments/hdr/symmetrical_garden_1k.hdr",
"description": "The path to an HDR environment file for ThreeJS. Note that if {face} appears in the name, a legacy non-HDR cube map texture will be used instead."
},
"glTF.showToolbar3D": {
"type": "boolean",
"default": true,
"description": "Show a button on the toolbar to activate the 3D Preview window."
},
"glTF.alwaysOverwriteDefaultFilename": {
"type": "boolean",
"default": false,
"description": "When creating a filesystem file from glTF or GLB import or export should a prompt be shown to select the result filename?"
},
"glTF.expandOutlineWithSelection": {
"type": "boolean",
"default": false,
"description": "When the editor selection changes the glTF outline will expand to include the current selection."
},
"glTF.Validation.enable": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "When true, automatically run the glTF Validator and report any found issues to the document problems window."
},
"glTF.Validation.debounce": {
"scope": "resource",
"type": "number",
"default": 500,
"description": "The number of milliseconds to wait for multiple requests to re-validate a glTF document."
},
"glTF.Validation.maxIssues": {
"scope": "resource",
"type": "number",
"default": 200,
"description": "Controls the maximum number of issues reported by the glTF Validator."
},
"glTF.Validation.ignoredIssues": {
"scope": "resource",
"type": "array",
"default": [],
"description": "Array of issue codes to ignore during validation. See https://github.com/KhronosGroup/glTF-Validator/blob/master/ISSUES.md"
},
"glTF.Validation.severityOverrides": {
"scope": "resource",
"type": "object",
"default": {},
"description": "Override severity code of any glTF validation message by code. See https://github.com/KhronosGroup/glTF-Validator/blob/master/ISSUES.md"
}
}
},
"commands": [
{
"command": "gltf.inspectData",
"title": "glTF: Inspect Data"
},
{
"command": "gltf.importUri",
"title": "glTF: Import file as Data URI"
},
{
"command": "gltf.exportUri",
"title": "glTF: Export a Data URI to a file"
},
{
"command": "gltf.previewModel",
"title": "glTF: Preview 3D Model",
"icon": {
"dark": "./resources/dark/scene.svg",
"light": "./resources/light/scene.svg"
}
},
{
"command": "gltf.enableDebugMode",
"title": "glTF: Enable Debug Mode",
"icon": {
"dark": "./resources/dark/debug-disabled.svg",
"light": "./resources/light/debug-disabled.svg"
}
},
{
"command": "gltf.disableDebugMode",
"title": "glTF: Disable Debug Mode",
"icon": {
"dark": "./resources/dark/debug-enabled.svg",
"light": "./resources/light/debug-enabled.svg"
}
},
{
"command": "gltf.validateFile",
"title": "glTF: Validate a GLB or GLTF file"
},
{
"command": "gltf.exportGlbFile",
"title": "glTF: Export to GLB (Binary file)"
},
{
"command": "gltf.importGlbFile",
"title": "glTF: Import from GLB"
},
{
"command": "gltf.importAnimation",
"title": "glTF: Import animation"
},
{
"command": "gltf.exportAnimation",
"title": "glTF: Export animation"
},
{
"command": "gltf.declareExtension",
"title": "glTF Quick-Fix: Add Extension to 'extensionsUsed'"
},
{
"command": "gltf.addBufferViewTarget",
"title": "glTF Quick-Fix: Add a target to the bufferView based on attribute type"
},
{
"command": "gltf.addAllBufferViewTargets",
"title": "glTF Quick-Fix: Add all needed targets for all bufferViews in this file"
},
{
"command": "gltf.clearAnimationByteStride",
"title": "glTF Quick-Fix: Clear byteStride for this animation's bufferView"
},
{
"command": "gltf.clearAllAnimationByteStrides",
"title": "glTF Quick-Fix: Clear byteStrides for all animation bufferViews in this file"
},
{
"command": "gltf.clearUnusedJoints",
"title": "glTF Quick-Fix: Clear Joint IDs with zero weight"
},
{
"command": "gltfInspectData.copyAll",
"title": "glTF Inspect Data: Copy all values",
"shortTitle": "Copy All"
},
{
"command": "gltfInspectData.copy",
"title": "glTF Inspect Data: Copy current value",
"shortTitle": "Copy"
}
],
"keybindings": [
{
"command": "gltf.inspectData",
"key": "alt+d",
"mac": "alt+d",
"when": "editorTextFocus && gltfFileActive"
},
{
"command": "gltf.previewModel",
"key": "alt+g",
"mac": "alt+g",
"when": "editorTextFocus && gltfFileActive"
},
{
"command": "gltf.exportGlbFile",
"key": "alt+shift+s e",
"mac": "alt+shift+s e",
"when": "editorTextFocus && gltfFileActive"
},
{
"command": "gltf.importAnimation",
"key": "alt+i",
"mac": "alt+i",
"when": "editorTextFocus && gltfFileActive"
},
{
"command": "gltf.exportAnimation",
"key": "alt+o",
"mac": "alt+o",
"when": "editorTextFocus && gltfFileActive"
}
],
"menus": {
"explorer/context": [
{
"command": "gltf.exportGlbFile",
"when": "resourceExtname == .gltf",
"group": "glTF"
},
{
"command": "gltf.importGlbFile",
"when": "resourceExtname == .glb || resourceExtname == .vrm",
"group": "glTF"
},
{
"command": "gltf.validateFile",
"when": "resourceExtname == .gltf || resourceExtname == .glb || resourceExtname == .vrm",
"group": "glTF"
}
],
"editor/context": [
{
"command": "gltf.previewModel",
"when": "gltfFileActive",
"group": "glTF"
},
{
"command": "gltf.inspectData",
"when": "gltfFileActive",
"group": "glTF"
},
{
"command": "gltf.importUri",
"when": "gltfFileActive",
"group": "glTF"
},
{
"command": "gltf.exportUri",
"when": "gltfFileActive",
"group": "glTF"
}
],
"editor/title": [
{
"command": "gltf.previewModel",
"when": "gltfFileActive && gltfShowToolbar3D",
"group": "navigation"
},
{
"command": "gltf.enableDebugMode",
"when": "gltfPreviewActive && !gltfDebugActive",
"group": "navigation"
},
{
"command": "gltf.disableDebugMode",
"when": "gltfPreviewActive && gltfDebugActive",
"group": "navigation"
}
],
"editor/title/context": [
{
"command": "gltf.exportGlbFile",
"when": "resourceExtname == .gltf",
"group": "glTF"
},
{
"command": "gltf.importGlbFile",
"when": "resourceExtname == .glb || resourceExtname == .vrm",
"group": "glTF"
},
{
"command": "gltf.validateFile",
"when": "resourceExtname == .gltf || resourceExtname == .glb || resourceExtname == .vrm",
"group": "glTF"
}
],
"view/title": [
{
"command": "gltfInspectData.copyAll",
"when": "view == gltfInspectData"
}
],
"view/item/context": [
{
"command": "gltfInspectData.copy",
"when": "view == gltfInspectData"
},
{
"command": "gltfInspectData.copyAll",
"when": "view == gltfInspectData"
}
]
},
"languages": [
{
"id": "json",
"extensions": [
".gltf"
]
}
],
"jsonValidation": [
{
"fileMatch": "*.gltf",
"url": "./schemas/glTF.chooser.schema.json"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "gltf",
"title": "glTF",
"icon": "resources/dark/tf-logo.svg"
}
]
},
"views": {
"gltf": [
{
"id": "gltfOutline",
"name": "Outline",
"when": "gltfActive"
},
{
"id": "gltfInspectData",
"name": "Inspect Data",
"when": "gltfActive"
}
]
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"postinstall": "cd server && npm install && cd .. && npm run fixThree",
"compile": "tsc -p ./tsconfig.json && cd server && npm run installServer && cd .. && tsc -p server/tsconfig.json",
"compile:client": "tsc -p ./tsconfig.json",
"watch:client": "tsc -w -p ./tsconfig.json",
"compile:server": "cd server && npm run installServer && cd .. && tsc -p server/tsconfig.json",
"watch:server": "cd server && npm run installServer && cd .. && tsc -w -p server/tsconfig.json",
"fixThree": "node ./util/fixThree.js ./node_modules/three"
},
"devDependencies": {
"@types/mocha": "^10.0.7",
"@types/node": "^22.0.0",
"@types/vscode": "^1.75.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"ajv": "^8.17.1",
"eslint": "^8.56.0",
"eslint-plugin-html": "^8.1.1",
"mocha": "^10.7.0",
"typescript": "^5.5.4",
"yargs": "^17.7.2"
},
"dependencies": {
"babylonjs": "7.17.2",
"babylonjs-inspector": "7.17.2",
"babylonjs-loaders": "7.17.2",
"cesium": "1.120.0",
"draco3dgltf": "1.5.7",
"filament": "1.53.1",
"gltf-import-export": "1.0.22",
"gltf-validator": "2.0.0-dev.3.10",
"gltumble": "^1.0.1",
"json-source-map": "0.6.1",
"sprintf-js": "1.1.3",
"three": "^0.167.0",
"vscode-languageclient": "^5.2.1"
}
}