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
Use`Annotated` when you want to attach presentational or semantic
88
+
information to an expression**without affecting its evaluation or identity**.
89
+
This is useful for rendering, tooltips, highlighting, etc.
90
+
91
+
92
+
The following keys are applicable to math expressions:
93
+
-`mathStyle` =`"compact"` or`"normal"`. The`"compact"` style is used for inline math expressions, while the`"normal"` style is used for display math expressions.
94
+
-`scriptLevel` =`0`,`1`, or`-1`,`+1`. The script level is used to
95
+
determine the size of the expression in relation to the surrounding text.
96
+
A script level of`0` is normal size,`1` is smaller, and`2` is even smaller.
97
+
98
+
99
+
100
+
The following keys are applicable to text content:
101
+
-`weight` a string, one of`"normal"`,`"bold"`,`"bolder"`,`"light"`
102
+
-`style` a string, one of`"normal"`,`"italic"`,`"oblique"`
103
+
-`language` a string indicating the language of the expression, e.g.`"en"`,`"fr"`,`"es"` etc.
104
+
105
+
106
+
107
+
The following keys are applicable to both math expressions and text content:
108
+
-`color` a color name or hex code
109
+
-`backgroundColor` a color name or hex code for the background color
110
+
-`tooltip` a string to be displayed as a tooltip when the expression is hovered over
111
+
-`link` a URL to be followed when the expression is clicked
112
+
-`cssClass` a string indicating the CSS class to be applied to the expression
113
+
-`cssId` a string indicating the CSS id of the expression
114
+
115
+
116
+
117
+
118
+
119
+
The keys in the dictionary include:
120
+
-`style` a string, one of`"normal"`,`"italic"`,`"oblique"`
121
+
-`size` a number from`1` to`10` where`5` is normal size
122
+
-`font` a string indicating the font family
123
+
-`fontSize` a number indicating the font size in pixels
124
+
-`fontWeight` a string indicating the font weight, e.g.`"normal"`,`"bold"`,`"bolder"`,`"lighter"`
125
+
-`fontStyle` a string indicating the font style, e.g.`"normal"`,`"italic"`,`"oblique"`
126
+
-`textDecoration` a string indicating the text decoration, e.g.`"none"`,`"underline"`,`"line-through"`
127
+
-`textAlign` a string indicating the text alignment, e.g.`"left"`,`"center"`,`"right"`
128
+
-`textTransform` a string indicating the text transformation, e.g.`"none"`,`"uppercase"`,`"lowercase"`
129
+
-`textIndent` a number indicating the text indentation in pixels
130
+
-`lineHeight` a number indicating the line height in pixels
131
+
-`letterSpacing` a number indicating the letter spacing in pixels
132
+
-`wordSpacing` a number indicating the word spacing in pixels
133
+
-`backgroundColor` a color name or hex code for the background color
134
+
-`border` a string indicating the border style, e.g.`"none"`,`"solid"`,`"dashed"`,`"dotted"`
135
+
-`borderColor` a color name or hex code for the border color
136
+
-`borderWidth` a number indicating the border width in pixels
137
+
-`padding` a number indicating the padding in pixels
138
+
-`margin` a number indicating the margin in pixels
139
+
-`textShadow` a string indicating the text shadow, e.g.`"2px 2px 2px rgba(0,0,0,0.5)"`
140
+
-`boxShadow` a string indicating the box shadow, e.g.`"2px 2px 5px rgba(0,0,0,0.5)"`
141
+
-`opacity` a number from`0` to`1` indicating the opacity of the expression
142
+
-`transform` a string indicating the CSS transform, e.g.`"rotate(45deg)"`,`"scale(1.5)"`,`"translateX(10px)"`
143
+
-`transition` a string indicating the CSS transition, e.g.`"all 0.3s ease-in-out"`
144
+
-`cursor` a string indicating the cursor style, e.g.`"pointer"`,`"default"`,`"text"`
145
+
-`display` a string indicating the CSS display property, e.g.`"inline"`,`"block"`,`"flex"`,`"grid"`
146
+
-`visibility` a string indicating the CSS visibility property, e.g.`"visible"`,`"hidden"`,`"collapse"`
147
+
-`zIndex` a number indicating the z-index of the expression
148
+
-`position` a string indicating the CSS position property, e.g.`"static"`,`"relative"`,`"absolute"`,`"fixed"`
149
+
-`float` a string indicating the CSS float property, e.g.`"left"`,`"right"`,`"none"`
150
+
-`clear` a string indicating the CSS clear property, e.g.`"left"`,`"right"`,`"both"`,`"none"`
151
+
-`overflow` a string indicating the CSS overflow property, e.g.`"visible"`,`"hidden"`,`"scroll"`,`"auto"`
152
+
-`overflowX` a string indicating the CSS overflow-x property, e.g.`"visible"`,`"hidden"`,`"scroll"`,`"auto"`
153
+
-`overflowY` a string indicating the CSS overflow-y property, e.g.`"visible"`,`"hidden"`,`"scroll"`,`"auto"`
154
+
-`whiteSpace` a string indicating the CSS white-space property, e.g.`"normal"`,`"nowrap"`,`"pre"`,
155
+
-`textOverflow` a string indicating the CSS text-overflow property, e.g.`"ellipsis"`,`"clip"`
156
+
-`direction` a string indicating the text direction, e.g.`"ltr"` (left-to-right) or`"rtl"` (right-to-left)
157
+
-`lang` a string indicating the language of the expression, e.g.`"en"` (English),`"fr"` (French),`"es"` (Spanish)
158
+
-`role` a string indicating the ARIA role of the expression, e.g.`"button"`,`"link"`,`"textbox"`
159
+
-`aria-label` a string providing an accessible label for the expression
160
+
-`aria-labelledby` a string providing an accessible label by referencing another element's ID
161
+
-`aria-describedby` a string providing an accessible description by referencing another element's ID
162
+
-`aria-hidden` a boolean indicating whether the expression is hidden from assistive technologies
163
+
-`aria-live` a string indicating the ARIA live region, e.g.`"off"`,`"polite"`,`"assertive"`
164
+
-`aria-atomic` a boolean indicating whether assistive technologies should treat the expression as a whole
165
+
-`aria-relevant` a string indicating what changes in the expression are relevant to assistive technologies, e.g. `"additions"
166
+
-`aria-controls` a string providing the ID of another element that the expression controls
167
+
-`aria-expanded` a boolean indicating whether the expression is expanded or collapsed
168
+
-`aria-pressed` a boolean indicating whether the expression is pressed (for toggle buttons)
169
+
-`aria-selected` a boolean indicating whether the expression is selected
170
+
-`aria-checked` a boolean indicating whether the expression is checked (for checkboxes or radio buttons)
171
+
-`aria-valuenow` a number indicating the current value of the expression (for sliders or progress bars)
172
+
-`aria-valuetext` a string providing a text representation of the current value of the expression
173
+
-`aria-valuemin` a number indicating the minimum value of the expression (for sliders or progress bars)
174
+
-`aria-valuemax` a number indicating the maximum value of the expression (for sliders or progress bars)
175
+
-`aria-keyshortcuts` a
176
+
177
+
178
+
The`Annotated` function is**inert** and the value of a`["Annotated", expr]` expression is`expr`.