set_zoom_factor

Function set_zoom_factor 

Source
pub fn set_zoom_factor(
    state: &Arc<AppState>,
    args: &Value,
) -> Result<Value, String>
Expand description

Set the zoom factor. CEF zoom uses a logarithmic scale: zoom_level = log2(zoom_factor) So factor 1.0 = level 0, factor 2.0 = level 1, factor 0.5 = level -1