DataCanvasTestWorkerUpdate: {
    aspectRatio?: number | null;
    imageId?: number;
    items?: Record<string, DataCanvasItemLocationSet | (DataCanvasItemLocationSet & {
        index: number;
    })[]>;
    snapToGrid?: boolean;
} & VisualTestWorkerUpdate

Type declaration

  • OptionalaspectRatio?: number | null

    Change 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. Use null to unset this value.

  • OptionalimageId?: number

    Change the image used as the background of the data canvas.

  • Optionalitems?: Record<string, DataCanvasItemLocationSet | (DataCanvasItemLocationSet & {
        index: number;
    })[]>

    Change the location and size of items on the canvas. Only tests where the key was provided will be updated. The key of the object corresponds to the scriptId of the test to update. The value of the object is either a single DataCanvasItemLocation or an array of DataCanvasItemLocation objects. If an array is provided, the index property must be included to indicate which index in the array of items to update.

  • OptionalsnapToGrid?: boolean

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