1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | exports.isOpacityEffect = exports.isClipEffect = exports.isTransformEffect = exports.OpacityEffect = exports.ClipEffect = exports.TransformEffect = void 0;
|
---|
4 | var TransformEffect = /** @class */ (function () {
|
---|
5 | function TransformEffect(offsetX, offsetY, matrix) {
|
---|
6 | this.offsetX = offsetX;
|
---|
7 | this.offsetY = offsetY;
|
---|
8 | this.matrix = matrix;
|
---|
9 | this.type = 0 /* TRANSFORM */;
|
---|
10 | this.target = 2 /* BACKGROUND_BORDERS */ | 4 /* CONTENT */;
|
---|
11 | }
|
---|
12 | return TransformEffect;
|
---|
13 | }());
|
---|
14 | exports.TransformEffect = TransformEffect;
|
---|
15 | var ClipEffect = /** @class */ (function () {
|
---|
16 | function ClipEffect(path, target) {
|
---|
17 | this.path = path;
|
---|
18 | this.target = target;
|
---|
19 | this.type = 1 /* CLIP */;
|
---|
20 | }
|
---|
21 | return ClipEffect;
|
---|
22 | }());
|
---|
23 | exports.ClipEffect = ClipEffect;
|
---|
24 | var OpacityEffect = /** @class */ (function () {
|
---|
25 | function OpacityEffect(opacity) {
|
---|
26 | this.opacity = opacity;
|
---|
27 | this.type = 2 /* OPACITY */;
|
---|
28 | this.target = 2 /* BACKGROUND_BORDERS */ | 4 /* CONTENT */;
|
---|
29 | }
|
---|
30 | return OpacityEffect;
|
---|
31 | }());
|
---|
32 | exports.OpacityEffect = OpacityEffect;
|
---|
33 | var isTransformEffect = function (effect) {
|
---|
34 | return effect.type === 0 /* TRANSFORM */;
|
---|
35 | };
|
---|
36 | exports.isTransformEffect = isTransformEffect;
|
---|
37 | var isClipEffect = function (effect) { return effect.type === 1 /* CLIP */; };
|
---|
38 | exports.isClipEffect = isClipEffect;
|
---|
39 | var isOpacityEffect = function (effect) { return effect.type === 2 /* OPACITY */; };
|
---|
40 | exports.isOpacityEffect = isOpacityEffect;
|
---|
41 | //# sourceMappingURL=effects.js.map |
---|