Type alias FillStyle

FillStyle: "solid" | "dotted" | "hashed" | "crosshatched" | {
    dotSize?: number;
    tileSize?: number;
    type?: "dotted";
    [k: string]: unknown;
} | {
    hashDirection?: "vertical" | "horizontal" | "increasing" | "decreasing";
    thickness?: number;
    type?: "hashed";
    [k: string]: unknown;
} | {
    hatchingDirection?: "vertical" | "diagonal";
    thickness?: number;
    type?: "crosshatched";
    [k: string]: unknown;
}

Fill pattern of a shape

Type declaration

  • [k: string]: unknown
  • Optional dotSize?: number

    Size of the dots in pixels

  • Optional tileSize?: number

    Pixels per dot in both horizontal and vertical directions

  • Optional type?: "dotted"

Type declaration

  • [k: string]: unknown
  • Optional hashDirection?: "vertical" | "horizontal" | "increasing" | "decreasing"
  • Optional thickness?: number
  • Optional type?: "hashed"

Type declaration

  • [k: string]: unknown
  • Optional hatchingDirection?: "vertical" | "diagonal"
  • Optional thickness?: number
  • Optional type?: "crosshatched"

Generated using TypeDoc