@leafer-in/arrow
Version:
28 lines (19 loc) • 730 B
text/typescript
import { IArrow, IArrowData, IArrowInputData, IArrowStyle, IPathDataArrow } from '@leafer-ui/interface'
import { Line, registerUI, dataProcessor, PathArrow } from '@leafer-ui/draw'
import { ArrowData } from './data/ArrowData'
import { arrowType } from './decorator'
()
export class Arrow extends Line implements IArrow {
public get __tag() { return 'Arrow' }
(ArrowData)
declare public __: IArrowData
('angle')
declare public endArrow?: IArrowStyle
constructor(data?: IArrowInputData) {
super(data)
this.__.__useArrow = true
}
static registerArrow(name: string, data: IPathDataArrow): void {
PathArrow.register(name, data)
}
}