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

Refactoring deckgl #4293

Merged
merged 6 commits into from Jan 31, 2018
Merged

Refactoring deckgl #4293

merged 6 commits into from Jan 31, 2018

Conversation

betodealmeida
Copy link
Member

@mistercrunch, publishing this early to get your thoughts (I'm planning to do it for all layers). Is this what you had in mind?

@betodealmeida betodealmeida changed the title Refactoring dekgl Refactoring deckgl Jan 26, 2018
@@ -13,7 +12,6 @@ const layerGenerators = {
deck_screengrid,
deck_path,
deck_hex,
deck_scatter,
Copy link
Member

Choose a reason for hiding this comment

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

removing this here may break the deck_multi charts that combine deck_scatter

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

I think this may break deck_multi, but otherwise it's the right general idea.

Looking at it now I'm thinking we may be able to keep the layers/ folder intact, and simply get rid of the the factory.jsx in favor of individual visualization function for each type.

@betodealmeida
Copy link
Member Author

Cool, will do. Thanks!

[VIZ_TYPES.deck_geojson]: deckglFactory,
[VIZ_TYPES.deck_arc]: deckglFactory,
[VIZ_TYPES.deck_polygon]: deckglFactory,
[VIZ_TYPES.deck_scatter]: require('./deckgl/layers/scatter.jsx').default,
Copy link
Member Author

Choose a reason for hiding this comment

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

@mistercrunch, is this the right approach? The module is now exporting two functions.

Copy link
Member

Choose a reason for hiding this comment

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

We should probably move to ES6 imports at some point, not a req at the moment

@mistercrunch
Copy link
Member

There's some JS lint otherwise LGTM

@mistercrunch mistercrunch merged commit c77bab8 into apache:master Jan 31, 2018
@mistercrunch mistercrunch deleted the refactor_deckgl branch January 31, 2018 07:03
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
* Refactoring dekgl

* Refactor layers

* Standardize function name

* Fix exports

* Fix require

* Fix lint
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* Refactoring dekgl

* Refactor layers

* Standardize function name

* Fix exports

* Fix require

* Fix lint
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.23.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.23.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants