source: imaps-frontend/node_modules/html2canvas/dist/lib/render/effects.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.6 KB
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.isOpacityEffect = exports.isClipEffect = exports.isTransformEffect = exports.OpacityEffect = exports.ClipEffect = exports.TransformEffect = void 0;
4var 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}());
14exports.TransformEffect = TransformEffect;
15var 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}());
23exports.ClipEffect = ClipEffect;
24var 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}());
32exports.OpacityEffect = OpacityEffect;
33var isTransformEffect = function (effect) {
34 return effect.type === 0 /* TRANSFORM */;
35};
36exports.isTransformEffect = isTransformEffect;
37var isClipEffect = function (effect) { return effect.type === 1 /* CLIP */; };
38exports.isClipEffect = isClipEffect;
39var isOpacityEffect = function (effect) { return effect.type === 2 /* OPACITY */; };
40exports.isOpacityEffect = isOpacityEffect;
41//# sourceMappingURL=effects.js.map
Note: See TracBrowser for help on using the repository browser.