-
-
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
Add support for encoding TypedArrays as primitive objects for serialization #2911
Commits on Aug 16, 2018
-
Added support for encoding TypedArrays as primitive objects (represen…
…tation objects) A TypedArray representation object has two properties: `dtype` and `data`. `dtype` is a string indicating the type of the typed array (`'int8'`, `'float32'`, `'uint16'`, etc.) `data` is a primitive JavaScript object that stores the typed array data. It can be one of: - Standard JavaScript Array - ArrayBuffer - DataView - A base64 encoded string The representation objects may stand in for TypedArrays in `data_type` properties and in properties with `arrayOk: true`. The representation object is stored in `data`/`layout`, while the converted TypedArray is stored in `_fullData`/`_fullLayout`
Configuration menu - View commit details
-
Copy full SHA for 636e644 - Browse repository at this point
Copy the full SHA 636e644View commit details
Commits on Aug 17, 2018
-
Addressed minor review comments
- Use `Lib.isPlainObject` - Renamed `data` -> `value` - Added `Uint8ClampedArray` - Committed updated package-lock.json No changes yet to the logical structure of where conversion happens
Configuration menu - View commit details
-
Copy full SHA for 5030d3a - Browse repository at this point
Copy the full SHA 5030d3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for dfd44d5 - Browse repository at this point
Copy the full SHA dfd44d5View commit details -
Move TypedArray convertion logic to a new Plotly.import method,
Revert changes to coerce.js
Configuration menu - View commit details
-
Copy full SHA for ec21714 - Browse repository at this point
Copy the full SHA ec21714View commit details
Commits on Sep 10, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 8de7b5a - Browse repository at this point
Copy the full SHA 8de7b5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5107c97 - Browse repository at this point
Copy the full SHA 5107c97View commit details -
Add fallback for browsers that don't support TypedArrays
In this case the decoded value is undefined, but an error won't be thrown.
Configuration menu - View commit details
-
Copy full SHA for 5cdb828 - Browse repository at this point
Copy the full SHA 5cdb828View commit details -
Convert encoded mock into test variable.
This can't be a mock anymore because it is not valid as input to Plotly.plot without first passing through Plotly.decode
Configuration menu - View commit details
-
Copy full SHA for 1ec957a - Browse repository at this point
Copy the full SHA 1ec957aView commit details
Commits on Sep 11, 2018
-
Configuration menu - View commit details
-
Copy full SHA for a7c3814 - Browse repository at this point
Copy the full SHA a7c3814View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b9bda9 - Browse repository at this point
Copy the full SHA 2b9bda9View commit details -
Added new top-level Plotly.encode function.
This function inputs a Plotly object and outputs a copy where all TypedArray instances have been replace with JSON serializable representation objects. This function is the inverse of Plotly.decode
Configuration menu - View commit details
-
Copy full SHA for 669e8be - Browse repository at this point
Copy the full SHA 669e8beView commit details