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.

13 lines (12 loc) 646 B
import { Surface, PrintAreaBoundsType, Item, RectangleF } from "@aurigma/design-atoms-model"; import { HandlerFactoryByItem } from "../ItemHandlers/HandlerFactoryByItem"; import { ICanvas } from "../ICanvas"; export declare class SurfaceHandler { private readonly _surface; constructor(_surface: Surface); getBounds(type: PrintAreaBoundsType): RectangleF; getPrintAreasBounds(type: PrintAreaBoundsType): RectangleF; static getItemSurface(item: Item): any; static applyLayout(handlerFactory: HandlerFactoryByItem, canvas: ICanvas, surface: Surface): Promise<void>; private static _updateTextItemHandlers; }