‘liusuyi’
2023-08-09 161b9318e345c8a0c9cdc133b33a1c759495f323
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
 * Line path for bezier and straight line draw
 */
import * as graphic from '../../util/graphic.js';
import { PathProps } from 'zrender/lib/graphic/Path.js';
declare class StraightLineShape {
    x1: number;
    y1: number;
    x2: number;
    y2: number;
    percent: number;
}
declare class CurveShape extends StraightLineShape {
    cpx1: number;
    cpy1: number;
}
interface ECLineProps extends PathProps {
    shape?: Partial<StraightLineShape | CurveShape>;
}
declare class ECLinePath extends graphic.Path<ECLineProps> {
    type: string;
    shape: StraightLineShape | CurveShape;
    constructor(opts?: ECLineProps);
    getDefaultStyle(): {
        stroke: string;
        fill: string;
    };
    getDefaultShape(): StraightLineShape;
    buildPath(ctx: CanvasRenderingContext2D, shape: StraightLineShape | CurveShape): void;
    pointAt(t: number): number[];
    tangentAt(t: number): number[];
}
export default ECLinePath;