You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 406c21c
Browse filesBrowse the repository at this point in the historyBrowse files
Review follow-up. The rotated-label fix detected rotation (getScreenCTM)
and measured differently in repositionMathGroup than at first placement.
Instead, hover now records the tex size measured in the neutral,
unrotated state (where finalizePosition and positionCommonLabel already
measure) and passes it back into repositionMathGroup, so a label is
never re-measured while rotated.
- positionMathGroup takes an explicit size; convertToTspans measures
exactly as before, so titles, annotations and ternary are unchanged
- repositionMathGroup accepts and returns a size; the unrotated flag and
getUnrotatedSize are gone
- getMathOrTextNode becomes getTextClientRect, so hover no longer
handles MathJax's nodes; it still measures the glyphs, as Firefox can
report a near-empty rect for the wrapping group
- document that a tex name ignores hoverlabel.namelength, and regenerate
the schema
- add a test for a tex main label in rotated hovermode y
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/types/generated/schema.d.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -449,7 +449,7 @@ export interface HoverLabel {
449
449
/** Sets the font used in hover labels. */
450
450
font?: FontArray;
451
451
/**
452
-
* Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis.
452
+
* Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. A name that is a single tex expression is always shown in full.
* Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis.
1591
+
* Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. A name that is a single tex expression is always shown in full.
1592
1592
* @default 15
1593
1593
* Minimum: -1
1594
1594
*/
@@ -6085,7 +6085,7 @@ export interface OhlcData {
6085
6085
/** Sets the font used in hover labels. */
6086
6086
font?: FontArray;
6087
6087
/**
6088
-
* Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis.
6088
+
* Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. A name that is a single tex expression is always shown in full.
6089
6089
* @default 15
6090
6090
* Minimum: -1
6091
6091
*/
@@ -16276,7 +16276,7 @@ export interface Layout {
16276
16276
/** Sets the font for group titles in hover (unified modes). Defaults to `hoverlabel.font`. */
16277
16277
grouptitlefont?: Font;
16278
16278
/**
16279
-
* Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis.
16279
+
* Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. A name that is a single tex expression is always shown in full.
0 commit comments