michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * The origin of this IDL file is michael@0: * http://www.w3.org/TR/SVG2/ michael@0: * michael@0: * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C michael@0: * liability, trademark and document use rules apply. michael@0: */ michael@0: michael@0: interface SVGViewSpec; michael@0: michael@0: interface SVGSVGElement : SVGGraphicsElement { michael@0: michael@0: readonly attribute SVGAnimatedLength x; michael@0: readonly attribute SVGAnimatedLength y; michael@0: readonly attribute SVGAnimatedLength width; michael@0: readonly attribute SVGAnimatedLength height; michael@0: // readonly attribute SVGRect viewport; michael@0: readonly attribute float pixelUnitToMillimeterX; michael@0: readonly attribute float pixelUnitToMillimeterY; michael@0: readonly attribute float screenPixelToMillimeterX; michael@0: readonly attribute float screenPixelToMillimeterY; michael@0: readonly attribute boolean useCurrentView; michael@0: // readonly attribute SVGViewSpec currentView; michael@0: attribute float currentScale; michael@0: readonly attribute SVGPoint currentTranslate; michael@0: michael@0: unsigned long suspendRedraw(unsigned long maxWaitMilliseconds); michael@0: void unsuspendRedraw(unsigned long suspendHandleID); michael@0: void unsuspendRedrawAll(); michael@0: [Throws] michael@0: void forceRedraw(); michael@0: void pauseAnimations(); michael@0: void unpauseAnimations(); michael@0: boolean animationsPaused(); michael@0: float getCurrentTime(); michael@0: void setCurrentTime(float seconds); michael@0: // NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement); michael@0: // NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement); michael@0: // boolean checkIntersection(SVGElement element, SVGRect rect); michael@0: // boolean checkEnclosure(SVGElement element, SVGRect rect); michael@0: void deselectAll(); michael@0: [NewObject] michael@0: SVGNumber createSVGNumber(); michael@0: [NewObject] michael@0: SVGLength createSVGLength(); michael@0: [NewObject] michael@0: SVGAngle createSVGAngle(); michael@0: [NewObject] michael@0: SVGPoint createSVGPoint(); michael@0: [NewObject] michael@0: SVGMatrix createSVGMatrix(); michael@0: [NewObject] michael@0: SVGRect createSVGRect(); michael@0: [NewObject] michael@0: SVGTransform createSVGTransform(); michael@0: [NewObject] michael@0: SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix); michael@0: Element? getElementById(DOMString elementId); michael@0: }; michael@0: michael@0: /*SVGSVGElement implements ViewCSS; michael@0: SVGSVGElement implements DocumentCSS;*/ michael@0: SVGSVGElement implements SVGFitToViewBox; michael@0: SVGSVGElement implements SVGZoomAndPan; michael@0: