UNPKG

@aurigma/design-atoms

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

23 lines (22 loc) 1.11 kB
import { LineItemHandler } from "./LineItemHandler"; import { DashedLineItem } from "@aurigma/design-atoms-model/Product/Items/DashedLineItem"; import { Color, RgbColor } from "@aurigma/design-atoms-model/Colors"; import * as TextWhizz from "@aurigma/text-whizz/TextWhizzJS"; import { IListenableColorPreviewService } from "../Services/IColorPreviewService"; export declare class DashedLineItemHandler extends LineItemHandler { constructor(item: DashedLineItem, textWhizz: typeof TextWhizz, colorPreviewService: IListenableColorPreviewService); get item(): DashedLineItem; get dashWidth(): number; set dashWidth(value: number); get altDashWidth(): number; set altDashWidth(value: number); get altColor(): Color; set altColor(value: Color); drawItemHandler(itemHandlerCtx: CanvasRenderingContext2D): void; protected _getColors(): Color[]; protected _getItemColorPreviews(): { colorPreview: RgbColor; altColorPreview: RgbColor; }; protected _onItemPropertyChanged(sender: DashedLineItem, propertyName: string): void; }