@pixi/assets
Advanced tools
Comparing version 7.3.2 to 7.3.3
@@ -8,3 +8,3 @@ import { Cache } from './cache/Cache'; | ||
import type { ArrayOr, AssetsBundle, AssetsManifest, LoadParserName, ResolvedAsset, UnresolvedAsset } from './types'; | ||
export declare type ProgressCallback = (progress: number) => void; | ||
export type ProgressCallback = (progress: number) => void; | ||
/** | ||
@@ -193,3 +193,3 @@ * Extensible preferences that can be used, for instance, when configuring loaders. | ||
* | ||
* await Asset.init({ manifest }); | ||
* await Assets.init({ manifest }); | ||
* | ||
@@ -363,3 +363,3 @@ * // Load a bundle... | ||
* | ||
* await Asset.init({ manifest }); | ||
* await Assets.init({ manifest }); | ||
* | ||
@@ -366,0 +366,0 @@ * // Load a bundle... |
@@ -18,3 +18,3 @@ "use strict"; | ||
if (this._initialized) { | ||
console.warn("[Assets]AssetManager already initialized, did you load before calling this Asset.init()?"); | ||
console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?"); | ||
return; | ||
@@ -110,3 +110,3 @@ } | ||
* | ||
* await Asset.init({ manifest }); | ||
* await Assets.init({ manifest }); | ||
* | ||
@@ -113,0 +113,0 @@ * // Load a bundle... |
@@ -1,2 +0,1 @@ | ||
/// <reference types="css-font-loading-module" /> | ||
import type { LoaderParser } from './LoaderParser'; | ||
@@ -7,3 +6,3 @@ /** | ||
*/ | ||
export declare type LoadFontData = { | ||
export type LoadFontData = { | ||
family: string; | ||
@@ -10,0 +9,0 @@ display: string; |
@@ -7,3 +7,3 @@ import type { AssetsBundle, AssetsManifest, ResolvedAsset, UnresolvedAsset, UnresolvedAssetObject } from './types'; | ||
*/ | ||
export declare type ResolveAsset<T = any> = ResolvedAsset<T>; | ||
export type ResolveAsset<T = any> = ResolvedAsset<T>; | ||
/** | ||
@@ -14,3 +14,3 @@ * Please use `ResolvedAsset` instead. | ||
*/ | ||
export declare type LoadAsset<T = any> = ResolvedAsset<T>; | ||
export type LoadAsset<T = any> = ResolvedAsset<T>; | ||
/** | ||
@@ -21,3 +21,3 @@ * Please use `AssetsBundle` instead. | ||
*/ | ||
export declare type ResolverBundle = AssetsBundle; | ||
export type ResolverBundle = AssetsBundle; | ||
/** | ||
@@ -28,3 +28,3 @@ * Please use `AssetsManifest` instead. | ||
*/ | ||
export declare type ResolverManifest = AssetsManifest; | ||
export type ResolverManifest = AssetsManifest; | ||
/** | ||
@@ -35,3 +35,3 @@ * Please use `UnresolvedAsset[]` instead. | ||
*/ | ||
export declare type ResolverAssetsArray = UnresolvedAsset[]; | ||
export type ResolverAssetsArray = UnresolvedAsset[]; | ||
/** | ||
@@ -42,2 +42,2 @@ * Please use `UnresolvedAssetObject` instead. | ||
*/ | ||
export declare type ResolverAssetsObject = UnresolvedAssetObject; | ||
export type ResolverAssetsObject = UnresolvedAssetObject; |
@@ -1,2 +0,2 @@ | ||
export declare type ArrayOr<T> = T | T[]; | ||
export type ArrayOr<T> = T | T[]; | ||
/** | ||
@@ -6,3 +6,3 @@ * Names of the parsers that are built into PIXI. | ||
*/ | ||
export declare type LoadParserName = 'loadJson' | 'loadSVG' | 'loadTextures' | 'loadTxt' | 'loadVideo' | 'loadWebFont' | string; | ||
export type LoadParserName = 'loadJson' | 'loadSVG' | 'loadTextures' | 'loadTxt' | 'loadVideo' | 'loadWebFont' | string; | ||
/** | ||
@@ -40,6 +40,6 @@ * A fully resolved asset, with all the information needed to load it. | ||
*/ | ||
export declare type ResolvedSrc = Pick<ResolvedAsset, 'src' | 'srcs' | 'format' | 'loadParser' | 'data'> & { | ||
export type ResolvedSrc = Pick<ResolvedAsset, 'src' | 'srcs' | 'format' | 'loadParser' | 'data'> & { | ||
[key: string]: any; | ||
}; | ||
export declare type AssetSrc = ArrayOr<string> | ArrayOr<ResolvedSrc>; | ||
export type AssetSrc = ArrayOr<string> | ArrayOr<ResolvedSrc>; | ||
/** | ||
@@ -69,3 +69,3 @@ * An asset that has not been resolved yet. | ||
*/ | ||
export declare type UnresolvedAssetObject = Omit<UnresolvedAsset, 'name' | 'alias'>; | ||
export type UnresolvedAssetObject = Omit<UnresolvedAsset, 'name' | 'alias'>; | ||
/** | ||
@@ -72,0 +72,0 @@ * Structure of a bundle found in a manifest file |
{ | ||
"name": "@pixi/assets", | ||
"version": "7.3.2", | ||
"version": "7.3.3", | ||
"description": "Asset manager for PixiJS, loading resolving and Cacheing", | ||
@@ -47,8 +47,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@types/css-font-loading-module": "^0.0.7" | ||
"@types/css-font-loading-module": "^0.0.12" | ||
}, | ||
"peerDependencies": { | ||
"@pixi/core": "7.3.2", | ||
"@pixi/utils": "7.3.2" | ||
"@pixi/core": "7.3.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
512504
4943
+ Added@pixi/color@7.3.3(transitive)
+ Added@pixi/constants@7.3.3(transitive)
+ Added@pixi/core@7.3.3(transitive)
+ Added@pixi/extensions@7.3.3(transitive)
+ Added@pixi/math@7.3.3(transitive)
+ Added@pixi/runner@7.3.3(transitive)
+ Added@pixi/settings@7.3.3(transitive)
+ Added@pixi/ticker@7.3.3(transitive)
+ Added@pixi/utils@7.3.3(transitive)
+ Added@types/css-font-loading-module@0.0.12(transitive)
- Removed@pixi/color@7.3.2(transitive)
- Removed@pixi/constants@7.3.2(transitive)
- Removed@pixi/core@7.3.2(transitive)
- Removed@pixi/extensions@7.3.2(transitive)
- Removed@pixi/math@7.3.2(transitive)
- Removed@pixi/runner@7.3.2(transitive)
- Removed@pixi/settings@7.3.2(transitive)
- Removed@pixi/ticker@7.3.2(transitive)
- Removed@pixi/utils@7.3.2(transitive)
- Removed@types/css-font-loading-module@0.0.7(transitive)