Line2NodeMaterial: Remove unused lineWidth property.#31401
Conversation
In the global environment of three.js, the `lineWidth` in `Line2NodeMaterial` does not take effect and is essentially ineffective. To modify the line width, it is necessary to use the `linewidth` setting. Additionally, neither `Material` nor `NodeMaterial` contains a `linewidth` property. Therefore, the `lineWidth` property in `Line2NodeMaterial` should be changed to `linewidth`, and its default value should be set to 1.
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
|
Sry. I am unable to fix the ESLint check errors. When I try to modify WebGLRenderer.js, I am prompted that the current file cannot be edited. |
|
Don't worry. The linting errors in |
The property is defined by the Granted, this isn't ideal for documentation since |
delete `linewidth` property.
lineWidth property.
Fixed #31398
Description
In the global environment of three.js, the
lineWidthinLine2NodeMaterialdoes not take effect and is essentially ineffective. To modify the line width, it is necessary to use thelinewidthsetting. Additionally, neitherMaterialnorNodeMaterialcontains alinewidthproperty. Therefore, thelineWidthproperty inLine2NodeMaterialshould be changed tolinewidth, and its default value should be set to 1.