Skip to content
Shapemetry

@huukhanhnguyen/types / evaluate/assetFile

evaluate/assetFile

AssetFile

AssetFile = { name: string; url: string; }

One entry of a scope's COMPUTED asset views (ModelScope.fonts / ModelScope.images): a url-method parameter, reduced to the pair every consumer of it needs. name is the parameter's KEY — what a reference names (a textCurve font arg, a sheet's imageEntity, a pattern chain's image source); url is the parameter's literal url (https:/data:), where the Store pre-loads the bytes from in the async phase. Neither view is a document lane: both are derived from the parameters lane by assetTypeOf, so both are always current.

One { name, url } type for both views. What distinguishes a font entry from an image entry is which view it came out of.

name

name: string

url

url: string

Last updated: 📖 1 min readEdit on GitHub