-
Notifications
You must be signed in to change notification settings - Fork 338
Fix various typings #1132
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
base: master
Are you sure you want to change the base?
Fix various typings #1132
Conversation
@@ -22,6 +22,7 @@ export interface TilesRendererEventMap { | |||
export class TilesRenderer<TEventMap extends TilesRendererEventMap = TilesRendererEventMap> extends TilesRendererBase implements EventDispatcher<TEventMap> { | |||
|
|||
ellipsoid: Ellipsoid; | |||
cameras: Camera[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"cameras" isn't intended to be part of the public API and as such it's not documented. Do you need this field? Can you explain how you're using it?
edit
I just reread your main comment:
My use case was to compute the camera elevation in the intersectsTile function of a custom BaseRegion from LoadRegionPlugin
Can you explain this a bit more? You're reusing the cameras in a custom region plugin? What exactly is the intent?
calculateHorizonDistance( latitude: number, elevation: number ): number; | ||
calculateEffectiveRadius( latitude: number ): number; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These functions were added for GlobeControls and I don't want to consider them public at the moment. If they're going to be made public I'd like to consider some more descriptive names for the functions.
I am not sure exactly what is public API, but I think at least the typings for Ellipsoid were just missing.
For the
cameras
ofTilesRenderer
, I am not sure if this is supposed to be exposed. My use case was to compute the camera elevation in theintersectsTile
function of a customBaseRegion
fromLoadRegionPlugin
. Let me know if you see a better way to do it.