Back to Website
Show / Hide Table of Contents

Class DashedLineItemHandler

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

Constructors

(constructor)(item, textWhizz, colorPreviewService)

Constructs a new instance of the DashedLineItemHandler class

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

Properties

altColor

Declaration
get altColor(): Color;

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

altDashWidth

Declaration
get altDashWidth(): number;

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

dashWidth

Declaration
get dashWidth(): number;

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

item

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

Methods

_getColors()

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

_getItemColorPreviews()

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

_onItemPropertyChanged(sender, propertyName)

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

drawItemHandler(itemHandlerCtx)

Declaration
drawItemHandler(itemHandlerCtx: CanvasRenderingContext2D): void;
Parameters
Type Name Description
CanvasRenderingContext2D itemHandlerCtx
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