@thatopen/components 2.3.5 → 2.3.7
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/index.mjs
CHANGED
|
@@ -3137,7 +3137,7 @@ const Fs = class Fs {
|
|
|
3137
3137
|
/**
|
|
3138
3138
|
* The version of the @thatopen/components library.
|
|
3139
3139
|
*/
|
|
3140
|
-
C(Fs, "release", "2.3.
|
|
3140
|
+
C(Fs, "release", "2.3.7");
|
|
3141
3141
|
let Cs = Fs;
|
|
3142
3142
|
class Qa extends xn {
|
|
3143
3143
|
constructor() {
|
|
@@ -5979,13 +5979,16 @@ class fc {
|
|
|
5979
5979
|
this.setupEvents(!1), this.onDisposed.trigger(), this.onDisposed.reset();
|
|
5980
5980
|
}
|
|
5981
5981
|
getPositionY(i, t) {
|
|
5982
|
-
return -((t.clientY - i.top) / (i.bottom - i.top)) * 2 + 1;
|
|
5982
|
+
return -((this.getDataObject(t).clientY - i.top) / (i.bottom - i.top)) * 2 + 1;
|
|
5983
5983
|
}
|
|
5984
5984
|
getPositionX(i, t) {
|
|
5985
|
-
return (t.clientX - i.left) / (i.right - i.left) * 2 - 1;
|
|
5985
|
+
return (this.getDataObject(t).clientX - i.left) / (i.right - i.left) * 2 - 1;
|
|
5986
|
+
}
|
|
5987
|
+
getDataObject(i) {
|
|
5988
|
+
return i instanceof MouseEvent ? i : i.touches[0];
|
|
5986
5989
|
}
|
|
5987
5990
|
setupEvents(i) {
|
|
5988
|
-
i ? this.dom.addEventListener("pointermove", this.updateMouseInfo) : this.dom.removeEventListener("pointermove", this.updateMouseInfo);
|
|
5991
|
+
i ? (this.dom.addEventListener("pointermove", this.updateMouseInfo), this.dom.addEventListener("touchstart", this.updateMouseInfo)) : (this.dom.removeEventListener("pointermove", this.updateMouseInfo), this.dom.removeEventListener("touchstart", this.updateMouseInfo));
|
|
5989
5992
|
}
|
|
5990
5993
|
}
|
|
5991
5994
|
class Ic {
|
|
@@ -10450,8 +10453,6 @@ class Yn {
|
|
|
10450
10453
|
* like IFCSPACE.
|
|
10451
10454
|
*/
|
|
10452
10455
|
C(this, "optionalCategories", [z.IFCSPACE]);
|
|
10453
|
-
/** Whether to use the coordination data coming from the IFC files. */
|
|
10454
|
-
C(this, "coordinate", !0);
|
|
10455
10456
|
/** Path of the WASM for [web-ifc](https://github.com/ThatOpen/engine_web-ifc). */
|
|
10456
10457
|
C(this, "wasm", {
|
|
10457
10458
|
path: "",
|