Draws the fill of an annotation; the canvas is already clipped to the annotation shape.
The canvas context being drawn on.
Transform from page coordinates to canvas coordinates.
Rotation of the page.
{ annotation, originalDraw, originalDrawWithoutFill, clipToShape }: the annotation, a function drawing its original appearance (once), a function asking for the original appearance to be drawn with no fill after the handler returns (so the border goes over the custom fill), and a function clipping to the shape again.
OptionalappliesAnnotation types the style applies to: 'all' (default), 'rectangle', 'ellipse' or 'polygon'.
OptionalclipWhen true, drawing is clipped with clipToShapeFn instead of the built-in clipping to the annotation shape; false by default.
OptionalclipClips the canvas to the annotation shape; required when clipToShape is true.
The canvas context being drawn on.
The annotation being drawn.
Unique key of the style; an annotation uses the style when its FillStyle property is set to this key. 'solid' is reserved. Registering the same key again replaces the style.
OptionalsvgSVG preview of the style. Kept with the style; it is not shown (there is no fill style dropdown).
OptionaltitleDisplay name of the style; defaults to the key. Kept with the style; it is not shown (there is no fill style dropdown).
Options of UI.registerCustomFillStyle.