-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathindex.d.ts
117 lines (105 loc) · 3.88 KB
/
index.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/// <reference path="./global.d.ts" />
import { Container } from '@pixi/display';
import { DisplayObject } from '@pixi/display';
import type { IDestroyOptions } from '@pixi/display';
import { IRenderableObject } from '@pixi/core';
import { IRendererRenderOptions } from '@pixi/core';
import { Rectangle } from '@pixi/math';
import { Renderer } from '@pixi/core';
import { RenderTexture } from '@pixi/core';
import * as utils from '@pixi/utils';
export declare function applyCanvasMixin(canvasRenderClass: any): void;
export declare function applyContainerRenderMixin(CustomRenderContainer: any): void;
export declare function applyDisplayMixin(): void;
export declare function applyParticleMixin(ParticleContainer: any): void;
export declare function applyRendererMixin(rendererClass: typeof Renderer): void;
export declare class Group extends utils.EventEmitter {
static _layerUpdateId: number;
useRenderTexture: boolean;
useDoubleBuffer: boolean;
sortPriority: number;
clearColor: ArrayLike<number>;
canDrawWithoutLayer: boolean;
canDrawInParentStage: boolean;
zIndex: number;
enableSort: boolean;
private _activeLayer;
private _activeStage;
_activeChildren: Array<DisplayObject>;
private _lastUpdateId;
constructor(zIndex: number, sorting: boolean | ((displayObject: DisplayObject) => void));
doSort(layer: Layer, sorted: Array<DisplayObject>): void;
private static compareZIndex;
private clear;
_resolveChildDisplayObject(stage: Stage, displayObject: DisplayObject): void;
_resolveLayer(stage: Stage, layer: Layer): void;
private check;
private static _lastLayerConflict;
private static conflict;
}
export declare interface ILayeredRenderer {
_lastDisplayOrder: number;
_activeLayer: Layer;
incDisplayOrder(): number;
_oldRender(displayObject: IRenderableObject, options?: IRendererRenderOptions): void;
}
export declare class Layer extends Container {
readonly isLayer = true;
group: Group;
textureCache: LayerTextureCache;
_activeChildren: Array<DisplayObject>;
_tempChildren: Array<DisplayObject>;
_activeStageParent: Stage;
_sortedChildren: Array<DisplayObject>;
_tempLayerParent: Layer;
insertChildrenBeforeActive: boolean;
insertChildrenAfterActive: boolean;
constructor(group?: Group);
get useRenderTexture(): boolean;
set useRenderTexture(value: boolean);
get useDoubleBuffer(): boolean;
set useDoubleBuffer(value: boolean);
get clearColor(): ArrayLike<number>;
set clearColor(value: ArrayLike<number>);
get sortPriority(): number;
set sortPriority(value: number);
getRenderTexture(): RenderTexture;
doSort(): void;
destroy(options?: IDestroyOptions): void;
render(renderer: Renderer): void;
renderCanvas(renderer: ILayeredRenderer): void;
_onBeginLayerSubtreeTraversal(stage: Stage): void;
_onEndLayerSubtreeTraversal(): void;
protected prerender(renderer: ILayeredRenderer): boolean;
protected postrender(renderer: ILayeredRenderer): void;
}
export declare class LayerTextureCache {
layer: Layer;
constructor(layer: Layer);
private renderTexture;
private doubleBuffer;
private currentBufferIndex;
_tempRenderTarget: RenderTexture;
_tempRenderTargetSource: Rectangle;
_tempRenderTargetDestination: Rectangle;
private init;
getRenderTexture(): RenderTexture;
pushTexture(renderer: Renderer): void;
popTexture(renderer: Renderer): void;
destroy(): void;
}
export declare class Stage extends Layer {
static _updateOrderCounter: number;
readonly isStage = true;
_tempGroups: Array<DisplayObject>;
_activeLayers: Array<Layer>;
_activeParentStage: Stage;
clear(): void;
destroy(options?: any): void;
updateStage(): void;
private updateAsChildStage;
private _updateStageInner;
private _addRecursive;
private _addRecursiveChildren;
}
export { }