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

Quaternion: Add toJSON(). #25631

Merged
merged 2 commits into from
Mar 8, 2023
Merged

Quaternion: Add toJSON(). #25631

merged 2 commits into from
Mar 8, 2023

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Mar 8, 2023

Fixed #25424.

Description

This PR overwrites the default serialization behavior of Quaternion. Instead of an object exposing the private variables it just produces an array.

The PR adds the missing documentation for Color.toJSON().

@Mugen87 Mugen87 added this to the r151 milestone Mar 8, 2023
@github-actions
Copy link

github-actions bot commented Mar 8, 2023

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize Gzipped Diff from dev
618 kB 154.6 kB +0.01%

🌳 Bundle size after tree-shaking

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

Filesize Gzipped Diff from dev
409.7 kB 100.8 kB +0.01%

@Mugen87 Mugen87 merged commit 365e9de into mrdoob:dev Mar 8, 2023
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.

Support toJSON in Quaternion class
2 participants