Back to Website
Show / Hide Table of Contents

Class LineItemHandler

Inheritance
ItemHandler
BaseRectangleItemHandler
LineItemHandler
Package: @aurigma/design-atoms

Constructors

(constructor)(item, textWhizz, colorPreviewService)

Constructs a new instance of the LineItemHandler class

Declaration
constructor(item: LineItem, textWhizz?: typeof TextWhizz, colorPreviewService?: IListenableColorPreviewService);
Parameters
Type Name Description
LineItem item
typeof TextWhizz textWhizz
IListenableColorPreviewService colorPreviewService

Properties

_areColorPreviewsReady

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

_isReadyToDraw

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

color

Declaration
get color(): Color;

set color(value: Color);
Property Value
Type Description
Color

controlPoints

Declaration
set controlPoints(v: PointF[]);
Property Value
Type Description
PointF[]

fixedWidth

Declaration
get fixedWidth(): boolean;

set fixedWidth(value: boolean);
Property Value
Type Description
boolean

item

Declaration
get item(): LineItem;
Property Value
Type Description
LineItem

point0

Declaration
get point0(): CcMath.PointF;

set point0(point: CcMath.PointF);
Property Value
Type Description
CcMath.PointF

point1

Declaration
get point1(): CcMath.PointF;

set point1(point: CcMath.PointF);
Property Value
Type Description
CcMath.PointF

rectangle

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

width

Declaration
get width(): number;

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

Methods

_getActualWidth()

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

_getColors()

Declaration
protected _getColors(): Color[];
Returns
Type Description
Color[]

_getItemColorPreviews()

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

_onItemPropertyChanged(sender, propertyName)

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

drawItemHandler(itemHandlerCtx)

Declaration
drawItemHandler(itemHandlerCtx: CanvasRenderingContext2D): void;
Parameters
Type Name Description
CanvasRenderingContext2D itemHandlerCtx
Returns
Type Description
void

hitTest(point, isSelected)

Declaration
hitTest(point: any, isSelected?: any): import("..").IHitTestResult;
Parameters
Type Name Description
any point
any isSelected
Returns
Type Description
import("..").IHitTestResult

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
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