pub fn js_restyle_element(&self) -> js_sys::Promise {
        let renderer = self.renderer.clone();
        let session = self.session.clone();
        promisify_ignore_view_delete(async move {
            let view = session.get_view().into_jserror()?;
            let plugins = renderer.get_all_plugins();
            let tasks = plugins.iter().map(|plugin| plugin.restyle(&view));

            join_all(tasks)
                .await
                .into_iter()
                .collect::<Result<Vec<_>, _>>()
                .map(|_| JsValue::UNDEFINED)
        })
    }
/// Restyle all plugins from current document.
Restyle all plugins from current document.
Restyle all plugins from current document .
pub fn js_restyle_element(&self) -> js_sys::Promise {
        let renderer = self.renderer.clone();
        let session = self.session.clone();
        promisify_ignore_view_delete(async move {
            let view = session.get_view().into_jserror()?;
            let plugins = renderer.get_all_plugins();
            let tasks = plugins.iter().map(|plugin| plugin.restyle(&view));
            join_all(tasks)
                .await
                .into_iter()
                .collect::<Result<Vec<_>, _>>()
                .map(|_| JsValue::UNDEFINED)
        })
    }
pub fn js_restyle_element ( & self ) -> js_sys :: Promise { let renderer = self . renderer . clone ( ) ; let session = self . session . clone ( ) ; promisify_ignore_view_delete ( async move { let view = session . get_view ( ) . into_jserror ( ) ? ; let plugins = renderer . get_all_plugins ( ) ; let tasks = plugins . iter ( ) . map ( | plugin | plugin . restyle ( & view ) ) ; join_all ( tasks ) . await . into_iter ( ) . collect :: < Result < Vec < _ > , _ > > ( ) . map ( | _ | JsValue :: UNDEFINED ) } ) }
Restyle all plugins from current document.
Restyle all plugins from current document .
&self
&self