TrimOptions: {
    color?: string;
    equal?: {
        horizontal?: boolean;
        vertical?: boolean;
    };
    threshold: number;
}

The trim options

Type declaration

  • Optional color?: string

    The (hex-encoded) color to cut off

  • Optional equal?: {
        horizontal?: boolean;
        vertical?: boolean;
    }

    Equalize the horizontal or vertical trimming distance

    • Optional horizontal?: boolean

      If true, equalizes the trimming distance on the horizontal axis

    • Optional vertical?: boolean

      If true, equalizes the trimming distance on the vertical axis

  • threshold: number

    The color similarity tolerance

Generated using TypeDoc