\r\n \u003C/template>\r\n\u003C/TresCanvas>\r\n\u003Cscript>\r\nconst options = [ {\r\n label: '平行光',\r\n value: 'TresDirectionalLight',\r\n },\r\n {\r\n label: '点光源',\r\n value: 'TresPointLight',\r\n },\r\n {\r\n label: '聚光灯',\r\n value: 'TresSpotLight',\r\n },\r\n {\r\n label: '半球光',\r\n value: 'TresHemisphereLight',\r\n }]\r\n const lightSetting = ref([{\r\n type: 'TresDirectionalLight',\r\n config: {\r\n position: [5, 5, 5],\r\n targets: [0, 0, 0],\r\n color: '#ffffff',\r\n intensity: 1,\r\n castShadow: false\r\n }\r\n }\r\n ])\r\n\u003C/script>\r\n当我改变 type 值的时候就报错 Cannot read properties of null (reading 'children'),不加 v-light-helper的时候正常不会报错。\n\n### Reproduction\n\n还未上线\n\n### Steps to reproduce\n\n\u003CTresCanvas v-bind=\"canvasConfig\" ref=\"TresCanvasRef\">\r\n \u003Ctemplate v-for=\"(item,i) in lightSetting\">\r\n \u003Ccomponent ref=\"lightRef\" :is=\"item.type\" v-light-helper v-bind=\"item.config\" />\r\n \u003C/template>\r\n\u003C/TresCanvas>\r\n\u003Cscript>\r\nconst options = [ {\r\n label: '平行光',\r\n value: 'TresDirectionalLight',\r\n },\r\n {\r\n label: '点光源',\r\n value: 'TresPointLight',\r\n },\r\n {\r\n label: '聚光灯',\r\n value: 'TresSpotLight',\r\n },\r\n {\r\n label: '半球光',\r\n value: 'TresHemisphereLight',\r\n }]\r\n const lightSetting = ref([{\r\n type: 'TresDirectionalLight',\r\n config: {\r\n position: [5, 5, 5],\r\n targets: [0, 0, 0],\r\n color: '#ffffff',\r\n intensity: 1,\r\n castShadow: false\r\n }\r\n }\r\n ])\r\n\u003C/script>\r\n当我改变 type 值的时候就报错 Cannot read properties of null (reading 'children'),不加 v-light-helper的时候正常不会报错。\n\n### System Info\n\n```shell\nCannot read properties of null (reading 'children')\n```\n\n\n### Used Package Manager\n\nnpm\n\n### Code of Conduct\n\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://tresjs.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],871,"tres"," Cannot read properties of null (reading 'children')","2024-11-13T01:30:10Z","https://github.com/Tresjs/tres/issues/871",0.7519637,{"description":2902,"labels":2903,"number":2907,"owner":2868,"repository":2908,"state":2870,"title":2909,"updated_at":2910,"url":2911,"score":2912},"### Description\r\n\r\nGood controls for presentation purposes\r\n\r\n### Suggested solution\r\n\r\nhttps://drei.docs.pmnd.rs/controls/presentation-controls#presentationcontrols\r\n\r\n### Alternative\r\n\r\n_No response_\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/cientos/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/cientos/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://cientos.tresjs.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/cientos/issues) that reports the same bug to avoid creating a duplicate.",[2904],{"name":2905,"color":2906},"good first issue","7057ff",108,"cientos","Presentation Controls","2024-11-26T07:08:48Z","https://github.com/Tresjs/cientos/issues/108",0.7535438,{"description":2914,"labels":2915,"number":2923,"owner":2868,"repository":2924,"state":2870,"title":2925,"updated_at":2926,"url":2927,"score":2928},"Inevitable 😂 \r\n\r\n- Unocss Dark mode https://unocss.dev/presets/mini#dark-mode \r\n- Vueuse dark https://vueuse.org/core/useDark/\r\n",[2916,2919,2920],{"name":2917,"color":2918},"enhancement","a2eeef",{"name":2905,"color":2906},{"name":2921,"color":2922},"help wanted","008672",75,"leches","Dark mode","2023-11-30T12:40:21Z","https://github.com/Tresjs/leches/issues/75",0.7536905,{"description":2930,"labels":2931,"number":2933,"owner":2868,"repository":2896,"state":2934,"title":2935,"updated_at":2936,"url":2937,"score":2938},"### Description\r\n\r\nAs a developer using TresJS ...\r\n\r\n## Problem\r\n\r\nI forget to `lint --fix` before pushing. Others do too. This leads to messier commit histories, noisier diffs, and wasted time.\r\n\r\n## Suggested solution\r\n\r\nAdd a client-side pre-push [git hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) to `lint --fix` the project and abort the push if errors exist. \r\n\r\nBy default, the hook would run `lint --fix` during a push, before any objects have been transferred.\r\n\r\nIf there are no linter errors after running `lint --fix`, it would:\r\n\r\n* continue the push\r\n\r\nIf there are unfixable-by-the-linter errors, it would:\r\n\r\n* abort the push\r\n* report the errors (or filenames with errors) and instruct the user to fix them \r\n* give the user instructions for bypassing the linter step and pushing despite errors\r\n\r\n## Advantages\r\n\r\n* Reduce the number of PRs that fail the CI lint step\r\n* Reduce the amount of diff \"noise\" due to `chore(lint): fix linter errors`\r\n* Reduce mental load when pushing – no need to remember to lint\r\n\r\n## Disadvantages\r\n\r\n* Some new contributors might be turned away. E.g. maybe the linter fails and they can't figure out the next step.\r\n* If linter errors make it into `main`, everyone's `git push` based on the branch will initially fail.\r\n* `pnpm lint --fix` takes a while to run.\r\n\r\n### Alternative\r\n\r\nDo nothing. Keep the project as-is.\r\n\r\n### Additional context\r\n\r\nThe project runs a linter as a CI step and fails unlinted PRs already.\r\n\r\n\r\n### Validations\r\n\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://tresjs.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.",[2932],{"name":2885,"color":2886},590,"closed","Git pre-push hook to `lint --fix` the project","2024-04-07T23:51:17Z","https://github.com/Tresjs/tres/issues/590",0.70224375,{"description":2940,"labels":2941,"number":2942,"owner":2868,"repository":2896,"state":2934,"title":2943,"updated_at":2944,"url":2945,"score":2946},"### Description\n\nCurrently `useGLTF` only supports Draco compressed glTF models. It would be very nice to also support KTX2.0 textures.`\n\n### Suggested solution\n\nAdd `ktx2` and `transcoderPath` options in `useGLTF` and `GLTFModel`.\n\n### Alternative\n\n_No response_\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://tresjs.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.",[],559,"glTF KTX2.0 Texture support","2024-02-23T13:59:54Z","https://github.com/Tresjs/tres/issues/559",0.7060799,{"description":2948,"labels":2949,"number":2950,"owner":2868,"repository":2908,"state":2934,"title":2951,"updated_at":2952,"url":2953,"score":2954},"### Description\n\nAs a developer using Tresjs I would like to have a simple way to add sparkles as a component\n\n### Suggested solution\n\nSimilar to: https://github.com/pmndrs/drei#sparkles\n\n### Alternative\n\nAny other alternative is considered\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/cientos/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/cientos/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://cientos.tresjs.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/cientos/issues) that reports the same bug to avoid creating a duplicate.",[],221,"Sparkles","2023-11-09T19:27:14Z","https://github.com/Tresjs/cientos/issues/221",0.7126725,{"description":2956,"labels":2957,"number":2967,"owner":2868,"repository":2896,"state":2934,"title":2968,"updated_at":2969,"url":2970,"score":2971},"### Describe the bug\r\n\r\n## Problem\r\n\r\nWhen using a THREE object in `\u003Cprimitive :object=\"[the THREE object]\">`, the on-screen object cannot be updated in `\u003Cscript setup>`.\r\n\r\n## Possible cause\r\n\r\nIt appears that `src/core/nodeOps.ts` clones the `primitive`'s `:object`, breaking the reference to the THREE object in `\u003Cscript setup>`.\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/tresjs-basic-lgdhxs?file=src%2Fcomponents%2FTheExperience.vue\r\n\r\n### Code of Conduct\r\n\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://tresjs.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.\r\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[2958,2961,2964],{"name":2959,"color":2960},"bug","d73a4a",{"name":2962,"color":2963},"p4-important-bug","D93F0B",{"name":2965,"color":2966},"regression","167F7A",701,"`\u003Cprimitive> :object` breaking references to THREE objects","2024-07-10T11:24:18Z","https://github.com/Tresjs/tres/issues/701",0.71286714,{"description":2973,"labels":2974,"number":2978,"owner":2868,"repository":2908,"state":2934,"title":2979,"updated_at":2980,"url":2981,"score":2982},"### Description\r\n\r\nAtm we have locked the tweakpane version to v3 since v4 comes with breaking changes.\r\n\r\nAlso, this is adding weight to the final user bundle, even if they are not using it. We should deprecated it in favor of https://github.com/vinayakkulkarni/v-tweakpane \r\n\r\nThis is the bundle of the web https://tresjs.org/ in astro, tweakpane is not even used. \r\n\r\n\r\n\r\n### Suggested solution\r\n\r\nDrop support for tweakpane on the lib.\r\n\r\n### Alternative\r\n\r\n_No response_\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/cientos/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/cientos/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://cientos.tresjs.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/cientos/issues) that reports the same bug to avoid creating a duplicate.",[2975],{"name":2976,"color":2977},"v4","EEF2B0",296,"Deprecate tweakpane in favor to v-tweakpane","2023-12-19T08:25:09Z","https://github.com/Tresjs/cientos/issues/296",0.7185415,["Reactive",2984],{},["Set"],["ShallowReactive",2987],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fJ1svQAZ3l4-B7JvHd_gWLz87K9tf8i-a1Lal4fyCCJ8":-1},"/Tresjs/cientos/440"]