Skip to content

Commit 05c0bc6

Browse files
committed
update plot-schema and generated types
1 parent 0b83d62 commit 05c0bc6

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

src/types/generated/schema.d.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6684,6 +6684,11 @@ export interface QuiverData {
66846684
* @default 'tail'
66856685
*/
66866686
anchor?: 'tip' | 'tail' | 'center';
6687+
/**
6688+
* Sets the mode used to determine the angle of the arrow vectors. If *paper*, u/v are interpreted in pixel coordinates and the rendered vector angle does not change regardless of the axes scales. If *data*, u/v are interpreted in data coordinates and the rendered vector angle may change, e.g. if zooming in along a single axis
6689+
* @default 'axis'
6690+
*/
6691+
anglemode?: 'paper' | 'data';
66876692
/** Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, *scatter* traces also appends customdata items in the markers DOM elements */
66886693
customdata?: Datum[] | Datum[][] | TypedArray;
66896694
/**
@@ -6813,12 +6818,13 @@ export interface QuiverData {
68136818
*/
68146819
showlegend?: boolean;
68156820
/**
6816-
* Determines whether `sizeref` is set as a *scaled* (unitless) scalar (normalized by the max u/v norm in the vector field), as an *absolute* value (in the same units as the vector field), or *raw* to use the raw vector lengths.
6821+
* Determines whether arrows are drawn according to their raw lengths, or scaled based on the maximum vector length and point density. Note: When `anglemode` is *data* arrows are alwyas scaled and `sizemode` *raw* is ignored.
68176822
* @default 'scaled'
68186823
*/
6819-
sizemode?: 'scaled' | 'absolute' | 'raw';
6824+
sizemode?: 'scaled' | 'raw';
68206825
/**
6821-
* Adjusts the arrow size scaling. The arrow length is determined by the vector norm multiplied by `sizeref`, optionally normalized when `sizemode` is *scaled*.
6826+
* Adjusts the arrow size scaling. The arrow length is determined by the vector norm multiplied by `sizeref`, optionally normalized when `sizemode` is *scaled* (`sizeref` is applied after scaling).
6827+
* @default 1
68226828
* Minimum: 0
68236829
*/
68246830
sizeref?: number;

test/plot-schema.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49859,6 +49859,16 @@
4985949859
"center"
4986049860
]
4986149861
},
49862+
"anglemode": {
49863+
"description": "Sets the mode used to determine the angle of the arrow vectors. If *paper*, u/v are interpreted in pixel coordinates and the rendered vector angle does not change regardless of the axes scales. If *data*, u/v are interpreted in data coordinates and the rendered vector angle may change, e.g. if zooming in along a single axis",
49864+
"dflt": "axis",
49865+
"editType": "calc",
49866+
"valType": "enumerated",
49867+
"values": [
49868+
"paper",
49869+
"data"
49870+
]
49871+
},
4986249872
"customdata": {
4986349873
"description": "Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, *scatter* traces also appends customdata items in the markers DOM elements",
4986449874
"editType": "calc",
@@ -50943,18 +50953,18 @@
5094350953
"valType": "boolean"
5094450954
},
5094550955
"sizemode": {
50946-
"description": "Determines whether `sizeref` is set as a *scaled* (unitless) scalar (normalized by the max u/v norm in the vector field), as an *absolute* value (in the same units as the vector field), or *raw* to use the raw vector lengths.",
50956+
"description": "Determines whether arrows are drawn according to their raw lengths, or scaled based on the maximum vector length and point density. Note: When `anglemode` is *data* arrows are alwyas scaled and `sizemode` *raw* is ignored.",
5094750957
"dflt": "scaled",
5094850958
"editType": "calc",
5094950959
"valType": "enumerated",
5095050960
"values": [
5095150961
"scaled",
50952-
"absolute",
5095350962
"raw"
5095450963
]
5095550964
},
5095650965
"sizeref": {
50957-
"description": "Adjusts the arrow size scaling. The arrow length is determined by the vector norm multiplied by `sizeref`, optionally normalized when `sizemode` is *scaled*.",
50966+
"description": "Adjusts the arrow size scaling. The arrow length is determined by the vector norm multiplied by `sizeref`, optionally normalized when `sizemode` is *scaled* (`sizeref` is applied after scaling).",
50967+
"dflt": 1,
5095850968
"editType": "calc",
5095950969
"min": 0,
5096050970
"valType": "number"

0 commit comments

Comments
 (0)