Skip to content

Commit

Permalink
Chore: Remove unused Assets.init options (#8903)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Dec 12, 2022
1 parent 20dba24 commit bc0a0f4
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions packages/assets/src/Assets.ts
@@ -1,17 +1,14 @@
import { extensions, ExtensionType } from '@pixi/core';
import { BackgroundLoader } from './BackgroundLoader';
import { Cache } from './cache/Cache';
import type { FormatDetectionParser } from './detections';
import type {
LoadAsset,
LoaderParser
} from './loader';
import { Loader } from './loader/Loader';
import type { PreferOrder, ResolveAsset, ResolverBundle, ResolverManifest, ResolveURLParser } from './resolver';
import { Resolver } from './resolver/Resolver';
import { convertToList } from './utils/convertToList';
import { isSingleItem } from './utils/isSingleItem';

import type { FormatDetectionParser } from './detections';
import type { LoadAsset, LoaderParser } from './loader';
import type { ResolveAsset, ResolverBundle, ResolverManifest } from './resolver';
export type ProgressCallback = (progress: number) => void;

/**
Expand Down Expand Up @@ -47,21 +44,6 @@ export interface AssetInitOptions
parsers?: LoaderParser[];
// more...
};
/** resolver specific options */
resolver?: {
/**
* a list of urlParsers, these can read the URL and pick put the various options.
* for example there is a texture URL parser that picks our resolution and file format.
* You can add custom ways to read URLs and extract information here.
*/
urlParsers?: ResolveURLParser[];
/**
* a list of preferOrders that let the resolver know which asset to pick.
* already built-in we have a texture preferOrders that let the resolve know which asset to prefer
* if it has multiple assets to pick from (resolution/formats etc)
*/
preferOrders?: PreferOrder[];
};
}

/**
Expand Down

0 comments on commit bc0a0f4

Please sign in to comment.