DataCanvasTestWorkerGet: {
    aspectRatio?: number;
    image: SingleFile;
    items: Record<string, DataCanvasItemGet>;
    snapToGrid: boolean;
} & VisualTestWorkerGet

Type declaration

  • OptionalaspectRatio?: number

    The aspect ratio to display the image with. If the aspect ratio is not the same as the background image, the image will stretch to fit. If this is undefined, the image's aspect ratio is used.

  • image: SingleFile

    The image used as the background of the data canvas.

  • items: Record<string, DataCanvasItemGet>

    The location and size of items on the canvas. The keys of the object are scriptIds, the value contains a list of item locations, and the test type.

  • snapToGrid: boolean

    Whether to snap the width and location of moved / added tests to a grid.