Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node: Document more modules. #30055

Merged
merged 2 commits into from
Dec 7, 2024
Merged

Node: Document more modules. #30055

merged 2 commits into from
Dec 7, 2024

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Dec 7, 2024

Related issue: #29984

Description

Adding more docs.

const targetType = builder.getTypeFromLength( components.length, targetNode.getNodeType( builder ) );

const componentType = builder.getComponentType( targetNode.getNodeType( builder ) );
const targetType = builder.getTypeFromLength( components.length, componentType );
Copy link
Collaborator Author

@Mugen87 Mugen87 Dec 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sunag FYI: There is a small fix to ensure the targetType is correctly computed. Previously, something like color.setRG( vec2( 1, 1 ) ) produced a runtime error.

@Mugen87 Mugen87 added this to the r172 milestone Dec 7, 2024
Copy link

github-actions bot commented Dec 7, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 339.11
78.98
339.11
78.98
+0 B
+0 B
WebGPU 484.85
134.59
484.87
134.6
+24 B
+10 B
WebGPU Nodes 484.31
134.5
484.34
134.51
+24 B
+12 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 465
112.04
465
112.04
+0 B
+0 B
WebGPU 554.24
150.04
554.26
150.06
+24 B
+15 B
WebGPU Nodes 510.12
139.75
510.14
139.77
+24 B
+13 B

@sunag sunag merged commit 898b38a into mrdoob:dev Dec 7, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants