File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ export {
4848 CoreTextureManager ,
4949 type TextureMap ,
5050} from '../src/core/CoreTextureManager.js' ;
51+ export {
52+ TextureError ,
53+ TextureErrorCode ,
54+ isTextureError ,
55+ } from '../src/core/TextureError.js' ;
5156export type { MemoryInfo } from '../src/core/TextureMemoryManager.js' ;
5257export type { AnimationSettings } from '../src/core/animations/CoreAnimation.js' ;
5358export type { TimingFunction } from '../src/core/utils.js' ;
Original file line number Diff line number Diff line change 1818 */
1919
2020import type { CoreNodeRenderState } from '../core/CoreNode.js' ;
21+ import type { TextureError } from '../core/TextureError.js' ;
2122
2223/**
2324 * Types shared between Main Space and Core Space
@@ -71,7 +72,7 @@ export type NodeTextFailedPayload = {
7172 */
7273export type NodeTextureFailedPayload = {
7374 type : 'texture' ;
74- error : Error ;
75+ error : TextureError ;
7576} ;
7677
7778/**
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ export abstract class Texture extends EventEmitter {
155155 * `null`.
156156 */
157157 private _dimensions : Dimensions | null = null ;
158- private _error : Error | null = null ;
158+ private _error : TextureError | null = null ;
159159
160160 // aggregate state
161161 public state : TextureState = 'initial' ;
You can’t perform that action at this time.
0 commit comments