@realsee/dnalogel 3.43.0 → 3.44.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 (158) hide show
  1. package/CHANGELOG.md +4 -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 +7374 -7116
  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 +23 -33
  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
@@ -4,11 +4,19 @@ interface IIntersection extends THREE.Intersection {
4
4
  raycaster: THREE.Raycaster;
5
5
  isVirtual: boolean;
6
6
  }
7
+ /**
8
+ * @description 根据 ndc 坐标获取 Intersect
9
+ */
7
10
  export declare function getIntersectByNdcPosition(five: Five, position: {
8
11
  x: number;
9
12
  y: number;
10
- }): IIntersection;
11
- export declare function getIntersectByRaycaster(five: Five, raycaster: THREE.Raycaster): IIntersection;
12
- export declare function getVirtualIntersectByRaycaster(raycaster: THREE.Raycaster): IIntersection;
13
- export declare function getRealIntersectByRaycaster(five: Five, raycaster: THREE.Raycaster): IIntersection;
13
+ }, config?: {
14
+ virtualPoint?: boolean;
15
+ }): IIntersection | undefined;
16
+ /**
17
+ * @description 根据射线获取 Intersect
18
+ */
19
+ export declare function getIntersectByRaycaster(five: Five, raycaster: THREE.Raycaster, config?: {
20
+ virtualPoint?: boolean;
21
+ }): IIntersection | undefined;
14
22
  export {};
@@ -0,0 +1,2 @@
1
+ import { Five } from '@realsee/five';
2
+ export declare function initialCSS3DRender(five: Five): void;
@@ -1 +1 @@
1
- export default function deg2Rad(deg: number): number;
1
+ export declare function deg2Rad(deg: number): number;
@@ -1 +1 @@
1
- export default function rad2Deg(rad: number): number;
1
+ export declare function rad2Deg(rad: number): number;
@@ -1,14 +1,14 @@
1
1
  import { Vector3 } from 'three';
2
2
  export type AnyPosition = Vector3 | number[] | {
3
- x: number;
4
- y: number;
5
- z: number;
3
+ x?: number;
4
+ y?: number;
5
+ z?: number;
6
6
  };
7
7
  export type AnyPositions = Array<AnyPosition>;
8
8
  export declare const positionToVector3: ({ x, y, z }: {
9
- x: number;
10
- y: number;
11
- z: number;
9
+ x?: number;
10
+ y?: number;
11
+ z?: number;
12
12
  }) => Vector3;
13
13
  export declare const arrayPositionToVector3: (arrayPosition: number[]) => Vector3;
14
14
  export declare const anyPositionToVector3: (position: AnyPosition) => Vector3;
@@ -1,15 +1,27 @@
1
- import type { Five } from '@realsee/five';
2
- import { PointSelectorHelper, type PointIntersection } from './PointSelectorHelper';
1
+ import type { Five, Mode as FiveMode } from '@realsee/five';
2
+ import { PointSelectorHelper, type PointIntersection, type PointSelectorHelperConfig } from './utils/PointSelectorHelper';
3
3
  import type { Vector3 } from 'three';
4
- import { Subscribe } from '../Subscribe';
4
+ import { Subscribe } from '../../Subscribe';
5
+ export type { PointIntersection };
5
6
  interface Config {
6
7
  /**
7
8
  * @description: 选点的两种模式, 'fixed' 为固定选点为屏幕中心点,拖动five画布来更新点,'cursor' 为跟随鼠标移动来更新点, 'auto' 则根据设备类型自动选择
8
9
  * @default: 'auto'
9
10
  */
10
11
  mode: 'fixed' | 'cursor' | 'auto';
11
- pointSelectorHelperParams: ConstructorParameters<typeof PointSelectorHelper>[1];
12
+ /**
13
+ * @description 当鼠标位置没有模型时,是否生成一个虚拟点
14
+ * ```markdown
15
+ * true: 生成虚拟点
16
+ * false: 不生成虚拟点
17
+ * FiveMode[]: 指定的five mode下才生成虚拟点,推荐 ['Panorama']
18
+ * ```
19
+ * @default: true
20
+ */
21
+ virtualPoint: boolean | FiveMode[];
22
+ helper: PointSelectorHelperConfig;
12
23
  }
24
+ export type PointSelectorConfig = Partial<Config>;
13
25
  type EventMap = {
14
26
  /**
15
27
  * @description: 与模型交点更新时触发,移出监听范围时为null
@@ -57,12 +69,17 @@ export declare class PointSelector extends Subscribe<EventMap> {
57
69
  private adherePointsRadius;
58
70
  private lastFiveHelperVisible?;
59
71
  private mousePosition;
72
+ private config;
60
73
  private get mouseNdcPosition();
61
- constructor(five: Five, config?: Partial<Config>);
74
+ private get virtualPoint();
75
+ constructor(five: Five, config?: PointSelectorConfig);
62
76
  enable(): void;
63
77
  disable(): void;
64
78
  dispose(): void;
65
- setAdherePoints(points: Vector3[] | ((intersection: PointIntersection) => Vector3[]) | null, radius?: number): void;
79
+ setAdherePoints(points: Vector3[] | ((params: {
80
+ intersection: PointIntersection;
81
+ pointSelectorInstance: PointSelector;
82
+ }) => Vector3[]) | null, radius?: number): void;
66
83
  /**
67
84
  * @description: 主动触发一次选点
68
85
  * @return: select 是否成功
@@ -104,4 +121,3 @@ export declare class PointSelector extends Subscribe<EventMap> {
104
121
  private renderScreenCenter;
105
122
  private emitIntersectionUpdate;
106
123
  }
107
- export {};
@@ -1,5 +1,8 @@
1
1
  import * as THREE from 'three';
2
- import type { Intersection } from '../../typings/typings';
2
+ import type { Intersection } from '../../../../typings/typings';
3
+ import type { PointHelperAbstract } from './typing';
4
+ import { CSS3DObjectPlus } from '../../../../CSS3DRenderPlugin/utils/three/CSS3DObject';
5
+ import type { Five } from '@realsee/five';
3
6
  export interface MouseGroupParameter {
4
7
  isMobile?: boolean;
5
8
  useNormalVector?: boolean;
@@ -8,15 +11,20 @@ export interface MouseGroupParameter {
8
11
  declare function createPlaneMesh(): THREE.Mesh<THREE.PlaneGeometry, THREE.MeshBasicMaterial>;
9
12
  declare function createLineMesh(): THREE.Mesh<THREE.TubeGeometry, THREE.ShaderMaterial>;
10
13
  declare function createBallMesh(): THREE.Mesh<THREE.SphereGeometry, THREE.MeshBasicMaterial>;
14
+ declare function createBorderMesh(): CSS3DObjectPlus<HTMLElement>;
11
15
  type PlanMesh = ReturnType<typeof createPlaneMesh>;
12
16
  type LineMesh = ReturnType<typeof createLineMesh>;
13
17
  type BallMesh = ReturnType<typeof createBallMesh>;
14
- export declare class PointHelper extends THREE.Object3D {
18
+ type BorderMesh = ReturnType<typeof createBorderMesh>;
19
+ export declare class PointHelper extends THREE.Object3D implements PointHelperAbstract {
15
20
  planeMesh: PlanMesh;
16
21
  lineMesh: LineMesh;
17
22
  ballMesh: BallMesh;
18
- constructor();
23
+ borderMesh: BorderMesh;
24
+ constructor(five: Five);
19
25
  updateWithIntersect(intersect: Intersection): void;
26
+ show(): void;
27
+ hide(): void;
20
28
  dispose(): void;
21
29
  }
22
30
  export {};
@@ -0,0 +1,30 @@
1
+ import * as THREE from 'three';
2
+ import type { Intersection } from '../../../../typings/typings';
3
+ import type { Five } from '@realsee/five';
4
+ import type { PointHelperAbstract } from './typing';
5
+ import { ICSS3DSprite } from '../../../../CSS3DRenderPlugin/utils/three/CSS3DSprite';
6
+ export interface MouseGroupParameter {
7
+ isMobile?: boolean;
8
+ useNormalVector?: boolean;
9
+ ballColor?: number;
10
+ }
11
+ declare function createPlaneMesh(): THREE.Mesh<THREE.CircleGeometry, THREE.ShaderMaterial>;
12
+ declare function createCrossline(): THREE.Group;
13
+ declare function createLineMesh(length: number): THREE.Mesh<THREE.TubeGeometry, THREE.MeshBasicMaterial>;
14
+ declare function createRingMesh(): THREE.Mesh<THREE.RingGeometry, THREE.MeshBasicMaterial>;
15
+ declare function createBallMesh(): THREE.Mesh<THREE.SphereGeometry, THREE.MeshBasicMaterial>;
16
+ declare function createCSSBallMesh(): ICSS3DSprite;
17
+ export declare class PointHelper2 extends THREE.Object3D implements PointHelperAbstract {
18
+ planeMesh: ReturnType<typeof createPlaneMesh>;
19
+ ringMesh: ReturnType<typeof createRingMesh>;
20
+ crossline: ReturnType<typeof createCrossline>;
21
+ lineMesh: ReturnType<typeof createLineMesh>;
22
+ ballMesh: ReturnType<typeof createBallMesh>;
23
+ cssBallMesh: ReturnType<typeof createCSSBallMesh>;
24
+ constructor(five: Five);
25
+ updateWithIntersect(intersect: Intersection): void;
26
+ show(): void;
27
+ hide(): void;
28
+ dispose(): void;
29
+ }
30
+ export {};
@@ -1,13 +1,13 @@
1
1
  import * as THREE from 'three';
2
2
  import type { Five } from '@realsee/five';
3
- import { Magnifier, PointHelper, PointDomHelper } from '.';
4
- import type { Intersection } from '../../typings/typings';
5
- import { Subscribe } from '../Subscribe';
6
- interface Options {
3
+ import { Magnifier } from '../..';
4
+ import type { Intersection } from '../../../../typings/typings';
5
+ import { Subscribe } from '../../../Subscribe';
6
+ import type { PointHelperAbstract } from './typing';
7
+ export interface PointSelectorHelperConfig {
7
8
  magnifier?: Magnifier | null;
8
9
  magnifierParams?: ConstructorParameters<typeof Magnifier>[1];
9
- pointHelper?: PointHelper | null;
10
- pointDomHelper?: PointDomHelper | null;
10
+ pointHelper?: PointHelperAbstract | 'default' | 'highlight' | null;
11
11
  container?: Element;
12
12
  }
13
13
  type EventMap = {
@@ -26,17 +26,16 @@ export declare class PointSelectorHelper {
26
26
  hooks: Subscribe<EventMap>;
27
27
  position: PointIntersection | undefined;
28
28
  magnifier: Magnifier | null;
29
- private pointHelper;
30
- private pointDomHelper;
29
+ pointHelper: PointHelperAbstract | null;
31
30
  private state;
32
31
  private group;
33
- constructor(five: Five, options?: Options);
32
+ constructor(five: Five, options?: PointSelectorHelperConfig);
34
33
  show: () => void;
35
34
  hide: () => void;
36
35
  enable(): void;
37
36
  disable(): void;
38
37
  dispose(): void;
39
- updateWithIntersect: (intersect: Intersection, config?: {
38
+ updateWithIntersect: (intersect?: Intersection, config?: {
40
39
  emitEvent: boolean;
41
40
  }) => void;
42
41
  private abortUpdateMagnifier;
@@ -0,0 +1,8 @@
1
+ import * as THREE from 'three';
2
+ import type { Intersection } from '../../../../typings/typings';
3
+ export declare abstract class PointHelperAbstract extends THREE.Object3D {
4
+ abstract updateWithIntersect(intersect: Intersection): void;
5
+ abstract show(): void;
6
+ abstract hide(): void;
7
+ abstract dispose(): void;
8
+ }
@@ -2,9 +2,8 @@ export * from './Magnifier';
2
2
  export * from './getCoords';
3
3
  export * from './getRaycaster';
4
4
  export * from './getIntersect';
5
- export * from './PointHelper';
6
- export * from './PointDomHelper';
7
- export * from './PointSelectorHelper';
5
+ export * from './PointSelector/utils/PointHelper';
6
+ export * from './PointSelector/utils/PointSelectorHelper';
8
7
  export * from './core/Object3D';
9
8
  export * from './objects/LineSegments';
10
9
  export * from './boundingBox';
@@ -30,11 +30,11 @@ var u = (h, o, t) => new Promise((i, e) => {
30
30
  import * as g from "three";
31
31
  import { Controller as k } from "../base/BasePluginWithData.js";
32
32
  import "hammerjs";
33
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
34
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
35
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
33
+ import "three/examples/jsm/renderers/CSS3DRenderer";
34
+ import "@realsee/five/line";
36
35
  import "../shared-utils/three/THREESphere.js";
37
36
  import "animejs";
37
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
38
38
  import { equal as I } from "../shared-utils/equal.js";
39
39
  import { AreaMakerItem as D } from "./utils/Item.js";
40
40
  import "../base/BasePlugin.js";
@@ -45,19 +45,6 @@ import "../shared-utils/Utils/WorkUtil.js";
45
45
  import "../shared-utils/five/transformPosition.js";
46
46
  import "../shared-utils/five/getFiveModel.js";
47
47
  import "../shared-utils/url/absoluteUrl.js";
48
- import "../shared-utils/positionToVector3.js";
49
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
50
- import "three/examples/jsm/renderers/CSS3DRenderer";
51
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
52
- import "../shared-utils/util.js";
53
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
54
- import "../CSS3DRenderPlugin/utils/even.js";
55
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
56
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
57
- import "../shared-utils/three/centerPoint.js";
58
- import "../shared-utils/three/getObjectVisible.js";
59
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
60
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
61
48
  import "../shared-utils/isTruelyObject.js";
62
49
  import "../shared-utils/three/core/Object3D.js";
63
50
  import "../shared-utils/three/objects/LineSegments.js";
@@ -68,7 +55,7 @@ import "../vendor/svelte/internal/index.js";
68
55
  import "../components/AreaLabel/Assets/roomLabelBg.js";
69
56
  import "../shared-utils/math/planimetry.js";
70
57
  import "../shared-utils/dom/resizeObserver.js";
71
- class pt extends k {
58
+ class et extends k {
72
59
  /** AreaMakerPlugin
73
60
  * @param `five` `<Five>` Five 实例
74
61
  * @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
@@ -343,5 +330,5 @@ class pt extends k {
343
330
  }
344
331
  }
345
332
  export {
346
- pt as Controller
333
+ et as Controller
347
334
  };
@@ -4,22 +4,8 @@ import "../base/BasePluginWithData.js";
4
4
  import "../base/BasePlugin.js";
5
5
  import "../shared-utils/Subscribe.js";
6
6
  import "hammerjs";
7
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
8
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
9
- import "../shared-utils/positionToVector3.js";
10
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
11
7
  import "three/examples/jsm/renderers/CSS3DRenderer";
12
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
13
- import "../shared-utils/util.js";
14
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
15
- import "../CSS3DRenderPlugin/utils/even.js";
16
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
17
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
18
- import "../shared-utils/three/centerPoint.js";
19
- import "../shared-utils/three/getObjectVisible.js";
20
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
21
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
22
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
8
+ import "@realsee/five/line";
23
9
  import "../shared-utils/three/THREESphere.js";
24
10
  import "animejs";
25
11
  import "../shared-utils/Utils/FiveUtil.js";
@@ -28,6 +14,7 @@ import "../shared-utils/Utils/WorkUtil.js";
28
14
  import "../shared-utils/five/transformPosition.js";
29
15
  import "../shared-utils/five/getFiveModel.js";
30
16
  import "../shared-utils/url/absoluteUrl.js";
17
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
31
18
  import "../shared-utils/equal.js";
32
19
  import "../shared-utils/isTruelyObject.js";
33
20
  import "./utils/Item.js";
@@ -40,7 +27,7 @@ import "../vendor/svelte/internal/index.js";
40
27
  import "../components/AreaLabel/Assets/roomLabelBg.js";
41
28
  import "../shared-utils/math/planimetry.js";
42
29
  import "../shared-utils/dom/resizeObserver.js";
43
- const T = (r, o) => new t(r, o);
30
+ const E = (r, o) => new t(r, o);
44
31
  export {
45
- T as AreaMakerPlugin
32
+ E as AreaMakerPlugin
46
33
  };
@@ -4,9 +4,8 @@ var i = (n, e, t) => (b(n, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import * as a from "three";
5
5
  import "hammerjs";
6
6
  import { Subscribe as k } from "../../shared-utils/Subscribe.js";
7
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
8
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
9
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
7
+ import "three/examples/jsm/renderers/CSS3DRenderer";
8
+ import "@realsee/five/line";
10
9
  import { Object3D as y } from "../../shared-utils/three/core/Object3D.js";
11
10
  import { LineSegments as T } from "../../shared-utils/three/objects/LineSegments.js";
12
11
  import "../../shared-utils/three/THREESphere.js";
@@ -15,19 +14,7 @@ import { BetterTween as C } from "../../shared-utils/animationFrame/BetterTween.
15
14
  import { LabelItem as O } from "../../components/AreaLabel/LabelItem.js";
16
15
  import { getCenterPointOfPoints as v } from "../../shared-utils/math/planimetry.js";
17
16
  import { resizeObserver as M } from "../../shared-utils/dom/resizeObserver.js";
18
- import "../../shared-utils/positionToVector3.js";
19
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
20
- import "three/examples/jsm/renderers/CSS3DRenderer";
21
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
22
- import "../../shared-utils/util.js";
23
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
24
- import "../../CSS3DRenderPlugin/utils/even.js";
25
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
26
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
27
- import "../../shared-utils/three/centerPoint.js";
28
- import "../../shared-utils/three/getObjectVisible.js";
29
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
30
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
17
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
31
18
  import "../../shared-utils/animationFrame/index.js";
32
19
  import "../../vendor/svelte/internal/index.js";
33
20
  import "../../components/AreaLabel/Assets/roomLabelBg.js";
@@ -41,7 +28,7 @@ class V extends y {
41
28
  this.areaMakerItem.makerObject.raycast(t, s);
42
29
  }
43
30
  }
44
- class st {
31
+ class Y {
45
32
  constructor(e, t) {
46
33
  i(this, "id");
47
34
  /** 标注名称 */
@@ -128,14 +115,14 @@ class st {
128
115
  this.makerObject.material.opacity = o, this.outline.material.opacity = l;
129
116
  return;
130
117
  }
131
- return new Promise((m) => {
118
+ return new Promise((c) => {
132
119
  this.opacityAnime = new C({ makerObjectOpacity: s, outlineOpacity: r }).to({
133
120
  makerObjectOpacity: o,
134
121
  outlineOpacity: l
135
- }).onUpdate(({ makerObjectOpacity: p, outlineOpacity: c }) => {
136
- this.makerObject.material.opacity = p, this.outline.material.opacity = c, this.plugin.five.needsRender = !0;
137
- }).onComplete(() => m(!0)).onDispose(() => {
138
- this.makerObject.material.opacity = o, this.outline.material.opacity = l, this.plugin.five.needsRender = !0, m(!1);
122
+ }).onUpdate(({ makerObjectOpacity: m, outlineOpacity: p }) => {
123
+ this.makerObject.material.opacity = m, this.outline.material.opacity = p, this.plugin.five.needsRender = !0;
124
+ }).onComplete(() => c(!0)).onDispose(() => {
125
+ this.makerObject.material.opacity = o, this.outline.material.opacity = l, this.plugin.five.needsRender = !0, c(!1);
139
126
  }).play();
140
127
  });
141
128
  });
@@ -211,9 +198,9 @@ class st {
211
198
  };
212
199
  this.containerResizeTimeoutID && clearTimeout(this.containerResizeTimeoutID), this.containerResizeTimeoutID = setTimeout(t, 100);
213
200
  });
214
- var m, p, c, g;
215
- const s = t.object_data, o = s.bottom_y, r = s.height, l = new a.Color((m = s.color) != null ? m : "#FFFFFF"), h = (p = s.opacity) != null ? p : 0.4;
216
- this.data = t, this.id = t.id, this.name = (c = t.name) != null ? c : "", this.plugin = e, this.height = r, this.bottomY = o, this.opacity = h, this.shape = new a.Shape().fromJSON(s.shape), this.floorIndex = t.floor_index, this.makerObject = new a.Mesh(d(this.shape, r), P(l, h)), u(this.makerObject, o), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline = new T(
201
+ var c, m, p, g;
202
+ const s = t.object_data, o = s.bottom_y, r = s.height, l = new a.Color((c = s.color) != null ? c : "#FFFFFF"), h = (m = s.opacity) != null ? m : 0.4;
203
+ this.data = t, this.id = t.id, this.name = (p = t.name) != null ? p : "", this.plugin = e, this.height = r, this.bottomY = o, this.opacity = h, this.shape = new a.Shape().fromJSON(s.shape), this.floorIndex = t.floor_index, this.makerObject = new a.Mesh(d(this.shape, r), P(l, h)), u(this.makerObject, o), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline = new T(
217
204
  new a.EdgesGeometry(this.makerObject.geometry),
218
205
  new a.LineBasicMaterial({ color: l, transparent: !0 })
219
206
  ), u(this.outline, o), this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.setHeight(r), this.modelGroup = new V(this), this.modelGroup.visible = (g = s.visible) != null ? g : !0;
@@ -297,5 +284,5 @@ function u(n, e) {
297
284
  t.multiply(s), t.multiply(o), t.multiply(r), n.applyMatrix4(t);
298
285
  }
299
286
  export {
300
- st as AreaMakerItem
287
+ Y as AreaMakerItem
301
288
  };
@@ -15,16 +15,16 @@ import { CSS3DRender as j } from "./utils/three/CSS3DRender.js";
15
15
  import x from "./utils/generateBehindFiveElement.js";
16
16
  import "three";
17
17
  import "hammerjs";
18
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
18
+ import "three/examples/jsm/renderers/CSS3DRenderer";
19
+ import "@realsee/five/line";
19
20
  import "../shared-utils/three/THREESphere.js";
20
21
  import "animejs";
21
22
  import { absoluteUrl as P } from "../shared-utils/url/absoluteUrl.js";
23
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
22
24
  import { waitFiveModelLoaded as w } from "../shared-utils/five/fiveModelLoad.js";
23
25
  import "../shared-utils/positionToVector3.js";
24
26
  import "./utils/three/CSS3DRenderer.js";
25
- import "three/examples/jsm/renderers/CSS3DRenderer";
26
- import "./utils/getAllCSS3DObject.js";
27
- import "../shared-utils/util.js";
27
+ import "./utils/three/THREEJS_CSS3DRenderer.js";
28
28
  import "./utils/createResizeObserver.js";
29
29
  import "./utils/even.js";
30
30
  import "../shared-utils/Subscribe.js";
@@ -32,11 +32,14 @@ import "./utils/three/CSS3DObject.js";
32
32
  import "./utils/three/OpacityMesh.js";
33
33
  import "../shared-utils/three/centerPoint.js";
34
34
  import "../shared-utils/three/getObjectVisible.js";
35
+ import "../shared-utils/isNil.js";
35
36
  import "./utils/three/CSS3DScene.js";
37
+ import "./utils/getAllCSS3DObject.js";
38
+ import "../shared-utils/util.js";
36
39
  import "./utils/three/CSS3DGroup.js";
37
40
  import "../shared-utils/five/getFiveModel.js";
38
41
  const b = "v2.0.1", E = `CSS3DRenderPlugin@${b}`;
39
- class ee extends j {
42
+ class re extends j {
40
43
  constructor(e) {
41
44
  super();
42
45
  n(this, "five");
@@ -149,5 +152,5 @@ class ee extends j {
149
152
  }
150
153
  export {
151
154
  E as PLUGIN_NAME,
152
- ee as default
155
+ re as default
153
156
  };
@@ -1,19 +1,19 @@
1
1
  import o from "./Controller.js";
2
- import { CSS3DRender as y } from "./utils/three/CSS3DRender.js";
2
+ import { CSS3DRender as B } from "./utils/three/CSS3DRender.js";
3
3
  import "./utils/generateBehindFiveElement.js";
4
4
  import "three";
5
5
  import "hammerjs";
6
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
6
+ import "three/examples/jsm/renderers/CSS3DRenderer";
7
+ import "@realsee/five/line";
7
8
  import "../shared-utils/three/THREESphere.js";
8
9
  import "animejs";
9
10
  import "../shared-utils/url/absoluteUrl.js";
11
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
10
12
  import "../shared-utils/five/fiveModelLoad.js";
11
13
  import "../shared-utils/five/getFiveModel.js";
12
14
  import "../shared-utils/positionToVector3.js";
13
15
  import "./utils/three/CSS3DRenderer.js";
14
- import "three/examples/jsm/renderers/CSS3DRenderer";
15
- import "./utils/getAllCSS3DObject.js";
16
- import "../shared-utils/util.js";
16
+ import "./utils/three/THREEJS_CSS3DRenderer.js";
17
17
  import "./utils/createResizeObserver.js";
18
18
  import "./utils/even.js";
19
19
  import "../shared-utils/Subscribe.js";
@@ -21,11 +21,14 @@ import "./utils/three/CSS3DObject.js";
21
21
  import "./utils/three/OpacityMesh.js";
22
22
  import "../shared-utils/three/centerPoint.js";
23
23
  import "../shared-utils/three/getObjectVisible.js";
24
+ import "../shared-utils/isNil.js";
24
25
  import "./utils/three/CSS3DScene.js";
26
+ import "./utils/getAllCSS3DObject.js";
27
+ import "../shared-utils/util.js";
25
28
  import "./utils/three/CSS3DGroup.js";
26
- const k = (r) => new o(r);
29
+ const y = (r) => new o(r);
27
30
  export {
28
- y as CSS3DRender,
29
- k as CSS3DRenderPlugin,
30
- k as default
31
+ B as CSS3DRender,
32
+ y as CSS3DRenderPlugin,
33
+ y as default
31
34
  };
@@ -1,12 +1,12 @@
1
- import { toArray as c } from "../../shared-utils/util.js";
2
- function a(e) {
1
+ import { toArray as S } from "../../shared-utils/util.js";
2
+ function o(r) {
3
3
  const t = [];
4
- return c(e).forEach((r) => {
5
- r.traverse((s) => {
6
- s.isCSS3DObjectPlus && t.push(s);
4
+ return S(r).forEach((e) => {
5
+ e.traverse((s) => {
6
+ (s.isCSS3DObjectPlus || s.isCSS3DObject || s.isCSS3DSprite) && t.push(s);
7
7
  });
8
8
  }), t;
9
9
  }
10
10
  export {
11
- a as default
11
+ o as default
12
12
  };
@@ -15,6 +15,7 @@ export type CSS3DRenderEventMap = {
15
15
  export declare class CSS3DObjectPlus<T extends HTMLElement = HTMLElement> extends CSS3DObject {
16
16
  version: number;
17
17
  readonly isCSS3DObjectPlus: true;
18
+ readonly isCSS3DObject: true;
18
19
  name: string;
19
20
  container: T;
20
21
  width: number;
@@ -29,9 +30,10 @@ export declare class CSS3DObjectPlus<T extends HTMLElement = HTMLElement> extend
29
30
  opacityMesh?: OpacityMesh;
30
31
  private selfVisible;
31
32
  constructor(params: {
32
- container: T;
33
+ container?: T;
33
34
  mode?: 'front' | 'behind';
34
- cornerPoints: CornerPoints;
35
+ width?: number;
36
+ cornerPoints?: CornerPoints;
35
37
  ratio?: number;
36
38
  dpr?: number;
37
39
  pointerEvents?: 'none' | 'auto';