Class name cleanup
Clean up names in deck.gl so that file names / class names / export, import names are consistent.
We are generally pretty consistent. Any particular files that stick out as needing attention?
For example, in src/core/controllers/, we are actually defining various Controls classes, MapState and OrbitState classes. We need to rename either the folder or the classes
The class defined in ViewportController.js is Controller
Yes, I see what you mean.
- From a previous discussion, since
controlsrefers to things like buttons etc, we wanted to avoid that word and call these something else (like controllers). - And since the naming was still up in the air and changing, it was hard to be rigorous.
My RFC contains one attempt to settle on names, something like:
ViewState(collects all position fields from MapState, OrbitState, FirstPersonState).Controller-> base class forMapController,ThirdPersonController,FirstPersonController(collects allViewStateupdate logic from MapState, OrbitState, FirstPersonState). They all generate a stream ofViewStates.Viewport-> base class forMapViewport,ThirdPersonViewport,FirstPersonViewport- they all consumeViewStates and display them in different ways.
The master component could either be DeckGL or a ViewStateController.
@ibgreen Can we also rename the Controls class to something else? Controls vs. Controller is extremely confusing even in our internal discussions.
Can we also rename the Controls class to something else? Controls vs. Controller is extremely confusing even in our internal discussions.
Yes absolutely, per comments above.
#990