Skip to main content

Crate neco_view2d_svg_wasm

Crate neco_view2d_svg_wasm 

Source
Expand description

WebAssembly bindings for neco-view2d-svg via wasm-bindgen.

Functionsยง

emit_path
Emit an SVG path d attribute from a flat [x0, y0, x1, y1, ...] array of world coordinates.
emit_polyline
Emit an SVG polyline points attribute from a flat [x0, y0, x1, y1, ...] array of world coordinates.
emit_transform
Emit an SVG transform attribute value for the given view and canvas size.