@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.
43 lines (42 loc) • 1.7 kB
TypeScript
import { ModelComponent } from "./ModelComponent";
import { Surface } from "./Surface";
import { RectangleF } from "../Math/RectangleF";
import { SafetyLine } from "./SafetyLine";
import { CropMark } from "./CropMark";
import { Collection } from "../Collection";
import { Margin } from "../Math/Margin";
import { PrintAreaBoundsType } from "./PrintAreaBoundsType";
export declare class PrintArea extends ModelComponent {
parentSurface: Surface;
private _bounds;
private _safetyLines;
private _cropMarks;
private _bleed;
private _slug;
constructor(bounds?: RectangleF, bleed?: Margin, slug?: Margin);
get bounds(): RectangleF;
set bounds(value: RectangleF);
get safetyLines(): Collection<SafetyLine>;
set safetyLines(value: Collection<SafetyLine>);
get cropMarks(): Collection<CropMark>;
set cropMarks(value: Collection<CropMark>);
get bleed(): Margin;
set bleed(value: Margin);
get slug(): Margin;
set slug(value: Margin);
getBounds(type: PrintAreaBoundsType): RectangleF;
private _subscribeBoundsPropertyChanged;
private _unsubscribeBoundsPropertyChanged;
private _onBoundsPropertyChanged;
private _subscribeBleedPropertyChanged;
private _unsubscribeBleedPropertyChanged;
private _onBleedPropertyChanged;
private _subscribeSlugPropertyChanged;
private _unsubscribeSlugPropertyChanged;
private _onSlugPropertyChanged;
private _validateMargin;
getSimplifiedObject(): {};
protected _copy(source: PrintArea, destination: PrintArea, generateNewIds: boolean): void;
clone(generateNewIds?: boolean): PrintArea;
generateNewIds(): void;
}