1 | import { Syringe } from 'mana-syringe';
|
2 | import { SyncHook, SyncWaterfallHook, AsyncParallelHook, AsyncSeriesWaterfallHook } from 'tapable';
|
3 | import type { DisplayObject } from '../display-objects';
|
4 | import type { CanvasConfig, EventPosition, InteractivePointerEvent } from '../types';
|
5 | export interface RenderingPlugin {
|
6 | apply: (renderer: RenderingService) => void;
|
7 | }
|
8 | export declare const RenderingPluginContribution: Syringe.DefinedToken;
|
9 | export interface PickingResult {
|
10 | |
11 |
|
12 |
|
13 | position: EventPosition;
|
14 | picked: DisplayObject[];
|
15 | |
16 |
|
17 |
|
18 | topmost?: boolean;
|
19 | }
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | export declare class RenderingService {
|
30 | private renderingPluginProvider;
|
31 | private renderingContext;
|
32 | private sceneGraphService;
|
33 | private styleValueRegistry;
|
34 | private inited;
|
35 | private stats;
|
36 | private zIndexCounter;
|
37 | hooks: {
|
38 | |
39 |
|
40 |
|
41 | init: AsyncParallelHook<[], import("tapable").UnsetAdditionalOptions>;
|
42 | |
43 |
|
44 |
|
45 | dirtycheck: SyncWaterfallHook<[DisplayObject<any, any>], import("tapable").UnsetAdditionalOptions>;
|
46 | |
47 |
|
48 |
|
49 | cull: SyncWaterfallHook<[DisplayObject<any, any>], import("tapable").UnsetAdditionalOptions>;
|
50 | |
51 |
|
52 |
|
53 | beginFrame: SyncHook<[], void, import("tapable").UnsetAdditionalOptions>;
|
54 | |
55 |
|
56 |
|
57 | beforeRender: SyncHook<[DisplayObject<any, any>], void, import("tapable").UnsetAdditionalOptions>;
|
58 | |
59 |
|
60 |
|
61 | render: SyncHook<[DisplayObject<any, any>], void, import("tapable").UnsetAdditionalOptions>;
|
62 | |
63 |
|
64 |
|
65 | afterRender: SyncHook<[DisplayObject<any, any>], void, import("tapable").UnsetAdditionalOptions>;
|
66 | endFrame: SyncHook<[], void, import("tapable").UnsetAdditionalOptions>;
|
67 | destroy: SyncHook<[], void, import("tapable").UnsetAdditionalOptions>;
|
68 | |
69 |
|
70 |
|
71 | pick: AsyncSeriesWaterfallHook<[PickingResult], PickingResult>;
|
72 | |
73 |
|
74 |
|
75 | pointerDown: SyncHook<[InteractivePointerEvent], void, import("tapable").UnsetAdditionalOptions>;
|
76 | pointerUp: SyncHook<[InteractivePointerEvent], void, import("tapable").UnsetAdditionalOptions>;
|
77 | pointerMove: SyncHook<[InteractivePointerEvent], void, import("tapable").UnsetAdditionalOptions>;
|
78 | pointerOut: SyncHook<[InteractivePointerEvent], void, import("tapable").UnsetAdditionalOptions>;
|
79 | pointerOver: SyncHook<[InteractivePointerEvent], void, import("tapable").UnsetAdditionalOptions>;
|
80 | pointerWheel: SyncHook<[InteractivePointerEvent], void, import("tapable").UnsetAdditionalOptions>;
|
81 | pointerCancel: SyncHook<[InteractivePointerEvent], void, import("tapable").UnsetAdditionalOptions>;
|
82 | };
|
83 | init(): Promise<void>;
|
84 | getStats(): {
|
85 | |
86 |
|
87 |
|
88 | total: number;
|
89 | |
90 |
|
91 |
|
92 | rendered: number;
|
93 | |
94 |
|
95 |
|
96 | renderedOnscreen: number;
|
97 | };
|
98 | render(canvasConfig: Partial<CanvasConfig>): void;
|
99 | private renderDisplayObject;
|
100 | destroy(): void;
|
101 | dirtify(): void;
|
102 | }
|