Interface IMarkupRectangleParams

Defines the parameters for creating a markup rectangle.

interface IMarkupRectangleParams {
    color?: string;
    height?: number;
    id?: string;
    lineWidth?: number;
    position?: { x: number; y: number };
    position2?: { x: number; y: number };
    width?: number;
}

Properties

color?: string

Line color as a string in hexadecimal color syntax #RGB color using its primary color components (red, green, blue) written as hexadecimal numbers.

"#ff0000"
height?: number

Height of the rectangle. Ignored if position2 is defined.

200
id?: string

Internal markup object identifier.

lineWidth?: number

Line width.

4
position?: { x: number; y: number }

Screen coordinates of the top-left point (position) of the rectangle.

position2?: { x: number; y: number }

Screen coordinates of the bottom-right point (position) of the rectangle.

width?: number

Width of the rectangle. Ignored if position2 is defined.

200