Type Alias TypstBrowserUniverse

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

A universe that provides access to the browser.

Aliased Type§

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

Fields§

§features: Features

The features enabled for the compiler.

§font_resolver: Arc<FontResolverImpl>

The font resolver for the compiler.

§registry: Arc<JsRegistry>

The package registry for the compiler.

§revision: NonZero<usize>

The current revision of the universe.

The revision is incremented when the universe is mutated.

§creation_timestamp: Option<i64>

The creation timestamp for reproducible builds.

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

Creates a new browser universe.