effects.js 928 B

123456789101112131415161718192021222324252627
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var TransformEffect = /** @class */ (function () {
  4. function TransformEffect(offsetX, offsetY, matrix) {
  5. this.type = 0 /* TRANSFORM */;
  6. this.offsetX = offsetX;
  7. this.offsetY = offsetY;
  8. this.matrix = matrix;
  9. this.target = 2 /* BACKGROUND_BORDERS */ | 4 /* CONTENT */;
  10. }
  11. return TransformEffect;
  12. }());
  13. exports.TransformEffect = TransformEffect;
  14. var ClipEffect = /** @class */ (function () {
  15. function ClipEffect(path, target) {
  16. this.type = 1 /* CLIP */;
  17. this.target = target;
  18. this.path = path;
  19. }
  20. return ClipEffect;
  21. }());
  22. exports.ClipEffect = ClipEffect;
  23. exports.isTransformEffect = function (effect) {
  24. return effect.type === 0 /* TRANSFORM */;
  25. };
  26. exports.isClipEffect = function (effect) { return effect.type === 1 /* CLIP */; };
  27. //# sourceMappingURL=effects.js.map