2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-12-23 08:54:20 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://www.w3.org/TR/SVG2/
|
|
|
|
*
|
|
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
|
|
|
interface SVGMatrix {
|
|
|
|
|
|
|
|
[SetterThrows]
|
|
|
|
attribute float a;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute float b;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute float c;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute float d;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute float e;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute float f;
|
|
|
|
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2012-12-23 08:54:20 +04:00
|
|
|
SVGMatrix multiply(SVGMatrix secondMatrix);
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject, Throws]
|
2012-12-23 08:54:20 +04:00
|
|
|
SVGMatrix inverse();
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2012-12-23 08:54:20 +04:00
|
|
|
SVGMatrix translate(float x, float y);
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2012-12-23 08:54:20 +04:00
|
|
|
SVGMatrix scale(float scaleFactor);
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2012-12-23 08:54:20 +04:00
|
|
|
SVGMatrix scaleNonUniform(float scaleFactorX, float scaleFactorY);
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2012-12-23 08:54:20 +04:00
|
|
|
SVGMatrix rotate(float angle);
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject, Throws]
|
2012-12-23 08:54:20 +04:00
|
|
|
SVGMatrix rotateFromVector(float x, float y);
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2012-12-23 08:54:20 +04:00
|
|
|
SVGMatrix flipX();
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2012-12-23 08:54:20 +04:00
|
|
|
SVGMatrix flipY();
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject, Throws]
|
2012-12-23 08:54:20 +04:00
|
|
|
SVGMatrix skewX(float angle);
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject, Throws]
|
2012-12-23 08:54:20 +04:00
|
|
|
SVGMatrix skewY(float angle);
|
|
|
|
};
|
|
|
|
|