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

WebGLRenderer: Add data-engine="three.js r${REVISION}" to the canvas element #22792

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

mrdoob
Copy link
Owner

@mrdoob mrdoob commented Nov 5, 2021

Description

I thought it would be a good idea to add a custom attribute to the canvas element (ie. <canvas data-engine="three-135">) element to track the engine usage in the wild more easily.

Seems like using data-* is the way to go.

Can anyone think of a reason why not to do this, or better ways or doing it?

@mrdoob mrdoob added this to the r135 milestone Nov 5, 2021
@deltakosh
Copy link

Excellent idea

@mrdoob mrdoob merged commit 92e9838 into dev Nov 6, 2021
@mrdoob mrdoob deleted the data-engine branch November 6, 2021 14:03
@mrdoob
Copy link
Owner Author

mrdoob commented Nov 6, 2021

@WestLangley suggested we could make it more human readable: 6056cbf

@mrdoob mrdoob changed the title WebGLRenderer: Add data-engine="three-${REVISION}" to <canvas>. WebGLRenderer: Add data-engine="three.js r${REVISION}" to <canvas>. Nov 6, 2021
@mrdoob mrdoob changed the title WebGLRenderer: Add data-engine="three.js r${REVISION}" to <canvas>. WebGLRenderer: Add data-engine="three.js r${REVISION}" to the canvas element Nov 6, 2021
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