interface DrawConfig {
    bezier: {
        color: string;
        controlVertex: DrawSettings;
        handleLine: DrawSettings;
        lineWidth: number;
        pathVertex: DrawSettings;
    };
    circle: DrawSettings;
    circleSector: DrawSettings;
    drawBezierHandleLines?: boolean;
    drawBezierHandlePoints?: boolean;
    drawGrid: boolean;
    drawHandleLines: boolean;
    drawHandlePoints: boolean;
    drawRaster: boolean;
    drawVertices: boolean;
    ellipse: DrawSettings;
    ellipseSector: DrawSettings;
    image: DrawSettings;
    line: DrawSettings;
    origin: {
        color: string;
    };
    polygon: DrawSettings;
    selectedVertex: DrawSettings;
    text: {
        anchor?: boolean;
        color: string;
        fill?: boolean;
        lineWidth: number;
    };
    triangle: DrawSettings;
    vector: DrawSettings;
    vertex: DrawSettings;
}

Properties

bezier: {
    color: string;
    controlVertex: DrawSettings;
    handleLine: DrawSettings;
    lineWidth: number;
    pathVertex: DrawSettings;
}

Type declaration

circle: DrawSettings
circleSector: DrawSettings
drawBezierHandleLines?: boolean
drawBezierHandlePoints?: boolean
drawGrid: boolean
drawHandleLines: boolean
drawHandlePoints: boolean
drawRaster: boolean
drawVertices: boolean
ellipse: DrawSettings
ellipseSector: DrawSettings
origin: {
    color: string;
}

Type declaration

  • color: string
polygon: DrawSettings
selectedVertex: DrawSettings
text: {
    anchor?: boolean;
    color: string;
    fill?: boolean;
    lineWidth: number;
}

Type declaration

  • Optional anchor?: boolean
  • color: string
  • Optional fill?: boolean
  • lineWidth: number
triangle: DrawSettings
vector: DrawSettings
vertex: DrawSettings