@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
26 lines (25 loc) • 1.45 kB
TypeScript
import { BaseTextItemHandler } from "./BaseTextItemHandler";
import { RotatedRectangleF, Path } from "@aurigma/design-atoms-model/Math";
import { BoundedTextItem } from "@aurigma/design-atoms-model/Product/Items";
import * as TextWhizz from "@aurigma/text-whizz/TextWhizzJS";
import { IDesignAtomsApiClient } from "../Services/IDesignAtomsApiClient";
import { IListenableColorPreviewService } from "../Services/IColorPreviewService";
export declare class BoundedTextItemHandler extends BaseTextItemHandler {
private _lastRectangle;
private _textAutoFitted;
static readonly typeName: string;
constructor(item?: BoundedTextItem, textWhizz?: typeof TextWhizz, apiClient?: IDesignAtomsApiClient, colorPreviewService?: IListenableColorPreviewService);
get item(): BoundedTextItem;
set item(item: BoundedTextItem);
get drawingRectangle(): RotatedRectangleF;
get lastRectangle(): RotatedRectangleF;
set lastRectangle(v: RotatedRectangleF);
get textAutoFitted(): boolean;
getTextWrappingPath(): Path;
drawItemHandler(itemHandlerCtx: CanvasRenderingContext2D): void;
getTextRectangle(): RotatedRectangleF;
protected _setDataItem(item: BoundedTextItem, itemHandlerData: any): void;
protected _onItemPropertyChanged(sender: BoundedTextItem, propertyName: string): void;
protected _updateEmptyTextControlPoints(): void;
protected _setDefaultTextControlPoints(): void;
}