Debian Codegraph @

review/api/virtualdom.api.md

raw
1 ## API Report File for "@lumino/virtualdom"
2
3 > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
5 ```ts
6
7 // @public
8 export type ARIAAttrNames = 'aria-activedescendant' | 'aria-atomic' | 'aria-autocomplete' | 'aria-busy' | 'aria-checked' | 'aria-colcount' | 'aria-colindex' | 'aria-colspan' | 'aria-controls' | 'aria-current' | 'aria-describedby' | 'aria-details' | 'aria-dialog' | 'aria-disabled' | 'aria-dropeffect' | 'aria-errormessage' | 'aria-expanded' | 'aria-flowto' | 'aria-grabbed' | 'aria-haspopup' | 'aria-hidden' | 'aria-invalid' | 'aria-keyshortcuts' | 'aria-label' | 'aria-labelledby' | 'aria-level' | 'aria-live' | 'aria-multiline' | 'aria-multiselectable' | 'aria-orientation' | 'aria-owns' | 'aria-placeholder' | 'aria-posinset' | 'aria-pressed' | 'aria-readonly' | 'aria-relevant' | 'aria-required' | 'aria-roledescription' | 'aria-rowcount' | 'aria-rowindex' | 'aria-rowspan' | 'aria-selected' | 'aria-setsize' | 'aria-sort' | 'aria-valuemax' | 'aria-valuemin' | 'aria-valuenow' | 'aria-valuetext' | 'role';
9
10 // @public
11 export type CSSPropertyNames = 'alignContent' | 'alignItems' | 'alignSelf' | 'alignmentBaseline' | 'animation' | 'animationDelay' | 'animationDirection' | 'animationDuration' | 'animationFillMode' | 'animationIterationCount' | 'animationName' | 'animationPlayState' | 'animationTimingFunction' | 'backfaceVisibility' | 'background' | 'backgroundAttachment' | 'backgroundClip' | 'backgroundColor' | 'backgroundImage' | 'backgroundOrigin' | 'backgroundPosition' | 'backgroundPositionX' | 'backgroundPositionY' | 'backgroundRepeat' | 'backgroundSize' | 'baselineShift' | 'border' | 'borderBottom' | 'borderBottomColor' | 'borderBottomLeftRadius' | 'borderBottomRightRadius' | 'borderBottomStyle' | 'borderBottomWidth' | 'borderCollapse' | 'borderColor' | 'borderImage' | 'borderImageOutset' | 'borderImageRepeat' | 'borderImageSlice' | 'borderImageSource' | 'borderImageWidth' | 'borderLeft' | 'borderLeftColor' | 'borderLeftStyle' | 'borderLeftWidth' | 'borderRadius' | 'borderRight' | 'borderRightColor' | 'borderRightStyle' | 'borderRightWidth' | 'borderSpacing' | 'borderStyle' | 'borderTop' | 'borderTopColor' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderTopStyle' | 'borderTopWidth' | 'borderWidth' | 'bottom' | 'boxShadow' | 'boxSizing' | 'breakAfter' | 'breakBefore' | 'breakInside' | 'captionSide' | 'clear' | 'clip' | 'clipPath' | 'clipRule' | 'color' | 'colorInterpolationFilters' | 'columnCount' | 'columnFill' | 'columnGap' | 'columnRule' | 'columnRuleColor' | 'columnRuleStyle' | 'columnRuleWidth' | 'columnSpan' | 'columnWidth' | 'columns' | 'content' | 'counterIncrement' | 'counterReset' | 'cssFloat' | 'cssText' | 'cursor' | 'direction' | 'display' | 'dominantBaseline' | 'emptyCells' | 'enableBackground' | 'fill' | 'fillOpacity' | 'fillRule' | 'filter' | 'flex' | 'flexBasis' | 'flexDirection' | 'flexFlow' | 'flexGrow' | 'flexShrink' | 'flexWrap' | 'floodColor' | 'floodOpacity' | 'font' | 'fontFamily' | 'fontFeatureSettings' | 'fontSize' | 'fontSizeAdjust' | 'fontStretch' | 'fontStyle' | 'fontVariant' | 'fontWeight' | 'glyphOrientationHorizontal' | 'glyphOrientationVertical' | 'height' | 'imeMode' | 'justifyContent' | 'kerning' | 'left' | 'letterSpacing' | 'lightingColor' | 'lineHeight' | 'listStyle' | 'listStyleImage' | 'listStylePosition' | 'listStyleType' | 'margin' | 'marginBottom' | 'marginLeft' | 'marginRight' | 'marginTop' | 'marker' | 'markerEnd' | 'markerMid' | 'markerStart' | 'mask' | 'maxHeight' | 'maxWidth' | 'minHeight' | 'minWidth' | 'msContentZoomChaining' | 'msContentZoomLimit' | 'msContentZoomLimitMax' | 'msContentZoomLimitMin' | 'msContentZoomSnap' | 'msContentZoomSnapPoints' | 'msContentZoomSnapType' | 'msContentZooming' | 'msFlowFrom' | 'msFlowInto' | 'msFontFeatureSettings' | 'msGridColumn' | 'msGridColumnAlign' | 'msGridColumnSpan' | 'msGridColumns' | 'msGridRow' | 'msGridRowAlign' | 'msGridRowSpan' | 'msGridRows' | 'msHighContrastAdjust' | 'msHyphenateLimitChars' | 'msHyphenateLimitLines' | 'msHyphenateLimitZone' | 'msHyphens' | 'msImeAlign' | 'msOverflowStyle' | 'msScrollChaining' | 'msScrollLimit' | 'msScrollLimitXMax' | 'msScrollLimitXMin' | 'msScrollLimitYMax' | 'msScrollLimitYMin' | 'msScrollRails' | 'msScrollSnapPointsX' | 'msScrollSnapPointsY' | 'msScrollSnapType' | 'msScrollSnapX' | 'msScrollSnapY' | 'msScrollTranslation' | 'msTextCombineHorizontal' | 'msTextSizeAdjust' | 'msTouchAction' | 'msTouchSelect' | 'msUserSelect' | 'msWrapFlow' | 'msWrapMargin' | 'msWrapThrough' | 'opacity' | 'order' | 'orphans' | 'outline' | 'outlineColor' | 'outlineStyle' | 'outlineWidth' | 'overflow' | 'overflowX' | 'overflowY' | 'padding' | 'paddingBottom' | 'paddingLeft' | 'paddingRight' | 'paddingTop' | 'pageBreakAfter' | 'pageBreakBefore' | 'pageBreakInside' | 'perspective' | 'perspectiveOrigin' | 'pointerEvents' | 'position' | 'quotes' | 'resize' | 'right' | 'rubyAlign' | 'rubyOverhang' | 'rubyPosition' | 'stopColor' | 'stopOpacity' | 'stroke' | 'strokeDasharray' | 'strokeDashoffset' | 'strokeLinecap' | 'strokeLinejoin' | 'strokeMiterlimit' | 'strokeOpacity' | 'strokeWidth' | 'tableLayout' | 'textAlign' | 'textAlignLast' | 'textAnchor' | 'textDecoration' | 'textIndent' | 'textJustify' | 'textKashida' | 'textKashidaSpace' | 'textOverflow' | 'textShadow' | 'textTransform' | 'textUnderlinePosition' | 'top' | 'touchAction' | 'transform' | 'transformOrigin' | 'transformStyle' | 'transition' | 'transitionDelay' | 'transitionDuration' | 'transitionProperty' | 'transitionTimingFunction' | 'unicodeBidi' | 'verticalAlign' | 'visibility' | 'webkitAlignContent' | 'webkitAlignItems' | 'webkitAlignSelf' | 'webkitAnimation' | 'webkitAnimationDelay' | 'webkitAnimationDirection' | 'webkitAnimationDuration' | 'webkitAnimationFillMode' | 'webkitAnimationIterationCount' | 'webkitAnimationName' | 'webkitAnimationPlayState' | 'webkitAnimationTimingFunction' | 'webkitAppearance' | 'webkitBackfaceVisibility' | 'webkitBackgroundClip' | 'webkitBackgroundOrigin' | 'webkitBackgroundSize' | 'webkitBorderBottomLeftRadius' | 'webkitBorderBottomRightRadius' | 'webkitBorderImage' | 'webkitBorderRadius' | 'webkitBorderTopLeftRadius' | 'webkitBorderTopRightRadius' | 'webkitBoxAlign' | 'webkitBoxDirection' | 'webkitBoxFlex' | 'webkitBoxOrdinalGroup' | 'webkitBoxOrient' | 'webkitBoxPack' | 'webkitBoxSizing' | 'webkitColumnBreakAfter' | 'webkitColumnBreakBefore' | 'webkitColumnBreakInside' | 'webkitColumnCount' | 'webkitColumnGap' | 'webkitColumnRule' | 'webkitColumnRuleColor' | 'webkitColumnRuleStyle' | 'webkitColumnRuleWidth' | 'webkitColumnSpan' | 'webkitColumnWidth' | 'webkitColumns' | 'webkitFilter' | 'webkitFlex' | 'webkitFlexBasis' | 'webkitFlexDirection' | 'webkitFlexFlow' | 'webkitFlexGrow' | 'webkitFlexShrink' | 'webkitFlexWrap' | 'webkitJustifyContent' | 'webkitOrder' | 'webkitPerspective' | 'webkitPerspectiveOrigin' | 'webkitTapHighlightColor' | 'webkitTextFillColor' | 'webkitTextSizeAdjust' | 'webkitTransform' | 'webkitTransformOrigin' | 'webkitTransformStyle' | 'webkitTransition' | 'webkitTransitionDelay' | 'webkitTransitionDuration' | 'webkitTransitionProperty' | 'webkitTransitionTimingFunction' | 'webkitUserModify' | 'webkitUserSelect' | 'webkitWritingMode' | 'whiteSpace' | 'widows' | 'width' | 'wordBreak' | 'wordSpacing' | 'wordWrap' | 'writingMode' | 'zIndex' | 'zoom';
12
13 // @public
14 export type ElementARIAAttrs = {
15 readonly [T in ARIAAttrNames]?: string;
16 };
17
18 // @public
19 export type ElementAttrNames = 'abbr' | 'accept' | 'accept-charset' | 'accesskey' | 'action' | 'allowfullscreen' | 'alt' | 'autocomplete' | 'autofocus' | 'autoplay' | 'autosave' | 'checked' | 'cite' | 'cols' | 'colspan' | 'contenteditable' | 'controls' | 'coords' | 'crossorigin' | 'data' | 'datetime' | 'default' | 'dir' | 'dirname' | 'disabled' | 'download' | 'draggable' | 'dropzone' | 'enctype' | 'form' | 'formaction' | 'formenctype' | 'formmethod' | 'formnovalidate' | 'formtarget' | 'headers' | 'height' | 'hidden' | 'high' | 'href' | 'hreflang' | 'id' | 'inputmode' | 'integrity' | 'ismap' | 'kind' | 'label' | 'lang' | 'list' | 'loop' | 'low' | 'max' | 'maxlength' | 'media' | 'mediagroup' | 'method' | 'min' | 'minlength' | 'multiple' | 'muted' | 'name' | 'novalidate' | 'optimum' | 'pattern' | 'placeholder' | 'poster' | 'preload' | 'readonly' | 'rel' | 'required' | 'reversed' | 'rows' | 'rowspan' | 'sandbox' | 'scope' | 'selected' | 'shape' | 'size' | 'sizes' | 'span' | 'spellcheck' | 'src' | 'srcdoc' | 'srclang' | 'srcset' | 'start' | 'step' | 'tabindex' | 'target' | 'title' | 'type' | 'typemustmatch' | 'usemap' | 'value' | 'width' | 'wrap';
20
21 // @public
22 export type ElementAttrs = ElementBaseAttrs & ElementARIAAttrs & ElementEventAttrs & ElementSpecialAttrs;
23
24 // @public
25 export type ElementBaseAttrs = {
26 readonly [T in ElementAttrNames]?: string;
27 };
28
29 // @public
30 export type ElementDataset = {
31 readonly [name: string]: string;
32 };
33
34 // @public
35 export type ElementEventAttrs = {
36 readonly [T in keyof ElementEventMap_2]?: (this: HTMLElement, event: ElementEventMap_2[T]) => any;
37 };
38
39 // @public
40 type ElementEventMap_2 = {
41 onabort: UIEvent;
42 onauxclick: MouseEvent;
43 onblur: FocusEvent;
44 oncanplay: Event;
45 oncanplaythrough: Event;
46 onchange: Event;
47 onclick: MouseEvent;
48 oncontextmenu: PointerEvent;
49 oncopy: ClipboardEvent;
50 oncuechange: Event;
51 oncut: ClipboardEvent;
52 ondblclick: MouseEvent;
53 ondrag: DragEvent;
54 ondragend: DragEvent;
55 ondragenter: DragEvent;
56 ondragexit: DragEvent;
57 ondragleave: DragEvent;
58 ondragover: DragEvent;
59 ondragstart: DragEvent;
60 ondrop: DragEvent;
61 ondurationchange: Event;
62 onemptied: Event;
63 onended: ErrorEvent;
64 onerror: ErrorEvent;
65 onfocus: FocusEvent;
66 oninput: Event;
67 oninvalid: Event;
68 onkeydown: KeyboardEvent;
69 onkeypress: KeyboardEvent;
70 onkeyup: KeyboardEvent;
71 onload: Event;
72 onloadeddata: Event;
73 onloadedmetadata: Event;
74 onloadend: Event;
75 onloadstart: Event;
76 onmousedown: MouseEvent;
77 onmouseenter: MouseEvent;
78 onmouseleave: MouseEvent;
79 onmousemove: MouseEvent;
80 onmouseout: MouseEvent;
81 onmouseover: MouseEvent;
82 onmouseup: MouseEvent;
83 onmousewheel: WheelEvent;
84 onpaste: ClipboardEvent;
85 onpause: Event;
86 onplay: Event;
87 onplaying: Event;
88 onpointercancel: PointerEvent;
89 onpointerdown: PointerEvent;
90 onpointerenter: PointerEvent;
91 onpointerleave: PointerEvent;
92 onpointermove: PointerEvent;
93 onpointerout: PointerEvent;
94 onpointerover: PointerEvent;
95 onpointerup: PointerEvent;
96 onprogress: ProgressEvent;
97 onratechange: Event;
98 onreset: Event;
99 onscroll: UIEvent;
100 onseeked: Event;
101 onseeking: Event;
102 onselect: UIEvent;
103 onselectstart: Event;
104 onstalled: Event;
105 onsubmit: Event;
106 onsuspend: Event;
107 ontimeupdate: Event;
108 onvolumechange: Event;
109 onwaiting: Event;
110 };
111 export { ElementEventMap_2 as ElementEventMap }
112
113 // @public
114 export type ElementInlineStyle = {
115 readonly [T in CSSPropertyNames]?: string;
116 };
117
118 // @public
119 export type ElementSpecialAttrs = {
120 readonly key?: string;
121 readonly className?: string;
122 readonly htmlFor?: string;
123 readonly dataset?: ElementDataset;
124 readonly style?: ElementInlineStyle;
125 };
126
127 // @public
128 export function h(tag: string, ...children: h.Child[]): VirtualElement;
129
130 // @public (undocumented)
131 export function h(tag: string, attrs: ElementAttrs, ...children: h.Child[]): VirtualElement;
132
133 // @public (undocumented)
134 export function h(tag: string, renderer: VirtualElement.IRenderer, ...children: h.Child[]): VirtualElement;
135
136 // @public (undocumented)
137 export function h(tag: string, attrs: ElementAttrs, renderer: VirtualElement.IRenderer, ...children: h.Child[]): VirtualElement;
138
139 // @public
140 export namespace h {
141 export type Child = (string | VirtualNode | null) | Array<string | VirtualNode | null>;
142 export interface IFactory {
143 // (undocumented)
144 (...children: Child[]): VirtualElement;
145 // (undocumented)
146 (attrs: ElementAttrs, ...children: Child[]): VirtualElement;
147 // (undocumented)
148 (renderer: VirtualElement.IRenderer, ...children: h.Child[]): VirtualElement;
149 // (undocumented)
150 (attrs: ElementAttrs, renderer: VirtualElement.IRenderer, ...children: h.Child[]): VirtualElement;
151 }
152 const // (undocumented)
153 a: IFactory;
154 const // (undocumented)
155 abbr: IFactory;
156 const // (undocumented)
157 address: IFactory;
158 const // (undocumented)
159 area: IFactory;
160 const // (undocumented)
161 article: IFactory;
162 const // (undocumented)
163 aside: IFactory;
164 const // (undocumented)
165 audio: IFactory;
166 const // (undocumented)
167 b: IFactory;
168 const // (undocumented)
169 bdi: IFactory;
170 const // (undocumented)
171 bdo: IFactory;
172 const // (undocumented)
173 blockquote: IFactory;
174 const // (undocumented)
175 br: IFactory;
176 const // (undocumented)
177 button: IFactory;
178 const // (undocumented)
179 canvas: IFactory;
180 const // (undocumented)
181 caption: IFactory;
182 const // (undocumented)
183 cite: IFactory;
184 const // (undocumented)
185 code: IFactory;
186 const // (undocumented)
187 col: IFactory;
188 const // (undocumented)
189 colgroup: IFactory;
190 const // (undocumented)
191 data: IFactory;
192 const // (undocumented)
193 datalist: IFactory;
194 const // (undocumented)
195 dd: IFactory;
196 const // (undocumented)
197 del: IFactory;
198 const // (undocumented)
199 dfn: IFactory;
200 const // (undocumented)
201 div: IFactory;
202 const // (undocumented)
203 dl: IFactory;
204 const // (undocumented)
205 dt: IFactory;
206 const // (undocumented)
207 em: IFactory;
208 const // (undocumented)
209 embed: IFactory;
210 const // (undocumented)
211 fieldset: IFactory;
212 const // (undocumented)
213 figcaption: IFactory;
214 const // (undocumented)
215 figure: IFactory;
216 const // (undocumented)
217 footer: IFactory;
218 const // (undocumented)
219 form: IFactory;
220 const // (undocumented)
221 h1: IFactory;
222 const // (undocumented)
223 h2: IFactory;
224 const // (undocumented)
225 h3: IFactory;
226 const // (undocumented)
227 h4: IFactory;
228 const // (undocumented)
229 h5: IFactory;
230 const // (undocumented)
231 h6: IFactory;
232 const // (undocumented)
233 header: IFactory;
234 const // (undocumented)
235 hr: IFactory;
236 const // (undocumented)
237 i: IFactory;
238 const // (undocumented)
239 iframe: IFactory;
240 const // (undocumented)
241 img: IFactory;
242 const // (undocumented)
243 input: IFactory;
244 const // (undocumented)
245 ins: IFactory;
246 const // (undocumented)
247 kbd: IFactory;
248 const // (undocumented)
249 label: IFactory;
250 const // (undocumented)
251 legend: IFactory;
252 const // (undocumented)
253 li: IFactory;
254 const // (undocumented)
255 main: IFactory;
256 const // (undocumented)
257 map: IFactory;
258 const // (undocumented)
259 mark: IFactory;
260 const // (undocumented)
261 meter: IFactory;
262 const // (undocumented)
263 nav: IFactory;
264 const // (undocumented)
265 noscript: IFactory;
266 const // (undocumented)
267 object: IFactory;
268 const // (undocumented)
269 ol: IFactory;
270 const // (undocumented)
271 optgroup: IFactory;
272 const // (undocumented)
273 option: IFactory;
274 const // (undocumented)
275 output: IFactory;
276 const // (undocumented)
277 p: IFactory;
278 const // (undocumented)
279 param: IFactory;
280 const // (undocumented)
281 pre: IFactory;
282 const // (undocumented)
283 progress: IFactory;
284 const // (undocumented)
285 q: IFactory;
286 const // (undocumented)
287 rp: IFactory;
288 const // (undocumented)
289 rt: IFactory;
290 const // (undocumented)
291 ruby: IFactory;
292 const // (undocumented)
293 s: IFactory;
294 const // (undocumented)
295 samp: IFactory;
296 const // (undocumented)
297 section: IFactory;
298 const // (undocumented)
299 select: IFactory;
300 const // (undocumented)
301 small: IFactory;
302 const // (undocumented)
303 source: IFactory;
304 const // (undocumented)
305 span: IFactory;
306 const // (undocumented)
307 strong: IFactory;
308 const // (undocumented)
309 sub: IFactory;
310 const // (undocumented)
311 summary: IFactory;
312 const // (undocumented)
313 sup: IFactory;
314 const // (undocumented)
315 table: IFactory;
316 const // (undocumented)
317 tbody: IFactory;
318 const // (undocumented)
319 td: IFactory;
320 const // (undocumented)
321 textarea: IFactory;
322 const // (undocumented)
323 tfoot: IFactory;
324 const // (undocumented)
325 th: IFactory;
326 const // (undocumented)
327 thead: IFactory;
328 const // (undocumented)
329 time: IFactory;
330 const // (undocumented)
331 title: IFactory;
332 const // (undocumented)
333 tr: IFactory;
334 const // (undocumented)
335 track: IFactory;
336 const // (undocumented)
337 u: IFactory;
338 const // (undocumented)
339 ul: IFactory;
340 const // (undocumented)
341 var_: IFactory;
342 const // (undocumented)
343 video: IFactory;
344 const // (undocumented)
345 wbr: IFactory;
346 }
347
348 // @public
349 export function hpass(tag: string, renderer?: VirtualElementPass.IRenderer): VirtualElementPass;
350
351 // @public (undocumented)
352 export function hpass(tag: string, attrs: ElementAttrs, renderer?: VirtualElementPass.IRenderer): VirtualElementPass;
353
354 // @public
355 export namespace VirtualDOM {
356 export function realize(node: VirtualText): Text;
357 // (undocumented)
358 export function realize(node: VirtualElement): HTMLElement;
359 export function render(content: VirtualNode | ReadonlyArray<VirtualNode> | null, host: HTMLElement): void;
360 }
361
362 // @public
363 export class VirtualElement {
364 constructor(tag: string, attrs: ElementAttrs, children: ReadonlyArray<VirtualNode>, renderer?: VirtualElement.IRenderer);
365 readonly attrs: ElementAttrs;
366 readonly children: ReadonlyArray<VirtualNode>;
367 readonly renderer: VirtualElement.IRenderer | undefined;
368 readonly tag: string;
369 readonly type: "element";
370 }
371
372 // @public (undocumented)
373 export namespace VirtualElement {
374 export type IRenderer = {
375 render: (host: HTMLElement, options?: {
376 attrs?: ElementAttrs;
377 children?: ReadonlyArray<VirtualNode>;
378 }) => void;
379 unrender?: (host: HTMLElement, options?: {
380 attrs?: ElementAttrs;
381 children?: ReadonlyArray<VirtualNode>;
382 }) => void;
383 };
384 }
385
386 // @public
387 export class VirtualElementPass extends VirtualElement {
388 constructor(tag: string, attrs: ElementAttrs, renderer: VirtualElementPass.IRenderer | null);
389 }
390
391 // @public (undocumented)
392 export namespace VirtualElementPass {
393 export type IRenderer = VirtualElement.IRenderer;
394 }
395
396 // @public
397 export type VirtualNode = VirtualElement | VirtualText;
398
399 // @public
400 export class VirtualText {
401 constructor(content: string);
402 readonly content: string;
403 readonly type: "text";
404 }
405
406 // (No @packageDocumentation comment for this package)
407
408 ```