@galacean/effects-core 2.10.0-alpha.3 → 2.10.0-alpha.4

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.
@@ -2,8 +2,8 @@ import type { Color } from '@galacean/effects-math/es/core';
2
2
  import { Matrix3 } from '@galacean/effects-math/es/core/matrix3';
3
3
  import { Vector2 } from '@galacean/effects-math/es/core/vector2';
4
4
  import type { Engine } from '../engine';
5
- import type { InputEventKey, InputEventMouseButton, InputEventMouseMotion, InputEventScreenDrag, InputEventScreenTouch, MouseButton } from '../input';
6
- import { CursorShape, FocusBehaviorRecursive, FocusMode, MouseBehaviorRecursive, MouseFilter } from '../input';
5
+ import type { CursorStyle, InputEventKey, InputEventMouseButton, InputEventMouseMotion, InputEventScreenDrag, InputEventScreenTouch } from '../input';
6
+ import { FocusBehaviorRecursive, FocusMode, MouseBehaviorRecursive, MouseFilter } from '../input';
7
7
  import type { EventEmitterListener, EventEmitterOptions } from '../events';
8
8
  import type { FontStyle, FontWeight, TextureRegion } from '../render';
9
9
  import type { Texture } from '../texture';
@@ -72,8 +72,8 @@ export declare class Control {
72
72
  set focusMode(value: FocusMode);
73
73
  get focusBehaviorRecursive(): FocusBehaviorRecursive;
74
74
  set focusBehaviorRecursive(value: FocusBehaviorRecursive);
75
- get defaultCursorShape(): CursorShape;
76
- set defaultCursorShape(value: CursorShape);
75
+ get defaultCursorShape(): CursorStyle;
76
+ set defaultCursorShape(value: CursorStyle);
77
77
  get location(): Vector2;
78
78
  set location(value: Vector2);
79
79
  get rotation(): number;
@@ -108,8 +108,7 @@ export declare class Control {
108
108
  hasPoint(point: Vector2): boolean;
109
109
  getEffectiveMouseFilter(): MouseFilter;
110
110
  getFocusModeWithOverride(): FocusMode;
111
- getCursorShape(position: Vector2): CursorShape;
112
- acceptEvent(): void;
111
+ getCursorShape(position: Vector2): CursorStyle;
113
112
  focus(): void;
114
113
  grabFocus(): void;
115
114
  grabClickFocus(): void;
@@ -134,14 +133,14 @@ export declare class Control {
134
133
  drawTexture(x: number, y: number, width: number, height: number, texture: Texture, region?: TextureRegion, color?: Color): void;
135
134
  drawText(x: number, y: number, text: string, fontSize: number, color?: Color, fontFamily?: string, fontWeight?: FontWeight, fontStyle?: FontStyle): void;
136
135
  onMouseEnter(location: Vector2): void;
137
- onMouseMove(location: Vector2, event: InputEventMouseMotion): void;
136
+ onMouseMove(event: InputEventMouseMotion): void;
138
137
  onMouseLeave(): void;
139
- onMouseWheel(location: Vector2, delta: number, event: InputEventMouseButton): void;
140
- onMouseDown(location: Vector2, button: MouseButton, event: InputEventMouseButton): void;
141
- onMouseUp(location: Vector2, button: MouseButton, event: InputEventMouseButton): void;
142
- onTouchDown(location: Vector2, pointerId: number, event: InputEventScreenTouch): void;
143
- onTouchMove(location: Vector2, pointerId: number, event: InputEventScreenDrag): void;
144
- onTouchUp(location: Vector2, pointerId: number, event: InputEventScreenTouch): void;
138
+ onMouseWheel(event: InputEventMouseButton): void;
139
+ onMouseDown(event: InputEventMouseButton): void;
140
+ onMouseUp(event: InputEventMouseButton): void;
141
+ onTouchDown(event: InputEventScreenTouch): void;
142
+ onTouchMove(event: InputEventScreenDrag): void;
143
+ onTouchUp(event: InputEventScreenTouch): void;
145
144
  onKeyDown(event: InputEventKey): void;
146
145
  onKeyUp(event: InputEventKey): void;
147
146
  onGotFocus(): void;
@@ -178,11 +177,11 @@ export declare abstract class RootControl extends ContainerControl {
178
177
  abstract guiGetDragData(): unknown;
179
178
  abstract guiIsDragSuccessful(): boolean;
180
179
  abstract guiCancelDrag(): void;
181
- abstract acceptControlEvent(control: Control): void;
182
180
  abstract grabControlFocus(control: Control): void;
183
181
  abstract grabControlClickFocus(control: Control): void;
184
182
  abstract releaseControlFocus(control?: Control): void;
185
183
  abstract warpControlMouse(position: Vector2): void;
184
+ abstract updateMouseCursorState(): void;
186
185
  abstract controlStateChanged(control: Control): void;
187
186
  abstract controlRemoved(control: Control): void;
188
187
  abstract controlTreeChanged(): void;
@@ -21,7 +21,7 @@ export declare class CanvasContainer extends ContainerControl {
21
21
  export declare class WindowRootControl extends RootControl {
22
22
  readonly canvases: CanvasContainer;
23
23
  dragThreshold: number;
24
- private inputHandled;
24
+ private lastInput;
25
25
  private readonly gui;
26
26
  constructor(engine: Engine);
27
27
  pushInput(event: InputEvent): void;
@@ -33,11 +33,11 @@ export declare class WindowRootControl extends RootControl {
33
33
  guiGetDragData(): unknown;
34
34
  guiIsDragSuccessful(): boolean;
35
35
  guiCancelDrag(): void;
36
- acceptControlEvent(control: Control): void;
37
36
  grabControlFocus(control: Control): void;
38
37
  grabControlClickFocus(control: Control): void;
39
38
  releaseControlFocus(control?: Control): void;
40
39
  warpControlMouse(position: Vector2): void;
40
+ updateMouseCursorState(): void;
41
41
  controlStateChanged(control: Control): void;
42
42
  controlRemoved(control: Control): void;
43
43
  controlTreeChanged(): void;