1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
/*
* Copyright (C)2005-2019 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 from mozilla\SVGMatrix.webidl. Do not edit!
package js.html.svg;
/**
Many of SVG's graphics operations utilize 2x3 matrices of the form:
Documentation [SVGMatrix](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix>
**/
@:native("SVGMatrix")
extern class Matrix {
/**
A float representing the a component of the matrix.
**/
var a : Float;
/**
A float representing the b component of the matrix.
**/
var b : Float;
/**
A float representing the c component of the matrix.
**/
var c : Float;
/**
A float representing the d component of the matrix.
**/
var d : Float;
/**
A float representing the e component of the matrix.
**/
var e : Float;
/**
A float representing the f component of the matrix.
**/
var f : Float;
/**
Performs matrix multiplication. This matrix is post-multiplied by another matrix, returning the resulting new matrix as `SVGMatrix`.
**/
function multiply( secondMatrix : Matrix ) : Matrix;
/**
Returns the inverse matrix as `SVGMatrix`.
@throws DOMError
**/
function inverse() : Matrix;
/**
Post-multiplies a translation transformation on the current matrix and returns the resulting matrix as `SVGMatrix`.
**/
function translate( x : Float, y : Float ) : Matrix;
/**
Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix as `SVGMatrix`.
**/
function scale( scaleFactor : Float ) : Matrix;
/**
Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix as `SVGMatrix`.
**/
function scaleNonUniform( scaleFactorX : Float, scaleFactorY : Float ) : Matrix;
/**
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix as `SVGMatrix`.
**/
function rotate( angle : Float ) : Matrix;
/**
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix as `SVGMatrix`. The rotation angle is determined by taking (+/-) atan(y/x). The direction of the vector (x, y) determines whether the positive or negative angle value is used.
@throws DOMError
**/
function rotateFromVector( x : Float, y : Float ) : Matrix;
/**
Post-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix as `SVGMatrix`.
**/
function flipX() : Matrix;
/**
Post-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix as `SVGMatrix`.
**/
function flipY() : Matrix;
/**
Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix as `SVGMatrix`.
@throws DOMError
**/
function skewX( angle : Float ) : Matrix;
/**
Post-multiplies a skewY transformation on the current matrix and returns the resulting matrix as `SVGMatrix`.
@throws DOMError
**/
function skewY( angle : Float ) : Matrix;
}
|