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.

45 lines (44 loc) 1.56 kB
import { Surface } from "@aurigma/design-atoms-model/Product/Surface"; import { Collection } from "@aurigma/design-atoms-model/Collection"; import { Container } from "@aurigma/design-atoms-model/Product/Container"; import { GridConfig, IRulersConfig } from "./Interfaces"; import { PointF } from "@aurigma/design-atoms-model/Math/PointF"; import { IColorParser } from "../Serialization/Color"; export declare class GridHandler { private _config; private _rulersConfig; private _surface; private _gridContainer; private _visible; private _width; private _height; private readonly _changedEvent; private readonly _colorParser; constructor(colorParser: IColorParser); get surface(): Surface; set surface(value: Surface); setConfig(config: GridConfig, rulersConfig: IRulersConfig): void; private _onBleedChange; private removeBleedListener; private addBleedListener; private _onSurfacePropertyChanged; get gridContainers(): Collection<Container>; get gridContainer(): Container; get visible(): boolean; set visible(value: boolean); getGridParameters(): { location: PointF; cols: number; stepX: number; rows: number; stepY: number; }; addChanged(listener: () => void): void; removeChanged(listener: () => void): void; private _updateGrid; private _createGrid; private _getSteps; private _createGridItem; private _getMainPrintArea; private _reCreateItem; }