Currently this only supports setting the clipping path on the viewport.

style_to_viewport(style, transform, state)

Arguments

style

named list of style properties

transform

transform matrix of element being clipped

state

state information

Value

viewport object

Details

Masks would also be set here, but I don't have any good examples to debug with, so leaving this for now.