import SVGGraphicsElement from '../svg-graphics-element/SVGGraphicsElement.cjs'; import SVGRect from '../../svg/SVGRect.cjs'; import SVGPoint from '../../svg/SVGPoint.cjs'; import SVGLength from '../../svg/SVGLength.cjs'; import SVGAngle from '../../svg/SVGAngle.cjs'; import SVGNumber from '../../svg/SVGNumber.cjs'; import SVGTransform from '../../svg/SVGTransform.cjs'; import SVGAnimatedRect from '../../svg/SVGAnimatedRect.cjs'; import Event from '../../event/Event.cjs'; import * as PropertySymbol from '../../PropertySymbol.cjs'; import SVGAnimatedPreserveAspectRatio from '../../svg/SVGAnimatedPreserveAspectRatio.cjs'; import SVGAnimatedLength from '../../svg/SVGAnimatedLength.cjs'; import Element from '../element/Element.cjs'; import NodeList from '../node/NodeList.cjs'; import SVGElement from '../svg-element/SVGElement.cjs'; import SVGMatrix from '../../svg/SVGMatrix.cjs'; import HTMLCollection from '../element/HTMLCollection.cjs'; import IHTMLElementTagNameMap from '../../config/IHTMLElementTagNameMap.cjs'; import ISVGElementTagNameMap from '../../config/ISVGElementTagNameMap.cjs'; /** * SVGSVGElement. * * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement */ export default class SVGSVGElement extends SVGGraphicsElement { [PropertySymbol.preserveAspectRatio]: SVGAnimatedPreserveAspectRatio | null; [PropertySymbol.x]: SVGAnimatedLength | null; [PropertySymbol.y]: SVGAnimatedLength | null; [PropertySymbol.width]: SVGAnimatedLength | null; [PropertySymbol.height]: SVGAnimatedLength | null; [PropertySymbol.currentScale]: number; [PropertySymbol.viewBox]: SVGAnimatedRect | null; cloneNode: (deep?: boolean) => SVGSVGElement; 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; /** * Returns preserve aspect ratio. * * @returns Preserve aspect ratio. */ get preserveAspectRatio(): SVGAnimatedPreserveAspectRatio; /** * Returns height. * * @returns Height. */ get height(): SVGAnimatedLength; /** * Returns width. * * @returns Width. */ get width(): SVGAnimatedLength; /** * Returns x position. * * @returns X position. */ get x(): SVGAnimatedLength; /** * Returns y position. * * @returns Y position. */ get y(): SVGAnimatedLength; /** * Returns currentScale. * * @returns CurrentScale. */ get currentScale(): number; /** * Sets currentScale. * * @param currentScale CurrentScale. */ set currentScale(currentScale: number); /** * Returns current translate. * * @returns SVG point. */ get currentTranslate(): SVGPoint; /** * Returns view box. * * @returns View box. */ get viewBox(): SVGAnimatedRect; /** * 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 in seconds. */ getCurrentTime(): number; /** * Sets current time. * * @param _seconds Seconds. */ setCurrentTime(_seconds: number): void; /** * Returns intersection list. * * @param _rect SVG Rect. * @param _element SVG Element. * @returns Intersection list. */ getIntersectionList(_rect: SVGRect, _element: SVGElement): NodeList; /** * Returns enclousure list. * * @param _rect SVG Rect. * @param _element SVG Element. * @returns Enclousure list. */ getEnclosureList(_rect: SVGRect, _element: SVGElement): NodeList; /** * Returns true if the rendered content of the given element intersects the supplied rectangle. * * @param _element SVG Element. * @param _rect SVG Rect. * @returns Intersection state. */ checkIntersection(_element: SVGElement, _rect: SVGRect): boolean; /** * Returns true if the rendered content of the given element is entirely contained within the supplied rectangle. * * @param _element SVG Element. * @param _rect SVG Rect. * @returns Enclousure state. */ checkEnclosure(_element: SVGElement, _rect: SVGRect): 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 matrix. * * @returns Matrix. */ createSVGMatrix(): SVGMatrix; /** * Returns a rect. * * @returns Rect. */ createSVGRect(): SVGRect; /** * Returns a transform. * * @returns Transform. */ createSVGTransform(): SVGTransform; /** * Returns a transform from a matrix. * * @param matrix Matrix. */ createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform; /** * Returns an elements by class name. * * @param className Tag name. * @returns Matching element. */ getElementsByClassName(className: string): HTMLCollection; /** * Returns an elements by tag name. * * @param tagName Tag name. * @returns Matching element. */ getElementsByTagName(tagName: K): HTMLCollection; /** * Returns an elements by tag name. * * @param tagName Tag name. * @returns Matching element. */ getElementsByTagName(tagName: string): HTMLCollection; /** * Returns an elements by tag name and namespace. * * @param namespaceURI Namespace URI. * @param tagName Tag name. * @returns Matching element. */ getElementsByTagNameNS(namespaceURI: 'http://www.w3.org/1999/xhtml', tagName: K): HTMLCollection; /** * Returns an elements by tag name and namespace. * * @param namespaceURI Namespace URI. * @param tagName Tag name. * @returns Matching element. */ getElementsByTagNameNS(namespaceURI: 'http://www.w3.org/2000/svg', tagName: K): HTMLCollection; /** * Returns an elements by tag name and namespace. * * @param namespaceURI Namespace URI. * @param tagName Tag name. * @returns Matching element. */ getElementsByTagNameNS(namespaceURI: string, tagName: string): HTMLCollection; /** * Returns an element by ID. * * @param id ID. * @returns Matching element. */ getElementById(id: string): Element | null; /** * @override */ [PropertySymbol.cloneNode](deep?: boolean): SVGSVGElement; } //# sourceMappingURL=SVGSVGElement.d.ts.map