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.
13 interface SVGViewSpec;
15 interface SVGSVGElement : SVGGraphicsElement {
18 readonly attribute SVGAnimatedLength x;
20 readonly attribute SVGAnimatedLength y;
22 readonly attribute SVGAnimatedLength width;
24 readonly attribute SVGAnimatedLength height;
25 // readonly attribute SVGRect viewport;
26 readonly attribute boolean useCurrentView;
27 // readonly attribute SVGViewSpec currentView;
29 attribute float currentScale;
30 readonly attribute SVGPoint currentTranslate;
32 [DependsOn=Nothing, Affects=Nothing]
33 unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
34 [DependsOn=Nothing, Affects=Nothing]
35 void unsuspendRedraw(unsigned long suspendHandleID);
36 [DependsOn=Nothing, Affects=Nothing]
37 void unsuspendRedrawAll();
38 [DependsOn=Nothing, Affects=Nothing]
40 void pauseAnimations();
41 void unpauseAnimations();
42 boolean animationsPaused();
43 [BinaryName="getCurrentTimeAsFloat"]
44 float getCurrentTime();
45 void setCurrentTime(float seconds);
46 // NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement);
47 // NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement);
48 // boolean checkIntersection(SVGElement element, SVGRect rect);
49 // boolean checkEnclosure(SVGElement element, SVGRect rect);
52 SVGNumber createSVGNumber();
54 SVGLength createSVGLength();
56 SVGAngle createSVGAngle();
58 SVGPoint createSVGPoint();
60 SVGMatrix createSVGMatrix();
62 SVGRect createSVGRect();
64 SVGTransform createSVGTransform();
66 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
68 Element? getElementById(DOMString elementId);
71 SVGSVGElement implements SVGFitToViewBox;
72 SVGSVGElement implements SVGZoomAndPanValues;