1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/webidl/SVGSVGElement.webidl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,69 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + * 1.9 + * The origin of this IDL file is 1.10 + * http://www.w3.org/TR/SVG2/ 1.11 + * 1.12 + * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C 1.13 + * liability, trademark and document use rules apply. 1.14 + */ 1.15 + 1.16 +interface SVGViewSpec; 1.17 + 1.18 +interface SVGSVGElement : SVGGraphicsElement { 1.19 + 1.20 + readonly attribute SVGAnimatedLength x; 1.21 + readonly attribute SVGAnimatedLength y; 1.22 + readonly attribute SVGAnimatedLength width; 1.23 + readonly attribute SVGAnimatedLength height; 1.24 + // readonly attribute SVGRect viewport; 1.25 + readonly attribute float pixelUnitToMillimeterX; 1.26 + readonly attribute float pixelUnitToMillimeterY; 1.27 + readonly attribute float screenPixelToMillimeterX; 1.28 + readonly attribute float screenPixelToMillimeterY; 1.29 + readonly attribute boolean useCurrentView; 1.30 + // readonly attribute SVGViewSpec currentView; 1.31 + attribute float currentScale; 1.32 + readonly attribute SVGPoint currentTranslate; 1.33 + 1.34 + unsigned long suspendRedraw(unsigned long maxWaitMilliseconds); 1.35 + void unsuspendRedraw(unsigned long suspendHandleID); 1.36 + void unsuspendRedrawAll(); 1.37 + [Throws] 1.38 + void forceRedraw(); 1.39 + void pauseAnimations(); 1.40 + void unpauseAnimations(); 1.41 + boolean animationsPaused(); 1.42 + float getCurrentTime(); 1.43 + void setCurrentTime(float seconds); 1.44 + // NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement); 1.45 + // NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement); 1.46 + // boolean checkIntersection(SVGElement element, SVGRect rect); 1.47 + // boolean checkEnclosure(SVGElement element, SVGRect rect); 1.48 + void deselectAll(); 1.49 + [NewObject] 1.50 + SVGNumber createSVGNumber(); 1.51 + [NewObject] 1.52 + SVGLength createSVGLength(); 1.53 + [NewObject] 1.54 + SVGAngle createSVGAngle(); 1.55 + [NewObject] 1.56 + SVGPoint createSVGPoint(); 1.57 + [NewObject] 1.58 + SVGMatrix createSVGMatrix(); 1.59 + [NewObject] 1.60 + SVGRect createSVGRect(); 1.61 + [NewObject] 1.62 + SVGTransform createSVGTransform(); 1.63 + [NewObject] 1.64 + SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix); 1.65 + Element? getElementById(DOMString elementId); 1.66 +}; 1.67 + 1.68 +/*SVGSVGElement implements ViewCSS; 1.69 +SVGSVGElement implements DocumentCSS;*/ 1.70 +SVGSVGElement implements SVGFitToViewBox; 1.71 +SVGSVGElement implements SVGZoomAndPan; 1.72 +