pub fn emit_commands(
cmd_buf: &mut Vec<DrawCommand>,
content_box: (f32, f32, f32, f32),
is_inline: bool,
view_box: ViewBox,
shapes: &[SvgShape],
opacity: f32,
)Expand description
Paints the shapes of an inline SVG into its content box.
Pushes a transform mapping the viewBox rectangle onto the content box
with viewbox_meet_transform (letterboxing when the aspect ratios
differ), emits one Fill per shape in document order, then pops the
transform. The caller must have already pushed the box model:
push_box_model translates block boxes to their content-box origin, and
inline boxes push no transform (so is_inline paints in absolute
coordinates). Paints nothing when the box or viewBox is degenerate.