1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * http://www.w3.org/TR/SVG2/
9 * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
10 * liability, trademark and document use rules apply.
14 interface SVGSVGElement : SVGGraphicsElement {
17 readonly attribute SVGAnimatedLength x;
19 readonly attribute SVGAnimatedLength y;
21 readonly attribute SVGAnimatedLength width;
23 readonly attribute SVGAnimatedLength height;
25 attribute float currentScale;
26 readonly attribute SVGPoint currentTranslate;
28 [DependsOn=Nothing, Affects=Nothing]
29 unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
30 [DependsOn=Nothing, Affects=Nothing]
31 undefined unsuspendRedraw(unsigned long suspendHandleID);
32 [DependsOn=Nothing, Affects=Nothing]
33 undefined unsuspendRedrawAll();
34 [DependsOn=Nothing, Affects=Nothing]
35 undefined forceRedraw();
36 undefined pauseAnimations();
37 undefined unpauseAnimations();
38 boolean animationsPaused();
39 [BinaryName="getCurrentTimeAsFloat"]
40 float getCurrentTime();
41 undefined setCurrentTime(float seconds);
42 // NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement);
43 // NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement);
44 // boolean checkIntersection(SVGElement element, SVGRect rect);
45 // boolean checkEnclosure(SVGElement element, SVGRect rect);
46 [Deprecated="SVGDeselectAll"]
47 undefined deselectAll();
49 SVGNumber createSVGNumber();
51 SVGLength createSVGLength();
53 SVGAngle createSVGAngle();
55 SVGPoint createSVGPoint();
57 SVGMatrix createSVGMatrix();
59 SVGRect createSVGRect();
61 SVGTransform createSVGTransform();
63 SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
65 Element? getElementById(DOMString elementId);
68 SVGSVGElement includes SVGFitToViewBox;
69 SVGSVGElement includes SVGZoomAndPan;