Function: resolveAgainst()
resolveAgainst(
baseUri,ref):string
Defined in: packages/react-native-spritestudio/src/core/assets.ts:57
Resolves ref — a name a pack carries — against the URI the pack came from.
The one place a name a pack carries becomes something openable, whether it names a texture, an Instance part's external .ssab or a .ssqb's ref_anime_pack.
Deliberately string surgery rather than new URL: baseUri is an asset-relative path, a filesystem path or a URL depending on where the .ssab came from, and the join is the same operation for all three. A ?query on the base belongs to the .ssab and not to its directory, so it goes.
Parameters
baseUri
string
ref
string
Returns
string