babylonjs-gui 5.25.0 → 5.26.1

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.
@@ -59,6 +59,7 @@ import { Nullable } from "babylonjs/types";
59
59
  import { Observable } from "babylonjs/Misc/observable";
60
60
  import { Matrix } from "babylonjs/Maths/math.vector";
61
61
  import { Vector2, Vector3 } from "babylonjs/Maths/math.vector";
62
+ import { PointerInfoPre } from "babylonjs/Events/pointerEvents";
62
63
  import { ClipboardInfo } from "babylonjs/Events/clipboardEvents";
63
64
  import { DynamicTexture } from "babylonjs/Materials/Textures/dynamicTexture";
64
65
  import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
@@ -377,6 +378,14 @@ export class AdvancedDynamicTexture extends DynamicTexture {
377
378
  * @internal
378
379
  */
379
380
  _cleanControlAfterRemoval(control: Control): void;
381
+ /**
382
+ * This function will run a pointer event on this ADT and will trigger any pointer events on any controls
383
+ * This will work on a fullscreen ADT only. For mesh based ADT, simulate pointer events using the scene directly.
384
+ * @param x pointer X on the canvas for the picking
385
+ * @param y pointer Y on the canvas for the picking
386
+ * @param pi optional pointer information
387
+ */
388
+ pick(x: number, y: number, pi?: Nullable<PointerInfoPre>): void;
380
389
  private _translateToPicking;
381
390
  /** Attach to all scene events required to support pointer events */
382
391
  attach(): void;
@@ -8130,6 +8139,14 @@ declare module BABYLON.GUI {
8130
8139
  * @internal
8131
8140
  */
8132
8141
  _cleanControlAfterRemoval(control: Control): void;
8142
+ /**
8143
+ * This function will run a pointer event on this ADT and will trigger any pointer events on any controls
8144
+ * This will work on a fullscreen ADT only. For mesh based ADT, simulate pointer events using the scene directly.
8145
+ * @param x pointer X on the canvas for the picking
8146
+ * @param y pointer Y on the canvas for the picking
8147
+ * @param pi optional pointer information
8148
+ */
8149
+ pick(x: number, y: number, pi?: BABYLON.Nullable<BABYLON.PointerInfoPre>): void;
8133
8150
  private _translateToPicking;
8134
8151
  /** Attach to all scene events required to support pointer events */
8135
8152
  attach(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui",
3
- "version": "5.25.0",
3
+ "version": "5.26.1",
4
4
  "main": "babylon.gui.js",
5
5
  "types": "babylon.gui.module.d.ts",
6
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^5.25.0"
17
+ "babylonjs": "^5.26.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",