UNPKG

@aurigma/design-atoms-model

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

39 lines 1.29 kB
export class WatermarkImageConfig { clone() { const clone = new WatermarkImageConfig(); clone.name = this.name; clone.storageId = this.storageId; clone.staticStorageId = this.staticStorageId; clone.repeat = this.repeat; clone.opacity = this.opacity; return clone; } } export class WatermarkTextConfig { clone() { const clone = new WatermarkTextConfig(); clone.text = this.text; clone.fontSettings = this.fontSettings != null ? this.fontSettings.clone() : null; clone.scale = this.scale; clone.opacity = this.opacity; return clone; } } export class WatermarkVisibilityConfig { clone() { const clone = new WatermarkVisibilityConfig(); clone.canvas = this.canvas; clone.proof = this.proof; return clone; } } export class WatermarkConfig { clone() { const clone = new WatermarkConfig(); clone.text = this.text != null ? this.text.clone() : null; clone.image = this.image != null ? this.image.clone() : null; clone.visibility = this.visibility != null ? this.visibility.clone() : null; return clone; } } //# sourceMappingURL=WatermarkConfig.js.map