Class NewBoundedTextItemHandler
Inheritance
NewBoundedTextItemHandler
Constructors
(constructor)(fontRegistry, textEditorControllerFactory, item, textWhizz, apiClient, colorPreviewService, colorParser)
Constructs a new instance of the NewBoundedTextItemHandler class
Declaration
constructor(fontRegistry: FontRegistry, textEditorControllerFactory: ITextEditorControllerFactory, item?: BoundedTextItem | PathBoundedTextItem, textWhizz?: typeof TextWhizz, apiClient?: IDesignAtomsApiClient, colorPreviewService?: IListenableColorPreviewService, colorParser?: IColorParser);
Parameters
Properties
drawingRectangle
Declaration
get drawingRectangle(): RotatedRectangleF;
Property Value
item
Declaration
get item(): BoundedTextItem | PathBoundedTextItem;
set item(item: BoundedTextItem | PathBoundedTextItem);
Property Value
lastRectangle
Declaration
lastRectangle: RotatedRectangleF;
Property Value
typeName
Declaration
static readonly typeName: string;
Property Value
Methods
_applyTransform(item, transform, center)
Declaration
protected _applyTransform(item: BaseTextItem, transform: Transform, center: PointF): void;
Parameters
Returns
_endTransform(changed, resized)
Declaration
_endTransform(changed: boolean, resized: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
changed |
|
| boolean |
resized |
|
Returns
_onFrontEndRenderingInitialized()
Declaration
protected _onFrontEndRenderingInitialized(): void;
Returns
_onItemPropertyChanged(sender, propertyName)
Declaration
protected _onItemPropertyChanged(sender: BaseTextItem, propertyName: string): Promise<void>;
Parameters
| Type |
Name |
Description |
| BaseTextItem |
sender |
|
| string |
propertyName |
|
Returns
| Type |
Description |
| Promise<void> |
|
_onTextManagerExitedEditMode()
Declaration
protected _onTextManagerExitedEditMode(): void;
Returns
_onTransformRectangle(startRectangle, endRectangle, highlightOnly)
Declaration
protected _onTransformRectangle(startRectangle: RotatedRectangleF, endRectangle: RotatedRectangleF, highlightOnly: boolean): void;
Parameters
Returns
_transformText(transform)
Declaration
protected _transformText(transform: Transform): void;
Parameters
Returns
getFramesData()
Declaration
getFramesData(): ITextFrameData;
Returns
| Type |
Description |
| IFontRegistry |
|
getTextRectangle()
Declaration
getTextRectangle(): RotatedRectangleF;
Returns
getTextWrappingPath()
Declaration
getTextWrappingPath(): Path;
Returns
getWrappingPathData()
Declaration
getWrappingPathData(): IWrappingPathData;
Returns
| Type |
Description |
| IFontRegistry |
|
renderFill(itemHandlerCtx)
Declaration
protected renderFill(itemHandlerCtx: CanvasRenderingContext2D): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
itemHandlerCtx |
|
Returns
renderStroke(itemHandlerCtx)
Declaration
protected renderStroke(itemHandlerCtx: CanvasRenderingContext2D): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
itemHandlerCtx |
|
Returns
setRectangleValidated(rectangle)
Declaration
setRectangleValidated(rectangle?: RotatedRectangleF): void;
Parameters
Returns
setTextWhizzWrappingPath(handler)
Declaration
setTextWhizzWrappingPath(handler: TextWhizz.TextHandler): void;
Parameters
| Type |
Name |
Description |
| TextWhizz.TextHandler |
handler |
|
Returns