Commit 59b6c5f
committed
feat: migrate from experimental decorators to TC39 Stage 3 decorators
- Rewrite all decorator definitions for TC39 (decorators.ts, decorators.functions.ts, nodeDecorator.ts)
- Use Symbol.metadata for per-class metadata storage
- Add 'accessor' keyword to all @expandToProperty and @addAccessorsForMaterialProperty properties
- Flip addAccessorsForMaterialProperty pattern: decorator on public accessor
- Rewrite 3MF XML decorators and Smart Filters decorators for TC39
- Update Lit viewer components with accessor keyword for @property/@state/@query
- Remove experimentalDecorators from all tsconfig files
- Add esnext.decorators and es2022.object to lib
- Bump UMD build targets from ES5 to ES2015 (accessor requires it)
- Replace _propStore access with getEditableProperties() helper
- Add unit tests for decorator metadata and expandToProperty
- Fix class self-references in decorator arguments (TS2449)
- Remove experimentalDecorators from Playground/Snippet Loader compiler options1 parent 74c5d70 commit 59b6c5f
File tree
74 files changed
+895
-746
lines changed- packages
- dev
- core
- src
- BakedVertexAnimation
- Decorators
- Lights
- Materials
- Background
- GaussianSplatting
- Node/Blocks
- Dual
- PBR
- PBR
- Misc
- Rendering
- GlobalIllumination
- IBLShadows
- test/unit/Decorators
- gui/src/3D/materials/fluent
- materials/src
- cell
- fire
- fur
- gradient
- grid
- lava
- mix
- normal
- simple
- terrain
- triPlanar
- water
- serializers/src/3MF/core/xml
- smartFilters
- src
- blockFoundation
- editorUtils
- utils/buildTools
- test/unit
- public/umd
- babylonjs-addons
- babylonjs-gui
- babylonjs-loaders
- babylonjs-materials
- babylonjs-post-process
- babylonjs-procedural-textures
- babylonjs-serializers
- babylonjs
- tools
- guiEditor/src/components/propertyTab/propertyGrids/gui
- nodeEditor/src/graphSystem/properties
- nodeGeometryEditor/src/graphSystem/properties
- nodeParticleEditor/src/graphSystem/properties
- nodeRenderGraphEditor/src/graphSystem/properties
- playground/src/tools/monaco/ts
- smartFiltersEditorControl/src
- configuration/editorBlocks/webCamInputBlock
- graphSystem/properties
- snippetLoader/src
- viewer/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
74 files changed
+895
-746
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
113 | 116 | | |
114 | | - | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | | - | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
122 | | - | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
Lines changed: 19 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 295 | + | |
303 | 296 | | |
304 | 297 | | |
305 | 298 | | |
| |||
308 | 301 | | |
309 | 302 | | |
310 | 303 | | |
311 | | - | |
| 304 | + | |
312 | 305 | | |
313 | 306 | | |
314 | 307 | | |
| |||
319 | 312 | | |
320 | 313 | | |
321 | 314 | | |
322 | | - | |
| 315 | + | |
323 | 316 | | |
324 | 317 | | |
325 | 318 | | |
| |||
328 | 321 | | |
329 | 322 | | |
330 | 323 | | |
331 | | - | |
| 324 | + | |
332 | 325 | | |
333 | 326 | | |
334 | 327 | | |
335 | 328 | | |
336 | 329 | | |
337 | 330 | | |
338 | 331 | | |
339 | | - | |
| 332 | + | |
340 | 333 | | |
341 | 334 | | |
342 | 335 | | |
| |||
345 | 338 | | |
346 | 339 | | |
347 | 340 | | |
348 | | - | |
| 341 | + | |
349 | 342 | | |
350 | 343 | | |
351 | 344 | | |
| |||
354 | 347 | | |
355 | 348 | | |
356 | 349 | | |
357 | | - | |
| 350 | + | |
358 | 351 | | |
359 | 352 | | |
360 | 353 | | |
| |||
363 | 356 | | |
364 | 357 | | |
365 | 358 | | |
366 | | - | |
| 359 | + | |
367 | 360 | | |
368 | 361 | | |
369 | 362 | | |
| |||
372 | 365 | | |
373 | 366 | | |
374 | 367 | | |
375 | | - | |
| 368 | + | |
376 | 369 | | |
377 | 370 | | |
378 | 371 | | |
| |||
381 | 374 | | |
382 | 375 | | |
383 | 376 | | |
384 | | - | |
| 377 | + | |
385 | 378 | | |
386 | 379 | | |
387 | 380 | | |
388 | 381 | | |
389 | 382 | | |
390 | 383 | | |
391 | 384 | | |
392 | | - | |
| 385 | + | |
393 | 386 | | |
394 | 387 | | |
395 | 388 | | |
396 | 389 | | |
397 | 390 | | |
398 | 391 | | |
399 | 392 | | |
400 | | - | |
| 393 | + | |
401 | 394 | | |
402 | 395 | | |
403 | 396 | | |
404 | 397 | | |
405 | 398 | | |
406 | 399 | | |
407 | 400 | | |
408 | | - | |
| 401 | + | |
409 | 402 | | |
410 | 403 | | |
411 | 404 | | |
| |||
431 | 424 | | |
432 | 425 | | |
433 | 426 | | |
434 | | - | |
| 427 | + | |
435 | 428 | | |
436 | 429 | | |
437 | 430 | | |
438 | 431 | | |
439 | 432 | | |
440 | 433 | | |
441 | 434 | | |
442 | | - | |
| 435 | + | |
443 | 436 | | |
444 | 437 | | |
445 | 438 | | |
| |||
468 | 461 | | |
469 | 462 | | |
470 | 463 | | |
471 | | - | |
| 464 | + | |
472 | 465 | | |
473 | 466 | | |
474 | 467 | | |
475 | 468 | | |
476 | 469 | | |
477 | 470 | | |
478 | 471 | | |
479 | | - | |
| 472 | + | |
480 | 473 | | |
481 | 474 | | |
482 | 475 | | |
| |||
491 | 484 | | |
492 | 485 | | |
493 | 486 | | |
494 | | - | |
| 487 | + | |
495 | 488 | | |
496 | 489 | | |
497 | 490 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
0 commit comments