UNPKG

@aurigma/design-atoms

Version:

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

25 lines 994 B
import { ShapeHandlerData } from "./ShapeHandlerData"; export class ImageHandlerData extends ShapeHandlerData { constructor(handler) { super(handler); this.__type = "ImageHandlerData"; if (handler) { this.DI = handler.needToDownloadImage; this.SAS = handler.takeIntoAccountImageDpi; this.HR = handler.sourceImageHorizontalResolution; this.VR = handler.sourceImageVerticalResolution; } } applyState(imageData, handler) { if (handler) { handler.beginUpdate(); //call endUpdate in base class handler.sourceImageHorizontalResolution = imageData.HR; handler.sourceImageVerticalResolution = imageData.VR; handler.needToDownloadImage = imageData.DI; handler.takeIntoAccountImageDpi = imageData.SAS; super.applyState(imageData, handler); } } ; } //# sourceMappingURL=ImageHandlerData.js.map