@realsee/dnalogel 3.43.0 → 3.44.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.
Files changed (158) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
  3. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
  4. package/dist/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
  5. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
  6. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  7. package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -0
  8. package/dist/Sculpt/Meshes/Line.d.ts +19 -1
  9. package/dist/Sculpt/utils/color.d.ts +1 -1
  10. package/dist/index.cjs.js +102 -68
  11. package/dist/index.js +7127 -6867
  12. package/dist/index.umd.js +106 -72
  13. package/dist/shared-utils/five/getPosition.d.ts +12 -4
  14. package/dist/shared-utils/five/initialCSS3DRender.d.ts +2 -0
  15. package/dist/shared-utils/math/deg2Rad.d.ts +1 -1
  16. package/dist/shared-utils/math/rad2Deg.d.ts +1 -1
  17. package/dist/shared-utils/positionToVector3.d.ts +6 -6
  18. package/{libs/shared-utils/three/PointSelector.d.ts → dist/shared-utils/three/PointSelector/index.d.ts} +23 -7
  19. package/dist/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
  20. package/dist/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
  21. package/dist/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
  22. package/dist/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
  23. package/dist/shared-utils/three/index.d.ts +2 -3
  24. package/libs/AreaMakerPlugin/Controller.js +5 -18
  25. package/libs/AreaMakerPlugin/index.js +4 -17
  26. package/libs/AreaMakerPlugin/utils/Item.js +13 -26
  27. package/libs/CSS3DRenderPlugin/Controller.js +9 -6
  28. package/libs/CSS3DRenderPlugin/index.js +12 -9
  29. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +6 -6
  30. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
  31. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +73 -56
  32. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +11 -4
  33. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
  34. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +14 -14
  35. package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
  36. package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.js +13 -0
  37. package/libs/CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js +85 -0
  38. package/libs/CruisePlugin/BaseController.js +20 -33
  39. package/libs/CruisePlugin/Move.js +25 -23
  40. package/libs/CruisePlugin/Work.js +10 -8
  41. package/libs/CruisePlugin/index.js +23 -21
  42. package/libs/CurrentPanoImagePlugin/Controller.js +30 -43
  43. package/libs/CurrentPanoImagePlugin/index.js +5 -18
  44. package/libs/GuideLinePlugin/Controller.js +15 -13
  45. package/libs/GuideLinePlugin/GuideLineItem.js +19 -17
  46. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -5
  47. package/libs/GuideLinePlugin/GuideLineModeItem.js +21 -19
  48. package/libs/GuideLinePlugin/index.js +23 -21
  49. package/libs/ModelMakerPlugin/Controller.js +19 -30
  50. package/libs/ModelMakerPlugin/index.js +11 -22
  51. package/libs/ModelTVVideoPlugin/Plugin.js +13 -10
  52. package/libs/ModelTVVideoPlugin/index.js +12 -9
  53. package/libs/Object3DHelperPlugin/Controller.js +7 -5
  54. package/libs/Object3DHelperPlugin/index.js +23 -21
  55. package/libs/PanoCompassPlugin/Controller.js +18 -15
  56. package/libs/PanoCompassPlugin/index.js +21 -18
  57. package/libs/PanoDoorLabelPlugin/BaseController.js +24 -37
  58. package/libs/PanoDoorLabelPlugin/Controller.js +56 -69
  59. package/libs/PanoDoorLabelPlugin/index.js +5 -18
  60. package/libs/PanoMeasurePlugin/Components/Controller0.js +40 -47
  61. package/libs/PanoMeasurePlugin/Components/Controller1.js +72 -79
  62. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
  63. package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -39
  64. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  65. package/libs/PanoMeasurePlugin/Controller/EditController.js +177 -153
  66. package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -1
  67. package/libs/PanoMeasurePlugin/Controller/WatchController.js +60 -74
  68. package/libs/PanoMeasurePlugin/Controller/index.d.ts +2 -0
  69. package/libs/PanoMeasurePlugin/Controller/index.js +59 -60
  70. package/libs/PanoMeasurePlugin/Model/area.js +30 -44
  71. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +3 -16
  72. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +42 -49
  73. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -1
  74. package/libs/PanoMeasurePlugin/index.js +35 -40
  75. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +23 -36
  76. package/libs/PanoSpatialTagPlugin/Plugin.js +41 -38
  77. package/libs/PanoSpatialTagPlugin/index.js +10 -7
  78. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +29 -43
  79. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +55 -69
  80. package/libs/PanoTagPlugin/Components/Tag/index.js +9 -19
  81. package/libs/PanoTagPlugin/Components/TagContainer.js +42 -52
  82. package/libs/PanoTagPlugin/Components/TagItem.js +9 -19
  83. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +56 -64
  84. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +29 -39
  85. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +11 -21
  86. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +18 -28
  87. package/libs/PanoTagPlugin/controller/TagRender.js +18 -16
  88. package/libs/PanoTagPlugin/controller/TagUtil.js +12 -9
  89. package/libs/PanoTagPlugin/controller/index.js +27 -25
  90. package/libs/PanoTagPlugin/index.js +28 -26
  91. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +43 -57
  92. package/libs/PanoVideoPlugin/Controller.js +52 -65
  93. package/libs/PanoVideoPlugin/VideoMeshController.js +11 -25
  94. package/libs/PanoVideoPlugin/index.js +8 -21
  95. package/libs/PipelinePlugin/Controller.js +44 -57
  96. package/libs/PipelinePlugin/index.js +5 -18
  97. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +20 -34
  98. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -30
  99. package/libs/PipelinePlugin/utils/Objects/Pipe.js +39 -53
  100. package/libs/Sculpt/Meshes/Box.js +3 -3
  101. package/libs/Sculpt/Meshes/Cylinder.js +14 -14
  102. package/libs/Sculpt/Meshes/Line.d.ts +19 -1
  103. package/libs/Sculpt/Meshes/Line.js +40 -41
  104. package/libs/Sculpt/Meshes/LineWithDots.js +5 -6
  105. package/libs/Sculpt/Meshes/Point.js +3 -3
  106. package/libs/Sculpt/Meshes/Polyline.js +3 -3
  107. package/libs/Sculpt/Meshes/Prism.js +11 -12
  108. package/libs/Sculpt/Meshes/Rectangle.js +3 -3
  109. package/libs/Sculpt/Objects/Point/Editor.js +10 -10
  110. package/libs/Sculpt/Objects/Polygon/Editor.js +6 -6
  111. package/libs/Sculpt/Objects/Polyline/Editor.js +4 -4
  112. package/libs/Sculpt/index.js +3 -3
  113. package/libs/Sculpt/utils/Modules/Global.js +1 -1
  114. package/libs/Sculpt/utils/color.d.ts +1 -1
  115. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -3
  116. package/libs/base/BasePlugin.js +4 -4
  117. package/libs/floorplan/Components/Compass.js +29 -31
  118. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +9 -22
  119. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -19
  120. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -18
  121. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -18
  122. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +48 -61
  123. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -18
  124. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +28 -41
  125. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -18
  126. package/libs/floorplan/index.js +3 -3
  127. package/libs/index.js +140 -137
  128. package/libs/shared-utils/five/getPosition.d.ts +12 -4
  129. package/libs/shared-utils/five/getPosition.js +23 -23
  130. package/libs/shared-utils/five/index.js +2 -2
  131. package/libs/shared-utils/five/initialCSS3DRender.d.ts +2 -0
  132. package/libs/shared-utils/five/initialCSS3DRender.js +17 -0
  133. package/libs/shared-utils/five/lookObject.js +3 -3
  134. package/libs/shared-utils/index.js +38 -40
  135. package/libs/shared-utils/logger.js +1 -1
  136. package/libs/shared-utils/math/deg2Rad.d.ts +1 -1
  137. package/libs/shared-utils/math/rad2Deg.d.ts +1 -1
  138. package/libs/shared-utils/positionToVector3.d.ts +6 -6
  139. package/{dist/shared-utils/three/PointSelector.d.ts → libs/shared-utils/three/PointSelector/index.d.ts} +23 -7
  140. package/libs/shared-utils/three/{PointSelector.js → PointSelector/index.js} +54 -45
  141. package/libs/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
  142. package/libs/shared-utils/three/PointSelector/utils/PointHelper.js +95 -0
  143. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
  144. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +153 -0
  145. package/libs/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
  146. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +60 -0
  147. package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.js +3 -4
  148. package/libs/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
  149. package/libs/shared-utils/three/index.d.ts +2 -3
  150. package/libs/shared-utils/three/index.js +3 -3
  151. package/package.json +3 -3
  152. package/dist/shared-utils/three/PointDomHelper.d.ts +0 -18
  153. package/libs/shared-utils/three/PointDomHelper.d.ts +0 -18
  154. package/libs/shared-utils/three/PointDomHelper.js +0 -62
  155. package/libs/shared-utils/three/PointHelper.js +0 -73
  156. package/libs/shared-utils/three/PointSelectorHelper.js +0 -52
  157. /package/dist/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
  158. /package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
@@ -1,18 +0,0 @@
1
- import type { Five } from '@realsee/five';
2
- import type { Intersection } from '../../typings/typings';
3
- export declare class PointDomHelper {
4
- private five;
5
- private contentElement;
6
- private animeIns?;
7
- private container?;
8
- private css3DObject?;
9
- private disposeCss3DObject?;
10
- private state;
11
- constructor(five: Five);
12
- enable(): void;
13
- disable(): void;
14
- updateWithIntersect(intersect: Intersection): void;
15
- /** 缩放动画 */
16
- doAnimation(): void;
17
- dispose(): void;
18
- }
@@ -1,62 +0,0 @@
1
- var l = Object.defineProperty;
2
- var m = (o, e, t) => e in o ? l(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var n = (o, e, t) => (m(o, typeof e != "symbol" ? e + "" : e, t), t);
4
- import * as c from "three";
5
- import { Easing as p } from "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
6
- import "hammerjs";
7
- import { rangePieceImg as h } from "../../PanoMeasurePlugin/Modules/rangePiece/html.js";
8
- import { CSS3DRenderPlugin as b } from "../../CSS3DRenderPlugin/index.js";
9
- import "./THREESphere.js";
10
- import "animejs";
11
- import { BetterTween as u } from "../animationFrame/BetterTween.js";
12
- class I {
13
- constructor(e) {
14
- n(this, "five");
15
- n(this, "contentElement", document.createElement("div"));
16
- n(this, "animeIns");
17
- n(this, "container");
18
- n(this, "css3DObject");
19
- n(this, "disposeCss3DObject");
20
- n(this, "state", { enabled: !1 });
21
- this.five = e;
22
- const s = 0.4 / 2, r = b(e).create3DDomContainer(
23
- [
24
- [-s, s, 0],
25
- [-s, -s, 0],
26
- [s, -s, 0],
27
- [s, s, 0]
28
- ].map((i) => new c.Vector3().fromArray(i))
29
- );
30
- if (r) {
31
- const { container: i, dispose: a, css3DObject: d } = r;
32
- this.container = i, this.css3DObject = d, this.disposeCss3DObject = a;
33
- }
34
- this.contentElement.style.width = "100%", this.contentElement.style.height = "100%", this.contentElement.style.backgroundImage = `url(${h})`, this.contentElement.style.backgroundSize = "100%", this.contentElement.style.backgroundRepeat = "no-repeat";
35
- }
36
- enable() {
37
- var e;
38
- this.state.enabled || (this.state.enabled = !0, (e = this.container) == null || e.appendChild(this.contentElement));
39
- }
40
- disable() {
41
- this.state.enabled && (this.state.enabled = !1, this.contentElement.remove());
42
- }
43
- updateWithIntersect(e) {
44
- if (!e.face || !this.css3DObject)
45
- return;
46
- const t = new c.Vector3().addVectors(e.point, e.face.normal);
47
- this.css3DObject.position.copy(e.point), this.css3DObject.lookAt(t), this.five.needsRender = !0;
48
- }
49
- /** 缩放动画 */
50
- doAnimation() {
51
- var e;
52
- (e = this.animeIns) == null || e.dispose(), new u({ progress: 0 }).to({ progress: [1, 0] }).duration(500).easing(p.Quadratic.InOut).onUpdate(({ progress: t }) => {
53
- }).play();
54
- }
55
- dispose() {
56
- var e;
57
- (e = this.disposeCss3DObject) == null || e.call(this);
58
- }
59
- }
60
- export {
61
- I as PointDomHelper
62
- };
@@ -1,73 +0,0 @@
1
- var r = Object.defineProperty;
2
- var i = (a, n, e) => n in a ? r(a, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[n] = e;
3
- var o = (a, n, e) => (i(a, typeof n != "symbol" ? n + "" : n, e), e);
4
- import * as t from "three";
5
- import { POINT_HELPER_TEXTURE_URL as l } from "./Assets/index.js";
6
- const c = `
7
- varying vec2 vUv;
8
- void main() {
9
- vUv = uv;
10
- vec4 mvPosition = modelViewMatrix * vec4(position, 1);
11
- gl_Position = projectionMatrix * mvPosition;
12
- }
13
- `, h = `
14
- varying vec2 vUv;
15
- void main() {
16
- vec2 uv = vec2(vUv.x, vUv.y);
17
- float a = 1.0;
18
- float match = 1.0 - uv.x;
19
- gl_FragColor = vec4(1.0,1.0,1.0,match);
20
- }
21
- `;
22
- function p() {
23
- const a = new t.PlaneGeometry(0.4, 0.4), n = l, e = new t.TextureLoader().load(n);
24
- e.encoding = t.sRGBEncoding, e.minFilter = t.LinearFilter;
25
- const s = new t.MeshBasicMaterial({
26
- map: e,
27
- transparent: !0,
28
- depthTest: !1
29
- });
30
- return new t.Mesh(a, s);
31
- }
32
- function M() {
33
- const a = new t.CurvePath();
34
- a.add(new t.LineCurve3(new t.Vector3(0, 0, 0), new t.Vector3(0, 0, 0.1)));
35
- const n = new t.TubeGeometry(a, 8, 3e-3), e = new t.ShaderMaterial({
36
- vertexShader: c,
37
- fragmentShader: h,
38
- depthTest: !1,
39
- transparent: !0
40
- });
41
- return new t.Mesh(n, e);
42
- }
43
- function v() {
44
- const a = new t.SphereGeometry(0.01, 20, 20), n = new t.MeshBasicMaterial({
45
- color: 10349931,
46
- depthTest: !1,
47
- transparent: !0,
48
- side: t.DoubleSide
49
- }), e = new t.Mesh(a, n);
50
- return e.position.set(0, 0, 0.1), e;
51
- }
52
- class w extends t.Object3D {
53
- constructor() {
54
- super();
55
- o(this, "planeMesh");
56
- o(this, "lineMesh");
57
- o(this, "ballMesh");
58
- this.planeMesh = p(), this.lineMesh = M(), this.ballMesh = v(), this.add(this.planeMesh, this.lineMesh, this.ballMesh);
59
- }
60
- updateWithIntersect(e) {
61
- if (!e.face)
62
- return;
63
- const s = new t.Vector3().addVectors(e.point, e.face.normal);
64
- this.position.copy(e.point), this.lookAt(s);
65
- }
66
- dispose() {
67
- var e;
68
- (e = this.planeMesh.material.map) == null || e.dispose();
69
- }
70
- }
71
- export {
72
- w as PointHelper
73
- };
@@ -1,52 +0,0 @@
1
- var l = Object.defineProperty;
2
- var h = (r, i, e) => i in r ? l(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e;
3
- var t = (r, i, e) => (h(r, typeof i != "symbol" ? i + "" : i, e), e);
4
- import * as p from "three";
5
- import { Magnifier as m } from "./Magnifier.js";
6
- import { PointHelper as o } from "./PointHelper.js";
7
- import { PointDomHelper as d } from "./PointDomHelper.js";
8
- import { Subscribe as f } from "../Subscribe.js";
9
- import "./THREESphere.js";
10
- import "animejs";
11
- class E {
12
- constructor(i, e) {
13
- t(this, "five");
14
- t(this, "hooks", new f());
15
- t(this, "position");
16
- t(this, "magnifier", null);
17
- t(this, "pointHelper", null);
18
- t(this, "pointDomHelper", null);
19
- t(this, "state", { enabled: !1, visible: !0 });
20
- t(this, "group", new p.Group());
21
- t(this, "show", () => {
22
- this.state.visible || (this.state.visible = !0, this.pointHelper.visible = !0, this.pointDomHelper.enable(), this.magnifier.enable(), this.five.needsRender = !0);
23
- });
24
- t(this, "hide", () => {
25
- this.state.visible && (this.state.visible = !1, this.pointHelper.visible = !1, this.pointDomHelper.disable(), this.magnifier.disable(), this.five.needsRender = !0);
26
- });
27
- t(this, "updateWithIntersect", (i, e = { emitEvent: !0 }) => {
28
- var n;
29
- this.abortUpdateMagnifier(), this.position = i, e.emitEvent && this.hooks.emit("intersectionUpdate", i), this.pointHelper.updateWithIntersect(i), (n = this.pointDomHelper) == null || n.updateWithIntersect(i);
30
- const s = () => this.magnifier.renderWithPoint(i.point);
31
- this.abortUpdateMagnifier = () => this.five.off("renderFrame", s), this.five.once("renderFrame", s), this.five.needsRender = !0;
32
- });
33
- t(this, "abortUpdateMagnifier", () => {
34
- });
35
- var s, n, a;
36
- this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new m(i, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 }), this.pointHelper = (e == null ? void 0 : e.pointHelper) !== void 0 ? e.pointHelper : new o(), this.pointDomHelper = (e == null ? void 0 : e.pointDomHelper) !== void 0 ? e.pointDomHelper : new d(i), this.group.name = "five-point-selector", this.five.scene.add(this.group), this.magnifier.appendTo((a = (n = e.container) != null ? n : i.getElement().parentElement) != null ? a : document.body);
37
- }
38
- enable() {
39
- var i, e;
40
- this.state.enabled || (this.state.enabled = !0, this.pointHelper && this.group.add(this.pointHelper), (i = this.magnifier) == null || i.enable(), (e = this.pointDomHelper) == null || e.enable(), this.five.needsRender = !0, this.hooks.emit("enabled"));
41
- }
42
- disable() {
43
- var i, e;
44
- this.state.enabled && (this.state.enabled = !1, this.pointHelper && this.group.remove(this.pointHelper), (i = this.magnifier) == null || i.disable(), (e = this.pointDomHelper) == null || e.disable(), this.hooks.emit("disabled"));
45
- }
46
- dispose() {
47
- this.hooks.off(), this.disable(), this.magnifier = null, this.pointHelper = null, this.pointDomHelper = null;
48
- }
49
- }
50
- export {
51
- E as PointSelectorHelper
52
- };