Skip to main content

canvas_restore

Function canvas_restore 

Source
pub fn canvas_restore(
    _it: &mut Interp,
    this: Value,
    _a: &[Value],
) -> Result<Value, Value>
Expand description

restore() — 直近の退避状態へ戻す。

変換だけでなく fillStyle 等も戻すのが仕様だが、それらは JS の素の プロパティなので、Rust 側で戻した値を JS へ書き戻す必要がある。