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 {
17 readonly attribute SVGAnimatedLength x;
18 readonly attribute SVGAnimatedLength y;
19 readonly attribute SVGAnimatedLength width;
20 readonly attribute SVGAnimatedLength height;
21 // readonly attribute SVGRect viewport;
22 readonly attribute float pixelUnitToMillimeterX;
23 readonly attribute float pixelUnitToMillimeterY;
24 readonly attribute float screenPixelToMillimeterX;
25 readonly attribute float screenPixelToMillimeterY;
26 readonly attribute boolean useCurrentView;
27 // readonly attribute SVGViewSpec currentView;
28 attribute float currentScale;
29 readonly attribute SVGPoint currentTranslate;
31 unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
32 void unsuspendRedraw(unsigned long suspendHandleID);
33 void unsuspendRedrawAll();
36 void pauseAnimations();
37 void unpauseAnimations();
38 boolean animationsPaused();
39 float getCurrentTime();
40 void setCurrentTime(float seconds);
41 // NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement);
42 // NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement);
43 // boolean checkIntersection(SVGElement element, SVGRect rect);
44 // boolean checkEnclosure(SVGElement element, SVGRect rect);
47 SVGNumber createSVGNumber();
49 SVGLength createSVGLength();
51 SVGAngle createSVGAngle();
53 SVGPoint createSVGPoint();
55 SVGMatrix createSVGMatrix();
57 SVGRect createSVGRect();
59 SVGTransform createSVGTransform();
61 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
62 Element? getElementById(DOMString elementId);
65 /*SVGSVGElement implements ViewCSS;
66 SVGSVGElement implements DocumentCSS;*/
67 SVGSVGElement implements SVGFitToViewBox;
68 SVGSVGElement implements SVGZoomAndPan;