1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/webidl/SVGPathElement.webidl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,62 @@ 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 +interface SVGPathElement : SVGGraphicsElement { 1.16 + 1.17 + readonly attribute SVGAnimatedNumber pathLength; 1.18 + 1.19 + [Throws] 1.20 + float getTotalLength(); 1.21 + [NewObject, Throws] 1.22 + SVGPoint getPointAtLength(float distance); 1.23 + unsigned long getPathSegAtLength(float distance); 1.24 + [NewObject] 1.25 + SVGPathSegClosePath createSVGPathSegClosePath(); 1.26 + [NewObject] 1.27 + SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(float x, float y); 1.28 + [NewObject] 1.29 + SVGPathSegMovetoRel createSVGPathSegMovetoRel(float x, float y); 1.30 + [NewObject] 1.31 + SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(float x, float y); 1.32 + [NewObject] 1.33 + SVGPathSegLinetoRel createSVGPathSegLinetoRel(float x, float y); 1.34 + [NewObject] 1.35 + SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2); 1.36 + [NewObject] 1.37 + SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2); 1.38 + [NewObject] 1.39 + SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1); 1.40 + [NewObject] 1.41 + SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1); 1.42 + [NewObject] 1.43 + SVGPathSegArcAbs createSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag); 1.44 + [NewObject] 1.45 + SVGPathSegArcRel createSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag); 1.46 + [NewObject] 1.47 + SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(float x); 1.48 + [NewObject] 1.49 + SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(float x); 1.50 + [NewObject] 1.51 + SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(float y); 1.52 + [NewObject] 1.53 + SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(float y); 1.54 + [NewObject] 1.55 + SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2); 1.56 + [NewObject] 1.57 + SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2); 1.58 + [NewObject] 1.59 + SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y); 1.60 + [NewObject] 1.61 + SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(float x, float y); 1.62 +}; 1.63 + 1.64 +SVGPathElement implements SVGAnimatedPathData; 1.65 +