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