-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
442 lines (442 loc) · 15.3 KB
/
package.json
File metadata and controls
442 lines (442 loc) · 15.3 KB
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
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
{
"name": "vs-code-aster",
"displayName": "VS Code Aster",
"version": "1.9.2",
"description": "VS Code extension for code_aster",
"publisher": "simvia",
"license": "GPL-3.0",
"author": {
"name": "Simvia SAS",
"url": "https://simvia.tech"
},
"contributors": [
{
"name": "Hadrien Riols",
"email": "hadrien.riols@gmail.com"
},
{
"name": "Basile Marchand",
"email": "basile.marchand@simvia.tech"
},
{
"name": "Ulysse Bouchet",
"email": "ulysse.bouchet@simvia.tech",
"url": "https://ulyssebouchet.fr"
}
],
"repository": "https://github.com/simvia-tech/vs-code-aster",
"engines": {
"vscode": "^1.101.0"
},
"icon": "media/images/icone-code-aster.png",
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:export"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "vs-code-aster.exportDoc",
"title": "Edit export file",
"icon": {
"light": "./media/images/icone-edit.svg",
"dark": "./media/images/icone-edit.svg"
}
},
{
"command": "vs-code-aster.run-aster",
"title": "Run with code_aster",
"icon": {
"light": "./media/images/icone-rocket.svg",
"dark": "./media/images/icone-rocket.svg"
}
},
{
"command": "vs-code-aster.meshViewer",
"title": "Open visualizer",
"icon": {
"light": "./media/images/icone-eye.svg",
"dark": "./media/images/icone-eye.svg"
}
},
{
"command": "vs-code-aster.restartLSPServer",
"title": "Restart the LSP server for code_aster",
"icon": "$(sync~spin)"
},
{
"command": "vs-code-aster.addToMedExtensions",
"title": "Open as MED mesh",
"icon": {
"light": "./media/images/icone-med.svg",
"dark": "./media/images/icone-med.svg"
}
}
],
"languages": [
{
"id": "comm",
"aliases": [
"Aster Commands"
],
"extensions": [
".comm",
".com",
".com0",
".com1",
".com2",
".com3",
".com4",
".com5",
".com6",
".com7",
".com8",
".com9"
],
"icon": {
"light": "./media/images/icone-code-aster.svg",
"dark": "./media/images/icone-code-aster.svg"
},
"configuration": "./language-configuration.json"
},
{
"id": "export",
"aliases": [
"Aster Export"
],
"extensions": [
".export"
],
"icon": {
"light": "./media/images/icone-rocket.svg",
"dark": "./media/images/icone-rocket.svg"
}
},
{
"id": "med",
"aliases": [
"MED"
],
"extensions": [
".med",
".mmed",
".rmed"
],
"icon": {
"light": "./media/images/icone-med.svg",
"dark": "./media/images/icone-med.svg"
}
}
],
"grammars": [
{
"language": "comm",
"scopeName": "source.comm",
"path": "./syntaxes/comm.tmLanguage.json"
},
{
"language": "export",
"scopeName": "source.export",
"path": "./syntaxes/export.tmLanguage.json"
}
],
"customEditors": [
{
"viewType": "vs-code-aster.medViewer",
"displayName": "MED Mesh Viewer",
"selector": [
{
"filenamePattern": "*.med"
},
{
"filenamePattern": "*.mmed"
},
{
"filenamePattern": "*.rmed"
}
],
"priority": "default"
}
],
"keybindings": [
{
"command": "editor.action.commentLine",
"key": "ctrl+shift+;",
"when": "editorTextFocus && editorLangId == comm"
}
],
"menus": {
"editor/title": [
{
"command": "vs-code-aster.exportDoc",
"when": "resourceFilename =~ /\\.export$/",
"group": "navigation"
},
{
"command": "vs-code-aster.run-aster",
"when": "resourceFilename =~ /\\.export$/",
"group": "navigation"
},
{
"command": "vs-code-aster.meshViewer",
"when": "resourceFilename =~ /\\.(comm|com[0-9])$/",
"group": "navigation"
},
{
"command": "vs-code-aster.addToMedExtensions",
"when": "vs-code-aster.canConvertActiveToMed",
"group": "navigation"
}
],
"explorer/context": [
{
"command": "vs-code-aster.addToMedExtensions",
"when": "!explorerResourceIsFolder && resourceLangId != med && resourceLangId != comm && resourceLangId != export",
"group": "navigation@99"
}
]
},
"configuration": {
"title": "VS Code Aster",
"type": "object",
"properties": {
"vs-code-aster.commFileExtensions": {
"order": 0,
"type": "array",
"items": {
"type": "string"
},
"default": [
".comm",
".com",
".com0",
".com1",
".com2",
".com3",
".com4",
".com5",
".com6",
".com7",
".com8",
".com9"
],
"markdownDescription": "Specifies the file extensions to be recognized as Code Aster command files. Default includes `.comm`, `.com`, and `.com0`-`.com9`. You can customize this list as needed."
},
"vs-code-aster.medFileExtensions": {
"order": 0,
"type": "array",
"items": {
"type": "string"
},
"default": [
".med",
".mmed",
".rmed"
],
"markdownDescription": "Specifies the file extensions to be recognized as MED mesh/result files. code_aster may also write MED data under numeric extensions matching the I/O unit (e.g. `.21`, `.71`). Add such extensions here to apply the MED icon and language association. Extensions listed here are automatically written to `files.associations`."
},
"vs-code-aster.aliasForRun": {
"order": 1,
"type": "string",
"default": "cave run",
"markdownDescription": "Specifies the alias used to run code-aster. For example, with alias `cave run` and export file `test.export`, the command will be `cave run test.export`."
},
"vs-code-aster.pythonExecutablePath": {
"order": 2,
"type": "string",
"default": "python3",
"markdownDescription": "Specifies the python executable used to run the language server."
},
"vs-code-aster.maxRunLogs": {
"order": 3,
"type": "integer",
"default": 10,
"minimum": 1,
"markdownDescription": "Number of run logs to keep per project in `.vs-code-aster/run_logs/`. Older logs are deleted when a new run starts."
},
"vs-code-aster.viewer.hiddenObjectOpacity": {
"order": 10,
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 0.5,
"markdownDescription": "Opacity of objects hidden via the eye button in the mesh viewer (0 = fully invisible, 0.5 = 50% visible as a ghost)."
},
"vs-code-aster.viewer.edgeThresholdMultiplier": {
"order": 11.5,
"type": "number",
"default": 1,
"minimum": 0.25,
"maximum": 5,
"markdownDescription": "Sensitivity of the threshold-based mesh edge display (see `#vs-code-aster.viewer.edgeMode#`). Higher values reveal mesh edges from farther away."
},
"vs-code-aster.viewer.edgeMode": {
"order": 11,
"type": "string",
"default": "threshold",
"enum": [
"gradual",
"threshold",
"show",
"hide"
],
"enumDescriptions": [
"Mesh edges fade in as you zoom in, scaled by mesh density. When zoomed out, large meshes may appear very flat as outer edges are mostly hidden. Performance is impacted.",
"Mesh edges appear abruptly at a zoom level based on mesh density. When zoomed out, large meshes may appear slightly flat as outer edges are hidden. Performance is not impacted.",
"Mesh edges are always visible. Large meshes will appear almost entirely black when zoomed out. Performance is impacted.",
"Mesh edges are always hidden. All shapes will look slightly flat regardless of zoom level or mesh size."
],
"markdownDescription": "Controls how the wireframe edges drawn on each cell of the mesh are displayed in the viewer. Does not affect edge groups (1D named entities from the .med file — see `#vs-code-aster.viewer.edgeGroupThickness#`)."
},
"vs-code-aster.viewer.groupTransparency": {
"order": 15,
"type": "number",
"default": 0.2,
"minimum": 0,
"maximum": 0.5,
"markdownDescription": "Opacity of the parent mesh when a sub-group is highlighted (0 = invisible, 0.5 = semi-visible)."
},
"vs-code-aster.viewer.edgeGroupThickness": {
"order": 12,
"type": "integer",
"default": 3,
"minimum": 1,
"maximum": 10,
"markdownDescription": "Line width (in pixels) used to render edge groups (1D named entities from the .med file) in the mesh viewer. Independent from the wireframe edges drawn on mesh cells (see `#vs-code-aster.viewer.edgeMode#`)."
},
"vs-code-aster.viewer.edgeGroupDepthOffset": {
"order": 13,
"type": "boolean",
"default": true,
"markdownDescription": "Render edge groups above the mesh surface to avoid z-fighting (flickering lines). Disable if edge groups appear offset from their true position."
},
"vs-code-aster.viewer.nodeGroupSize": {
"order": 14,
"type": "number",
"default": 1,
"minimum": 0.25,
"maximum": 4,
"markdownDescription": "Multiplier applied to the size of node-group points in the mesh viewer. Points still scale with zoom; this controls their base size."
},
"vs-code-aster.viewer.sidebarSort": {
"order": 19,
"type": "string",
"default": "natural",
"enum": [
"natural",
"size"
],
"enumDescriptions": [
"Sort groups alphabetically (natural order).",
"Sort groups by cell count, largest first — useful to spot dominant groups on big meshes."
],
"markdownDescription": "Order used for groups in the mesh viewer sidebar."
},
"vs-code-aster.viewer.groupByKind": {
"order": 20,
"type": "boolean",
"default": true,
"markdownDescription": "Bucket groups by kind in the mesh viewer sidebar (volumes, then faces, then edges, then nodes). When disabled, all groups of an object are shown in a single list sorted by `#vs-code-aster.viewer.sidebarSort#`."
},
"vs-code-aster.viewer.showOrientationWidget": {
"order": 16,
"type": "boolean",
"default": true,
"markdownDescription": "Show the orientation axes widget in the bottom-right corner of the viewer."
},
"vs-code-aster.viewer.showBoundingBox": {
"order": 17,
"type": "boolean",
"default": false,
"markdownDescription": "Show a bounding box with X/Y/Z tick marks and values around the loaded meshes in the viewer."
},
"vs-code-aster.viewer.showWireframe": {
"order": 18,
"type": "boolean",
"default": false,
"markdownDescription": "Render meshes in wireframe mode instead of solid surfaces."
},
"vs-code-aster.viewer.dreamBackground": {
"order": 22,
"type": "boolean",
"default": true,
"markdownDescription": "Cosmetic animated EDF orange and blue light blobs slowly breathing behind the mesh. Purely decorative — does not affect mesh lighting."
},
"vs-code-aster.viewer.autoRotate": {
"order": 23,
"type": "boolean",
"default": false,
"markdownDescription": "Automatically rotate the view around the current vertical axis like a turntable."
},
"vs-code-aster.viewer.autoRotateSpeed": {
"order": 24,
"type": "number",
"default": 15,
"minimum": 5,
"maximum": 180,
"markdownDescription": "Default auto-rotation speed in degrees per second (between `5` and `180`). Transient overrides from the toolbar popover are not persisted."
},
"vs-code-aster.viewer.autoRotateReverse": {
"order": 25,
"type": "boolean",
"default": false,
"markdownDescription": "Default auto-rotation direction. When enabled, the view rotates the opposite way by default. Transient overrides from the toolbar popover are not persisted."
},
"vs-code-aster.enableTelemetry": {
"order": 100,
"type": "boolean",
"default": true,
"markdownDescription": "Enable sending anonymous telemetry. Un-check to opt out of telemetry collection."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run build:webview && npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:esbuild watch:tsc watch:webview",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"watch:webview:viewer": "vite build --config webviews/viewer/vite.config.ts --watch",
"watch:webview:export": "vite build --config webviews/export/vite.config.ts --watch",
"watch:webview": "npm-run-all -p watch:webview:viewer watch:webview:export",
"build:webview:viewer": "vite build --config webviews/viewer/vite.config.ts",
"build:webview:export": "vite build --config webviews/export/vite.config.ts",
"build:webview": "npm-run-all build:webview:viewer build:webview:export",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"prepare": "husky"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^6.2.4",
"@tailwindcss/vite": "^4.2.1",
"@types/node": "^20.19.4",
"@types/vscode": "^1.101.0",
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"@vscode/test-electron": "^2.5.2",
"esbuild": "^0.25.5",
"eslint": "^9.25.1",
"html-to-image": "^1.11.13",
"husky": "^9.1.7",
"npm-run-all": "^4.1.5",
"prettier": "^3.8.1",
"prettier-plugin-svelte": "^3.5.1",
"svelte": "^5.53.9",
"svelte-check": "^4.4.5",
"svelte-dnd-action": "^0.9.69",
"typescript": "^5.8.3",
"vite": "^7.3.1",
"vscode-languageclient": "^9.0.0"
},
"dependencies": {
"@kitware/vtk.js": "^35.10.0",
"@tailwindcss/cli": "^4.1.17",
"tailwindcss": "^4.1.17",
"uuid": "^13.0.0"
}
}