Commit 7ee1e6d
committed
fix: Complete Scene VarDecls codegen and fix mage WASM build issues
This commit completes the declarative reactive transform implementation
by fixing the code generation and build system:
Codegen fixes:
- Generate VarDecls in Scene's RenderScene method body
- Add WithGeometry, WithMaterial, BindRotation to runtime functions list
- Properly structure method body with variable declarations before return
Magefile fixes:
- Exclude pkg/runtime from Test() - WASM tests require browser runtime
- Exclude pkg/runtime from Build() - needs WASM build tags
- Align with CI workflow which tests/builds WASM packages separately
- Add explicit package lists matching CI behavior
This enables scene_gen.go to properly include local variable declarations
like rotZ and use the new reactive binding functions with runtime. prefix.1 parent ee15ef7 commit 7ee1e6d
2 files changed
Lines changed: 60 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
46 | 60 | | |
47 | 61 | | |
48 | | - | |
| 62 | + | |
49 | 63 | | |
50 | 64 | | |
51 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
52 | 80 | | |
53 | 81 | | |
54 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
748 | 769 | | |
749 | 770 | | |
750 | 771 | | |
| |||
760 | 781 | | |
761 | 782 | | |
762 | 783 | | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
763 | 789 | | |
764 | 790 | | |
765 | 791 | | |
| |||
787 | 813 | | |
788 | 814 | | |
789 | 815 | | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
| 816 | + | |
795 | 817 | | |
796 | 818 | | |
797 | 819 | | |
| |||
1867 | 1889 | | |
1868 | 1890 | | |
1869 | 1891 | | |
| 1892 | + | |
1870 | 1893 | | |
1871 | 1894 | | |
1872 | 1895 | | |
| |||
0 commit comments