Skip to content

Conversation

@aardgoose
Copy link
Contributor

For some use cases access to the current renderer viewport rather than the drawing buffer dimensions is required.


export const viewportCoordinate = nodeImmutable( ViewportNode, ViewportNode.COORDINATE );
export const viewportResolution = nodeImmutable( ViewportNode, ViewportNode.RESOLUTION );
export const viewportViewport = nodeImmutable( ViewportNode, ViewportNode.VIEWPORT );
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think just viewport sounds better.

@sunag sunag added this to the r156 milestone Aug 6, 2023
@sunag sunag merged commit 10275da into mrdoob:dev Aug 8, 2023
@LeviPesin
Copy link
Contributor

Shouldn't we also update exports in Nodes.js?

@aardgoose
Copy link
Contributor Author

I'll add that with some of your other points.

@aardgoose aardgoose deleted the viewport branch September 5, 2023 10:14
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.

3 participants