Back to Website
Show / Hide Table of Contents

Class BaseRectangleItemHandler

Inheritance
ItemHandler
BaseRectangleItemHandler
Package: @aurigma/design-atoms

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
Type Name Description
number left
number top
number width
number height
Item item
typeof TextWhizz _textWhizz
IListenableColorPreviewService colorPreviewService

Properties

_allowNegativeResize

Declaration
protected _allowNegativeResize: boolean;
Property Value
Type Description
boolean

_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
Type Description
boolean

_clickEvent

Declaration
protected _clickEvent: EventWithSenderArg<this, any>;
Property Value
Type Description
EventWithSenderArg<this, any>

_colorPreviewService

Declaration
protected _colorPreviewService: IListenableColorPreviewService;
Property Value
Type Description
IListenableColorPreviewService

_controlPoints

Declaration
protected _controlPoints: PointF[];
Property Value
Type Description
PointF[]

_doubleClickEvent

Declaration
protected _doubleClickEvent: EventWithSenderArg<this, any>;
Property Value
Type Description
EventWithSenderArg<this, any>

_isReadyToDraw

Declaration
protected get _isReadyToDraw(): boolean;
Property Value
Type Description
boolean

_onColorPreviewLoaded

Declaration
protected _onColorPreviewLoaded: (args: IPreviewLoadedEventArgs) => void;
Property Value
Type Description
(args: IPreviewLoadedEventArgs) => void

_selectionTolerance

Declaration
protected _selectionTolerance: number;
Property Value
Type Description
number

_startRectangle

Declaration
protected _startRectangle: RotatedRectangleF;
Property Value
Type Description
RotatedRectangleF

_textWhizz

Declaration
protected _textWhizz: typeof TextWhizz;
Property Value
Type Description
typeof TextWhizz

_violationContainer

Declaration
protected _violationContainer: HTMLElement;
Property Value
Type Description
HTMLElement

_violationWarningButton

Declaration
protected _violationWarningButton: HTMLElement;
Property Value
Type Description
HTMLElement

_violationWarningButtonClick

Declaration
protected _violationWarningButtonClick: EventWithSenderArg<this, Event>;
Property Value
Type Description
EventWithSenderArg<this, Event>

_violationWarningButtonClickEvent

Declaration
protected _violationWarningButtonClickEvent: EventWithSenderArg<unknown, unknown>;
Property Value
Type Description
EventWithSenderArg<unknown, unknown>

_violationWarningButtonClickHandler

Declaration
protected _violationWarningButtonClickHandler: any;
Property Value
Type Description
any

allowNegativeResize

Declaration
get allowNegativeResize(): boolean;
Property Value
Type Description
boolean

angle

Declaration
get angle(): number;

set angle(angle: number);
Property Value
Type Description
number

bounds

Declaration
get bounds(): RectangleF;
Property Value
Type Description
RectangleF

drawingRectangle

Declaration
get drawingRectangle(): RotatedRectangleF;
Property Value
Type Description
RotatedRectangleF

height

Declaration
get height(): number;

set height(height: number);
Property Value
Type Description
number

rectangle

Declaration
get rectangle(): RotatedRectangleF;
Property Value
Type Description
RotatedRectangleF

startRectangle

Declaration
get startRectangle(): RotatedRectangleF;
Property Value
Type Description
RotatedRectangleF

transformChanging

Declaration
get transformChanging(): EventWithAutoSenderArg<BaseRectangleItemHandler, any>;
Property Value
Type Description
EventWithAutoSenderArg<BaseRectangleItemHandler, any>

typeName

Declaration
static readonly typeName: string;
Property Value
Type Description
string

width

Declaration
get width(): number;

set width(width: number);
Property Value
Type Description
number

Methods

_calculateTransformedRectangle(startRectangle, endRectangle)

Declaration
protected _calculateTransformedRectangle(startRectangle: RotatedRectangleF, endRectangle: RotatedRectangleF): RotatedRectangleF;
Parameters
Type Name Description
RotatedRectangleF startRectangle
RotatedRectangleF endRectangle
Returns
Type Description
RotatedRectangleF

_clip(itemHandlerCtx)

Declaration
protected _clip(itemHandlerCtx: any): void;
Parameters
Type Name Description
any itemHandlerCtx
Returns
Type Description
void

_endTransform(changed, resized, supressOnChanged)

Declaration
protected _endTransform(changed: boolean, resized: boolean, supressOnChanged?: boolean): void;
Parameters
Type Name Description
boolean changed
boolean resized
boolean supressOnChanged
Returns
Type Description
void

_getBoundsMargin()

Declaration
protected _getBoundsMargin(): number;
Returns
Type Description
number

_getHighlightRectangle()

Declaration
protected _getHighlightRectangle(): RotatedRectangleF;
Returns
Type Description
RotatedRectangleF

_getItemColorPreviews()

Declaration
protected _getItemColorPreviews(): {};
Returns
Type Description
{}

_getRectangle()

Declaration
protected _getRectangle(): RotatedRectangleF;
Returns
Type Description
RotatedRectangleF

_getTransformedClippingPath(transform)

Declaration
protected _getTransformedClippingPath(transform?: Transform): Path;
Parameters
Type Name Description
Transform transform
Returns
Type Description
Path

_hasVectorMask()

Declaration
protected _hasVectorMask(): boolean;
Returns
Type Description
boolean

_isReady()

Declaration
protected _isReady(): boolean;
Returns
Type Description
boolean

_onAddedOnCanvas(canvas, supressUpdate)

Declaration
protected _onAddedOnCanvas(canvas: ICanvas, supressUpdate?: boolean): void;
Parameters
Type Name Description
ICanvas canvas
boolean supressUpdate
Returns
Type Description
void

_onItemPropertyChanged(sender, propertyName)

Declaration
protected _onItemPropertyChanged(sender: Item, propertyName: string): void;
Parameters
Type Name Description
Item sender
string propertyName
Returns
Type Description
void

_onItemVisibilityChanged()

Declaration
protected _onItemVisibilityChanged(): void;
Returns
Type Description
void

_onRemovedFromCanvas(canvas)

Declaration
protected _onRemovedFromCanvas(canvas: ICanvas): void;
Parameters
Type Name Description
ICanvas canvas
Returns
Type Description
void

_onTransformRectangle(startRectangle, endRectangle, highlightOnly)

Declaration
protected _onTransformRectangle(startRectangle: RotatedRectangleF, endRectangle: RotatedRectangleF, highlightOnly: boolean): void;
Parameters
Type Name Description
RotatedRectangleF startRectangle
RotatedRectangleF endRectangle
boolean highlightOnly
Returns
Type Description
void

_onViolationWarningButtonClick(e)

Declaration
protected _onViolationWarningButtonClick(e: Event): void;
Parameters
Type Name Description
Event e
Returns
Type Description
void

_refreshState()

Declaration
protected _refreshState(): void;
Returns
Type Description
void

_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
Type Description
void

_updateViolationContainersVisibility()

Declaration
protected _updateViolationContainersVisibility(): void;
Returns
Type Description
void

_updateVisibility()

Declaration
protected _updateVisibility(): void;
Returns
Type Description
void

addClick(handler)

Declaration
addClick(handler: (sender?: BaseRectangleItemHandler, e?: any) => any): void;
Parameters
Type Name Description
(sender?: BaseRectangleItemHandler, e?: any) => any handler
Returns
Type Description
void

addDoubleClick(handler)

Declaration
addDoubleClick(handler: (sender?: BaseRectangleItemHandler, e?: any) => any): void;
Parameters
Type Name Description
(sender?: BaseRectangleItemHandler, e?: any) => any handler
Returns
Type Description
void

addViolationWarningButtonClick(handler)

Declaration
addViolationWarningButtonClick(handler: (handler: BaseRectangleItemHandler) => void): void;
Parameters
Type Name Description
(handler: BaseRectangleItemHandler) => void handler
Returns
Type Description
void

dispatchClickEvent(e)

Declaration
dispatchClickEvent(e: any): void;
Parameters
Type Name Description
any e
Returns
Type Description
void

dispatchDoubleClickEvent(e)

Declaration
dispatchDoubleClickEvent(e: any): void;
Parameters
Type Name Description
any e
Returns
Type Description
void

endTransform(changed, resized, supressOnChanged)

Declaration
endTransform(changed: boolean, resized: boolean, supressOnChanged?: boolean): void;
Parameters
Type Name Description
boolean changed
boolean resized
boolean supressOnChanged
Returns
Type Description
void

getBorderMargin()

Declaration
getBorderMargin(): number;
Returns
Type Description
number

getControlBounds()

Declaration
getControlBounds(): RectangleF;
Returns
Type Description
RectangleF

getControlCenter()

Declaration
getControlCenter(): PointF;
Returns
Type Description
PointF

getHighlightRectangles(options)

Declaration
getHighlightRectangles(options?: IGetHighlightRectanglesOptions): RotatedRectangleF[];
Parameters
Type Name Description
IGetHighlightRectanglesOptions options
Returns
Type Description
RotatedRectangleF[]

getSelectionRectangle()

Declaration
getSelectionRectangle(): RotatedRectangleF;
Returns
Type Description
RotatedRectangleF

getSelectionTolerance()

Declaration
getSelectionTolerance(): number;
Returns
Type Description
number

getTextWrappingPath()

Declaration
getTextWrappingPath(): Path;
Returns
Type Description
Path

getTransformedRectangle(relativeToPrintArea, withMargins)

Declaration
getTransformedRectangle(relativeToPrintArea?: boolean, withMargins?: boolean): RotatedRectangleF;
Parameters
Type Name Description
boolean relativeToPrintArea
boolean withMargins
Returns
Type Description
RotatedRectangleF

getViolationContainer()

Declaration
getViolationContainer(): HTMLElement;
Returns
Type Description
HTMLElement

getViolationWarningButton()

Declaration
getViolationWarningButton(): HTMLElement;
Returns
Type Description
HTMLElement

getViolationWarningButtonClickHandler()

Declaration
getViolationWarningButtonClickHandler(): any;
Returns
Type Description
any

getViolationWarningButtonElement()

Declaration
getViolationWarningButtonElement(): HTMLElement;
Returns
Type Description
HTMLElement

hitTest(point)

Declaration
hitTest(point: PointF): IHitTestResult;
Parameters
Type Name Description
PointF point
Returns
Type Description
IHitTestResult

isBadViolationIcon()

Declaration
isBadViolationIcon(): boolean;
Returns
Type Description
boolean

isGoodViolationIcon()

Declaration
isGoodViolationIcon(): boolean;
Returns
Type Description
boolean

isNoneViolationIcon()

Declaration
isNoneViolationIcon(): boolean;
Returns
Type Description
boolean

isWarningViolationIcon()

Declaration
isWarningViolationIcon(): boolean;
Returns
Type Description
boolean

onResized()

Declaration
onResized(): boolean;
Returns
Type Description
boolean

onTextWhizzInit()

Declaration
onTextWhizzInit(): void;
Returns
Type Description
void

removeClick(handler)

Declaration
removeClick(handler: (sender?: BaseRectangleItemHandler, e?: any) => any): void;
Parameters
Type Name Description
(sender?: BaseRectangleItemHandler, e?: any) => any handler
Returns
Type Description
void

removeDoubleClick(handler)

Declaration
removeDoubleClick(handler: (sender?: BaseRectangleItemHandler, e?: any) => any): void;
Parameters
Type Name Description
(sender?: BaseRectangleItemHandler, e?: any) => any handler
Returns
Type Description
void

removeViolationWarningButtonClick(handler)

Declaration
removeViolationWarningButtonClick(handler: (handler: BaseRectangleItemHandler) => void): void;
Parameters
Type Name Description
(handler: BaseRectangleItemHandler) => void handler
Returns
Type Description
void

setBadViolationIcon(title)

Declaration
setBadViolationIcon(title?: string): void;
Parameters
Type Name Description
string title
Returns
Type Description
void

setGoodViolationIcon(title)

Declaration
setGoodViolationIcon(title: string): boolean;
Parameters
Type Name Description
string title
Returns
Type Description
boolean

setLocation(location)

Declaration
setLocation(location: PointF): void;
Parameters
Type Name Description
PointF location
Returns
Type Description
void

setNoneViolationIcon()

Declaration
setNoneViolationIcon(): void;
Returns
Type Description
void

setRectangle(rectangle, supressOnChanged)

Declaration
setRectangle(rectangle: RotatedRectangleF, supressOnChanged?: boolean): void;
Parameters
Type Name Description
RotatedRectangleF rectangle
boolean supressOnChanged
Returns
Type Description
void

setTransformedRectangle(value, suppressOnChanged)

Declaration
setTransformedRectangle(value: RotatedRectangleF, suppressOnChanged?: boolean): void;
Parameters
Type Name Description
RotatedRectangleF value
boolean suppressOnChanged
Returns
Type Description
void

setViolationContainer(value)

Declaration
setViolationContainer(value: any): void;
Parameters
Type Name Description
any value
Returns
Type Description
void

setViolationWarningButton(value)

Declaration
setViolationWarningButton(value: any): void;
Parameters
Type Name Description
any value
Returns
Type Description
void

setWarningViolationIcon(title)

Declaration
setWarningViolationIcon(title?: string): void;
Parameters
Type Name Description
string title
Returns
Type Description
void

showDeleteToolbarButton()

Declaration
showDeleteToolbarButton(): boolean;
Returns
Type Description
boolean

showEditToolbarButton()

Declaration
showEditToolbarButton(): boolean;
Returns
Type Description
boolean

showHandleToolbarButton()

Declaration
showHandleToolbarButton(): boolean;
Returns
Type Description
boolean

showSelectToolbarButton()

Declaration
showSelectToolbarButton(): boolean;
Returns
Type Description
boolean

startTransform()

Declaration
startTransform(): void;
Returns
Type Description
void

transformByMatrix(matrix, finished, newAngle)

Declaration
transformByMatrix(matrix: Matrix, finished: boolean, newAngle?: number): void;
Parameters
Type Name Description
Matrix matrix
boolean finished
number newAngle
Returns
Type Description
void

transformChanged()

Declaration
transformChanged(): void;
Returns
Type Description
void

transformRectangle(startRectangle, endRectangle, highlightOnly)

Declaration
transformRectangle(startRectangle: RotatedRectangleF, endRectangle: RotatedRectangleF, highlightOnly?: boolean): void;
Parameters
Type Name Description
RotatedRectangleF startRectangle
RotatedRectangleF endRectangle
boolean highlightOnly
Returns
Type Description
void

transformRectangleByTwoRectanglesDiff(rectangle, startRectangle, endRectangle)

Declaration
static transformRectangleByTwoRectanglesDiff(rectangle: RotatedRectangleF, startRectangle: RotatedRectangleF, endRectangle: RotatedRectangleF): RotatedRectangleF;
Parameters
Type Name Description
RotatedRectangleF rectangle
RotatedRectangleF startRectangle
RotatedRectangleF endRectangle
Returns
Type Description
RotatedRectangleF

updateViolationContainerPosition()

Declaration
updateViolationContainerPosition(): void;
Returns
Type Description
void
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback