Contents

size

The desired dimensions of the annotation, in CSS pixels.

Declaration

get size(): Size | undefined;
set size(value: Size);

Discussion

If supplied, indicates the desired size of the annotation in CSS pixels. The value must be an object with width and height number properties:

{
    size: { width: 32, height: 39 }
}

See Also

Getting and setting annotation appearance