tinymist_world

Type Alias TypstBrowserUniverse

Source
pub type TypstBrowserUniverse = CompilerUniverse<BrowserCompilerFeat>;
Expand description

A world that provides access to the browser. It is under development.

Aliased Type§

struct TypstBrowserUniverse {
    pub features: Features,
    pub font_resolver: Arc<FontResolverImpl>,
    pub registry: Arc<JsRegistry>,
    pub revision: NonZero<usize>,
    /* private fields */
}

Fields§

§features: Features

Features enabled for the compiler.

§font_resolver: Arc<FontResolverImpl>

Provides font management for typst compiler.

§registry: Arc<JsRegistry>

Provides package management for typst compiler.

§revision: NonZero<usize>

The current revision of the universe.

Implementations§

Source§

impl TypstBrowserUniverse

Source

pub fn new( root_dir: PathBuf, inputs: Option<Arc<LazyHash<TypstDict>>>, access_model: ProxyAccessModel, registry: JsRegistry, font_resolver: FontResolverImpl, ) -> Self