-
Notifications
You must be signed in to change notification settings - Fork 57
/
global.d.ts
59 lines (49 loc) · 1.73 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
declare namespace GlobalMixins {
export interface Container {
containerRenderWebGL?(renderer: import('@pixi/core').Renderer): void;
containerRenderCanvas?(renderer: import('@pixi/layers').ILayeredRenderer): void;
}
export interface DisplayObjectEvents {
display: [import('@pixi/display').DisplayObject];
}
export interface DisplayObject {
parentGroup?: import('@pixi/layers').Group,
/**
* Object will be rendered
*
* please specify it to handle zOrder and zIndex
*
* its always null for layers
*
*/
parentLayer?: import('@pixi/layers').Layer,
_activeParentLayer?: import('@pixi/layers').Layer,
/**
* zOrder is used to sort element inside the layer
* It can be used with zIndex together: First PixiJS v5 sorts elements by zIndex inside a container,
* then pixi-layers plugin sorts by zOrder inside a layer.
*/
zOrder?: number,
/**
* updateOrder is calculated by DisplayList, it is required for sorting inside DisplayGroup
*/
updateOrder?: number,
/**
* displayOrder is calculated by render, it is required for interaction
*/
displayOrder?: number,
/**
* Stage will look inside for elements that can be re-arranged, if this flag is true
* Make it false for ParticleContainer
*/
layerableChildren?: boolean
/**
* is Layer
*/
isLayer?: boolean;
}
// need TextureSystem in pixi mixins
// interface TextureSystem {
// bindForceLocation(texture: import('@pixi/core').BaseTexture, location: number): void;
// }
}