/* * Copyright (C)2005-2013 Haxe Foundation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ // This file is generated, do not edit! package js.html.svg; /**

SVGTransform is the interface for one of the component transformations within an SVGTransformList ; thus, an SVGTransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute.

An SVGTransform object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.



Documentation for this class was provided by MDN. */ @:native("SVGTransform") extern class Transform { /** A matrix(…) transformation */ static inline var SVG_TRANSFORM_MATRIX : Int = 1; static inline var SVG_TRANSFORM_ROTATE : Int = 4; /** A scale(…) transformation */ static inline var SVG_TRANSFORM_SCALE : Int = 3; static inline var SVG_TRANSFORM_SKEWX : Int = 5; static inline var SVG_TRANSFORM_SKEWY : Int = 6; /** A translate(…) transformation */ static inline var SVG_TRANSFORM_TRANSLATE : Int = 2; /** The unit type is not one of predefined unit types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. */ static inline var SVG_TRANSFORM_UNKNOWN : Int = 0; /** A convenience attribute for SVG_TRANSFORM_ROTATE, SVG_TRANSFORM_SKEWX and SVG_TRANSFORM_SKEWY. It holds the angle that was specified.

For SVG_TRANSFORM_MATRIX, SVG_TRANSFORM_TRANSLATE and SVG_TRANSFORM_SCALE, angle will be zero. */ var angle(default,null) : Float; /**

The matrix that represents this transformation. The matrix object is live, meaning that any changes made to the SVGTransform object are immediately reflected in the matrix object and vice versa. In case the matrix object is changed directly (i.e., without using the methods on the SVGTransform interface itself) then the type of the SVGTransform changes to SVG_TRANSFORM_MATRIX.

*/ var matrix(default,null) : Matrix; /** The type of the value as specified by one of the SVG_TRANSFORM_* constants defined on this interface. */ var type(default,null) : Int; function setMatrix( matrix : Matrix ) : Void; function setRotate( angle : Float, cx : Float, cy : Float ) : Void; function setScale( sx : Float, sy : Float ) : Void; function setSkewX( angle : Float ) : Void; function setSkewY( angle : Float ) : Void; function setTranslate( tx : Float, ty : Float ) : Void; }