File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,14 @@ This directory documents the TypeScript conversion in progress.
2828 hand-written union that can drift. Consumers need ` .default ` appended per the established
2929 [ conversion pattern] ( CONVERTING_ATTRIBUTES.md#L72-L86 ) .
3030
31+ - ** Add dimensionality to ` data_array ` in the JS attribute sources.** The
32+ schema's ` data_array ` valType carries no shape info, but several attributes
33+ are genuinely 2D (heatmap/contour/contourcarpet ` z ` , surface ` z ` and
34+ ` surfacecolor ` , 2D ` text ` /` customdata ` /` hovertext ` on those traces) or 3D
35+ (` image.z ` ). The generator currently emits the loose union
36+ ` Datum[] | Datum[][] | TypedArray ` for * every* ` data_array ` so 2D/3D usage
37+ typechecks, but the trade-off is that 1D-only fields also accept 2D arrays.
38+
3139The published consumer surface lives at [ ` lib/index.d.ts ` ] ( ../../lib/index.d.ts ) .
3240This ` src/types/ ` directory is the authoring location — internal types live
3341here, public types are re-exported through ` lib/index.d.ts ` to consumers.
You can’t perform that action at this time.
0 commit comments