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

Docs: Add code copy button. #30611

Merged
merged 1 commit into from
Feb 25, 2025
Merged

Docs: Add code copy button. #30611

merged 1 commit into from
Feb 25, 2025

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Feb 25, 2025

Related issue: -

Description

This PR adds the copy button to code sections in the new JSDoc template.

BTW: I was wondering why the current docs did not show the buttons at https://threejs.org/docs until I noticed the respective images are not hosted on GitHub pages. Fixed via faa899d.

@Mugen87 Mugen87 added this to the r174 milestone Feb 25, 2025
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.64
78.39
336.64
78.39
+0 B
+0 B
WebGPU 522.6
145.08
522.6
145.08
+0 B
+0 B
WebGPU Nodes 522.07
144.98
522.07
144.98
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.69
112.26
465.69
112.26
+0 B
+0 B
WebGPU 593
160.69
593
160.69
+0 B
+0 B
WebGPU Nodes 548.13
150.12
548.13
150.12
+0 B
+0 B

@Mugen87 Mugen87 merged commit 754bc81 into mrdoob:dev Feb 25, 2025
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.

1 participant