-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Add Screen.orientation #18480
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
Comments
Documentation in https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation |
PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes. |
👍 but I think it can be on TSJS-lib-generator itself. |
I think it's because it's still a draft. |
lib.d.ts recently added several new types which are still in Working Draft status, I think the policy has been slightly changed in undocumented way. |
We have found it hard for users to add the types in DT then include them later on in the default library. generates a lot of churn when we include them in the library. For a north star, we should break up the dom into features, and let ppl opt-in experimental parts, and only include standards by default. this would be enabled by we library references. |
screen.orientation was merged in DefinitelyTyped/DefinitelyTyped@acd15e6,
|
Both Firefox and Chrome have implemented the standard |
From @kenchris on September 14, 2017 13:42
[js] Property 'orientation' does not exist on type 'Screen'. Did you mean 'msOrientation'?
Though screen.orientation is what Chrome uses
mat4.rotateZ(this.rotationMatrix, this.rotationMatrix, toRad(window.screen.orientation.angle || 0));
Copied from original issue: microsoft/vscode#34381
The text was updated successfully, but these errors were encountered: