DOMMatrix.hx 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C)2005-2015 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated from mozilla/DOMMatrix.webidl line 89:0. Do not edit!
  23. package js.html;
  24. @:native("DOMMatrix")
  25. extern class DOMMatrix extends DOMMatrixReadOnly
  26. {
  27. /** @throws DOMError */
  28. @:overload( function() : Void {} )
  29. @:overload( function( transformList : String ) : Void {} )
  30. @:overload( function( other : DOMMatrixReadOnly ) : Void {} )
  31. @:overload( function( array32 : Float32Array ) : Void {} )
  32. @:overload( function( array64 : Float64Array ) : Void {} )
  33. function new( numberSequence : Array<Float> ) : Void;
  34. function multiplySelf( other : DOMMatrix ) : DOMMatrix;
  35. function preMultiplySelf( other : DOMMatrix ) : DOMMatrix;
  36. function translateSelf( tx : Float, ty : Float, ?tz : Float = 0.0 ) : DOMMatrix;
  37. function scaleSelf( scale : Float, ?originX : Float = 0.0, ?originY : Float = 0.0 ) : DOMMatrix;
  38. function scale3dSelf( scale : Float, ?originX : Float = 0.0, ?originY : Float = 0.0, ?originZ : Float = 0.0 ) : DOMMatrix;
  39. function scaleNonUniformSelf( scaleX : Float, ?scaleY : Float = 1.0, ?scaleZ : Float = 1.0, ?originX : Float = 0.0, ?originY : Float = 0.0, ?originZ : Float = 0.0 ) : DOMMatrix;
  40. function rotateSelf( angle : Float, ?originX : Float = 0.0, ?originY : Float = 0.0 ) : DOMMatrix;
  41. function rotateFromVectorSelf( x : Float, y : Float ) : DOMMatrix;
  42. function rotateAxisAngleSelf( x : Float, y : Float, z : Float, angle : Float ) : DOMMatrix;
  43. function skewXSelf( sx : Float ) : DOMMatrix;
  44. function skewYSelf( sy : Float ) : DOMMatrix;
  45. function invertSelf() : DOMMatrix;
  46. /** @throws DOMError */
  47. function setMatrixValue( transformList : String ) : DOMMatrix;
  48. }