Lines Matching refs:asset
4 function getScaledAssetPath(asset) { argument
5 const scale = AssetSourceResolver.pickScale(asset.scales, PixelRatio.get());
7 const type = !asset.type ? '' : `.${asset.type}`;
9 return asset.httpServerLocation + '/' + asset.name + scaleSuffix + type;
12 … return asset.httpServerLocation.replace(/\.\.\//g, '_') + '/' + asset.name + scaleSuffix + type;
21 asset; field in AssetSourceResolver
22 constructor(serverUrl, jsbundleUrl, asset) { argument
25 this.asset = asset;
42 const fromUrl = new URL(getScaledAssetPath(this.asset), this.serverUrl);
44 fromUrl.searchParams.set('hash', this.asset.hash);
52 width: this.asset.width ?? undefined,
53 height: this.asset.height ?? undefined,
55 scale: AssetSourceResolver.pickScale(this.asset.scales, PixelRatio.get()),