openpencil/crates/op-web-sdk
Kayshen-X a13d2adc53 fix(sdk): export set_viewport/zoom_to_fit/forward_wheel to wasm
These nav methods were in plain impl blocks, so wasm-bindgen never exported
them — the generated .d.ts (and the JS surface) lacked the spec's primary
navigation API. Move set_viewport/zoom_to_fit into a #[wasm_bindgen] impl and
mark the canvaskit forward_wheel impl #[wasm_bindgen]; keep the tuple
viewport() and pub(crate) push_viewport internal. Verified in the regenerated
.d.ts: set_viewport/zoom_to_fit/forward_wheel now exported.
2026-06-19 17:58:33 +08:00
..
smoke
src fix(sdk): export set_viewport/zoom_to_fit/forward_wheel to wasm 2026-06-19 17:58:33 +08:00
tools
.gitignore
Cargo.toml