@woosh/meep-engine 2.103.0 → 2.104.0

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/build/meep.cjs CHANGED
@@ -91421,6 +91421,12 @@ class PointerDevice {
91421
91421
  */
91422
91422
  #target = null;
91423
91423
 
91424
+ /**
91425
+ *
91426
+ * @type {Element|null}
91427
+ */
91428
+ #domElement = null;
91429
+
91424
91430
  /**
91425
91431
  * @private
91426
91432
  * @type {boolean}
@@ -91474,7 +91480,7 @@ class PointerDevice {
91474
91480
  *
91475
91481
  * @type {EventTarget}
91476
91482
  */
91477
- this.domElement = domElement;
91483
+ this.#domElement = domElement;
91478
91484
 
91479
91485
 
91480
91486
  this.#touchStart.add((param0, param1, param2) => {
@@ -91643,9 +91649,9 @@ class PointerDevice {
91643
91649
  *
91644
91650
  * @param {Element} el
91645
91651
  */
91646
- setTargetElement(el) {
91652
+ set domElement(el) {
91647
91653
 
91648
- if (this.#target === el) {
91654
+ if (this.#domElement === el) {
91649
91655
  // no change
91650
91656
  return;
91651
91657
  }
@@ -91657,7 +91663,7 @@ class PointerDevice {
91657
91663
  this.stop();
91658
91664
  }
91659
91665
 
91660
- this.#target = el;
91666
+ this.#domElement = el;
91661
91667
 
91662
91668
  if (was_running) {
91663
91669
  // restart to maintain original state
@@ -91665,6 +91671,10 @@ class PointerDevice {
91665
91671
  }
91666
91672
  }
91667
91673
 
91674
+ get domElement() {
91675
+ return this.#domElement;
91676
+ }
91677
+
91668
91678
  /**
91669
91679
  *
91670
91680
  * @param {Vector2} result
@@ -91684,7 +91694,7 @@ class PointerDevice {
91684
91694
 
91685
91695
  // console.warn("PointerDevice.start");
91686
91696
 
91687
- const domElement = this.domElement;
91697
+ const domElement = this.#domElement;
91688
91698
 
91689
91699
  domElement.addEventListener(MouseEvents.Move, this.#eventHandlerMouseMove);
91690
91700
  domElement.addEventListener(MouseEvents.Up, this.#eventHandlerMouseUp);