UNPKG

@leafer-ui/display

Version:
20 lines (12 loc) 535 B
import { dataProcessor, affectStrokeBoundsType, registerUI } from '@leafer/core' import { IPath, IPathData, IPathInputData, IStrokeAlign } from '@leafer-ui/interface' import { PathData } from '@leafer-ui/data' import { UI } from './UI' @registerUI() export class Path<TInputData = IPathInputData> extends UI<TInputData> implements IPath { public get __tag() { return 'Path' } @dataProcessor(PathData) declare public __: IPathData @affectStrokeBoundsType('center') declare public strokeAlign?: IStrokeAlign }