Skip to main content

parse_clip_shape

Function parse_clip_shape 

Source
pub fn parse_clip_shape(css: &str, w: i32, h: i32) -> Option<ClipShape>
Expand description

Parse CSS clip-path value into pixel coordinates relative to the element. w and h are the element’s rendered width and height in pixels.