UNPKG

1.24 kBJavaScriptView Raw
1import { __extends } from "tslib";
2import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
3/**
4 * represents transform-list values as used by the CSS transform property.
5 *
6 * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSTransformValue
7 */
8
9var CSSTransformValue =
10/** @class */
11function (_super) {
12 __extends(CSSTransformValue, _super);
13
14 function CSSTransformValue(transforms) {
15 var _this = _super.call(this) || this;
16
17 _this.transforms = transforms;
18 _this.is2D = transforms.every(function (transform) {
19 return transform.is2D;
20 });
21 _this.length = transforms.length;
22 return _this;
23 }
24
25 CSSTransformValue.prototype.clone = function () {
26 return new CSSTransformValue(this.transforms);
27 };
28
29 CSSTransformValue.prototype.getType = function () {
30 return CSSStyleValueType.kTransformType;
31 };
32
33 CSSTransformValue.prototype.buildCSSText = function (n, p, result) {
34 var text = '';
35 return result += text;
36 };
37 /**
38 * returns a DOMMatrix object
39 * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSTransformValue/toMatrix
40 */
41
42
43 CSSTransformValue.prototype.toMatrix = function () {};
44
45 return CSSTransformValue;
46}(CSSStyleValue);
47
48export { CSSTransformValue };
\No newline at end of file