microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
db80cd4e10b83524bc77c15018effab72cbabeb8

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

ReactTypings/react/react.d.ts

2274lines · modecode

1// Type definitions for React v0.14
2// Project: http://facebook.github.io/react/
3// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
4// Definitions: https://github.com/borisyankov/DefinitelyTyped
5
6declare namespace __React {
7
8 //
9 // React Elements
10 // ----------------------------------------------------------------------
11
12 type ReactType = string | ComponentClass<any> | StatelessComponent<any>;
13
14 interface ReactElement<P extends Props<any>> {
15 type: string | ComponentClass<P> | StatelessComponent<P>;
16 props: P;
17 key: string | number;
18 ref: string | ((component: Component<P, any> | Element) => any);
19 }
20
21 interface ClassicElement<P> extends ReactElement<P> {
22 type: ClassicComponentClass<P>;
23 ref: string | ((component: ClassicComponent<P, any>) => any);
24 }
25
26 interface DOMElement<P extends Props<Element>> extends ReactElement<P> {
27 type: string;
28 ref: string | ((element: Element) => any);
29 }
30
31 interface ReactHTMLElement extends DOMElement<HTMLProps<HTMLElement>> {
32 ref: string | ((element: HTMLElement) => any);
33 }
34
35 interface ReactSVGElement extends DOMElement<SVGProps> {
36 ref: string | ((element: SVGElement) => any);
37 }
38
39 //
40 // Factories
41 // ----------------------------------------------------------------------
42
43 interface Factory<P> {
44 (props?: P, ...children: ReactNode[]): ReactElement<P>;
45 }
46
47 interface ClassicFactory<P> extends Factory<P> {
48 (props?: P, ...children: ReactNode[]): ClassicElement<P>;
49 }
50
51 interface DOMFactory<P extends Props<Element>> extends Factory<P> {
52 (props?: P, ...children: ReactNode[]): DOMElement<P>;
53 }
54
55 type HTMLFactory = DOMFactory<HTMLProps<HTMLElement>>;
56 type SVGFactory = DOMFactory<SVGProps>;
57
58 //
59 // React Nodes
60 // http://facebook.github.io/react/docs/glossary.html
61 // ----------------------------------------------------------------------
62
63 type ReactText = string | number;
64 type ReactChild = ReactElement<any> | ReactText;
65
66 // Should be Array<ReactNode> but type aliases cannot be recursive
67 type ReactFragment = {} | Array<ReactChild | any[] | boolean>;
68 type ReactNode = ReactChild | ReactFragment | boolean;
69
70 //
71 // Top Level API
72 // ----------------------------------------------------------------------
73
74 function createClass<P, S>(spec: ComponentSpec<P, S>): ClassicComponentClass<P>;
75
76 function createFactory<P>(type: string): DOMFactory<P>;
77 function createFactory<P>(type: ClassicComponentClass<P>): ClassicFactory<P>;
78 function createFactory<P>(type: ComponentClass<P> | StatelessComponent<P>): Factory<P>;
79
80 function createElement<P>(
81 type: string,
82 props?: P,
83 ...children: ReactNode[]): DOMElement<P>;
84 function createElement<P>(
85 type: ClassicComponentClass<P>,
86 props?: P,
87 ...children: ReactNode[]): ClassicElement<P>;
88 function createElement<P>(
89 type: ComponentClass<P> | StatelessComponent<P>,
90 props?: P,
91 ...children: ReactNode[]): ReactElement<P>;
92
93 function cloneElement<P>(
94 element: DOMElement<P>,
95 props?: P,
96 ...children: ReactNode[]): DOMElement<P>;
97 function cloneElement<P>(
98 element: ClassicElement<P>,
99 props?: P,
100 ...children: ReactNode[]): ClassicElement<P>;
101 function cloneElement<P>(
102 element: ReactElement<P>,
103 props?: P,
104 ...children: ReactNode[]): ReactElement<P>;
105
106 function isValidElement(object: {}): boolean;
107
108 var DOM: ReactDOM;
109 var PropTypes: ReactPropTypes;
110 var Children: ReactChildren;
111
112 //
113 // Component API
114 // ----------------------------------------------------------------------
115
116 type ReactInstance = Component<any, any> | Element;
117
118 // Base component for plain JS classes
119 class Component<P, S> implements ComponentLifecycle<P, S> {
120 constructor(props?: P, context?: any);
121 setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
122 setState(state: S, callback?: () => any): void;
123 forceUpdate(callBack?: () => any): void;
124 render(): JSX.Element;
125 props: P;
126 state: S;
127 context: {};
128 refs: {
129 [key: string]: ReactInstance
130 };
131 }
132
133 interface ClassicComponent<P, S> extends Component<P, S> {
134 replaceState(nextState: S, callback?: () => any): void;
135 isMounted(): boolean;
136 getInitialState?(): S;
137 }
138
139 interface ChildContextProvider<CC> {
140 getChildContext(): CC;
141 }
142
143 //
144 // Class Interfaces
145 // ----------------------------------------------------------------------
146
147 interface StatelessComponent<P> {
148 (props?: P, context?: any): ReactElement<any>;
149 propTypes?: ValidationMap<P>;
150 contextTypes?: ValidationMap<any>;
151 defaultProps?: P;
152 displayName?: string;
153 }
154
155 interface ComponentClass<P> {
156 new(props?: P, context?: any): Component<P, any>;
157 propTypes?: ValidationMap<P>;
158 contextTypes?: ValidationMap<any>;
159 childContextTypes?: ValidationMap<any>;
160 defaultProps?: P;
161 }
162
163 interface ClassicComponentClass<P> extends ComponentClass<P> {
164 new(props?: P, context?: any): ClassicComponent<P, any>;
165 getDefaultProps?(): P;
166 displayName?: string;
167 }
168
169 //
170 // Component Specs and Lifecycle
171 // ----------------------------------------------------------------------
172
173 interface ComponentLifecycle<P, S> {
174 componentWillMount?(): void;
175 componentDidMount?(): void;
176 componentWillReceiveProps?(nextProps: P, nextContext: any): void;
177 shouldComponentUpdate?(nextProps: P, nextState: S, nextContext: any): boolean;
178 componentWillUpdate?(nextProps: P, nextState: S, nextContext: any): void;
179 componentDidUpdate?(prevProps: P, prevState: S, prevContext: any): void;
180 componentWillUnmount?(): void;
181 }
182
183 interface Mixin<P, S> extends ComponentLifecycle<P, S> {
184 mixins?: Mixin<P, S>;
185 statics?: {
186 [key: string]: any;
187 };
188
189 displayName?: string;
190 propTypes?: ValidationMap<any>;
191 contextTypes?: ValidationMap<any>;
192 childContextTypes?: ValidationMap<any>;
193
194 getDefaultProps?(): P;
195 getInitialState?(): S;
196 }
197
198 interface ComponentSpec<P, S> extends Mixin<P, S> {
199 render(): ReactElement<any>;
200
201 [propertyName: string]: any;
202 }
203
204 //
205 // Event System
206 // ----------------------------------------------------------------------
207
208 interface SyntheticEvent {
209 bubbles: boolean;
210 cancelable: boolean;
211 currentTarget: EventTarget;
212 defaultPrevented: boolean;
213 eventPhase: number;
214 isTrusted: boolean;
215 nativeEvent: Event;
216 preventDefault(): void;
217 stopPropagation(): void;
218 target: EventTarget;
219 timeStamp: Date;
220 type: string;
221 }
222
223 interface ClipboardEvent extends SyntheticEvent {
224 clipboardData: DataTransfer;
225 }
226
227 interface CompositionEvent extends SyntheticEvent {
228 data: string;
229 }
230
231 interface DragEvent extends SyntheticEvent {
232 dataTransfer: DataTransfer;
233 }
234
235 interface FocusEvent extends SyntheticEvent {
236 relatedTarget: EventTarget;
237 }
238
239 interface FormEvent extends SyntheticEvent {
240 }
241
242 interface KeyboardEvent extends SyntheticEvent {
243 altKey: boolean;
244 charCode: number;
245 ctrlKey: boolean;
246 getModifierState(key: string): boolean;
247 key: string;
248 keyCode: number;
249 locale: string;
250 location: number;
251 metaKey: boolean;
252 repeat: boolean;
253 shiftKey: boolean;
254 which: number;
255 }
256
257 interface MouseEvent extends SyntheticEvent {
258 altKey: boolean;
259 button: number;
260 buttons: number;
261 clientX: number;
262 clientY: number;
263 ctrlKey: boolean;
264 getModifierState(key: string): boolean;
265 metaKey: boolean;
266 pageX: number;
267 pageY: number;
268 relatedTarget: EventTarget;
269 screenX: number;
270 screenY: number;
271 shiftKey: boolean;
272 }
273
274 interface TouchEvent extends SyntheticEvent {
275 altKey: boolean;
276 changedTouches: TouchList;
277 ctrlKey: boolean;
278 getModifierState(key: string): boolean;
279 metaKey: boolean;
280 shiftKey: boolean;
281 targetTouches: TouchList;
282 touches: TouchList;
283 }
284
285 interface UIEvent extends SyntheticEvent {
286 detail: number;
287 view: AbstractView;
288 }
289
290 interface WheelEvent extends SyntheticEvent {
291 deltaMode: number;
292 deltaX: number;
293 deltaY: number;
294 deltaZ: number;
295 }
296
297 //
298 // Event Handler Types
299 // ----------------------------------------------------------------------
300
301 interface EventHandler<E extends SyntheticEvent> {
302 (event: E): void;
303 }
304
305 type ReactEventHandler = EventHandler<SyntheticEvent>;
306
307 type ClipboardEventHandler = EventHandler<ClipboardEvent>;
308 type CompositionEventHandler = EventHandler<CompositionEvent>;
309 type DragEventHandler = EventHandler<DragEvent>;
310 type FocusEventHandler = EventHandler<FocusEvent>;
311 type FormEventHandler = EventHandler<FormEvent>;
312 type KeyboardEventHandler = EventHandler<KeyboardEvent>;
313 type MouseEventHandler = EventHandler<MouseEvent>;
314 type TouchEventHandler = EventHandler<TouchEvent>;
315 type UIEventHandler = EventHandler<UIEvent>;
316 type WheelEventHandler = EventHandler<WheelEvent>;
317
318 //
319 // Props / DOM Attributes
320 // ----------------------------------------------------------------------
321
322 interface Props<T> {
323 children?: ReactNode;
324 key?: string | number;
325 ref?: string | ((component: T) => any);
326 }
327
328 interface HTMLProps<T> extends HTMLAttributes, Props<T> {
329 }
330
331 interface SVGProps extends SVGAttributes, Props<SVGElement> {
332 }
333
334 interface DOMAttributes {
335 dangerouslySetInnerHTML?: {
336 __html: string;
337 };
338
339 // Clipboard Events
340 onCopy?: ClipboardEventHandler;
341 onCut?: ClipboardEventHandler;
342 onPaste?: ClipboardEventHandler;
343
344 // Composition Events
345 onCompositionEnd?: CompositionEventHandler;
346 onCompositionStart?: CompositionEventHandler;
347 onCompositionUpdate?: CompositionEventHandler;
348
349 // Focus Events
350 onFocus?: FocusEventHandler;
351 onBlur?: FocusEventHandler;
352
353 // Form Events
354 onChange?: FormEventHandler;
355 onInput?: FormEventHandler;
356 onSubmit?: FormEventHandler;
357
358 // Image Events
359 onLoad?: ReactEventHandler;
360 onError?: ReactEventHandler; // also a Media Event
361
362 // Keyboard Events
363 onKeyDown?: KeyboardEventHandler;
364 onKeyPress?: KeyboardEventHandler;
365 onKeyUp?: KeyboardEventHandler;
366
367 // Media Events
368 onAbort?: ReactEventHandler;
369 onCanPlay?: ReactEventHandler;
370 onCanPlayThrough?: ReactEventHandler;
371 onDurationChange?: ReactEventHandler;
372 onEmptied?: ReactEventHandler;
373 onEncrypted?: ReactEventHandler;
374 onEnded?: ReactEventHandler;
375 onLoadedData?: ReactEventHandler;
376 onLoadedMetadata?: ReactEventHandler;
377 onLoadStart?: ReactEventHandler;
378 onPause?: ReactEventHandler;
379 onPlay?: ReactEventHandler;
380 onPlaying?: ReactEventHandler;
381 onProgress?: ReactEventHandler;
382 onRateChange?: ReactEventHandler;
383 onSeeked?: ReactEventHandler;
384 onSeeking?: ReactEventHandler;
385 onStalled?: ReactEventHandler;
386 onSuspend?: ReactEventHandler;
387 onTimeUpdate?: ReactEventHandler;
388 onVolumeChange?: ReactEventHandler;
389 onWaiting?: ReactEventHandler;
390
391 // MouseEvents
392 onClick?: MouseEventHandler;
393 onContextMenu?: MouseEventHandler;
394 onDoubleClick?: MouseEventHandler;
395 onDrag?: DragEventHandler;
396 onDragEnd?: DragEventHandler;
397 onDragEnter?: DragEventHandler;
398 onDragExit?: DragEventHandler;
399 onDragLeave?: DragEventHandler;
400 onDragOver?: DragEventHandler;
401 onDragStart?: DragEventHandler;
402 onDrop?: DragEventHandler;
403 onMouseDown?: MouseEventHandler;
404 onMouseEnter?: MouseEventHandler;
405 onMouseLeave?: MouseEventHandler;
406 onMouseMove?: MouseEventHandler;
407 onMouseOut?: MouseEventHandler;
408 onMouseOver?: MouseEventHandler;
409 onMouseUp?: MouseEventHandler;
410
411 // Selection Events
412 onSelect?: ReactEventHandler;
413
414 // Touch Events
415 onTouchCancel?: TouchEventHandler;
416 onTouchEnd?: TouchEventHandler;
417 onTouchMove?: TouchEventHandler;
418 onTouchStart?: TouchEventHandler;
419
420 // UI Events
421 onScroll?: UIEventHandler;
422
423 // Wheel Events
424 onWheel?: WheelEventHandler;
425 }
426
427 // This interface is not complete. Only properties accepting
428 // unitless numbers are listed here (see CSSProperty.js in React)
429 interface CSSProperties {
430 boxFlex?: number;
431 boxFlexGroup?: number;
432 columnCount?: number;
433 flex?: number | string;
434 flexGrow?: number;
435 flexShrink?: number;
436 fontWeight?: number | string;
437 lineClamp?: number;
438 lineHeight?: number | string;
439 opacity?: number;
440 order?: number;
441 orphans?: number;
442 widows?: number;
443 zIndex?: number;
444 zoom?: number;
445
446 fontSize?: number | string;
447
448 // SVG-related properties
449 fillOpacity?: number;
450 strokeOpacity?: number;
451 strokeWidth?: number;
452
453 // Remaining properties auto-extracted from http://docs.webplatform.org.
454 // License: http://docs.webplatform.org/wiki/Template:CC-by-3.0
455 /**
456 * Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how justify-content aligns individual items within the main-axis.
457 */
458 alignContent?: any;
459
460 /**
461 * Sets the default alignment in the cross axis for all of the flex container's items, including anonymous flex items, similarly to how justify-content aligns items along the main axis.
462 */
463 alignItems?: any;
464
465 /**
466 * Allows the default alignment to be overridden for individual flex items.
467 */
468 alignSelf?: any;
469
470 /**
471 * This property allows precise alignment of elements, such as graphics, that do not have a baseline-table or lack the desired baseline in their baseline-table. With the alignment-adjust property, the position of the baseline identified by the alignment-baseline can be explicitly determined. It also determines precisely the alignment point for each glyph within a textual element.
472 */
473 alignmentAdjust?: any;
474
475 alignmentBaseline?: any;
476
477 /**
478 * Defines a length of time to elapse before an animation starts, allowing an animation to begin execution some time after it is applied.
479 */
480 animationDelay?: any;
481
482 /**
483 * Defines whether an animation should run in reverse on some or all cycles.
484 */
485 animationDirection?: any;
486
487 /**
488 * Specifies how many times an animation cycle should play.
489 */
490 animationIterationCount?: any;
491
492 /**
493 * Defines the list of animations that apply to the element.
494 */
495 animationName?: any;
496
497 /**
498 * Defines whether an animation is running or paused.
499 */
500 animationPlayState?: any;
501
502 /**
503 * Allows changing the style of any element to platform-based interface elements or vice versa.
504 */
505 appearance?: any;
506
507 /**
508 * Determines whether or not the “back” side of a transformed element is visible when facing the viewer.
509 */
510 backfaceVisibility?: any;
511
512 /**
513 * This property describes how the element's background images should blend with each other and the element's background color.
514 * The value is a list of blend modes that corresponds to each background image. Each element in the list will apply to the corresponding element of background-image. If a property doesn’t have enough comma-separated values to match the number of layers, the UA must calculate its used value by repeating the list of values until there are enough.
515 */
516 backgroundBlendMode?: any;
517
518 backgroundColor?: any;
519
520 backgroundComposite?: any;
521
522 /**
523 * Applies one or more background images to an element. These can be any valid CSS image, including url() paths to image files or CSS gradients.
524 */
525 backgroundImage?: any;
526
527 /**
528 * Specifies what the background-position property is relative to.
529 */
530 backgroundOrigin?: any;
531
532 /**
533 * Sets the horizontal position of a background image.
534 */
535 backgroundPositionX?: any;
536
537 /**
538 * Background-repeat defines if and how background images will be repeated after they have been sized and positioned
539 */
540 backgroundRepeat?: any;
541
542 /**
543 * Obsolete - spec retired, not implemented.
544 */
545 baselineShift?: any;
546
547 /**
548 * Non standard. Sets or retrieves the location of the Dynamic HTML (DHTML) behavior.
549 */
550 behavior?: any;
551
552 /**
553 * Shorthand property that defines the different properties of all four sides of an element's border in a single declaration. It can be used to set border-width, border-style and border-color, or a subset of these.
554 */
555 border?: any;
556
557 /**
558 * Defines the shape of the border of the bottom-left corner.
559 */
560 borderBottomLeftRadius?: any;
561
562 /**
563 * Defines the shape of the border of the bottom-right corner.
564 */
565 borderBottomRightRadius?: any;
566
567 /**
568 * Sets the width of an element's bottom border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
569 */
570 borderBottomWidth?: any;
571
572 /**
573 * Border-collapse can be used for collapsing the borders between table cells
574 */
575 borderCollapse?: any;
576
577 /**
578 * The CSS border-color property sets the color of an element's four borders. This property can have from one to four values, made up of the elementary properties: • border-top-color
579 * • border-right-color
580 * • border-bottom-color
581 * • border-left-color The default color is the currentColor of each of these values.
582 * If you provide one value, it sets the color for the element. Two values set the horizontal and vertical values, respectively. Providing three values sets the top, vertical, and bottom values, in that order. Four values set all for sides: top, right, bottom, and left, in that order.
583 */
584 borderColor?: any;
585
586 /**
587 * Specifies different corner clipping effects, such as scoop (inner curves), bevel (straight cuts) or notch (cut-off rectangles). Works along with border-radius to specify the size of each corner effect.
588 */
589 borderCornerShape?: any;
590
591 /**
592 * The property border-image-source is used to set the image to be used instead of the border style. If this is set to none the border-style is used instead.
593 */
594 borderImageSource?: any;
595
596 /**
597 * The border-image-width CSS property defines the offset to use for dividing the border image in nine parts, the top-left corner, central top edge, top-right-corner, central right edge, bottom-right corner, central bottom edge, bottom-left corner, and central right edge. They represent inward distance from the top, right, bottom, and left edges.
598 */
599 borderImageWidth?: any;
600
601 /**
602 * Shorthand property that defines the border-width, border-style and border-color of an element's left border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the left border — border-left-width, border-left-style and border-left-color.
603 */
604 borderLeft?: any;
605
606 /**
607 * The CSS border-left-color property sets the color of an element's left border. This page explains the border-left-color value, but often you will find it more convenient to fix the border's left color as part of a shorthand set, either border-left or border-color.
608 * Colors can be defined several ways. For more information, see Usage.
609 */
610 borderLeftColor?: any;
611
612 /**
613 * Sets the style of an element's left border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
614 */
615 borderLeftStyle?: any;
616
617 /**
618 * Sets the width of an element's left border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
619 */
620 borderLeftWidth?: any;
621
622 /**
623 * Shorthand property that defines the border-width, border-style and border-color of an element's right border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the right border — border-right-width, border-right-style and border-right-color.
624 */
625 borderRight?: any;
626
627 /**
628 * Sets the color of an element's right border. This page explains the border-right-color value, but often you will find it more convenient to fix the border's right color as part of a shorthand set, either border-right or border-color.
629 * Colors can be defined several ways. For more information, see Usage.
630 */
631 borderRightColor?: any;
632
633 /**
634 * Sets the style of an element's right border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
635 */
636 borderRightStyle?: any;
637
638 /**
639 * Sets the width of an element's right border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
640 */
641 borderRightWidth?: any;
642
643 /**
644 * Specifies the distance between the borders of adjacent cells.
645 */
646 borderSpacing?: any;
647
648 /**
649 * Sets the style of an element's four borders. This property can have from one to four values. With only one value, the value will be applied to all four borders; otherwise, this works as a shorthand property for each of border-top-style, border-right-style, border-bottom-style, border-left-style, where each border style may be assigned a separate value.
650 */
651 borderStyle?: any;
652
653 /**
654 * Shorthand property that defines the border-width, border-style and border-color of an element's top border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the top border — border-top-width, border-top-style and border-top-color.
655 */
656 borderTop?: any;
657
658 /**
659 * Sets the color of an element's top border. This page explains the border-top-color value, but often you will find it more convenient to fix the border's top color as part of a shorthand set, either border-top or border-color.
660 * Colors can be defined several ways. For more information, see Usage.
661 */
662 borderTopColor?: any;
663
664 /**
665 * Sets the rounding of the top-left corner of the element.
666 */
667 borderTopLeftRadius?: any;
668
669 /**
670 * Sets the rounding of the top-right corner of the element.
671 */
672 borderTopRightRadius?: any;
673
674 /**
675 * Sets the style of an element's top border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
676 */
677 borderTopStyle?: any;
678
679 /**
680 * Sets the width of an element's top border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
681 */
682 borderTopWidth?: any;
683
684 /**
685 * Sets the width of an element's four borders. This property can have from one to four values. This is a shorthand property for setting values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
686 */
687 borderWidth?: any;
688
689 /**
690 * Obsolete.
691 */
692 boxAlign?: any;
693
694 /**
695 * Breaks a box into fragments creating new borders, padding and repeating backgrounds or lets it stay as a continuous box on a page break, column break, or, for inline elements, at a line break.
696 */
697 boxDecorationBreak?: any;
698
699 /**
700 * Deprecated
701 */
702 boxDirection?: any;
703
704 /**
705 * Do not use. This property has been replaced by the flex-wrap property.
706 * Gets or sets a value that specifies the direction to add successive rows or columns when the value of box-lines is set to multiple.
707 */
708 boxLineProgression?: any;
709
710 /**
711 * Do not use. This property has been replaced by the flex-wrap property.
712 * Gets or sets a value that specifies whether child elements wrap onto multiple lines or columns based on the space available in the object.
713 */
714 boxLines?: any;
715
716 /**
717 * Do not use. This property has been replaced by flex-order.
718 * Specifies the ordinal group that a child element of the object belongs to. This ordinal value identifies the display order (along the axis defined by the box-orient property) for the group.
719 */
720 boxOrdinalGroup?: any;
721
722 /**
723 * The CSS break-after property allows you to force a break on multi-column layouts. More specifically, it allows you to force a break after an element. It allows you to determine if a break should occur, and what type of break it should be. The break-after CSS property describes how the page, column or region break behaves after the generated box. If there is no generated box, the property is ignored.
724 */
725 breakAfter?: any;
726
727 /**
728 * Control page/column/region breaks that fall above a block of content
729 */
730 breakBefore?: any;
731
732 /**
733 * Control page/column/region breaks that fall within a block of content
734 */
735 breakInside?: any;
736
737 /**
738 * The clear CSS property specifies if an element can be positioned next to or must be positioned below the floating elements that precede it in the markup.
739 */
740 clear?: any;
741
742 /**
743 * Deprecated; see clip-path.
744 * Lets you specify the dimensions of an absolutely positioned element that should be visible, and the element is clipped into this shape, and displayed.
745 */
746 clip?: any;
747
748 /**
749 * Clipping crops an graphic, so that only a portion of the graphic is rendered, or filled. This clip-rule property, when used with the clip-path property, defines which clip rule, or algorithm, to use when filling the different parts of a graphics.
750 */
751 clipRule?: any;
752
753 /**
754 * The color property sets the color of an element's foreground content (usually text), accepting any standard CSS color from keywords and hex values to RGB(a) and HSL(a).
755 */
756 color?: any;
757
758 /**
759 * Specifies how to fill columns (balanced or sequential).
760 */
761 columnFill?: any;
762
763 /**
764 * The column-gap property controls the width of the gap between columns in multi-column elements.
765 */
766 columnGap?: any;
767
768 /**
769 * Sets the width, style, and color of the rule between columns.
770 */
771 columnRule?: any;
772
773 /**
774 * Specifies the color of the rule between columns.
775 */
776 columnRuleColor?: any;
777
778 /**
779 * Specifies the width of the rule between columns.
780 */
781 columnRuleWidth?: any;
782
783 /**
784 * The column-span CSS property makes it possible for an element to span across all columns when its value is set to all. An element that spans more than one column is called a spanning element.
785 */
786 columnSpan?: any;
787
788 /**
789 * Specifies the width of columns in multi-column elements.
790 */
791 columnWidth?: any;
792
793 /**
794 * This property is a shorthand property for setting column-width and/or column-count.
795 */
796 columns?: any;
797
798 /**
799 * The counter-increment property accepts one or more names of counters (identifiers), each one optionally followed by an integer which specifies the value by which the counter should be incremented (e.g. if the value is 2, the counter increases by 2 each time it is invoked).
800 */
801 counterIncrement?: any;
802
803 /**
804 * The counter-reset property contains a list of one or more names of counters, each one optionally followed by an integer (otherwise, the integer defaults to 0.) Each time the given element is invoked, the counters specified by the property are set to the given integer.
805 */
806 counterReset?: any;
807
808 /**
809 * The cue property specifies sound files (known as an "auditory icon") to be played by speech media agents before and after presenting an element's content; if only one file is specified, it is played both before and after. The volume at which the file(s) should be played, relative to the volume of the main element, may also be specified. The icon files may also be set separately with the cue-before and cue-after properties.
810 */
811 cue?: any;
812
813 /**
814 * The cue-after property specifies a sound file (known as an "auditory icon") to be played by speech media agents after presenting an element's content; the volume at which the file should be played may also be specified. The shorthand property cue sets cue sounds for both before and after the element is presented.
815 */
816 cueAfter?: any;
817
818 /**
819 * The direction CSS property specifies the text direction/writing direction. The rtl is used for Hebrew or Arabic text, the ltr is for other languages.
820 */
821 direction?: any;
822
823 /**
824 * This property specifies the type of rendering box used for an element. It is a shorthand property for many other display properties.
825 */
826 display?: any;
827
828 /**
829 * The ‘fill’ property paints the interior of the given graphical element. The area to be painted consists of any areas inside the outline of the shape. To determine the inside of the shape, all subpaths are considered, and the interior is determined according to the rules associated with the current value of the ‘fill-rule’ property. The zero-width geometric outline of a shape is included in the area to be painted.
830 */
831 fill?: any;
832
833 /**
834 * The ‘fill-rule’ property indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape. For a simple, non-intersecting path, it is intuitively clear what region lies "inside"; however, for a more complex path, such as a path that intersects itself or where one subpath encloses another, the interpretation of "inside" is not so obvious.
835 * The ‘fill-rule’ property provides two options for how the inside of a shape is determined:
836 */
837 fillRule?: any;
838
839 /**
840 * Applies various image processing effects. This property is largely unsupported. See Compatibility section for more information.
841 */
842 filter?: any;
843
844 /**
845 * Obsolete, do not use. This property has been renamed to align-items.
846 * Specifies the alignment (perpendicular to the layout axis defined by the flex-direction property) of child elements of the object.
847 */
848 flexAlign?: any;
849
850 /**
851 * The flex-basis CSS property describes the initial main size of the flex item before any free space is distributed according to the flex factors described in the flex property (flex-grow and flex-shrink).
852 */
853 flexBasis?: any;
854
855 /**
856 * The flex-direction CSS property describes how flex items are placed in the flex container, by setting the direction of the flex container's main axis.
857 */
858 flexDirection?: any;
859
860 /**
861 * The flex-flow CSS property defines the flex container's main and cross axis. It is a shorthand property for the flex-direction and flex-wrap properties.
862 */
863 flexFlow?: any;
864
865 /**
866 * Do not use. This property has been renamed to align-self
867 * Specifies the alignment (perpendicular to the layout axis defined by flex-direction) of child elements of the object.
868 */
869 flexItemAlign?: any;
870
871 /**
872 * Do not use. This property has been renamed to align-content.
873 * Specifies how a flexbox's lines align within the flexbox when there is extra space along the axis that is perpendicular to the axis defined by the flex-direction property.
874 */
875 flexLinePack?: any;
876
877 /**
878 * Gets or sets a value that specifies the ordinal group that a flexbox element belongs to. This ordinal value identifies the display order for the group.
879 */
880 flexOrder?: any;
881
882 /**
883 * Elements which have the style float are floated horizontally. These elements can move as far to the left or right of the containing element. All elements after the floating element will flow around it, but elements before the floating element are not impacted. If several floating elements are placed after each other, they will float next to each other as long as there is room.
884 */
885 float?: any;
886
887 /**
888 * Flows content from a named flow (specified by a corresponding flow-into) through selected elements to form a dynamic chain of layout regions.
889 */
890 flowFrom?: any;
891
892 /**
893 * The font property is shorthand that allows you to do one of two things: you can either set up six of the most mature font properties in one line, or you can set one of a choice of keywords to adopt a system font setting.
894 */
895 font?: any;
896
897 /**
898 * The font-family property allows one or more font family names and/or generic family names to be specified for usage on the selected element(s)' text. The browser then goes through the list; for each character in the selection it applies the first font family that has an available glyph for that character.
899 */
900 fontFamily?: any;
901
902 /**
903 * The font-kerning property allows contextual adjustment of inter-glyph spacing, i.e. the spaces between the characters in text. This property controls <bold>metric kerning</bold> - that utilizes adjustment data contained in the font. Optical Kerning is not supported as yet.
904 */
905 fontKerning?: any;
906
907 /**
908 * The font-size-adjust property adjusts the font-size of the fallback fonts defined with font-family, so that the x-height is the same no matter what font is used. This preserves the readability of the text when fallback happens.
909 */
910 fontSizeAdjust?: any;
911
912 /**
913 * Allows you to expand or condense the widths for a normal, condensed, or expanded font face.
914 */
915 fontStretch?: any;
916
917 /**
918 * The font-style property allows normal, italic, or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face. Oblique faces can be simulated by artificially sloping the glyphs of the regular face.
919 */
920 fontStyle?: any;
921
922 /**
923 * This value specifies whether the user agent is allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.
924 */
925 fontSynthesis?: any;
926
927 /**
928 * The font-variant property enables you to select the small-caps font within a font family.
929 */
930 fontVariant?: any;
931
932 /**
933 * Fonts can provide alternate glyphs in addition to default glyph for a character. This property provides control over the selection of these alternate glyphs.
934 */
935 fontVariantAlternates?: any;
936
937 /**
938 * Lays out one or more grid items bound by 4 grid lines. Shorthand for setting grid-column-start, grid-column-end, grid-row-start, and grid-row-end in a single declaration.
939 */
940 gridArea?: any;
941
942 /**
943 * Controls a grid item's placement in a grid area, particularly grid position and a grid span. Shorthand for setting grid-column-start and grid-column-end in a single declaration.
944 */
945 gridColumn?: any;
946
947 /**
948 * Controls a grid item's placement in a grid area as well as grid position and a grid span. The grid-column-end property (with grid-row-start, grid-row-end, and grid-column-start) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
949 */
950 gridColumnEnd?: any;
951
952 /**
953 * Determines a grid item's placement by specifying the starting grid lines of a grid item's grid area . A grid item's placement in a grid area consists of a grid position and a grid span. See also ( grid-row-start, grid-row-end, and grid-column-end)
954 */
955 gridColumnStart?: any;
956
957 /**
958 * Gets or sets a value that indicates which row an element within a Grid should appear in. Shorthand for setting grid-row-start and grid-row-end in a single declaration.
959 */
960 gridRow?: any;
961
962 /**
963 * Determines a grid item’s placement by specifying the block-end. A grid item's placement in a grid area consists of a grid position and a grid span. The grid-row-end property (with grid-row-start, grid-column-start, and grid-column-end) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
964 */
965 gridRowEnd?: any;
966
967 /**
968 * Specifies a row position based upon an integer location, string value, or desired row size.
969 * css/properties/grid-row is used as short-hand for grid-row-position and grid-row-position
970 */
971 gridRowPosition?: any;
972
973 gridRowSpan?: any;
974
975 /**
976 * Specifies named grid areas which are not associated with any particular grid item, but can be referenced from the grid-placement properties. The syntax of the grid-template-areas property also provides a visualization of the structure of the grid, making the overall layout of the grid container easier to understand.
977 */
978 gridTemplateAreas?: any;
979
980 /**
981 * Specifies (with grid-template-rows) the line names and track sizing functions of the grid. Each sizing function can be specified as a length, a percentage of the grid container’s size, a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
982 */
983 gridTemplateColumns?: any;
984
985 /**
986 * Specifies (with grid-template-columns) the line names and track sizing functions of the grid. Each sizing function can be specified as a length, a percentage of the grid container’s size, a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
987 */
988 gridTemplateRows?: any;
989
990 /**
991 * Sets the height of an element. The content area of the element height does not include the padding, border, and margin of the element.
992 */
993 height?: any;
994
995 /**
996 * Specifies the minimum number of characters in a hyphenated word
997 */
998 hyphenateLimitChars?: any;
999
1000 /**
1001 * Indicates the maximum number of successive hyphenated lines in an element. The ‘no-limit’ value means that there is no limit.
1002 */
1003 hyphenateLimitLines?: any;
1004
1005 /**
1006 * Specifies the maximum amount of trailing whitespace (before justification) that may be left in a line before hyphenation is triggered to pull part of a word from the next line back up into the current one.
1007 */
1008 hyphenateLimitZone?: any;
1009
1010 /**
1011 * Specifies whether or not words in a sentence can be split by the use of a manual or automatic hyphenation mechanism.
1012 */
1013 hyphens?: any;
1014
1015 imeMode?: any;
1016
1017 layoutGrid?: any;
1018
1019 layoutGridChar?: any;
1020
1021 layoutGridLine?: any;
1022
1023 layoutGridMode?: any;
1024
1025 layoutGridType?: any;
1026
1027 /**
1028 * Sets the left edge of an element
1029 */
1030 left?: any;
1031
1032 /**
1033 * The letter-spacing CSS property specifies the spacing behavior between text characters.
1034 */
1035 letterSpacing?: any;
1036
1037 /**
1038 * Deprecated. Gets or sets line-breaking rules for text in selected languages such as Japanese, Chinese, and Korean.
1039 */
1040 lineBreak?: any;
1041
1042 /**
1043 * Shorthand property that sets the list-style-type, list-style-position and list-style-image properties in one declaration.
1044 */
1045 listStyle?: any;
1046
1047 /**
1048 * This property sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker. That also means that if the image is not available, it will show the style specified by list-style-property
1049 */
1050 listStyleImage?: any;
1051
1052 /**
1053 * Specifies if the list-item markers should appear inside or outside the content flow.
1054 */
1055 listStylePosition?: any;
1056
1057 /**
1058 * Specifies the type of list-item marker in a list.
1059 */
1060 listStyleType?: any;
1061
1062 /**
1063 * The margin property is shorthand to allow you to set all four margins of an element at once. Its equivalent longhand properties are margin-top, margin-right, margin-bottom and margin-left. Negative values are also allowed.
1064 */
1065 margin?: any;
1066
1067 /**
1068 * margin-bottom sets the bottom margin of an element.
1069 */
1070 marginBottom?: any;
1071
1072 /**
1073 * margin-left sets the left margin of an element.
1074 */
1075 marginLeft?: any;
1076
1077 /**
1078 * margin-right sets the right margin of an element.
1079 */
1080 marginRight?: any;
1081
1082 /**
1083 * margin-top sets the top margin of an element.
1084 */
1085 marginTop?: any;
1086
1087 /**
1088 * The marquee-direction determines the initial direction in which the marquee content moves.
1089 */
1090 marqueeDirection?: any;
1091
1092 /**
1093 * The 'marquee-style' property determines a marquee's scrolling behavior.
1094 */
1095 marqueeStyle?: any;
1096
1097 /**
1098 * This property is shorthand for setting mask-image, mask-mode, mask-repeat, mask-position, mask-clip, mask-origin, mask-composite and mask-size. Omitted values are set to their original properties' initial values.
1099 */
1100 mask?: any;
1101
1102 /**
1103 * This property is shorthand for setting mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, and mask-border-repeat. Omitted values are set to their original properties' initial values.
1104 */
1105 maskBorder?: any;
1106
1107 /**
1108 * This property specifies how the images for the sides and the middle part of the mask image are scaled and tiled. The first keyword applies to the horizontal sides, the second one applies to the vertical ones. If the second keyword is absent, it is assumed to be the same as the first, similar to the CSS border-image-repeat property.
1109 */
1110 maskBorderRepeat?: any;
1111
1112 /**
1113 * This property specifies inward offsets from the top, right, bottom, and left edges of the mask image, dividing it into nine regions: four corners, four edges, and a middle. The middle image part is discarded and treated as fully transparent black unless the fill keyword is present. The four values set the top, right, bottom and left offsets in that order, similar to the CSS border-image-slice property.
1114 */
1115 maskBorderSlice?: any;
1116
1117 /**
1118 * Specifies an image to be used as a mask. An image that is empty, fails to download, is non-existent, or cannot be displayed is ignored and does not mask the element.
1119 */
1120 maskBorderSource?: any;
1121
1122 /**
1123 * This property sets the width of the mask box image, similar to the CSS border-image-width property.
1124 */
1125 maskBorderWidth?: any;
1126
1127 /**
1128 * Determines the mask painting area, which defines the area that is affected by the mask. The painted content of an element may be restricted to this area.
1129 */
1130 maskClip?: any;
1131
1132 /**
1133 * For elements rendered as a single box, specifies the mask positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes box-decoration-break operates on to determine the mask positioning area(s).
1134 */
1135 maskOrigin?: any;
1136
1137 /**
1138 * This property must not be used. It is no longer included in any standard or standard track specification, nor is it implemented in any browser. It is only used when the text-align-last property is set to size. It controls allowed adjustments of font-size to fit line content.
1139 */
1140 maxFontSize?: any;
1141
1142 /**
1143 * Sets the maximum height for an element. It prevents the height of the element to exceed the specified value. If min-height is specified and is greater than max-height, max-height is overridden.
1144 */
1145 maxHeight?: any;
1146
1147 /**
1148 * Sets the maximum width for an element. It limits the width property to be larger than the value specified in max-width.
1149 */
1150 maxWidth?: any;
1151
1152 /**
1153 * Sets the minimum height for an element. It prevents the height of the element to be smaller than the specified value. The value of min-height overrides both max-height and height.
1154 */
1155 minHeight?: any;
1156
1157 /**
1158 * Sets the minimum width of an element. It limits the width property to be not smaller than the value specified in min-width.
1159 */
1160 minWidth?: any;
1161
1162 /**
1163 * The CSS outline property is a shorthand property for setting one or more of the individual outline properties outline-style, outline-width and outline-color in a single rule. In most cases the use of this shortcut is preferable and more convenient.
1164 * Outlines differ from borders in the following ways: • Outlines do not take up space, they are drawn above the content.
1165 * • Outlines may be non-rectangular. They are rectangular in Gecko/Firefox. Internet Explorer attempts to place the smallest contiguous outline around all elements or shapes that are indicated to have an outline. Opera draws a non-rectangular shape around a construct.
1166 */
1167 outline?: any;
1168
1169 /**
1170 * The outline-color property sets the color of the outline of an element. An outline is a line that is drawn around elements, outside the border edge, to make the element stand out.
1171 */
1172 outlineColor?: any;
1173
1174 /**
1175 * The outline-offset property offsets the outline and draw it beyond the border edge.
1176 */
1177 outlineOffset?: any;
1178
1179 /**
1180 * The overflow property controls how extra content exceeding the bounding box of an element is rendered. It can be used in conjunction with an element that has a fixed width and height, to eliminate text-induced page distortion.
1181 */
1182 overflow?: any;
1183
1184 /**
1185 * Specifies the preferred scrolling methods for elements that overflow.
1186 */
1187 overflowStyle?: any;
1188
1189 /**
1190 * The overflow-x property is a specific case of the generic overflow property. It controls how extra content exceeding the x-axis of the bounding box of an element is rendered.
1191 */
1192 overflowX?: any;
1193
1194 /**
1195 * The padding optional CSS property sets the required padding space on one to four sides of an element. The padding area is the space between an element and its border. Negative values are not allowed but decimal values are permitted. The element size is treated as fixed, and the content of the element shifts toward the center as padding is increased.
1196 * The padding property is a shorthand to avoid setting each side separately (padding-top, padding-right, padding-bottom, padding-left).
1197 */
1198 padding?: any;
1199
1200 /**
1201 * The padding-bottom CSS property of an element sets the padding space required on the bottom of an element. The padding area is the space between the content of the element and its border. Contrary to margin-bottom values, negative values of padding-bottom are invalid.
1202 */
1203 paddingBottom?: any;
1204
1205 /**
1206 * The padding-left CSS property of an element sets the padding space required on the left side of an element. The padding area is the space between the content of the element and its border. Contrary to margin-left values, negative values of padding-left are invalid.
1207 */
1208 paddingLeft?: any;
1209
1210 /**
1211 * The padding-right CSS property of an element sets the padding space required on the right side of an element. The padding area is the space between the content of the element and its border. Contrary to margin-right values, negative values of padding-right are invalid.
1212 */
1213 paddingRight?: any;
1214
1215 /**
1216 * The padding-top CSS property of an element sets the padding space required on the top of an element. The padding area is the space between the content of the element and its border. Contrary to margin-top values, negative values of padding-top are invalid.
1217 */
1218 paddingTop?: any;
1219
1220 /**
1221 * The page-break-after property is supported in all major browsers. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
1222 */
1223 pageBreakAfter?: any;
1224
1225 /**
1226 * The page-break-before property sets the page-breaking behavior before an element. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
1227 */
1228 pageBreakBefore?: any;
1229
1230 /**
1231 * Sets the page-breaking behavior inside an element. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
1232 */
1233 pageBreakInside?: any;
1234
1235 /**
1236 * The pause property determines how long a speech media agent should pause before and after presenting an element. It is a shorthand for the pause-before and pause-after properties.
1237 */
1238 pause?: any;
1239
1240 /**
1241 * The pause-after property determines how long a speech media agent should pause after presenting an element. It may be replaced by the shorthand property pause, which sets pause time before and after.
1242 */
1243 pauseAfter?: any;
1244
1245 /**
1246 * The pause-before property determines how long a speech media agent should pause before presenting an element. It may be replaced by the shorthand property pause, which sets pause time before and after.
1247 */
1248 pauseBefore?: any;
1249
1250 /**
1251 * The perspective property defines how far an element is placed from the view on the z-axis, from the screen to the viewer.
1252 * Perspective defines how an object is viewed. In graphic arts, perspective is the representation on a flat surface of what the viewer's eye would see in a 3D space. (See Wikipedia for more information about graphical perspective and for related illustrations.)
1253 * The illusion of perspective on a flat surface, such as a computer screen, is created by projecting points on the flat surface as they would appear if the flat surface were a window through which the viewer was looking at the object. In discussion of virtual environments, this flat surface is called a projection plane.
1254 */
1255 perspective?: any;
1256
1257 /**
1258 * The perspective-origin property establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.
1259 * When used with perspective, perspective-origin changes the appearance of an object, as if a viewer were looking at it from a different origin. An object appears differently if a viewer is looking directly at it versus looking at it from below, above, or from the side. Thus, the perspective-origin is like a vanishing point.
1260 * The default value of perspective-origin is 50% 50%. This displays an object as if the viewer's eye were positioned directly at the center of the screen, both top-to-bottom and left-to-right. A value of 0% 0% changes the object as if the viewer was looking toward the top left angle. A value of 100% 100% changes the appearance as if viewed toward the bottom right angle.
1261 */
1262 perspectiveOrigin?: any;
1263
1264 /**
1265 * The pointer-events property allows you to control whether an element can be the target for the pointing device (e.g, mouse, pen) events.
1266 */
1267 pointerEvents?: any;
1268
1269 /**
1270 * The position property controls the type of positioning used by an element within its parent elements. The effect of the position property depends on a lot of factors, for example the position property of parent elements.
1271 */
1272 position?: any;
1273
1274 /**
1275 * Obsolete: unsupported.
1276 * This property determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its "ink" lines up with the first glyph in the line above and below.
1277 */
1278 punctuationTrim?: any;
1279
1280 /**
1281 * Sets the type of quotation marks for embedded quotations.
1282 */
1283 quotes?: any;
1284
1285 /**
1286 * Controls whether the last region in a chain displays additional 'overset' content according its default overflow property, or if it displays a fragment of content as if it were flowing into a subsequent region.
1287 */
1288 regionFragment?: any;
1289
1290 /**
1291 * The rest-after property determines how long a speech media agent should pause after presenting an element's main content, before presenting that element's exit cue sound. It may be replaced by the shorthand property rest, which sets rest time before and after.
1292 */
1293 restAfter?: any;
1294
1295 /**
1296 * The rest-before property determines how long a speech media agent should pause after presenting an intro cue sound for an element, before presenting that element's main content. It may be replaced by the shorthand property rest, which sets rest time before and after.
1297 */
1298 restBefore?: any;
1299
1300 /**
1301 * Specifies the position an element in relation to the right side of the containing element.
1302 */
1303 right?: any;
1304
1305 rubyAlign?: any;
1306
1307 rubyPosition?: any;
1308
1309 /**
1310 * Defines the alpha channel threshold used to extract a shape from an image. Can be thought of as a "minimum opacity" threshold; that is, a value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.
1311 */
1312 shapeImageThreshold?: any;
1313
1314 /**
1315 * A future level of CSS Shapes will define a shape-inside property, which will define a shape to wrap content within the element. See Editor's Draft <http://dev.w3.org/csswg/css-shapes/> and CSSWG wiki page on next-level plans <http://wiki.csswg.org/spec/css-shapes>
1316 */
1317 shapeInside?: any;
1318
1319 /**
1320 * Adds a margin to a shape-outside. In effect, defines a new shape that is the smallest contour around all the points that are the shape-margin distance outward perpendicular to each point on the underlying shape. For points where a perpendicular direction is not defined (e.g., a triangle corner), takes all points on a circle centered at the point and with a radius of the shape-margin distance. This property accepts only non-negative values.
1321 */
1322 shapeMargin?: any;
1323
1324 /**
1325 * Declares a shape around which text should be wrapped, with possible modifications from the shape-margin property. The shape defined by shape-outside and shape-margin changes the geometry of a float element's float area.
1326 */
1327 shapeOutside?: any;
1328
1329 /**
1330 * The speak property determines whether or not a speech synthesizer will read aloud the contents of an element.
1331 */
1332 speak?: any;
1333
1334 /**
1335 * The speak-as property determines how the speech synthesizer interprets the content: words as whole words or as a sequence of letters, numbers as a numerical value or a sequence of digits, punctuation as pauses in speech or named punctuation characters.
1336 */
1337 speakAs?: any;
1338
1339 /**
1340 * The tab-size CSS property is used to customise the width of a tab (U+0009) character.
1341 */
1342 tabSize?: any;
1343
1344 /**
1345 * The 'table-layout' property controls the algorithm used to lay out the table cells, rows, and columns.
1346 */
1347 tableLayout?: any;
1348
1349 /**
1350 * The text-align CSS property describes how inline content like text is aligned in its parent block element. text-align does not control the alignment of block elements itself, only their inline content.
1351 */
1352 textAlign?: any;
1353
1354 /**
1355 * The text-align-last CSS property describes how the last line of a block element or a line before line break is aligned in its parent block element.
1356 */
1357 textAlignLast?: any;
1358
1359 /**
1360 * The text-decoration CSS property is used to set the text formatting to underline, overline, line-through or blink.
1361 * underline and overline decorations are positioned under the text, line-through over it.
1362 */
1363 textDecoration?: any;
1364
1365 /**
1366 * Sets the color of any text decoration, such as underlines, overlines, and strike throughs.
1367 */
1368 textDecorationColor?: any;
1369
1370 /**
1371 * Sets what kind of line decorations are added to an element, such as underlines, overlines, etc.
1372 */
1373 textDecorationLine?: any;
1374
1375 textDecorationLineThrough?: any;
1376
1377 textDecorationNone?: any;
1378
1379 textDecorationOverline?: any;
1380
1381 /**
1382 * Specifies what parts of an element’s content are skipped over when applying any text decoration.
1383 */
1384 textDecorationSkip?: any;
1385
1386 /**
1387 * This property specifies the style of the text decoration line drawn on the specified element. The intended meaning for the values are the same as those of the border-style-properties.
1388 */
1389 textDecorationStyle?: any;
1390
1391 textDecorationUnderline?: any;
1392
1393 /**
1394 * The text-emphasis property will apply special emphasis marks to the elements text. Slightly similar to the text-decoration property only that this property can have affect on the line-height. It also is noted that this is shorthand for text-emphasis-style and for text-emphasis-color.
1395 */
1396 textEmphasis?: any;
1397
1398 /**
1399 * The text-emphasis-color property specifies the foreground color of the emphasis marks.
1400 */
1401 textEmphasisColor?: any;
1402
1403 /**
1404 * The text-emphasis-style property applies special emphasis marks to an element's text.
1405 */
1406 textEmphasisStyle?: any;
1407
1408 /**
1409 * This property helps determine an inline box's block-progression dimension, derived from the text-height and font-size properties for non-replaced elements, the height or the width for replaced elements, and the stacked block-progression dimension for inline-block elements. The block-progression dimension determines the position of the padding, border and margin for the element.
1410 */
1411 textHeight?: any;
1412
1413 /**
1414 * Specifies the amount of space horizontally that should be left on the first line of the text of an element. This horizontal spacing is at the beginning of the first line and is in respect to the left edge of the containing block box.
1415 */
1416 textIndent?: any;
1417
1418 textJustifyTrim?: any;
1419
1420 textKashidaSpace?: any;
1421
1422 /**
1423 * The text-line-through property is a shorthand property for text-line-through-style, text-line-through-color and text-line-through-mode. (Considered obsolete; use text-decoration instead.)
1424 */
1425 textLineThrough?: any;
1426
1427 /**
1428 * Specifies the line colors for the line-through text decoration.
1429 * (Considered obsolete; use text-decoration-color instead.)
1430 */
1431 textLineThroughColor?: any;
1432
1433 /**
1434 * Sets the mode for the line-through text decoration, determining whether the text decoration affects the space characters or not.
1435 * (Considered obsolete; use text-decoration-skip instead.)
1436 */
1437 textLineThroughMode?: any;
1438
1439 /**
1440 * Specifies the line style for line-through text decoration.
1441 * (Considered obsolete; use text-decoration-style instead.)
1442 */
1443 textLineThroughStyle?: any;
1444
1445 /**
1446 * Specifies the line width for the line-through text decoration.
1447 */
1448 textLineThroughWidth?: any;
1449
1450 /**
1451 * The text-overflow shorthand CSS property determines how overflowed content that is not displayed is signaled to the users. It can be clipped, display an ellipsis ('…', U+2026 HORIZONTAL ELLIPSIS) or a Web author-defined string. It covers the two long-hand properties text-overflow-mode and text-overflow-ellipsis
1452 */
1453 textOverflow?: any;
1454
1455 /**
1456 * The text-overline property is the shorthand for the text-overline-style, text-overline-width, text-overline-color, and text-overline-mode properties.
1457 */
1458 textOverline?: any;
1459
1460 /**
1461 * Specifies the line color for the overline text decoration.
1462 */
1463 textOverlineColor?: any;
1464
1465 /**
1466 * Sets the mode for the overline text decoration, determining whether the text decoration affects the space characters or not.
1467 */
1468 textOverlineMode?: any;
1469
1470 /**
1471 * Specifies the line style for overline text decoration.
1472 */
1473 textOverlineStyle?: any;
1474
1475 /**
1476 * Specifies the line width for the overline text decoration.
1477 */
1478 textOverlineWidth?: any;
1479
1480 /**
1481 * The text-rendering CSS property provides information to the browser about how to optimize when rendering text. Options are: legibility, speed or geometric precision.
1482 */
1483 textRendering?: any;
1484
1485 /**
1486 * Obsolete: unsupported.
1487 */
1488 textScript?: any;
1489
1490 /**
1491 * The CSS text-shadow property applies one or more drop shadows to the text and <text-decorations> of an element. Each shadow is specified as an offset from the text, along with optional color and blur radius values.
1492 */
1493 textShadow?: any;
1494
1495 /**
1496 * This property transforms text for styling purposes. (It has no effect on the underlying content.)
1497 */
1498 textTransform?: any;
1499
1500 /**
1501 * Unsupported.
1502 * This property will add a underline position value to the element that has an underline defined.
1503 */
1504 textUnderlinePosition?: any;
1505
1506 /**
1507 * After review this should be replaced by text-decoration should it not?
1508 * This property will set the underline style for text with a line value for underline, overline, and line-through.
1509 */
1510 textUnderlineStyle?: any;
1511
1512 /**
1513 * This property specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's containing block. For relatively positioned boxes, the offset is with respect to the top edges of the box itself (i.e., the box is given a position in the normal flow, then offset from that position according to these properties).
1514 */
1515 top?: any;
1516
1517 /**
1518 * Determines whether touch input may trigger default behavior supplied by the user agent, such as panning or zooming.
1519 */
1520 touchAction?: any;
1521
1522 /**
1523 * CSS transforms allow elements styled with CSS to be transformed in two-dimensional or three-dimensional space. Using this property, elements can be translated, rotated, scaled, and skewed. The value list may consist of 2D and/or 3D transform values.
1524 */
1525 transform?: any;
1526
1527 /**
1528 * This property defines the origin of the transformation axes relative to the element to which the transformation is applied.
1529 */
1530 transformOrigin?: any;
1531
1532 /**
1533 * This property allows you to define the relative position of the origin of the transformation grid along the z-axis.
1534 */
1535 transformOriginZ?: any;
1536
1537 /**
1538 * This property specifies how nested elements are rendered in 3D space relative to their parent.
1539 */
1540 transformStyle?: any;
1541
1542 /**
1543 * The transition CSS property is a shorthand property for transition-property, transition-duration, transition-timing-function, and transition-delay. It allows to define the transition between two states of an element.
1544 */
1545 transition?: any;
1546
1547 /**
1548 * Defines when the transition will start. A value of ‘0s’ means the transition will execute as soon as the property is changed. Otherwise, the value specifies an offset from the moment the property is changed, and the transition will delay execution by that offset.
1549 */
1550 transitionDelay?: any;
1551
1552 /**
1553 * The 'transition-duration' property specifies the length of time a transition animation takes to complete.
1554 */
1555 transitionDuration?: any;
1556
1557 /**
1558 * The 'transition-property' property specifies the name of the CSS property to which the transition is applied.
1559 */
1560 transitionProperty?: any;
1561
1562 /**
1563 * Sets the pace of action within a transition
1564 */
1565 transitionTimingFunction?: any;
1566
1567 /**
1568 * The unicode-bidi CSS property specifies the level of embedding with respect to the bidirectional algorithm.
1569 */
1570 unicodeBidi?: any;
1571
1572 /**
1573 * unicode-range allows you to set a specific range of characters to be downloaded from a font (embedded using @font-face) and made available for use on the current page.
1574 */
1575 unicodeRange?: any;
1576
1577 /**
1578 * This is for all the high level UX stuff.
1579 */
1580 userFocus?: any;
1581
1582 /**
1583 * For inputing user content
1584 */
1585 userInput?: any;
1586
1587 /**
1588 * The vertical-align property controls how inline elements or text are vertically aligned compared to the baseline. If this property is used on table-cells it controls the vertical alignment of content of the table cell.
1589 */
1590 verticalAlign?: any;
1591
1592 /**
1593 * The visibility property specifies whether the boxes generated by an element are rendered.
1594 */
1595 visibility?: any;
1596
1597 /**
1598 * The voice-balance property sets the apparent position (in stereo sound) of the synthesized voice for spoken media.
1599 */
1600 voiceBalance?: any;
1601
1602 /**
1603 * The voice-duration property allows the author to explicitly set the amount of time it should take a speech synthesizer to read an element's content, for example to allow the speech to be synchronized with other media. With a value of auto (the default) the length of time it takes to read the content is determined by the content itself and the voice-rate property.
1604 */
1605 voiceDuration?: any;
1606
1607 /**
1608 * The voice-family property sets the speaker's voice used by a speech media agent to read an element. The speaker may be specified as a named character (to match a voice option in the speech reading software) or as a generic description of the age and gender of the voice. Similar to the font-family property for visual media, a comma-separated list of fallback options may be given in case the speech reader does not recognize the character name or cannot synthesize the requested combination of generic properties.
1609 */
1610 voiceFamily?: any;
1611
1612 /**
1613 * The voice-pitch property sets pitch or tone (high or low) for the synthesized speech when reading an element; the pitch may be specified absolutely or relative to the normal pitch for the voice-family used to read the text.
1614 */
1615 voicePitch?: any;
1616
1617 /**
1618 * The voice-range property determines how much variation in pitch or tone will be created by the speech synthesize when reading an element. Emphasized text, grammatical structures and punctuation may all be rendered as changes in pitch, this property determines how strong or obvious those changes are; large ranges are associated with enthusiastic or emotional speech, while small ranges are associated with flat or mechanical speech.
1619 */
1620 voiceRange?: any;
1621
1622 /**
1623 * The voice-rate property sets the speed at which the voice synthesized by a speech media agent will read content.
1624 */
1625 voiceRate?: any;
1626
1627 /**
1628 * The voice-stress property sets the level of vocal emphasis to be used for synthesized speech reading the element.
1629 */
1630 voiceStress?: any;
1631
1632 /**
1633 * The voice-volume property sets the volume for spoken content in speech media. It replaces the deprecated volume property.
1634 */
1635 voiceVolume?: any;
1636
1637 /**
1638 * The white-space property controls whether and how white space inside the element is collapsed, and whether lines may wrap at unforced "soft wrap" opportunities.
1639 */
1640 whiteSpace?: any;
1641
1642 /**
1643 * Obsolete: unsupported.
1644 */
1645 whiteSpaceTreatment?: any;
1646
1647 /**
1648 * Specifies the width of the content area of an element. The content area of the element width does not include the padding, border, and margin of the element.
1649 */
1650 width?: any;
1651
1652 /**
1653 * The word-break property is often used when there is long generated content that is strung together without and spaces or hyphens to beak apart. A common case of this is when there is a long URL that does not have any hyphens. This case could potentially cause the breaking of the layout as it could extend past the parent element.
1654 */
1655 wordBreak?: any;
1656
1657 /**
1658 * The word-spacing CSS property specifies the spacing behavior between "words".
1659 */
1660 wordSpacing?: any;
1661
1662 /**
1663 * An alias of css/properties/overflow-wrap, word-wrap defines whether to break words when the content exceeds the boundaries of its container.
1664 */
1665 wordWrap?: any;
1666
1667 /**
1668 * Specifies how exclusions affect inline content within block-level elements. Elements lay out their inline content in their content area but wrap around exclusion areas.
1669 */
1670 wrapFlow?: any;
1671
1672 /**
1673 * Set the value that is used to offset the inner wrap shape from other shapes. Inline content that intersects a shape with this property will be pushed by this shape's margin.
1674 */
1675 wrapMargin?: any;
1676
1677 /**
1678 * Obsolete and unsupported. Do not use.
1679 * This CSS property controls the text when it reaches the end of the block in which it is enclosed.
1680 */
1681 wrapOption?: any;
1682
1683 /**
1684 * writing-mode specifies if lines of text are laid out horizontally or vertically, and the direction which lines of text and blocks progress.
1685 */
1686 writingMode?: any;
1687
1688
1689 [propertyName: string]: any;
1690 }
1691
1692 interface HTMLAttributes extends DOMAttributes {
1693 // React-specific Attributes
1694 defaultChecked?: boolean;
1695 defaultValue?: string | string[];
1696
1697 // Standard HTML Attributes
1698 accept?: string;
1699 acceptCharset?: string;
1700 accessKey?: string;
1701 action?: string;
1702 allowFullScreen?: boolean;
1703 allowTransparency?: boolean;
1704 alt?: string;
1705 async?: boolean;
1706 autoComplete?: string;
1707 autoFocus?: boolean;
1708 autoPlay?: boolean;
1709 capture?: boolean;
1710 cellPadding?: number | string;
1711 cellSpacing?: number | string;
1712 charSet?: string;
1713 challenge?: string;
1714 checked?: boolean;
1715 classID?: string;
1716 className?: string;
1717 cols?: number;
1718 colSpan?: number;
1719 content?: string;
1720 contentEditable?: boolean;
1721 contextMenu?: string;
1722 controls?: boolean;
1723 coords?: string;
1724 crossOrigin?: string;
1725 data?: string;
1726 dateTime?: string;
1727 default?: boolean;
1728 defer?: boolean;
1729 dir?: string;
1730 disabled?: boolean;
1731 download?: any;
1732 draggable?: boolean;
1733 encType?: string;
1734 form?: string;
1735 formAction?: string;
1736 formEncType?: string;
1737 formMethod?: string;
1738 formNoValidate?: boolean;
1739 formTarget?: string;
1740 frameBorder?: number | string;
1741 headers?: string;
1742 height?: number | string;
1743 hidden?: boolean;
1744 high?: number;
1745 href?: string;
1746 hrefLang?: string;
1747 htmlFor?: string;
1748 httpEquiv?: string;
1749 icon?: string;
1750 id?: string;
1751 inputMode?: string;
1752 integrity?: string;
1753 is?: string;
1754 keyParams?: string;
1755 keyType?: string;
1756 kind?: string;
1757 label?: string;
1758 lang?: string;
1759 list?: string;
1760 loop?: boolean;
1761 low?: number;
1762 manifest?: string;
1763 marginHeight?: number;
1764 marginWidth?: number;
1765 max?: number | string;
1766 maxLength?: number;
1767 media?: string;
1768 mediaGroup?: string;
1769 method?: string;
1770 min?: number | string;
1771 minLength?: number;
1772 multiple?: boolean;
1773 muted?: boolean;
1774 name?: string;
1775 noValidate?: boolean;
1776 open?: boolean;
1777 optimum?: number;
1778 pattern?: string;
1779 placeholder?: string;
1780 poster?: string;
1781 preload?: string;
1782 radioGroup?: string;
1783 readOnly?: boolean;
1784 rel?: string;
1785 required?: boolean;
1786 role?: string;
1787 rows?: number;
1788 rowSpan?: number;
1789 sandbox?: string;
1790 scope?: string;
1791 scoped?: boolean;
1792 scrolling?: string;
1793 seamless?: boolean;
1794 selected?: boolean;
1795 shape?: string;
1796 size?: number;
1797 sizes?: string;
1798 span?: number;
1799 spellCheck?: boolean;
1800 src?: string;
1801 srcDoc?: string;
1802 srcLang?: string;
1803 srcSet?: string;
1804 start?: number;
1805 step?: number | string;
1806 style?: CSSProperties;
1807 summary?: string;
1808 tabIndex?: number;
1809 target?: string;
1810 title?: string;
1811 type?: string;
1812 useMap?: string;
1813 value?: string | string[];
1814 width?: number | string;
1815 wmode?: string;
1816 wrap?: string;
1817
1818 // RDFa Attributes
1819 about?: string;
1820 datatype?: string;
1821 inlist?: any;
1822 prefix?: string;
1823 property?: string;
1824 resource?: string;
1825 typeof?: string;
1826 vocab?: string;
1827
1828 // Non-standard Attributes
1829 autoCapitalize?: string;
1830 autoCorrect?: string;
1831 autoSave?: string;
1832 color?: string;
1833 itemProp?: string;
1834 itemScope?: boolean;
1835 itemType?: string;
1836 itemID?: string;
1837 itemRef?: string;
1838 results?: number;
1839 security?: string;
1840 unselectable?: boolean;
1841 }
1842
1843 interface SVGAttributes extends HTMLAttributes {
1844 clipPath?: string;
1845 cx?: number | string;
1846 cy?: number | string;
1847 d?: string;
1848 dx?: number | string;
1849 dy?: number | string;
1850 fill?: string;
1851 fillOpacity?: number | string;
1852 fontFamily?: string;
1853 fontSize?: number | string;
1854 fx?: number | string;
1855 fy?: number | string;
1856 gradientTransform?: string;
1857 gradientUnits?: string;
1858 markerEnd?: string;
1859 markerMid?: string;
1860 markerStart?: string;
1861 offset?: number | string;
1862 opacity?: number | string;
1863 patternContentUnits?: string;
1864 patternUnits?: string;
1865 points?: string;
1866 preserveAspectRatio?: string;
1867 r?: number | string;
1868 rx?: number | string;
1869 ry?: number | string;
1870 spreadMethod?: string;
1871 stopColor?: string;
1872 stopOpacity?: number | string;
1873 stroke?: string;
1874 strokeDasharray?: string;
1875 strokeLinecap?: string;
1876 strokeMiterlimit?: string;
1877 strokeOpacity?: number | string;
1878 strokeWidth?: number | string;
1879 textAnchor?: string;
1880 transform?: string;
1881 version?: string;
1882 viewBox?: string;
1883 x1?: number | string;
1884 x2?: number | string;
1885 x?: number | string;
1886 xlinkActuate?: string;
1887 xlinkArcrole?: string;
1888 xlinkHref?: string;
1889 xlinkRole?: string;
1890 xlinkShow?: string;
1891 xlinkTitle?: string;
1892 xlinkType?: string;
1893 xmlBase?: string;
1894 xmlLang?: string;
1895 xmlSpace?: string;
1896 y1?: number | string;
1897 y2?: number | string;
1898 y?: number | string;
1899 }
1900
1901 //
1902 // React.DOM
1903 // ----------------------------------------------------------------------
1904
1905 interface ReactDOM {
1906 // HTML
1907 a: HTMLFactory;
1908 abbr: HTMLFactory;
1909 address: HTMLFactory;
1910 area: HTMLFactory;
1911 article: HTMLFactory;
1912 aside: HTMLFactory;
1913 audio: HTMLFactory;
1914 b: HTMLFactory;
1915 base: HTMLFactory;
1916 bdi: HTMLFactory;
1917 bdo: HTMLFactory;
1918 big: HTMLFactory;
1919 blockquote: HTMLFactory;
1920 body: HTMLFactory;
1921 br: HTMLFactory;
1922 button: HTMLFactory;
1923 canvas: HTMLFactory;
1924 caption: HTMLFactory;
1925 cite: HTMLFactory;
1926 code: HTMLFactory;
1927 col: HTMLFactory;
1928 colgroup: HTMLFactory;
1929 data: HTMLFactory;
1930 datalist: HTMLFactory;
1931 dd: HTMLFactory;
1932 del: HTMLFactory;
1933 details: HTMLFactory;
1934 dfn: HTMLFactory;
1935 dialog: HTMLFactory;
1936 div: HTMLFactory;
1937 dl: HTMLFactory;
1938 dt: HTMLFactory;
1939 em: HTMLFactory;
1940 embed: HTMLFactory;
1941 fieldset: HTMLFactory;
1942 figcaption: HTMLFactory;
1943 figure: HTMLFactory;
1944 footer: HTMLFactory;
1945 form: HTMLFactory;
1946 h1: HTMLFactory;
1947 h2: HTMLFactory;
1948 h3: HTMLFactory;
1949 h4: HTMLFactory;
1950 h5: HTMLFactory;
1951 h6: HTMLFactory;
1952 head: HTMLFactory;
1953 header: HTMLFactory;
1954 hr: HTMLFactory;
1955 html: HTMLFactory;
1956 i: HTMLFactory;
1957 iframe: HTMLFactory;
1958 img: HTMLFactory;
1959 input: HTMLFactory;
1960 ins: HTMLFactory;
1961 kbd: HTMLFactory;
1962 keygen: HTMLFactory;
1963 label: HTMLFactory;
1964 legend: HTMLFactory;
1965 li: HTMLFactory;
1966 link: HTMLFactory;
1967 main: HTMLFactory;
1968 map: HTMLFactory;
1969 mark: HTMLFactory;
1970 menu: HTMLFactory;
1971 menuitem: HTMLFactory;
1972 meta: HTMLFactory;
1973 meter: HTMLFactory;
1974 nav: HTMLFactory;
1975 noscript: HTMLFactory;
1976 object: HTMLFactory;
1977 ol: HTMLFactory;
1978 optgroup: HTMLFactory;
1979 option: HTMLFactory;
1980 output: HTMLFactory;
1981 p: HTMLFactory;
1982 param: HTMLFactory;
1983 picture: HTMLFactory;
1984 pre: HTMLFactory;
1985 progress: HTMLFactory;
1986 q: HTMLFactory;
1987 rp: HTMLFactory;
1988 rt: HTMLFactory;
1989 ruby: HTMLFactory;
1990 s: HTMLFactory;
1991 samp: HTMLFactory;
1992 script: HTMLFactory;
1993 section: HTMLFactory;
1994 select: HTMLFactory;
1995 small: HTMLFactory;
1996 source: HTMLFactory;
1997 span: HTMLFactory;
1998 strong: HTMLFactory;
1999 style: HTMLFactory;
2000 sub: HTMLFactory;
2001 summary: HTMLFactory;
2002 sup: HTMLFactory;
2003 table: HTMLFactory;
2004 tbody: HTMLFactory;
2005 td: HTMLFactory;
2006 textarea: HTMLFactory;
2007 tfoot: HTMLFactory;
2008 th: HTMLFactory;
2009 thead: HTMLFactory;
2010 time: HTMLFactory;
2011 title: HTMLFactory;
2012 tr: HTMLFactory;
2013 track: HTMLFactory;
2014 u: HTMLFactory;
2015 ul: HTMLFactory;
2016 "var": HTMLFactory;
2017 video: HTMLFactory;
2018 wbr: HTMLFactory;
2019
2020 // SVG
2021 svg: SVGFactory;
2022 circle: SVGFactory;
2023 defs: SVGFactory;
2024 ellipse: SVGFactory;
2025 g: SVGFactory;
2026 image: SVGFactory;
2027 line: SVGFactory;
2028 linearGradient: SVGFactory;
2029 mask: SVGFactory;
2030 path: SVGFactory;
2031 pattern: SVGFactory;
2032 polygon: SVGFactory;
2033 polyline: SVGFactory;
2034 radialGradient: SVGFactory;
2035 rect: SVGFactory;
2036 stop: SVGFactory;
2037 text: SVGFactory;
2038 tspan: SVGFactory;
2039 }
2040
2041 //
2042 // React.PropTypes
2043 // ----------------------------------------------------------------------
2044
2045 interface Validator<T> {
2046 (object: T, key: string, componentName: string): Error;
2047 }
2048
2049 interface Requireable<T> extends Validator<T> {
2050 isRequired: Validator<T>;
2051 }
2052
2053 interface ValidationMap<T> {
2054 [key: string]: Validator<T>;
2055 }
2056
2057 interface ReactPropTypes {
2058 any: Requireable<any>;
2059 array: Requireable<any>;
2060 bool: Requireable<any>;
2061 func: Requireable<any>;
2062 number: Requireable<any>;
2063 object: Requireable<any>;
2064 string: Requireable<any>;
2065 node: Requireable<any>;
2066 element: Requireable<any>;
2067 instanceOf(expectedClass: {}): Requireable<any>;
2068 oneOf(types: any[]): Requireable<any>;
2069 oneOfType(types: Validator<any>[]): Requireable<any>;
2070 arrayOf(type: Validator<any>): Requireable<any>;
2071 objectOf(type: Validator<any>): Requireable<any>;
2072 shape(type: ValidationMap<any>): Requireable<any>;
2073 }
2074
2075 //
2076 // React.Children
2077 // ----------------------------------------------------------------------
2078
2079 interface ReactChildren {
2080 map<T>(children: ReactNode, fn: (child: ReactChild, index: number) => T): T[];
2081 forEach(children: ReactNode, fn: (child: ReactChild, index: number) => any): void;
2082 count(children: ReactNode): number;
2083 only(children: ReactNode): ReactElement<any>;
2084 toArray(children: ReactNode): ReactChild[];
2085 }
2086
2087 //
2088 // Browser Interfaces
2089 // https://github.com/nikeee/2048-typescript/blob/master/2048/js/touch.d.ts
2090 // ----------------------------------------------------------------------
2091
2092 interface AbstractView {
2093 styleMedia: StyleMedia;
2094 document: Document;
2095 }
2096
2097 interface Touch {
2098 identifier: number;
2099 target: EventTarget;
2100 screenX: number;
2101 screenY: number;
2102 clientX: number;
2103 clientY: number;
2104 pageX: number;
2105 pageY: number;
2106 }
2107
2108 interface TouchList {
2109 [index: number]: Touch;
2110 length: number;
2111 item(index: number): Touch;
2112 identifiedTouch(identifier: number): Touch;
2113 }
2114}
2115
2116declare module "react" {
2117 export = __React;
2118}
2119
2120declare namespace JSX {
2121 import React = __React;
2122
2123 interface Element extends React.ReactElement<any> { }
2124 interface ElementClass extends React.Component<any, any> {
2125 render(): JSX.Element;
2126 }
2127 interface ElementAttributesProperty { props: {}; }
2128
2129 interface IntrinsicAttributes {
2130 key?: string | number;
2131 }
2132
2133 interface IntrinsicClassAttributes<T> {
2134 ref?: string | ((classInstance: T) => void);
2135 }
2136
2137 interface IntrinsicElements {
2138 // HTML
2139 a: React.HTMLProps<HTMLAnchorElement>;
2140 abbr: React.HTMLProps<HTMLElement>;
2141 address: React.HTMLProps<HTMLElement>;
2142 area: React.HTMLProps<HTMLAreaElement>;
2143 article: React.HTMLProps<HTMLElement>;
2144 aside: React.HTMLProps<HTMLElement>;
2145 audio: React.HTMLProps<HTMLAudioElement>;
2146 b: React.HTMLProps<HTMLElement>;
2147 base: React.HTMLProps<HTMLBaseElement>;
2148 bdi: React.HTMLProps<HTMLElement>;
2149 bdo: React.HTMLProps<HTMLElement>;
2150 big: React.HTMLProps<HTMLElement>;
2151 blockquote: React.HTMLProps<HTMLElement>;
2152 body: React.HTMLProps<HTMLBodyElement>;
2153 br: React.HTMLProps<HTMLBRElement>;
2154 button: React.HTMLProps<HTMLButtonElement>;
2155 canvas: React.HTMLProps<HTMLCanvasElement>;
2156 caption: React.HTMLProps<HTMLElement>;
2157 cite: React.HTMLProps<HTMLElement>;
2158 code: React.HTMLProps<HTMLElement>;
2159 col: React.HTMLProps<HTMLTableColElement>;
2160 colgroup: React.HTMLProps<HTMLTableColElement>;
2161 data: React.HTMLProps<HTMLElement>;
2162 datalist: React.HTMLProps<HTMLDataListElement>;
2163 dd: React.HTMLProps<HTMLElement>;
2164 del: React.HTMLProps<HTMLElement>;
2165 details: React.HTMLProps<HTMLElement>;
2166 dfn: React.HTMLProps<HTMLElement>;
2167 dialog: React.HTMLProps<HTMLElement>;
2168 div: React.HTMLProps<HTMLDivElement>;
2169 dl: React.HTMLProps<HTMLDListElement>;
2170 dt: React.HTMLProps<HTMLElement>;
2171 em: React.HTMLProps<HTMLElement>;
2172 embed: React.HTMLProps<HTMLEmbedElement>;
2173 fieldset: React.HTMLProps<HTMLFieldSetElement>;
2174 figcaption: React.HTMLProps<HTMLElement>;
2175 figure: React.HTMLProps<HTMLElement>;
2176 footer: React.HTMLProps<HTMLElement>;
2177 form: React.HTMLProps<HTMLFormElement>;
2178 h1: React.HTMLProps<HTMLHeadingElement>;
2179 h2: React.HTMLProps<HTMLHeadingElement>;
2180 h3: React.HTMLProps<HTMLHeadingElement>;
2181 h4: React.HTMLProps<HTMLHeadingElement>;
2182 h5: React.HTMLProps<HTMLHeadingElement>;
2183 h6: React.HTMLProps<HTMLHeadingElement>;
2184 head: React.HTMLProps<HTMLHeadElement>;
2185 header: React.HTMLProps<HTMLElement>;
2186 hr: React.HTMLProps<HTMLHRElement>;
2187 html: React.HTMLProps<HTMLHtmlElement>;
2188 i: React.HTMLProps<HTMLElement>;
2189 iframe: React.HTMLProps<HTMLIFrameElement>;
2190 img: React.HTMLProps<HTMLImageElement>;
2191 input: React.HTMLProps<HTMLInputElement>;
2192 ins: React.HTMLProps<HTMLModElement>;
2193 kbd: React.HTMLProps<HTMLElement>;
2194 keygen: React.HTMLProps<HTMLElement>;
2195 label: React.HTMLProps<HTMLLabelElement>;
2196 legend: React.HTMLProps<HTMLLegendElement>;
2197 li: React.HTMLProps<HTMLLIElement>;
2198 link: React.HTMLProps<HTMLLinkElement>;
2199 main: React.HTMLProps<HTMLElement>;
2200 map: React.HTMLProps<HTMLMapElement>;
2201 mark: React.HTMLProps<HTMLElement>;
2202 menu: React.HTMLProps<HTMLElement>;
2203 menuitem: React.HTMLProps<HTMLElement>;
2204 meta: React.HTMLProps<HTMLMetaElement>;
2205 meter: React.HTMLProps<HTMLElement>;
2206 nav: React.HTMLProps<HTMLElement>;
2207 noscript: React.HTMLProps<HTMLElement>;
2208 object: React.HTMLProps<HTMLObjectElement>;
2209 ol: React.HTMLProps<HTMLOListElement>;
2210 optgroup: React.HTMLProps<HTMLOptGroupElement>;
2211 option: React.HTMLProps<HTMLOptionElement>;
2212 output: React.HTMLProps<HTMLElement>;
2213 p: React.HTMLProps<HTMLParagraphElement>;
2214 param: React.HTMLProps<HTMLParamElement>;
2215 picture: React.HTMLProps<HTMLElement>;
2216 pre: React.HTMLProps<HTMLPreElement>;
2217 progress: React.HTMLProps<HTMLProgressElement>;
2218 q: React.HTMLProps<HTMLQuoteElement>;
2219 rp: React.HTMLProps<HTMLElement>;
2220 rt: React.HTMLProps<HTMLElement>;
2221 ruby: React.HTMLProps<HTMLElement>;
2222 s: React.HTMLProps<HTMLElement>;
2223 samp: React.HTMLProps<HTMLElement>;
2224 script: React.HTMLProps<HTMLElement>;
2225 section: React.HTMLProps<HTMLElement>;
2226 select: React.HTMLProps<HTMLSelectElement>;
2227 small: React.HTMLProps<HTMLElement>;
2228 source: React.HTMLProps<HTMLSourceElement>;
2229 span: React.HTMLProps<HTMLSpanElement>;
2230 strong: React.HTMLProps<HTMLElement>;
2231 style: React.HTMLProps<HTMLStyleElement>;
2232 sub: React.HTMLProps<HTMLElement>;
2233 summary: React.HTMLProps<HTMLElement>;
2234 sup: React.HTMLProps<HTMLElement>;
2235 table: React.HTMLProps<HTMLTableElement>;
2236 tbody: React.HTMLProps<HTMLTableSectionElement>;
2237 td: React.HTMLProps<HTMLTableDataCellElement>;
2238 textarea: React.HTMLProps<HTMLTextAreaElement>;
2239 tfoot: React.HTMLProps<HTMLTableSectionElement>;
2240 th: React.HTMLProps<HTMLTableHeaderCellElement>;
2241 thead: React.HTMLProps<HTMLTableSectionElement>;
2242 time: React.HTMLProps<HTMLElement>;
2243 title: React.HTMLProps<HTMLTitleElement>;
2244 tr: React.HTMLProps<HTMLTableRowElement>;
2245 track: React.HTMLProps<HTMLTrackElement>;
2246 u: React.HTMLProps<HTMLElement>;
2247 ul: React.HTMLProps<HTMLUListElement>;
2248 "var": React.HTMLProps<HTMLElement>;
2249 video: React.HTMLProps<HTMLVideoElement>;
2250 wbr: React.HTMLProps<HTMLElement>;
2251
2252 // SVG
2253 svg: React.SVGProps;
2254
2255 circle: React.SVGProps;
2256 clipPath: React.SVGProps;
2257 defs: React.SVGProps;
2258 ellipse: React.SVGProps;
2259 g: React.SVGProps;
2260 image: React.SVGProps;
2261 line: React.SVGProps;
2262 linearGradient: React.SVGProps;
2263 mask: React.SVGProps;
2264 path: React.SVGProps;
2265 pattern: React.SVGProps;
2266 polygon: React.SVGProps;
2267 polyline: React.SVGProps;
2268 radialGradient: React.SVGProps;
2269 rect: React.SVGProps;
2270 stop: React.SVGProps;
2271 text: React.SVGProps;
2272 tspan: React.SVGProps;
2273 }
2274}
2275