-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Accept objects for encoded typedarrays in data_array valType #5230
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 96 commits
Commits
Show all changes
142 commits
Select commit
Hold shift + click to select a range
dc9f4e5
accept objects for encoded typedarrays in data_array valType
archmoj 67ccac9
Revert trace changes
jonmmease 712a124
WIP of decoding in calc.
jonmmease 4d5b382
Back to decoding in coerce
jonmmease 7233f34
Cache base64 decoded ArrayBuffers and keep decoding in coerce / suppl…
jonmmease 5079fc7
bvals -> buffer
jonmmease 38e10bb
remove big for consistency
jonmmease 1043827
Revert "bvals -> buffer"
jonmmease 8d84f3e
Run isArray1D on decoded array not spec
jonmmease 2381deb
Plotly.js doesn't currently handle BigInt64/BigUint64 arrays.
jonmmease a0d980e
Merge pull request #5308 from plotly/jonmmease_typed_array_encoding
archmoj 7a37d62
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj 599bc2f
no longer support IE9
archmoj a83b11f
Remove Big(U)?IntArray from eslint
jonmmease aba0d4b
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj fbb3f21
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj f3c43f7
reflect schema changes
archmoj 960cea3
provide draft log for PR 5230
archmoj 9aea69d
Update src/lib/coerce.js
archmoj 18caf3f
reflect description change in the schema
archmoj 707b98e
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj adc3efe
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj 57141b8
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj 53bad2a
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj dc576a4
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj 0759432
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj 8af44ab
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj bbc5848
uninstall base64-arraybuffer using npm 6
archmoj d150941
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj bdc1f7b
install latest base64-arraybuffer - new major
archmoj b94d994
revisit key access
archmoj 114deab
declare isInteger
archmoj 145c457
add TODO comments
archmoj fa229d0
faster access to BYTES_PER_ELEMENT
archmoj 8536fe4
refactor
archmoj d2b03ac
refactor type detection
archmoj d956405
refactor decode bvals
archmoj dbb717e
revisit handling integer shapes - do not add ndims and length
archmoj 323bf4d
remove module based cache
archmoj 4f3c0d3
rewrite coerce logic
archmoj 014cbe3
faster b64 decode calls
archmoj 1f260e0
no need to extra call coerceTypedArraySpec
archmoj 5919634
attach spec to array for json export
archmoj 4fbefeb
export spec in json
archmoj 21ec1fe
add test
archmoj af5abc5
add test
archmoj dde03df
export converted _vals in full-json
archmoj 6e7706e
improve test
archmoj 470b3b7
improve test
archmoj 61fa9b0
rewrite to simplify handling 2d arrays
archmoj 3d41e45
fix logic & test
archmoj 68d7541
refactor bvals export
archmoj 2cc98fb
convert ArrayBuffer to b64 in json export
archmoj 64e6988
improve test
archmoj fe5cc08
add test for buffer
archmoj 9f724b2
simplify decode logic for 2d & 3d - skip 3d for now
archmoj a35c3fc
use short forms of types
archmoj f391e76
simplify API for typed array spec - avoid shape array
archmoj ebd9d79
bvals > vals
archmoj acc8792
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj 1853b6a
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj 23902dc
add shape and revise dtype naming to match numpy
archmoj 819d420
make shape optional
archmoj 1230ba8
fix comment for big ints
archmoj 8215c9f
inline detect supported types
archmoj 9ecaf5d
refactor
archmoj 938bb77
correct var name rowBytes
archmoj d260168
simplify 1d length detection
archmoj 78438fa
rename vals to bdata
archmoj c1c54e8
handle buffer for arrayOk attributes
archmoj 2df73c4
add b64 image test
archmoj 78abdf1
reverse order of shape dimensions to match numpy API
archmoj 3af205d
handle typed arrays in smith chart tickvals
archmoj bbb2c0f
handle typed arrays in box
archmoj bd4d2eb
handle typed arrays in contour
archmoj 60dd1d5
handle typed arrays for tickvals
archmoj 8309136
handle typed arrays in bar text
archmoj 25d3b4f
handle typed arrays in pie
archmoj 2059d2a
handle typed arrays in axes ticktext, hoverlabel & getDataConversions
archmoj f660105
handle typed arrays for bubble charts
archmoj ca07e89
handle typed arrays in pie
archmoj 0f2ef23
handle typed arrays in parcats
archmoj 832af54
allow 3d arrays used e.g. by image trace
archmoj 142e353
handle typed arrays in scattergeo
archmoj 1b58c43
handle typed arrays in heatmap hover
archmoj ff305fc
handle typed arrays in contour
archmoj d44d2d2
handle typed arrays in scattergl convert
archmoj 14fed21
handle typed array fix rendering of contour_transposed-irregular
archmoj 5902656
handle typed arrays in table
archmoj 590ce4f
do not convert to in32 when not in bounds
archmoj c7f0e10
handle typed arrays in parcoords
archmoj ae04cad
handle typed arrays for polar
archmoj e691a4f
handle typed arrays for smith charts
archmoj a9d21c9
no need to support in transforms which is deprecated
archmoj 41c1140
handle typed arrays in image trace
archmoj 4b50e16
handle typed arrays various traces
archmoj 8c4202b
handle typed array in scattergl text
archmoj 59557c1
revise dtypes
archmoj fe9b404
add TODO comments to avoid casting to Array in supply defaults
archmoj 662294e
handle typed arrays in categoryarray
archmoj 281220a
fix polar set_convert
archmoj 1300c2a
handle typed arrays in barpolar
archmoj 0fe1414
handle typed arrays in transform - fix rendering of point-selection case
archmoj d9dc593
handle typed arrays in scatter3d text
archmoj 7365093
short dtype is now optional - both i1 & int8 are supported
archmoj e92352b
remove unused import
archmoj db62bb1
allow transforms
archmoj ed8cea1
handle typed arrays in transform target
archmoj 5860886
allow groups
archmoj 560fadf
handle typed arrays & b64 in info_array e.g. sankey.groups
archmoj ea98440
allow values
archmoj 0fc0d70
handle typed arrays in table values
archmoj a414715
allow args and args2
archmoj 6852b4d
allow more keys
archmoj bd381f5
allow dtickrange, constraintrange and bounds
archmoj 2d4d47f
allow subplots, xaxes, yaxes & domain
archmoj d33dc30
allow opacityscale
archmoj 60697dc
handle typed arrays in opacityscale
archmoj 11e0bf0
allow selectedpoints
archmoj 4810585
handle typed arrays in selectedpoints
archmoj 8bba7f8
allow range
archmoj 74f8ee2
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj bb53b1e
handle array spec in type any
archmoj 1a38f37
fix handling direct typedarrays in selectedpoints
archmoj 5347774
Revert "handle typed arrays in contour"
archmoj 5dfe2c9
Revert "handle typed arrays in parcats"
archmoj 9767454
Revert "handle typed arrays in scattergeo"
archmoj dfa65db
Revert "handle typed arrays in opacityscale"
archmoj 43d0780
improve packing integers in b64 image test
archmoj b93033f
handle typed arrays in transform filter value
archmoj 6e3f987
improve b64 test coverage include 2 item arrays too
archmoj 4bab8de
handle typed arrays in parcats categoryarray
archmoj 9b0be90
handle typed arrays in scattergeo locations
archmoj 509f7df
test b64 on arrays with only 1 item as well
archmoj 25e8678
add b64 test dashboard - add script to convert mocks to b64
archmoj e8d82f4
place b64 mocks in the same folder so that devtools.js finds them
archmoj e9e221e
lint env_image script
archmoj c7ec94f
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj cef2785
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj 02557e5
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj 3314377
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj cae76aa
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Accept objects for encoded typedarrays in data_array valType [[#5230](https://github.com/plotly/plotly.js/pull/5230)] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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.
Turns out if you make a numpy array from a list of integers, even if they're all small, seems like
int64
is the default, but if a float is included thenfloat64
becomes the default.I don't know if Pandas does anything smarter than this, but I bet just from ^^ we're going to see a good deal of
int64
so probably a good idea to turn it on now.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.
Good point. These cases would be handled in plotly/plotly.py@86a6c55
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.
And if int64 (Big Int) is really needed plotly.py layer pass those in regular arrays. So we don't hit a problem.