Class DashedLineItemHandler
Inheritance
DashedLineItemHandler
Constructors
(constructor)(item, textWhizz, colorPreviewService)
Constructs a new instance of the DashedLineItemHandler class
Declaration
constructor(item: DashedLineItem, textWhizz: typeof TextWhizz, colorPreviewService: IListenableColorPreviewService);
Parameters
Properties
altColor
Declaration
get altColor(): Color;
set altColor(value: Color);
Property Value
altDashWidth
Declaration
get altDashWidth(): number;
set altDashWidth(value: number);
Property Value
dashWidth
Declaration
get dashWidth(): number;
set dashWidth(value: number);
Property Value
item
Declaration
get item(): DashedLineItem;
Property Value
Methods
_getColors()
Declaration
protected _getColors(): Color[];
Returns
_getItemColorPreviews()
Declaration
protected _getItemColorPreviews(): {
colorPreview: RgbColor;
altColorPreview: RgbColor;
};
Returns
_onItemPropertyChanged(sender, propertyName)
Declaration
protected _onItemPropertyChanged(sender: DashedLineItem, propertyName: string): void;
Parameters
Returns
drawItemHandler(itemHandlerCtx)
Declaration
drawItemHandler(itemHandlerCtx: CanvasRenderingContext2D): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
itemHandlerCtx |
|
Returns