Class BaseRectangleItemHandler
Inheritance
BaseRectangleItemHandler
Constructors
(constructor)(left, top, width, height, item, _textWhizz, colorPreviewService)
Constructs a new instance of the BaseRectangleItemHandler class
Declaration
constructor(left?: number, top?: number, width?: number, height?: number, item?: Item, _textWhizz?: typeof TextWhizz, colorPreviewService?: IListenableColorPreviewService);
Parameters
Properties
_allowNegativeResize
Declaration
protected _allowNegativeResize: boolean;
Property Value
_applyMatrix
Declaration
protected _applyMatrix: (matrix: Matrix, finished: boolean, newAngle?: number) => void;
Property Value
| Type |
Description |
| (matrix: Matrix, finished: boolean, newAngle?: number) => void |
|
_areColorPreviewsReady
Declaration
protected get _areColorPreviewsReady(): boolean;
Property Value
_clickEvent
Declaration
protected _clickEvent: EventWithSenderArg<this, any>;
Property Value
_colorPreviewService
Declaration
protected _colorPreviewService: IListenableColorPreviewService;
Property Value
_controlPoints
Declaration
protected _controlPoints: PointF[];
Property Value
_doubleClickEvent
Declaration
protected _doubleClickEvent: EventWithSenderArg<this, any>;
Property Value
_isReadyToDraw
Declaration
protected get _isReadyToDraw(): boolean;
Property Value
_onColorPreviewLoaded
Declaration
protected _onColorPreviewLoaded: (args: IPreviewLoadedEventArgs) => void;
Property Value
_selectionTolerance
Declaration
protected _selectionTolerance: number;
Property Value
_startRectangle
Declaration
protected _startRectangle: RotatedRectangleF;
Property Value
_textWhizz
Declaration
protected _textWhizz: typeof TextWhizz;
Property Value
| Type |
Description |
| typeof TextWhizz |
|
_violationContainer
Declaration
protected _violationContainer: HTMLElement;
Property Value
| Type |
Description |
| HTMLElement |
|
Declaration
protected _violationWarningButton: HTMLElement;
Property Value
| Type |
Description |
| HTMLElement |
|
Declaration
protected _violationWarningButtonClick: EventWithSenderArg<this, Event>;
Property Value
Declaration
protected _violationWarningButtonClickEvent: EventWithSenderArg<unknown, unknown>;
Property Value
Declaration
protected _violationWarningButtonClickHandler: any;
Property Value
allowNegativeResize
Declaration
get allowNegativeResize(): boolean;
Property Value
angle
Declaration
get angle(): number;
set angle(angle: number);
Property Value
bounds
Declaration
get bounds(): RectangleF;
Property Value
drawingRectangle
Declaration
get drawingRectangle(): RotatedRectangleF;
Property Value
height
Declaration
get height(): number;
set height(height: number);
Property Value
rectangle
Declaration
get rectangle(): RotatedRectangleF;
Property Value
startRectangle
Declaration
get startRectangle(): RotatedRectangleF;
Property Value
Declaration
get transformChanging(): EventWithAutoSenderArg<BaseRectangleItemHandler, any>;
Property Value
typeName
Declaration
static readonly typeName: string;
Property Value
width
Declaration
get width(): number;
set width(width: number);
Property Value
Methods
Declaration
protected _calculateTransformedRectangle(startRectangle: RotatedRectangleF, endRectangle: RotatedRectangleF): RotatedRectangleF;
Parameters
Returns
_clip(itemHandlerCtx)
Declaration
protected _clip(itemHandlerCtx: any): void;
Parameters
| Type |
Name |
Description |
| any |
itemHandlerCtx |
|
Returns
Declaration
protected _endTransform(changed: boolean, resized: boolean, supressOnChanged?: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
changed |
|
| boolean |
resized |
|
| boolean |
supressOnChanged |
|
Returns
_getBoundsMargin()
Declaration
protected _getBoundsMargin(): number;
Returns
_getHighlightRectangle()
Declaration
protected _getHighlightRectangle(): RotatedRectangleF;
Returns
_getItemColorPreviews()
Declaration
protected _getItemColorPreviews(): {};
Returns
_getRectangle()
Declaration
protected _getRectangle(): RotatedRectangleF;
Returns
Declaration
protected _getTransformedClippingPath(transform?: Transform): Path;
Parameters
Returns
_hasVectorMask()
Declaration
protected _hasVectorMask(): boolean;
Returns
_isReady()
Declaration
protected _isReady(): boolean;
Returns
_onAddedOnCanvas(canvas, supressUpdate)
Declaration
protected _onAddedOnCanvas(canvas: ICanvas, supressUpdate?: boolean): void;
Parameters
| Type |
Name |
Description |
| ICanvas |
canvas |
|
| boolean |
supressUpdate |
|
Returns
_onItemPropertyChanged(sender, propertyName)
Declaration
protected _onItemPropertyChanged(sender: Item, propertyName: string): void;
Parameters
| Type |
Name |
Description |
| Item |
sender |
|
| string |
propertyName |
|
Returns
_onItemVisibilityChanged()
Declaration
protected _onItemVisibilityChanged(): void;
Returns
_onRemovedFromCanvas(canvas)
Declaration
protected _onRemovedFromCanvas(canvas: ICanvas): void;
Parameters
| Type |
Name |
Description |
| ICanvas |
canvas |
|
Returns
Declaration
protected _onTransformRectangle(startRectangle: RotatedRectangleF, endRectangle: RotatedRectangleF, highlightOnly: boolean): void;
Parameters
Returns
Declaration
protected _onViolationWarningButtonClick(e: Event): void;
Parameters
| Type |
Name |
Description |
| Event |
e |
|
Returns
_refreshState()
Declaration
protected _refreshState(): void;
Returns
_updateImpl(beforeUpdate, afterUpdate)
Declaration
protected _updateImpl(beforeUpdate?: Function, afterUpdate?: Function): Promise<void>;
Parameters
| Type |
Name |
Description |
| Function |
beforeUpdate |
|
| Function |
afterUpdate |
|
Returns
| Type |
Description |
| Promise<void> |
|
_updateVectorMaskCenter()
Declaration
protected _updateVectorMaskCenter(): Promise<void>;
Returns
| Type |
Description |
| Promise<void> |
|
_updateVectorMaskCenterSync()
Declaration
protected _updateVectorMaskCenterSync(): void;
Returns
_updateViolationContainersVisibility()
Declaration
protected _updateViolationContainersVisibility(): void;
Returns
_updateVisibility()
Declaration
protected _updateVisibility(): void;
Returns
addClick(handler)
Declaration
addClick(handler: (sender?: BaseRectangleItemHandler, e?: any) => any): void;
Parameters
Returns
addDoubleClick(handler)
Declaration
addDoubleClick(handler: (sender?: BaseRectangleItemHandler, e?: any) => any): void;
Parameters
Returns
Declaration
addViolationWarningButtonClick(handler: (handler: BaseRectangleItemHandler) => void): void;
Parameters
Returns
dispatchClickEvent(e)
Declaration
dispatchClickEvent(e: any): void;
Parameters
| Type |
Name |
Description |
| any |
e |
|
Returns
dispatchDoubleClickEvent(e)
Declaration
dispatchDoubleClickEvent(e: any): void;
Parameters
| Type |
Name |
Description |
| any |
e |
|
Returns
Declaration
endTransform(changed: boolean, resized: boolean, supressOnChanged?: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
changed |
|
| boolean |
resized |
|
| boolean |
supressOnChanged |
|
Returns
getBorderMargin()
Declaration
getBorderMargin(): number;
Returns
getControlBounds()
Declaration
getControlBounds(): RectangleF;
Returns
getControlCenter()
Declaration
getControlCenter(): PointF;
Returns
getHighlightRectangles(options)
Declaration
getHighlightRectangles(options?: IGetHighlightRectanglesOptions): RotatedRectangleF[];
Parameters
| Type |
Name |
Description |
| IGetHighlightRectanglesOptions |
options |
|
Returns
getSelectionRectangle()
Declaration
getSelectionRectangle(): RotatedRectangleF;
Returns
getSelectionTolerance()
Declaration
getSelectionTolerance(): number;
Returns
getTextWrappingPath()
Declaration
getTextWrappingPath(): Path;
Returns
Declaration
getTransformedRectangle(relativeToPrintArea?: boolean, withMargins?: boolean): RotatedRectangleF;
Parameters
| Type |
Name |
Description |
| boolean |
relativeToPrintArea |
|
| boolean |
withMargins |
|
Returns
getViolationContainer()
Declaration
getViolationContainer(): HTMLElement;
Returns
| Type |
Description |
| HTMLElement |
|
Declaration
getViolationWarningButton(): HTMLElement;
Returns
| Type |
Description |
| HTMLElement |
|
Declaration
getViolationWarningButtonClickHandler(): any;
Returns
Declaration
getViolationWarningButtonElement(): HTMLElement;
Returns
| Type |
Description |
| HTMLElement |
|
hitTest(point)
Declaration
hitTest(point: PointF): IHitTestResult;
Parameters
| Type |
Name |
Description |
| PointF |
point |
|
Returns
isBadViolationIcon()
Declaration
isBadViolationIcon(): boolean;
Returns
isGoodViolationIcon()
Declaration
isGoodViolationIcon(): boolean;
Returns
isNoneViolationIcon()
Declaration
isNoneViolationIcon(): boolean;
Returns
isWarningViolationIcon()
Declaration
isWarningViolationIcon(): boolean;
Returns
onResized()
Declaration
Returns
onTextWhizzInit()
Declaration
Returns
removeClick(handler)
Declaration
removeClick(handler: (sender?: BaseRectangleItemHandler, e?: any) => any): void;
Parameters
Returns
removeDoubleClick(handler)
Declaration
removeDoubleClick(handler: (sender?: BaseRectangleItemHandler, e?: any) => any): void;
Parameters
Returns
Declaration
removeViolationWarningButtonClick(handler: (handler: BaseRectangleItemHandler) => void): void;
Parameters
Returns
setBadViolationIcon(title)
Declaration
setBadViolationIcon(title?: string): void;
Parameters
| Type |
Name |
Description |
| string |
title |
|
Returns
setGoodViolationIcon(title)
Declaration
setGoodViolationIcon(title: string): boolean;
Parameters
| Type |
Name |
Description |
| string |
title |
|
Returns
setLocation(location)
Declaration
setLocation(location: PointF): void;
Parameters
| Type |
Name |
Description |
| PointF |
location |
|
Returns
setNoneViolationIcon()
Declaration
setNoneViolationIcon(): void;
Returns
setRectangle(rectangle, supressOnChanged)
Declaration
setRectangle(rectangle: RotatedRectangleF, supressOnChanged?: boolean): void;
Parameters
Returns
Declaration
setTransformedRectangle(value: RotatedRectangleF, suppressOnChanged?: boolean): void;
Parameters
Returns
setViolationContainer(value)
Declaration
setViolationContainer(value: any): void;
Parameters
| Type |
Name |
Description |
| any |
value |
|
Returns
Declaration
setViolationWarningButton(value: any): void;
Parameters
| Type |
Name |
Description |
| any |
value |
|
Returns
setWarningViolationIcon(title)
Declaration
setWarningViolationIcon(title?: string): void;
Parameters
| Type |
Name |
Description |
| string |
title |
|
Returns
Declaration
showDeleteToolbarButton(): boolean;
Returns
Declaration
showEditToolbarButton(): boolean;
Returns
Declaration
showHandleToolbarButton(): boolean;
Returns
Declaration
showSelectToolbarButton(): boolean;
Returns
Declaration
Returns
Declaration
transformByMatrix(matrix: Matrix, finished: boolean, newAngle?: number): void;
Parameters
| Type |
Name |
Description |
| Matrix |
matrix |
|
| boolean |
finished |
|
| number |
newAngle |
|
Returns
Declaration
transformChanged(): void;
Returns
Declaration
transformRectangle(startRectangle: RotatedRectangleF, endRectangle: RotatedRectangleF, highlightOnly?: boolean): void;
Parameters
Returns
Declaration
static transformRectangleByTwoRectanglesDiff(rectangle: RotatedRectangleF, startRectangle: RotatedRectangleF, endRectangle: RotatedRectangleF): RotatedRectangleF;
Parameters
Returns
updateViolationContainerPosition()
Declaration
updateViolationContainerPosition(): void;
Returns