-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Typed arrays support #2388
Merged
+1,127
−476
Merged
Typed arrays support #2388
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
91b03ff
rename Lib.isArray -> Lib.isArrayOrTypedArray
etpinard a25ff13
accept typed array when coercing 'data_array' attributes
etpinard 45c2f35
[PoC] bypass ax.d2c for typedArray during ax.makeCalcdata
etpinard 2d81bdc
replace Array.isArray -> Lib.isArrayOrTypedArray in various places
etpinard bcf59d7
replace Lib.isArray -> Array.isArray in tests w/o typed arrays
etpinard bc32981
[wip] a few todos
etpinard 2372629
Merge branch 'master' into typed-arrays-support
etpinard 909120e
make scattergl dragmode relayout replot not recalc
etpinard 5316c47
large lint commit in scattergl/index.js
etpinard 0aa0f5e
improvements to Scattergl.calc
etpinard 39ef5a9
update baselines
etpinard 36b4e25
update jasmine tests for new scattergl auto-ranges
etpinard 40f93f7
add svg vs gl scatter autorange :lock:s
etpinard d98dcc0
improve makeCalcdata typed array handling + some tests + some linting
etpinard c0e2f73
a few more Array.isArray -> Lib.isArrayOrTypedArray
etpinard 09d37b6
some typed array tests
etpinard a7ed2c2
:lock: Plotly.restyle support for typed arrays
etpinard b95e462
add and :lock: typed array support for extendTraces and prependTraces
etpinard 53ea0ec
Merge branch 'master' into typed-arrays-support
etpinard 98d2407
use c2l instead of d2l
etpinard 01a8443
:hocho: TODOs
etpinard c15722f
add mock :lock:ing down cleanNumber for scattergl
etpinard a2fb88b
Merge pull request #2404 from plotly/scattergl-autorange
etpinard f0395b5
improve isTypedArray
etpinard 9b83826
don't require all of Lib when only isArrayOrTypedArray is needed
etpinard 6dd2f69
turn coord typed arrays into plain array for 'date' and 'category axes
etpinard 306986d
check that typed arrays items aren't all NaNs in hasColorscale
etpinard d4cb0c4
no need to check for typed array in outer array of a 2d array
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 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 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
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.
This should work for linear and log axes, but what happens if you feed numeric data to a non-numeric (date or category) axis? Both of those could be real use cases, but both also alter the input numbers, so I think they need to bail out to the
d2c
block below.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.
Done and 🔒 in 6dd2f69