@realsee/dnalogel 3.42.0-alpha-tag.19 → 3.42.0-alpha-tag.21
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/PanoTagPlugin/controller/Tag/ModelTag.d.ts +0 -2
- package/dist/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +0 -2
- package/dist/index.cjs.js +51 -51
- package/dist/index.js +2710 -2695
- package/dist/index.umd.js +42 -42
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/ModelMakerPlugin/index.js +1 -1
- package/libs/ModelMakerPlugin/item/baseItem.js +7 -6
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +7 -6
- package/libs/ModelMakerPlugin/item/prismItem.js +7 -6
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +4 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +93 -95
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.d.ts +0 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +1 -5
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +0 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +1 -5
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +2 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +47 -46
- package/libs/PanoTagPlugin/index.js +14 -13
- package/libs/PanoTagPlugin/typings/index.js +1 -1
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.js +92 -88
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/THREERaycaster.js +30 -8
- package/package.json +1 -1
|
@@ -1,12 +1,34 @@
|
|
|
1
|
-
import "three";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as o from "three";
|
|
2
|
+
class h extends o.Raycaster {
|
|
3
|
+
intersectObject(t, n = !0, r = []) {
|
|
4
|
+
return f(t, this, r, n), r.sort(a), r;
|
|
5
|
+
}
|
|
6
|
+
intersectObjects(t, n = !0, r = []) {
|
|
7
|
+
for (let i = 0, l = t.length; i < l; i++)
|
|
8
|
+
f(t[i], this, r, n);
|
|
9
|
+
return r.sort(a), r;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function a(e, t) {
|
|
13
|
+
return e.distance - t.distance;
|
|
14
|
+
}
|
|
15
|
+
function f(e, t, n, r) {
|
|
16
|
+
let i = !0;
|
|
17
|
+
if (e.layers.test(t.layers) && e.raycast(t, n) === !1 && (i = !1), i === !0 && r === !0) {
|
|
18
|
+
const l = e.children;
|
|
19
|
+
for (let u = 0, s = l.length; u < s; u++)
|
|
20
|
+
f(l[u], t, n, !0);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function c(e, t, n, r) {
|
|
24
|
+
let i = !0;
|
|
25
|
+
if (e.type !== "Line2" && (e.layers.test(t.layers) && e.raycast(t, n) === !1 && (i = !1), i === !0 && r === !0)) {
|
|
26
|
+
const l = e.children;
|
|
27
|
+
for (let u = 0, s = l.length; u < s; u++)
|
|
28
|
+
l[u].type !== "Line2" && c(l[u], t, n, !0);
|
|
8
29
|
}
|
|
9
30
|
}
|
|
10
31
|
export {
|
|
11
|
-
|
|
32
|
+
h as THREERaycaster,
|
|
33
|
+
c as intersectWithoutLine
|
|
12
34
|
};
|