@galacean/engine-design 1.1.0-beta.39 → 1.1.0-beta.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-design",
3
- "version": "1.1.0-beta.39",
3
+ "version": "1.1.0-beta.43",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "types": "types/index.d.ts",
16
16
  "dependencies": {
17
- "@galacean/engine-math": "1.1.0-beta.39"
17
+ "@galacean/engine-math": "1.1.0-beta.43"
18
18
  },
19
19
  "scripts": {
20
20
  "b:types": "tsc"
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Options for the input.
3
+ */
4
+ export interface IInputOptions {
5
+ /**
6
+ * The target element of the pointer event, defaults is the current canvas.
7
+ * @remarks
8
+ * @remarks: When setting the pointer target you need to specify:
9
+ * - Do not set window as target because window cannot listen to pointer leave event.
10
+ * - On mobile, pointer move may trigger the default slide event, thereby removing the point from the screen, so in most cases you need to set HtmlElement.style.touchAction = "none".
11
+ */
12
+ pointerTarget?: Exclude<EventTarget, Window & typeof globalThis>;
13
+ /**
14
+ * The target element of the keyboard event, defaults is the window.
15
+ * @remarks
16
+ * If the type of listening target is `HtmlElement`, you need to set tabIndex to make the element focus.
17
+ */
18
+ keyboardTarget?: EventTarget;
19
+ /** The target element of the wheel event, defaults is the current canvas. */
20
+ wheelTarget?: EventTarget;
21
+ }
@@ -0,0 +1 @@
1
+ export type { IInputOptions } from "./IInputOptions";