graphic-pixi/lib/graphic/DashedLine.d.ts

40 lines
879 B
TypeScript
Raw Normal View History

2023-12-12 17:31:07 +08:00
import { Container, IPointData, Point } from 'pixi.js';
export interface IDashedLineOptions {
/**
* ,4
*/
length?: number;
/**
* ,0
*/
startSpace?: number;
/**
* ,4
*/
space?: number;
/**
* 线,1
*/
lineWidth?: number;
/**
* 线,
*/
color?: string;
}
interface ICompleteDashedLineOptions extends IDashedLineOptions {
length: number;
startSpace: number;
space: number;
lineWidth: number;
color: string;
}
export declare class DashedLine extends Container {
p1: Point;
p2: Point;
_options: ICompleteDashedLineOptions;
constructor(p1: IPointData, p2: IPointData, options?: IDashedLineOptions);
setOptions(options: IDashedLineOptions): void;
redraw(): void;
}
export {};