@galacean/effects-core 2.10.0-alpha.3 → 2.10.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +0 -2
- package/dist/composition.d.ts +1 -3
- package/dist/engine.d.ts +5 -5
- package/dist/index.d.ts +0 -1
- package/dist/index.js +752 -2304
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +753 -2297
- package/dist/index.mjs.map +1 -1
- package/dist/input/enums.d.ts +0 -40
- package/dist/input/input-event.d.ts +4 -3
- package/dist/plugin-system.d.ts +1 -0
- package/dist/plugins/interact/event-system.d.ts +31 -2
- package/dist/plugins/plugin.d.ts +7 -0
- package/dist/render/graphics.d.ts +53 -11
- package/dist/render/text-cache.d.ts +2 -2
- package/package.json +1 -1
- package/dist/components/ui-canvas.d.ts +0 -28
- package/dist/components/ui-control.d.ts +0 -38
- package/dist/gui/control.d.ts +0 -189
- package/dist/gui/index.d.ts +0 -2
- package/dist/gui/roots.d.ts +0 -79
package/dist/gui/roots.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { Vector2 } from '@galacean/effects-math/es/core/vector2';
|
|
2
|
-
import type { UICanvas } from '../components/ui-canvas';
|
|
3
|
-
import type { Engine } from '../engine';
|
|
4
|
-
import type { InputEvent } from '../input';
|
|
5
|
-
import type { Control } from './control';
|
|
6
|
-
import { ContainerControl, RootControl } from './control';
|
|
7
|
-
/** CanvasLayer-like boundary for a single UICanvas GUI tree. */
|
|
8
|
-
export declare class CanvasRootControl extends ContainerControl {
|
|
9
|
-
readonly canvas: UICanvas;
|
|
10
|
-
constructor(engine: Engine, canvas: UICanvas);
|
|
11
|
-
get inputDisabled(): boolean;
|
|
12
|
-
}
|
|
13
|
-
/** Global ordered collection of UICanvas roots. */
|
|
14
|
-
export declare class CanvasContainer extends ContainerControl {
|
|
15
|
-
constructor(engine: Engine);
|
|
16
|
-
sortCanvases(): void;
|
|
17
|
-
addChildInternal(child: Control): void;
|
|
18
|
-
draw(): void;
|
|
19
|
-
}
|
|
20
|
-
/** Engine window GUI root. Routes events across all UICanvas roots. */
|
|
21
|
-
export declare class WindowRootControl extends RootControl {
|
|
22
|
-
readonly canvases: CanvasContainer;
|
|
23
|
-
dragThreshold: number;
|
|
24
|
-
private inputHandled;
|
|
25
|
-
private readonly gui;
|
|
26
|
-
constructor(engine: Engine);
|
|
27
|
-
pushInput(event: InputEvent): void;
|
|
28
|
-
isInputHandled(): boolean;
|
|
29
|
-
getMousePosition(): Vector2;
|
|
30
|
-
guiGetFocusOwner(): Control | null;
|
|
31
|
-
guiReleaseFocus(): void;
|
|
32
|
-
guiIsDragging(): boolean;
|
|
33
|
-
guiGetDragData(): unknown;
|
|
34
|
-
guiIsDragSuccessful(): boolean;
|
|
35
|
-
guiCancelDrag(): void;
|
|
36
|
-
acceptControlEvent(control: Control): void;
|
|
37
|
-
grabControlFocus(control: Control): void;
|
|
38
|
-
grabControlClickFocus(control: Control): void;
|
|
39
|
-
releaseControlFocus(control?: Control): void;
|
|
40
|
-
warpControlMouse(position: Vector2): void;
|
|
41
|
-
controlStateChanged(control: Control): void;
|
|
42
|
-
controlRemoved(control: Control): void;
|
|
43
|
-
controlTreeChanged(): void;
|
|
44
|
-
cancelPointerInput(): void;
|
|
45
|
-
resize(width: number, height: number): void;
|
|
46
|
-
render(): void;
|
|
47
|
-
update(deltaTime: number): void;
|
|
48
|
-
dispose(): void;
|
|
49
|
-
private processGUIInput;
|
|
50
|
-
private processMouseButton;
|
|
51
|
-
private processMouseMotion;
|
|
52
|
-
private processScreenTouch;
|
|
53
|
-
private processScreenDrag;
|
|
54
|
-
private callGUIInput;
|
|
55
|
-
private callControlInput;
|
|
56
|
-
private findInputControl;
|
|
57
|
-
private findControlAtPosition;
|
|
58
|
-
private updateMouseOver;
|
|
59
|
-
private buildHoverHierarchy;
|
|
60
|
-
private findClickFocus;
|
|
61
|
-
private beginDragging;
|
|
62
|
-
private finishDrop;
|
|
63
|
-
private findDropTarget;
|
|
64
|
-
private endDragging;
|
|
65
|
-
private updateCursor;
|
|
66
|
-
private postGrabClickFocus;
|
|
67
|
-
private cleanupInternalState;
|
|
68
|
-
private dropMouseFocus;
|
|
69
|
-
private dropMouseOver;
|
|
70
|
-
private dropControlState;
|
|
71
|
-
private requestMouseOverUpdate;
|
|
72
|
-
private getGlobalInverse;
|
|
73
|
-
private toLocal;
|
|
74
|
-
private controlBelongsToSubtree;
|
|
75
|
-
private isControlValid;
|
|
76
|
-
private isControlUsable;
|
|
77
|
-
private findCanvasRoot;
|
|
78
|
-
private isFocusTargetUsable;
|
|
79
|
-
}
|