Class LineItemHandler
Inheritance
LineItemHandler
Constructors
(constructor)(item, textWhizz, colorPreviewService)
Constructs a new instance of the LineItemHandler class
Declaration
constructor(item: LineItem, textWhizz?: typeof TextWhizz, colorPreviewService?: IListenableColorPreviewService);
Parameters
Properties
_areColorPreviewsReady
Declaration
protected get _areColorPreviewsReady(): boolean;
Property Value
_isReadyToDraw
Declaration
protected get _isReadyToDraw(): boolean;
Property Value
color
Declaration
get color(): Color;
set color(value: Color);
Property Value
controlPoints
Declaration
set controlPoints(v: PointF[]);
Property Value
fixedWidth
Declaration
get fixedWidth(): boolean;
set fixedWidth(value: boolean);
Property Value
item
Declaration
Property Value
point0
Declaration
get point0(): CcMath.PointF;
set point0(point: CcMath.PointF);
Property Value
point1
Declaration
get point1(): CcMath.PointF;
set point1(point: CcMath.PointF);
Property Value
rectangle
Declaration
get rectangle(): CcMath.RotatedRectangleF;
Property Value
width
Declaration
get width(): number;
set width(value: number);
Property Value
Methods
_getActualWidth()
Declaration
protected _getActualWidth(): number;
Returns
_getColors()
Declaration
protected _getColors(): Color[];
Returns
_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
drawItemHandler(itemHandlerCtx)
Declaration
drawItemHandler(itemHandlerCtx: CanvasRenderingContext2D): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
itemHandlerCtx |
|
Returns
hitTest(point, isSelected)
Declaration
hitTest(point: any, isSelected?: any): import("..").IHitTestResult;
Parameters
| Type |
Name |
Description |
| any |
point |
|
| any |
isSelected |
|
Returns
Declaration
transformByMatrix(matrix: Matrix, finished: boolean, newAngle?: number): void;
Parameters
| Type |
Name |
Description |
| Matrix |
matrix |
|
| boolean |
finished |
|
| number |
newAngle |
|
Returns