-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Geo refactor and lasso/select-box selections #2030
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
Merged
Merged
Changes from 40 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
4c1ddb8
Introduce geo 2.0
etpinard 482cca1
merge geo axis attrs module into 'main' layout attr module
etpinard a0be087
add 'geo.center' + improve defaults & :books:
etpinard e9efdd0
use relayout in geo modeBar buttons
etpinard 9faa1b1
sync pan/scroll interactions into user/full layout
etpinard d0ea7c9
adapt scattergeo to new geo layers and projection logic
etpinard a981eb5
adapt choropleth plot and hover (in preparation for selections)
etpinard 44f56dd
prelim stuff for geo selections
etpinard e53a908
DRY up select test suite
etpinard 0e22ba0
add scattergeo lasso/select
etpinard 397d47c
add choropleth lasso/select
etpinard 825e24d
resolves #1995 - add a miter limit on scattergeo
etpinard 24c2422
clean up and improve geo defaults tests
etpinard c2b0f9c
resolves #292 - add mucho test for geo pan/scroll interactions
etpinard 3bd89d3
add one geo base layer update test
etpinard e59c90b
resolves #1698 - add geo_across-antimeridian mock
etpinard eaf44a8
resolves #1996 - add `geo_scattergeo-out-of-usa`
etpinard 4d9b566
resolves #1486 - add `geo_centering` mock
etpinard 32a29c7
update conic baselines
etpinard be59f69
update a few scoped baseline
etpinard 36833d4
update `geo_fill` mock
etpinard 7e5bb41
update baseline to show proper marker.opacity
etpinard a30beea
update other geo baselines
etpinard fd5bf11
:hocho: obsolete files and logic
etpinard ae48369
rename temporary geo2.js -> geo.js :tada:
etpinard 5bc2c71
add 'step' name to failure message
etpinard ab05990
compute geo.midPt more efficiently
etpinard ce31666
lint (rename params -> exports)
etpinard eeee911
use {} instead of [] to identify line & fill layers
etpinard 71c5355
improve selection queries
etpinard a3df09e
use beforeEach in per-trace select tests
etpinard 05e8194
update across antimeridian mock
etpinard 935e4ac
add jasmine test
etpinard 2488f4b
add per-basePlot-module updateFx methods
etpinard 303de22
add `stroke-miterlimit: 2` to base layer lines
etpinard 9bb7d91
use dragElement.unhover to queued Fx.hover calls
etpinard 1c26ec4
add geo.project and use that in scattergeo hover
etpinard 1d2ce2d
handle invalid geo setting that lead to invalid bounds
etpinard 651399e
fix choropleth hover for countries w/ have polygons that cross -180
etpinard 8f9b75a
add _clips and _topclips <g> in makePlotFramework
etpinard 0089488
lint
etpinard 190c733
fix choropleth hover over Antarctica
etpinard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@alexcjohnson IMPORTANT:
Annotation
used to put its clips infulLayout._defs
, even thoughAnnotation
draws intoppaper
. Clip ids are global to the page, so things still work fine (at in Chrome and FF). But, who knows maybe some other browsers don't apply clip ids outside the<svg>
where the<defs>
is located.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.
Nice find! Definitely not the intent, thanks for cleaning that up!