Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions draftlogs/8087_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Allow typed arrays in the types for `arrayOk` number and color attributes [[#8087](https://github.com/plotly/plotly.js/pull/8087)]
2 changes: 1 addition & 1 deletion src/types/GENERATOR.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Summary:
| `info_array` | tuple of element `valType`s when fixed-length; `T[]` when `freeLength`; `any[]` fallback |
| `any` | `any` |

`arrayOk: true` wraps the result in `T | T[]`.
`arrayOk: true` wraps the result in `T | T[]`. For the `number`, `integer`, `angle`, and `color` value types, the union also includes `TypedArray`.

Attribute name overrides via `ATTR_NAME_OVERRIDES` map specific attribute
paths to a type alias regardless of valType (e.g. `marker.symbol` →
Expand Down
Loading
Loading