|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- import Event from '../../event/Event';
- import INode from '../node/INode';
- import ISVGGraphicsElement from './ISVGGraphicsElement';
- import SVGAngle from './SVGAngle';
- import SVGAnimatedRect from './SVGAnimatedRect';
- import SVGLength from './SVGLength';
- import SVGNumber from './SVGNumber';
- import SVGPoint from './SVGPoint';
- import SVGRect from './SVGRect';
- import SVGTransform from './SVGTransform';
- /**
- * SVG Graphics Element.
- *
- * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement
- */
- export default interface ISVGSVGElement extends ISVGGraphicsElement {
- preserveAspectRatio: string;
- width: string;
- height: string;
- x: string;
- y: string;
- contentScriptType: string;
- currentScale: number;
- viewport: SVGRect;
- currentTranslate: SVGPoint;
- viewBox: SVGAnimatedRect;
- onafterprint: (event: Event) => void | null;
- onbeforeprint: (event: Event) => void | null;
- onbeforeunload: (event: Event) => void | null;
- ongamepadconnected: (event: Event) => void | null;
- ongamepaddisconnected: (event: Event) => void | null;
- onhashchange: (event: Event) => void | null;
- onlanguagechange: (event: Event) => void | null;
- onmessage: (event: Event) => void | null;
- onmessageerror: (event: Event) => void | null;
- onoffline: (event: Event) => void | null;
- ononline: (event: Event) => void | null;
- onpagehide: (event: Event) => void | null;
- onpageshow: (event: Event) => void | null;
- onpopstate: (event: Event) => void | null;
- onrejectionhandled: (event: Event) => void | null;
- onstorage: (event: Event) => void | null;
- onunhandledrejection: (event: Event) => void | null;
- onunload: (event: Event) => void | null;
- /**
- * Pauses animation.
- */
- pauseAnimations(): void;
- /**
- * Unpauses animation.
- */
- unpauseAnimations(): void;
- /**
- * Returns "true" if animation is paused.
- *
- * @returns "true" if animation is paused.
- */
- animationsPaused(): boolean;
- /**
- * Returns the current time in seconds relative to the start time for the current SVG document fragment.
- *
- * @returns Current time.
- */
- getCurrentTime(): number;
- /**
- * Sets current time.
- */
- setCurrentTime(): void;
- /**
- * Returns intersection list.
- *
- * @returns Intersection list.
- */
- getIntersectionList(): INode[];
- /**
- * Returns enclousure list.
- *
- * @returns Enclousure list.
- */
- getEnclosureList(): INode[];
- /**
- * Returns true if the rendered content of the given element intersects the supplied rectangle.
- *
- * @returns Intersection state.
- */
- checkIntersection(): boolean;
- /**
- * Returns true if the rendered content of the given element is entirely contained within the supplied rectangle.
- *
- * @returns Enclousure state.
- */
- checkEnclosure(): boolean;
- /**
- * Unselects any selected objects, including any selections of text strings and type-in bars.
- */
- deselectAll(): void;
- /**
- * Returns a number.
- *
- * @returns Number.
- */
- createSVGNumber(): SVGNumber;
- /**
- * Returns a length.
- *
- * @returns Length.
- */
- createSVGLength(): SVGLength;
- /**
- * Returns a angle.
- *
- * @returns Angle.
- */
- createSVGAngle(): SVGAngle;
- /**
- * Returns a point.
- *
- * @returns Point.
- */
- createSVGPoint(): SVGPoint;
- /**
- * Returns a rect.
- *
- * @returns Rect.
- */
- createSVGRect(): SVGRect;
- /**
- * Returns a transform.
- *
- * @returns Transform.
- */
- createSVGTransform(): SVGTransform;
- /**
- * Clones a node.
- *
- * @override
- * @param [deep=false] "true" to clone deep.
- * @returns Cloned node.
- */
- cloneNode(deep: boolean): ISVGSVGElement;
- }
|