@realsee/dnalogel 3.44.5 → 3.45.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.
Files changed (91) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/Sculpt/Meshes/Area.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/Box.d.ts +1 -1
  4. package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
  5. package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
  6. package/dist/Sculpt/Meshes/Line.d.ts +2 -1
  7. package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
  8. package/dist/Sculpt/Meshes/Point.d.ts +1 -1
  9. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  10. package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
  11. package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
  12. package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
  13. package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
  14. package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
  15. package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
  16. package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
  17. package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
  18. package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
  19. package/dist/Sculpt/index.d.ts +5 -0
  20. package/dist/Sculpt/typings/index.d.ts +11 -6
  21. package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
  22. package/dist/Sculpt/typings/utils.type.d.ts +2 -0
  23. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
  24. package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
  25. package/dist/index.cjs.js +56 -56
  26. package/dist/index.js +4272 -4171
  27. package/dist/index.umd.js +45 -45
  28. package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
  29. package/libs/ModelMakerPlugin/Controller.js +1 -1
  30. package/libs/ModelMakerPlugin/index.js +1 -1
  31. package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
  32. package/libs/PanoMeasurePlugin/Components/Controller1.js +1 -1
  33. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  34. package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
  35. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
  36. package/libs/PanoMeasurePlugin/index.js +1 -1
  37. package/libs/Sculpt/Meshes/Area.d.ts +1 -1
  38. package/libs/Sculpt/Meshes/Box.d.ts +1 -1
  39. package/libs/Sculpt/Meshes/Box.js +10 -10
  40. package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
  41. package/libs/Sculpt/Meshes/Circle.js +1 -1
  42. package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
  43. package/libs/Sculpt/Meshes/Cylinder.js +1 -1
  44. package/libs/Sculpt/Meshes/Line.d.ts +2 -1
  45. package/libs/Sculpt/Meshes/Line.js +55 -47
  46. package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
  47. package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
  48. package/libs/Sculpt/Meshes/Point.d.ts +1 -1
  49. package/libs/Sculpt/Meshes/Point.js +1 -1
  50. package/libs/Sculpt/Meshes/Polygon.js +1 -1
  51. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  52. package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
  53. package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
  54. package/libs/Sculpt/Objects/Box/index.js +41 -43
  55. package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
  56. package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
  57. package/libs/Sculpt/Objects/Line/Editor.js +61 -0
  58. package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
  59. package/libs/Sculpt/Objects/Line/index.js +107 -0
  60. package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
  61. package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
  62. package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
  63. package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
  64. package/libs/Sculpt/Objects/Polygon/index.js +80 -80
  65. package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
  66. package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
  67. package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
  68. package/libs/Sculpt/Objects/Polyline/index.js +63 -58
  69. package/libs/Sculpt/Objects/Prism/index.js +56 -58
  70. package/libs/Sculpt/index.d.ts +5 -0
  71. package/libs/Sculpt/index.js +58 -48
  72. package/libs/Sculpt/typings/index.d.ts +11 -6
  73. package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
  74. package/libs/Sculpt/typings/utils.type.d.ts +2 -0
  75. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
  76. package/libs/Sculpt/utils/three/ColoredMesh.js +1 -1
  77. package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
  78. package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
  79. package/libs/base/BasePlugin.js +1 -1
  80. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  81. package/libs/index.js +128 -126
  82. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
  83. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
  84. package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
  85. package/libs/shared-utils/Utils/WorkUtil.js +8 -7
  86. package/libs/shared-utils/logger.js +1 -1
  87. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +15 -15
  88. package/package.json +1 -1
  89. package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
  90. package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
  91. /package/libs/Sculpt/{utils/color.js → typings/style.js} +0 -0
@@ -6,30 +6,30 @@ export declare class WorkUtil extends BaseUtil {
6
6
  private _workCode;
7
7
  get fromType(): WorkFromType;
8
8
  /**
9
- * @description: 设置插件当前的 workCode
9
+ * @description 设置插件当前的 workCode
10
10
  */
11
11
  set workCode(workCode: string);
12
12
  /**
13
- * @description: 获取插件当前的 workCode
13
+ * @description 获取插件当前的 workCode
14
14
  */
15
15
  get workCode(): string;
16
16
  /**
17
- * @description: 获取当前的 work
17
+ * @description 获取当前的 work
18
18
  */
19
19
  get work(): import("@realsee/five").Work;
20
20
  get observers(): import("@realsee/five").WorkObserver[];
21
21
  get transform(): THREE.Matrix4;
22
22
  constructor(five: Five);
23
23
  /**
24
- * @description: 获取全景点坐标
24
+ * @description 获取全景点坐标
25
25
  */
26
26
  getObserverPosition(observerIndex: number): THREE.Vector3 | undefined;
27
27
  /**
28
- * @description: 获取全景点位和模型的地面坐标
28
+ * @description 获取全景点位和模型的地面坐标
29
29
  */
30
30
  getObserverStandingPosition(observerIndex: number): THREE.Vector3 | undefined;
31
31
  /**
32
- * @description: 获取observer
32
+ * @description 获取observer
33
33
  */
34
34
  getObserver(observerIndex: number): import("@realsee/five").WorkObserver;
35
35
  }
@@ -55,7 +55,7 @@ import "../shared-utils/five/getFiveModel.js";
55
55
  import "../shared-utils/url/absoluteUrl.js";
56
56
  import "../shared-utils/three/IObject3D.js";
57
57
  import "../Sculpt/Meshes/Line.js";
58
- import "../Sculpt/utils/color.js";
58
+ import "../Sculpt/typings/style.js";
59
59
  import "../shared-utils/five/FiveLine.js";
60
60
  import "../Sculpt/Meshes/Polygon.js";
61
61
  import "../shared-utils/three/generatePolygonGeometry.js";
@@ -31,7 +31,7 @@ import "../shared-utils/three/THREERaycaster.js";
31
31
  import "../Sculpt/Meshes/Prism.js";
32
32
  import "../shared-utils/three/IObject3D.js";
33
33
  import "../Sculpt/Meshes/Line.js";
34
- import "../Sculpt/utils/color.js";
34
+ import "../Sculpt/typings/style.js";
35
35
  import "../shared-utils/five/FiveLine.js";
36
36
  import "../shared-utils/isNil.js";
37
37
  import "../Sculpt/Meshes/Polygon.js";
@@ -53,7 +53,7 @@ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
53
53
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
54
54
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
55
55
  import "../../Sculpt/Meshes/Line.js";
56
- import "../../Sculpt/utils/color.js";
56
+ import "../../Sculpt/typings/style.js";
57
57
  import "../../shared-utils/positionToVector3.js";
58
58
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
59
59
  import "../../shared-utils/isTouchDevice.js";
@@ -57,7 +57,7 @@ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
57
57
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
58
58
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
59
59
  import "../../Sculpt/Meshes/Line.js";
60
- import "../../Sculpt/utils/color.js";
60
+ import "../../Sculpt/typings/style.js";
61
61
  import "../../shared-utils/positionToVector3.js";
62
62
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
63
63
  import "../../shared-utils/isTouchDevice.js";
@@ -65,7 +65,7 @@ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
65
65
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
66
66
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
67
67
  import "../../Sculpt/Meshes/Line.js";
68
- import "../../Sculpt/utils/color.js";
68
+ import "../../Sculpt/typings/style.js";
69
69
  import "../../shared-utils/positionToVector3.js";
70
70
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
71
71
  import "../../shared-utils/isTouchDevice.js";
@@ -73,7 +73,7 @@ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
73
73
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
74
74
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
75
75
  import "../../Sculpt/Meshes/Line.js";
76
- import "../../Sculpt/utils/color.js";
76
+ import "../../Sculpt/typings/style.js";
77
77
  import "../../shared-utils/positionToVector3.js";
78
78
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
79
79
  import "../../shared-utils/five/getPosition.js";
@@ -63,7 +63,7 @@ import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
63
63
  import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
64
64
  import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
65
65
  import "../../../Sculpt/Meshes/Line.js";
66
- import "../../../Sculpt/utils/color.js";
66
+ import "../../../Sculpt/typings/style.js";
67
67
  import "../../../shared-utils/positionToVector3.js";
68
68
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
69
69
  import "../../../shared-utils/isTouchDevice.js";
@@ -51,7 +51,7 @@ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
51
51
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
52
52
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
53
53
  import "../Sculpt/Meshes/Line.js";
54
- import "../Sculpt/utils/color.js";
54
+ import "../Sculpt/typings/style.js";
55
55
  import "../shared-utils/positionToVector3.js";
56
56
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
57
57
  import "../shared-utils/isTouchDevice.js";
@@ -1,4 +1,4 @@
1
- import type { LineStyle } from '../utils/color';
1
+ import type { LineStyle } from '../typings/style';
2
2
  import type { PointsData } from '../utils/data';
3
3
  import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
4
4
  import { PolygonWithEdgeMesh } from './PolygonWithEdge';
@@ -1,7 +1,7 @@
1
1
  import { IObject3D } from '../../shared-utils/three/IObject3D';
2
2
  import { type AnyPositions, type AnyPosition } from '../../shared-utils/positionToVector3';
3
3
  import type * as THREE from 'three';
4
- import type { LineStyle } from '../utils/color';
4
+ import type { LineStyle } from '../typings/style';
5
5
  import { RectangleWithEdgeMesh } from './RectangleWithEdge';
6
6
  import { RectangleMesh } from './Rectangle';
7
7
  import type { PointsData } from '../utils/data';
@@ -1,6 +1,6 @@
1
1
  var d = Object.defineProperty;
2
2
  var p = (e, i, t) => i in e ? d(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
- var n = (e, i, t) => (p(e, typeof i != "symbol" ? i + "" : i, t), t);
3
+ var s = (e, i, t) => (p(e, typeof i != "symbol" ? i + "" : i, t), t);
4
4
  import { IObject3D as a } from "../../shared-utils/three/IObject3D.js";
5
5
  import { anyPositionToVector3 as c } from "../../shared-utils/positionToVector3.js";
6
6
  import "three";
@@ -16,11 +16,11 @@ import { RectangleMesh as m } from "./Rectangle.js";
16
16
  class w extends a {
17
17
  constructor(t) {
18
18
  super();
19
- n(this, "name", "BoxMesh");
20
- n(this, "bottomPlane");
21
- n(this, "topPlane");
22
- n(this, "heightPoint");
23
- n(this, "edgePlanes", []);
19
+ s(this, "name", "BoxMesh");
20
+ s(this, "bottomPlane");
21
+ s(this, "topPlane");
22
+ s(this, "heightPoint");
23
+ s(this, "edgePlanes", []);
24
24
  this.bottomPlane = new P(t), this.topPlane = new P(t), this.add(this.bottomPlane), t != null && t.points && this.setPoints(t);
25
25
  }
26
26
  get planes() {
@@ -62,8 +62,8 @@ class w extends a {
62
62
  return;
63
63
  const o = c(t);
64
64
  this.heightPoint = o, this.addIfNotExists(this.topPlane);
65
- const h = this.bottomPlane.projectPoint(o), s = o.clone().sub(h), l = this.bottomPlane.points.map((g) => g.clone().add(s));
66
- this.topPlane.setPoints(l), this.up.copy(s.clone().normalize()), this.setEdgePlanes();
65
+ const h = this.bottomPlane.projectPoint(o), n = o.clone().sub(h), l = this.bottomPlane.points.map((g) => g.clone().add(n));
66
+ this.topPlane.setPoints(l), this.up.copy(n.clone().normalize()), this.setEdgePlanes();
67
67
  }
68
68
  setEdgePlanes() {
69
69
  for (let t = 0; t < 4; t++) {
@@ -75,8 +75,8 @@ class w extends a {
75
75
  occlusionVisibility: this.occlusionVisibility,
76
76
  occlusionMode: this.occlusionMode
77
77
  }), o = this.edgePlanes[t]);
78
- const h = this.topPlane.sortedPoint, s = this.bottomPlane.sortedPoint, l = t === 3 ? 0 : t + 1;
79
- o.setPoints([h[t], s[l], s[t]]), this.addIfNotExists(o);
78
+ const h = this.topPlane.sortedPoint, n = this.bottomPlane.sortedPoint, l = t === 3 ? 0 : t + 1;
79
+ o.setPoints([h[t], n[l], n[t]]), o.line.setPoints([h[t], n[t]]), this.addIfNotExists(o);
80
80
  }
81
81
  }
82
82
  setStyle(t) {
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { type OcclusionStyle } from '../utils/color';
2
+ import { type OcclusionStyle } from '../typings/style';
3
3
  import ColoredMesh, { type ColoredMeshStyle } from '../utils/three/ColoredMesh';
4
4
  import { type AnyPosition } from '../../shared-utils/positionToVector3';
5
5
  export type CircleStyle = ColoredMeshStyle & OcclusionStyle;
@@ -2,7 +2,7 @@ var g = Object.defineProperty;
2
2
  var c = (i, e, t) => e in i ? g(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var o = (i, e, t) => (c(i, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import * as d from "three";
5
- import { DEFAULT_HIGHLIGHT_OPACITY as u } from "../utils/color.js";
5
+ import { DEFAULT_HIGHLIGHT_OPACITY as u } from "../typings/style.js";
6
6
  import { radiusToSegments as y } from "../utils/radiusToSegments.js";
7
7
  import { ColoredMesh as f } from "../utils/three/ColoredMesh.js";
8
8
  import { anyPositionToVector3 as s } from "../../shared-utils/positionToVector3.js";
@@ -1,4 +1,4 @@
1
- import type { LineStyle } from '../utils/color';
1
+ import type { LineStyle } from '../typings/style';
2
2
  import { CircleMesh, type CircleData, type CircleStyle } from './Circle';
3
3
  export type CircleWithEdgeMeshStyle = CircleStyle & LineStyle;
4
4
  export declare class CircleWithEdgeMesh extends CircleMesh {
@@ -14,7 +14,7 @@ import { IObject3D as f } from "../../shared-utils/three/IObject3D.js";
14
14
  import * as h from "three";
15
15
  import "hammerjs";
16
16
  import "three/examples/jsm/renderers/CSS3DRenderer";
17
- import { DEFAULT_HIGHLIGHT_OPACITY as M } from "../utils/color.js";
17
+ import { DEFAULT_HIGHLIGHT_OPACITY as M } from "../typings/style.js";
18
18
  import "@realsee/five/line";
19
19
  import { anyPositionToVector3 as d } from "../../shared-utils/positionToVector3.js";
20
20
  import "../../shared-utils/three/THREESphere.js";
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { type Color, type OcclusionStyle, type LineStyle } from '../utils/color';
2
+ import { type Color, type OcclusionStyle, type LineStyle } from '../typings/style';
3
3
  import { LineGeometry, LineMaterial, THREE_Line2 } from '../../shared-utils/five/FiveLine';
4
4
  import { type AnyPositions } from '../../shared-utils/positionToVector3';
5
5
  import { IObject3D } from '../../shared-utils/three/IObject3D';
@@ -28,6 +28,7 @@ export declare class THREE_Line3 extends THREE_Line2 {
28
28
  export declare class LineMesh extends IObject3D {
29
29
  name: string;
30
30
  points: THREE.Vector3[];
31
+ get style(): LineMeshStyle;
31
32
  get lineWidth(): number;
32
33
  get color(): THREE.Color;
33
34
  get dashed(): boolean;
@@ -1,18 +1,18 @@
1
1
  var E = Object.defineProperty;
2
- var a = Object.getOwnPropertySymbols;
3
- var w = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
4
- var u = (o, l, e) => l in o ? E(o, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[l] = e, f = (o, l) => {
2
+ var L = Object.getOwnPropertySymbols;
3
+ var M = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
4
+ var u = (n, l, e) => l in n ? E(n, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[l] = e, a = (n, l) => {
5
5
  for (var e in l || (l = {}))
6
- w.call(l, e) && u(o, e, l[e]);
7
- if (a)
8
- for (var e of a(l))
9
- H.call(l, e) && u(o, e, l[e]);
10
- return o;
6
+ M.call(l, e) && u(n, e, l[e]);
7
+ if (L)
8
+ for (var e of L(l))
9
+ w.call(l, e) && u(n, e, l[e]);
10
+ return n;
11
11
  };
12
- var s = (o, l, e) => (u(o, typeof l != "symbol" ? l + "" : l, e), e);
12
+ var s = (n, l, e) => (u(n, typeof l != "symbol" ? l + "" : l, e), e);
13
13
  import * as d from "three";
14
- import { DEFAULT_LINE_COLOR as b, DEFAULT_LINE_WIDTH as C, DEFAULT_HIGHLIGHT_OPACITY as _ } from "../utils/color.js";
15
- import { LineGeometry as k, LineMaterial as D, THREE_Line2 as M } from "../../shared-utils/five/FiveLine.js";
14
+ import { DEFAULT_LINE_COLOR as b, DEFAULT_LINE_WIDTH as C, DEFAULT_HIGHLIGHT_OPACITY as _ } from "../typings/style.js";
15
+ import { LineGeometry as k, LineMaterial as D, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
16
16
  import { anyPositionToVector3 as R } from "../../shared-utils/positionToVector3.js";
17
17
  import { IObject3D as x } from "../../shared-utils/three/IObject3D.js";
18
18
  import "hammerjs";
@@ -23,12 +23,12 @@ import { notNil as h } from "../../shared-utils/isNil.js";
23
23
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
24
24
  class S extends D {
25
25
  constructor(e) {
26
- var t, i;
26
+ var i, t;
27
27
  super(e);
28
28
  s(this, "_three_color");
29
- h(e == null ? void 0 : e.color) && (this.three_color = (t = e == null ? void 0 : e.color) != null ? t : 16777215), Object.keys(e).forEach((n) => {
30
- ["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(n) || n in this && (this[n] = e[n]);
31
- }), this.setDashed((i = e == null ? void 0 : e.dashed) != null ? i : !1);
29
+ h(e == null ? void 0 : e.color) && (this.three_color = (i = e == null ? void 0 : e.color) != null ? i : 16777215), Object.keys(e).forEach((o) => {
30
+ ["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(o) || o in this && (this[o] = e[o]);
31
+ }), this.setDashed((t = e == null ? void 0 : e.dashed) != null ? t : !1);
32
32
  }
33
33
  get three_color() {
34
34
  return this._three_color;
@@ -37,18 +37,18 @@ class S extends D {
37
37
  this._three_color = e, this.color = e;
38
38
  }
39
39
  setDashed(e) {
40
- e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
40
+ this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
41
41
  }
42
42
  }
43
- class T extends M {
44
- constructor(e, t) {
45
- super(e, t);
43
+ class T extends H {
44
+ constructor(e, i) {
45
+ super(e, i);
46
46
  s(this, "name", "Line3");
47
47
  }
48
48
  }
49
- class F extends x {
49
+ class z extends x {
50
50
  constructor(e) {
51
- var c, r, y, L, g;
51
+ var r, c, f, y, g;
52
52
  super();
53
53
  s(this, "name", "LineMesh");
54
54
  s(this, "points");
@@ -58,25 +58,33 @@ class F extends x {
58
58
  s(this, "opacityBeforeHighlight");
59
59
  s(this, "paramsStyle", {});
60
60
  this.paramsStyle = e != null ? e : {};
61
- const t = new k(), i = new S({
62
- color: new d.Color((c = e == null ? void 0 : e.lineColor) != null ? c : b),
63
- linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : C,
61
+ const i = new k(), t = new S({
62
+ color: new d.Color((r = e == null ? void 0 : e.lineColor) != null ? r : b),
63
+ linewidth: (c = e == null ? void 0 : e.lineWidth) != null ? c : C,
64
64
  dashScale: 40,
65
- opacity: (y = e == null ? void 0 : e.opacity) != null ? y : 1,
65
+ opacity: (f = e == null ? void 0 : e.opacity) != null ? f : 1,
66
66
  transparent: !0,
67
- dashed: (L = e == null ? void 0 : e.dashed) != null ? L : !1
68
- }), n = new S({
67
+ dashed: (y = e == null ? void 0 : e.dashed) != null ? y : !1
68
+ }), o = new S({
69
69
  color: new d.Color((g = e == null ? void 0 : e.lineColor) != null ? g : b),
70
- linewidth: i == null ? void 0 : i.linewidth,
71
- dashScale: i.dashScale,
70
+ linewidth: t.linewidth * 0.9,
71
+ dashScale: t.dashScale,
72
+ opacity: t.opacity * 0.8,
72
73
  depthTest: !1,
73
74
  depthWrite: !1,
74
75
  transparent: !0,
75
- opacity: i.opacity * 0.2,
76
- dashed: i.dashed,
77
- resolution: i.resolution
76
+ resolution: t.resolution
78
77
  });
79
- this.line = new T(t, i), this.backLine = new T(t, n), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points);
78
+ this.line = new T(i, t), this.backLine = new T(i, o), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points);
79
+ }
80
+ get style() {
81
+ return {
82
+ lineColor: this.color,
83
+ lineWidth: this.lineWidth,
84
+ dashed: this.dashed,
85
+ occlusionVisibility: this.occlusionVisibility,
86
+ occlusionMode: this.occlusionMode
87
+ };
80
88
  }
81
89
  get lineWidth() {
82
90
  return this.line.material.linewidth;
@@ -94,24 +102,24 @@ class F extends x {
94
102
  return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
95
103
  }
96
104
  setPoints(e) {
97
- const t = e.map(R).filter(h);
98
- if (this.points = t, t.length < 2)
105
+ const i = e.map(R).filter(h);
106
+ if (this.points = i, i.length < 2)
99
107
  return;
100
108
  this.addIfNotExists(this.line, this.backLine);
101
- const i = t.flatMap((n) => [n.x, n.y, n.z]);
102
- i.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new k(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(i), this.line.computeLineDistances(), this.needsRender = !0;
109
+ const t = i.flatMap((o) => [o.x, o.y, o.z]);
110
+ t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new k(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.needsRender = !0;
103
111
  }
104
- setResolution(e, t) {
105
- const i = this.line.material.resolution;
106
- (i.x !== e || i.y !== t) && (i.set(e, t), this.needsRender = !0);
107
- const n = this.backLine.material.resolution;
108
- (n.x !== e || n.y !== t) && (n.set(e, t), this.needsRender = !0);
112
+ setResolution(e, i) {
113
+ const t = this.line.material.resolution;
114
+ (t.x !== e || t.y !== i) && (t.set(e, i), this.needsRender = !0);
115
+ const o = this.backLine.material.resolution;
116
+ (o.x !== e || o.y !== i) && (o.set(e, i), this.needsRender = !0);
109
117
  }
110
118
  setStyle(e) {
111
- var n, c, r;
112
- this.paramsStyle = f(f({}, this.paramsStyle), e), h(e.lineColor) && (this.line.material.three_color = new d.Color(e.lineColor), this.backLine.material.three_color = new d.Color(e.lineColor)), h(e.lineWidth) && (this.line.material.linewidth = e.lineWidth, this.backLine.material.linewidth = e.lineWidth), h(e.dashed) && (this.line.material.setDashed(e.dashed), this.backLine.material.setDashed(e.dashed)), h(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = e.opacity * 0.2);
113
- const t = (n = e.occlusionVisibility) != null ? n : this.paramsStyle.occlusionVisibility, i = (r = (c = e.occlusionMode) != null ? c : this.paramsStyle.occlusionMode) != null ? r : "translucence";
114
- h(t) && (t ? i === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : i === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0) : (this.line.material.depthTest = !0, this.backLine.visible = !1)), this.needsRender = !0;
119
+ var o, r, c;
120
+ this.paramsStyle = a(a({}, this.paramsStyle), e), h(e.lineColor) && (this.line.material.three_color = new d.Color(e.lineColor), this.backLine.material.three_color = new d.Color(e.lineColor)), h(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), h(e.dashed) && this.line.material.setDashed(e.dashed), h(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.2);
121
+ const i = (o = e.occlusionVisibility) != null ? o : this.paramsStyle.occlusionVisibility, t = (c = (r = e.occlusionMode) != null ? r : this.paramsStyle.occlusionMode) != null ? c : "translucence";
122
+ i ? t === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : t === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0, this.line.material.opacity === 1 ? this.backLine.material.setDashed(!0) : this.backLine.material.setDashed(this.line.material.dashed)) : (this.line.material.depthTest = !0, this.backLine.visible = !1), this.needsRender = !0;
115
123
  }
116
124
  highlight() {
117
125
  this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * _, this.backLine.material.opacity = this.backLine.material.opacity * _, this.needsRender = !0);
@@ -121,5 +129,5 @@ class F extends x {
121
129
  }
122
130
  }
123
131
  export {
124
- F as LineMesh
132
+ z as LineMesh
125
133
  };
@@ -15,7 +15,7 @@ type Style = LineMeshStyle & {
15
15
  export declare class LineWithDotsMesh extends LineMesh {
16
16
  name: string;
17
17
  pointGroup: IObject3D;
18
- style: Style;
18
+ private _paramsStyle;
19
19
  get startPoint(): PointMesh;
20
20
  get endPoint(): PointMesh;
21
21
  get visiblePointMeshes(): PointMesh[];
@@ -1,35 +1,35 @@
1
- var f = Object.defineProperty, g = Object.defineProperties;
2
- var c = Object.getOwnPropertyDescriptors;
3
- var y = Object.getOwnPropertySymbols;
4
- var b = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
5
- var n = (s, i, t) => i in s ? f(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t, o = (s, i) => {
1
+ var m = Object.defineProperty, d = Object.defineProperties;
2
+ var f = Object.getOwnPropertyDescriptors;
3
+ var a = Object.getOwnPropertySymbols;
4
+ var g = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
5
+ var n = (s, i, t) => i in s ? m(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t, o = (s, i) => {
6
6
  for (var t in i || (i = {}))
7
- b.call(i, t) && n(s, t, i[t]);
8
- if (y)
9
- for (var t of y(i))
10
- P.call(i, t) && n(s, t, i[t]);
7
+ g.call(i, t) && n(s, t, i[t]);
8
+ if (a)
9
+ for (var t of a(i))
10
+ c.call(i, t) && n(s, t, i[t]);
11
11
  return s;
12
- }, r = (s, i) => g(s, c(i));
12
+ }, r = (s, i) => d(s, f(i));
13
13
  var e = (s, i, t) => (n(s, typeof i != "symbol" ? i + "" : i, t), t);
14
- import { anyPositionToVector3 as M } from "../../shared-utils/positionToVector3.js";
15
- import { PointMesh as m } from "./Point.js";
14
+ import { anyPositionToVector3 as b } from "../../shared-utils/positionToVector3.js";
15
+ import { PointMesh as P } from "./Point.js";
16
16
  import "three";
17
17
  import "hammerjs";
18
18
  import "three/examples/jsm/renderers/CSS3DRenderer";
19
- import { LineMesh as V } from "./Line.js";
19
+ import { LineMesh as S } from "./Line.js";
20
20
  import "../../shared-utils/three/THREESphere.js";
21
21
  import "animejs";
22
- import { notNil as u } from "../../shared-utils/isNil.js";
22
+ import { notNil as y } from "../../shared-utils/isNil.js";
23
23
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
24
- import { IObject3D as E } from "../../shared-utils/three/IObject3D.js";
25
- class R extends V {
24
+ import { IObject3D as M } from "../../shared-utils/three/IObject3D.js";
25
+ class N extends S {
26
26
  constructor(t) {
27
27
  super();
28
28
  e(this, "name", "LineWithDotsMesh");
29
- e(this, "pointGroup", new E());
30
- e(this, "style");
29
+ e(this, "pointGroup", new M());
30
+ e(this, "_paramsStyle");
31
31
  e(this, "setStyle", (t) => {
32
- super.setStyle(t), this.style = o(o({}, this.style), t), this.pointMeshes.forEach((h) => h.setStyle(r(o({}, this.style), { color: t.lineColor }))), this.updateEdgePointsVisibility(), this.needsRender = !0;
32
+ super.setStyle(t), this._paramsStyle = o(o({}, this._paramsStyle), t), this.pointMeshes.forEach((h) => h.setStyle(r(o({}, this._paramsStyle), { color: t.lineColor }))), this.updateEdgePointsVisibility(), this.needsRender = !0;
33
33
  });
34
34
  e(this, "highlight", () => {
35
35
  super.highlight(), this.pointMeshes.forEach((t) => t.highlight());
@@ -39,7 +39,7 @@ class R extends V {
39
39
  });
40
40
  e(this, "updateEdgePointsVisibility", () => {
41
41
  var t;
42
- u((t = this.style) == null ? void 0 : t.pointVisibility) && (this.startPoint && (this.startPoint.visible = typeof this.style.pointVisibility == "object" ? this.style.pointVisibility.startPoint : this.style.pointVisibility), this.endPoint && (this.endPoint.visible = typeof this.style.pointVisibility == "object" ? this.style.pointVisibility.endPoint : this.style.pointVisibility));
42
+ y((t = this._paramsStyle) == null ? void 0 : t.pointVisibility) && (this.startPoint && (this.startPoint.visible = typeof this._paramsStyle.pointVisibility == "object" ? this._paramsStyle.pointVisibility.startPoint : this._paramsStyle.pointVisibility), this.endPoint && (this.endPoint.visible = typeof this._paramsStyle.pointVisibility == "object" ? this._paramsStyle.pointVisibility.endPoint : this._paramsStyle.pointVisibility));
43
43
  });
44
44
  this.add(this.pointGroup), t && this.setStyle(t), t != null && t.points && this.setPoints(t.points);
45
45
  }
@@ -57,14 +57,14 @@ class R extends V {
57
57
  }
58
58
  setPoints(t) {
59
59
  super.setPoints(t);
60
- const h = t.map(M).filter(u);
61
- this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), h.forEach((d) => {
62
- var p;
63
- const l = new m(r(o({}, this.style), { color: (p = this.style) == null ? void 0 : p.lineColor }));
64
- l.position.copy(d), this.pointGroup.add(l);
60
+ const h = t.map(b).filter(y);
61
+ this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), h.forEach((u) => {
62
+ var l;
63
+ const p = new P(r(o({}, this.style), { color: (l = this._paramsStyle) == null ? void 0 : l.lineColor }));
64
+ p.position.copy(u), this.pointGroup.add(p);
65
65
  }), this.updateEdgePointsVisibility(), this.needsRender = !0;
66
66
  }
67
67
  }
68
68
  export {
69
- R as LineWithDotsMesh
69
+ N as LineWithDotsMesh
70
70
  };
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { type ColorStyle, type OcclusionStyle } from '../utils/color';
2
+ import { type ColorStyle, type OcclusionStyle } from '../typings/style';
3
3
  import { IObject3D } from '../../shared-utils/three/IObject3D';
4
4
  import type { PointData } from '../utils/data';
5
5
  export type { PointData } from '../utils/data';
@@ -12,7 +12,7 @@ var n = (i, e, t) => e in i ? C(i, e, { enumerable: !0, configurable: !0, writab
12
12
  }, g = (i, e) => N(i, P(e));
13
13
  var A = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
14
14
  import * as o from "three";
15
- import { DEFAULT_HIGHLIGHT_OPACITY as b } from "../utils/color.js";
15
+ import { DEFAULT_HIGHLIGHT_OPACITY as b } from "../typings/style.js";
16
16
  import { IObject3D as E } from "../../shared-utils/three/IObject3D.js";
17
17
  import { anyPositionToVector3 as m } from "../../shared-utils/positionToVector3.js";
18
18
  import "hammerjs";
@@ -3,7 +3,7 @@ var p = (o, i, e) => i in o ? l(o, i, { enumerable: !0, configurable: !0, writab
3
3
  var t = (o, i, e) => (p(o, typeof i != "symbol" ? i + "" : i, e), e);
4
4
  import * as r from "three";
5
5
  import { generatePolygonGeometry as g } from "../../shared-utils/three/generatePolygonGeometry.js";
6
- import { DEFAULT_HIGHLIGHT_OPACITY as a } from "../utils/color.js";
6
+ import { DEFAULT_HIGHLIGHT_OPACITY as a } from "../typings/style.js";
7
7
  import { anyPositionToVector3 as f } from "../../shared-utils/positionToVector3.js";
8
8
  import { ColoredMesh as y } from "../utils/three/ColoredMesh.js";
9
9
  import { getGeometryInfo as d } from "../../shared-utils/three/geometryUtil.js";
@@ -1,6 +1,6 @@
1
1
  import type { AnyPositions } from '../../shared-utils/positionToVector3';
2
2
  import { PolylineMesh } from './Polyline';
3
- import type { LineStyle } from '../utils/color';
3
+ import type { LineStyle } from '../typings/style';
4
4
  import PolygonMesh, { type PolygonData, type PolygonStyle } from './Polygon';
5
5
  import * as THREE from 'three';
6
6
  export type PolygonWithEdgeMeshStyle = PolygonStyle & LineStyle;
@@ -2,7 +2,7 @@ import { IObject3D } from '../../shared-utils/three/IObject3D';
2
2
  import { type AnyPosition, type AnyPositions } from '../../shared-utils/positionToVector3';
3
3
  import type { AreaData } from './Area';
4
4
  import * as THREE from 'three';
5
- import type { LineStyle } from '../utils/color';
5
+ import type { LineStyle } from '../typings/style';
6
6
  import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
7
7
  import { PolygonWithEdgeMesh } from './PolygonWithEdge';
8
8
  export type PrismStyle = ColoredMeshStyle & LineStyle;
@@ -1,8 +1,7 @@
1
1
  import type { AnyPositions } from '../../shared-utils/positionToVector3';
2
2
  import { RectangleMesh, type RectangleData, type RectangleStyle } from './Rectangle';
3
3
  import { PolylineMesh } from './Polyline';
4
- import type { LineStyle } from '../utils/color';
5
- import * as THREE from 'three';
4
+ import type { LineStyle } from '../typings/style';
6
5
  export type RectangleWithEdgeMeshStyle = RectangleStyle & LineStyle;
7
6
  /**
8
7
  * @description: 带边线的矩形
@@ -10,8 +9,8 @@ export type RectangleWithEdgeMeshStyle = RectangleStyle & LineStyle;
10
9
  export declare class RectangleWithEdgeMesh extends RectangleMesh {
11
10
  name: string;
12
11
  get lineWidth(): number;
13
- get lineColor(): THREE.Color;
14
- protected line: PolylineMesh;
12
+ get lineColor(): import("three").Color;
13
+ line: PolylineMesh;
15
14
  constructor(params?: Partial<RectangleWithEdgeMeshStyle & RectangleData>);
16
15
  setPoints(points: AnyPositions): void;
17
16
  setStyle(style: Partial<RectangleWithEdgeMeshStyle>): void;