@realsee/dnalogel 3.41.2 → 3.41.4

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 (90) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/CruisePlugin/BaseController.d.ts +0 -2
  3. package/dist/CurrentPanoImagePlugin/Controller.d.ts +1 -0
  4. package/dist/base/BasePlugin.d.ts +2 -0
  5. package/dist/index.cjs.js +53 -53
  6. package/dist/index.js +3921 -3904
  7. package/dist/index.umd.js +48 -48
  8. package/dist/shared-utils/Utils/FiveUtil.d.ts +1 -0
  9. package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -0
  10. package/dist/shared-utils/five/getFiveModel.d.ts +2 -0
  11. package/libs/AreaMakerPlugin/Controller.js +6 -4
  12. package/libs/AreaMakerPlugin/index.js +5 -3
  13. package/libs/AreaMakerPlugin/utils/Item.js +2 -2
  14. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  15. package/libs/CSS3DRenderPlugin/index.js +6 -5
  16. package/libs/CruisePlugin/BaseController.d.ts +0 -2
  17. package/libs/CruisePlugin/BaseController.js +36 -36
  18. package/libs/CruisePlugin/Move.js +5 -4
  19. package/libs/CruisePlugin/Work.js +5 -4
  20. package/libs/CruisePlugin/index.js +9 -8
  21. package/libs/CurrentPanoImagePlugin/Controller.d.ts +1 -0
  22. package/libs/CurrentPanoImagePlugin/Controller.js +13 -11
  23. package/libs/CurrentPanoImagePlugin/index.js +6 -4
  24. package/libs/GuideLinePlugin/Controller.js +7 -6
  25. package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
  26. package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -3
  27. package/libs/GuideLinePlugin/index.js +9 -8
  28. package/libs/ModelMakerPlugin/Controller.js +5 -3
  29. package/libs/ModelMakerPlugin/index.js +5 -3
  30. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  31. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  32. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  33. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  34. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +7 -6
  35. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  36. package/libs/ModelTVVideoPlugin/index.js +3 -2
  37. package/libs/Object3DHelperPlugin/Controller.js +16 -14
  38. package/libs/Object3DHelperPlugin/index.js +8 -6
  39. package/libs/PanoCompassPlugin/Controller.js +5 -3
  40. package/libs/PanoCompassPlugin/index.js +6 -4
  41. package/libs/PanoDoorLabelPlugin/BaseController.js +9 -7
  42. package/libs/PanoDoorLabelPlugin/Controller.js +5 -3
  43. package/libs/PanoDoorLabelPlugin/index.js +6 -4
  44. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  45. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  46. package/libs/PanoMeasurePlugin/Controller/EditController.js +4 -3
  47. package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -34
  48. package/libs/PanoMeasurePlugin/Controller/WatchController.js +50 -49
  49. package/libs/PanoMeasurePlugin/Controller/index.js +5 -3
  50. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
  51. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +4 -3
  52. package/libs/PanoMeasurePlugin/index.js +16 -14
  53. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  54. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  55. package/libs/PanoTagPlugin/controller/TagCache.js +11 -9
  56. package/libs/PanoTagPlugin/controller/TagComputer.js +12 -10
  57. package/libs/PanoTagPlugin/controller/TagRender.js +5 -3
  58. package/libs/PanoTagPlugin/controller/TagUtil.js +5 -3
  59. package/libs/PanoTagPlugin/controller/index.js +8 -6
  60. package/libs/PanoTagPlugin/index.js +14 -12
  61. package/libs/PanoVideoPlugin/Controller.js +5 -3
  62. package/libs/PanoVideoPlugin/index.js +8 -6
  63. package/libs/PipelinePlugin/Controller.js +25 -23
  64. package/libs/PipelinePlugin/index.js +6 -4
  65. package/libs/base/BasePlugin.d.ts +2 -0
  66. package/libs/base/BasePlugin.js +14 -13
  67. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +14 -11
  68. package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
  69. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -3
  70. package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -4
  71. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -3
  72. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -4
  73. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -3
  74. package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -4
  75. package/libs/index.js +128 -127
  76. package/libs/shared-utils/Utils/FiveUtil.d.ts +1 -0
  77. package/libs/shared-utils/Utils/FiveUtil.js +11 -7
  78. package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -0
  79. package/libs/shared-utils/five/FiveDomEvents.js +46 -42
  80. package/libs/shared-utils/five/fiveModelLoad.js +26 -17
  81. package/libs/shared-utils/five/getFiveModel.d.ts +2 -0
  82. package/libs/shared-utils/five/getFiveModel.js +7 -0
  83. package/libs/shared-utils/five/getPosition.js +24 -23
  84. package/libs/shared-utils/logger.js +1 -1
  85. package/libs/shared-utils/tag.js +10 -9
  86. package/libs/shared-utils/three/PointSelector.js +11 -11
  87. package/libs/shared-utils/three/getIntersect.js +19 -18
  88. package/package.json +1 -1
  89. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
  90. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +0 -31
package/libs/index.js CHANGED
@@ -1,62 +1,62 @@
1
1
  import { consoleVersion as o } from "./shared-utils/logger.js";
2
2
  import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
3
- import { PaintBrush as ml } from "./components/PaintBrush/index.js";
4
- import { PaintBrushTypeEnum as el } from "./components/PaintBrush/typings.js";
5
- import { ModelViewPlugin as nl } from "./ModelViewPlugin/Plugin.js";
6
- import { CSS3DRenderPlugin as Pl } from "./CSS3DRenderPlugin/index.js";
7
- import { PanoCursorRaycasterPlugin as fl } from "./PanoCursorRaycasterPlugin/index.js";
8
- import { ModelRoomLabelPlugin as gl, modelRoomLabelPluginServerParams as sl } from "./ModelRoomLabelPlugin/index.js";
9
- import { FLOOR_PLAN_ATTACHED_TO as Ml } from "./floorplan/constant.js";
10
- import { ModelFloorplanPlugin as Ll } from "./floorplan/ModelFloorplanPlugin/index.js";
11
- import { MapviewFloorplanPlugin as _l } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
- import { TopviewFloorplanPlugin as Il } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
- import { PanoFloorplanRadarPlugin as Sl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
- import { FLOOR_TYPE_MAP as yl, ROOM_FETILE_TYPE_MAP as Al, ROOM_TYPE_MAP as Dl } from "./floorplan/typings/floorplanServerData.js";
15
- import { ModelChassisCompassPlugin as bl } from "./ModelChassisCompassPlugin/Plugin.js";
16
- import { ModelEntryDoorGuidePlugin as Fl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
- import { CameraMovementPlugin as cl } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
- import { CameraMovementEffect as Nl, Rotation as hl } from "./CameraMovementPlugin/typing.js";
19
- import { PanoRulerPlugin as wl } from "./PanoRulerPlugin/Plugin.js";
20
- import { PanoRulerProPlugin as Hl } from "./PanoRulerProPlugin/index.js";
21
- import { PanoCompassPlugin as jl } from "./PanoCompassPlugin/index.js";
22
- import { PanoMeasurePlugin as Wl } from "./PanoMeasurePlugin/index.js";
23
- import { PanoSpatialTagPlugin as zl } from "./PanoSpatialTagPlugin/Plugin.js";
24
- import { modelItemLabelPluginServerParams as Kl } from "./ModelItemLabelPlugin/index.js";
25
- import { ModelTVVideoPlugin as Xl } from "./ModelTVVideoPlugin/Plugin.js";
26
- import { DIRECTION as on } from "./ModelTVVideoPlugin/typings.js";
27
- import { itemLabelPluginServerParams as tn } from "./ItemLabelPlugin/index.js";
28
- import { PanoDoorLabelPlugin as pn } from "./PanoDoorLabelPlugin/index.js";
29
- import { GuideLinePlugin as ln } from "./GuideLinePlugin/index.js";
30
- import { CruisePlugin as an, MovePlugin as Pn } from "./CruisePlugin/index.js";
31
- import { PanoTagPlugin as fn } from "./PanoTagPlugin/index.js";
32
- import { Object3DHelperPlugin as gn } from "./Object3DHelperPlugin/index.js";
33
- import { PanoVideoPlugin as dn } from "./PanoVideoPlugin/index.js";
34
- import { PipelinePlugin as Tn } from "./PipelinePlugin/index.js";
35
- import { AreaMakerPlugin as Cn } from "./AreaMakerPlugin/index.js";
36
- import { CurrentPanoImagePlugin as En } from "./CurrentPanoImagePlugin/index.js";
37
- import { Sculpt as Rn, SculptPlugin as Sn } from "./Sculpt/index.js";
38
- import { ModelMakerPlugin as yn } from "./ModelMakerPlugin/index.js";
39
- import { index as Dn } from "./shared-utils/index.js";
40
- import { CSS3DRender as bn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
- import { Model as Fn } from "./PanoMeasurePlugin/Model/index.js";
42
- import { default as cn } from "./PanoMeasurePlugin/Model/point.js";
43
- import { default as Nn } from "./PanoMeasurePlugin/Model/line.js";
44
- import { Polyline as kn } from "./PanoMeasurePlugin/Model/polyline.js";
45
- import { Magnifier as Bn } from "./shared-utils/three/Magnifier.js";
46
- import { DISPLAY_STRATEGY_TYPE as Un } from "./ModelItemLabelPlugin/typings.js";
47
- import { ModelItemLabelPlugin as $n } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as qn } from "./ItemLabelPlugin/typings.js";
49
- import { Plugin as Jn } from "./ItemLabelPlugin/Plugin.js";
50
- import { GuideLineItem$1 as Qn } from "./GuideLinePlugin/GuideLineItem/index.js";
51
- import { GuideLineModeItem$1 as Zn } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
- import { default as ra, default as ta } from "./CruisePlugin/Work.js";
53
- import { default as ma } from "./CruisePlugin/Move.js";
54
- import { typing as ea } from "./CruisePlugin/typing/index.js";
55
- import { default as na, pluginFlag as aa } from "./PanoTagPlugin/controller/index.js";
56
- import { defaultGlobalConfig as ua } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
- import { ContentType as xa, DimensionType as ga, PointType as sa } from "./PanoTagPlugin/Archive/deprecated.js";
58
- import { Object3DHelperController as Ma, PLUGIN as Ta } from "./Object3DHelperPlugin/Controller.js";
59
- import { typings as Ca } from "./PanoVideoPlugin/typings/index.js";
3
+ import { PaintBrush as pl } from "./components/PaintBrush/index.js";
4
+ import { PaintBrushTypeEnum as ll } from "./components/PaintBrush/typings.js";
5
+ import { ModelViewPlugin as al } from "./ModelViewPlugin/Plugin.js";
6
+ import { CSS3DRenderPlugin as ul } from "./CSS3DRenderPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as xl } from "./PanoCursorRaycasterPlugin/index.js";
8
+ import { ModelRoomLabelPlugin as sl, modelRoomLabelPluginServerParams as dl } from "./ModelRoomLabelPlugin/index.js";
9
+ import { FLOOR_PLAN_ATTACHED_TO as Tl } from "./floorplan/constant.js";
10
+ import { ModelFloorplanPlugin as Cl } from "./floorplan/ModelFloorplanPlugin/index.js";
11
+ import { MapviewFloorplanPlugin as El } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
+ import { TopviewFloorplanPlugin as Rl } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
+ import { PanoFloorplanRadarPlugin as Ol } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
+ import { FLOOR_TYPE_MAP as Al, ROOM_FETILE_TYPE_MAP as Dl, ROOM_TYPE_MAP as Gl } from "./floorplan/typings/floorplanServerData.js";
15
+ import { ModelChassisCompassPlugin as vl } from "./ModelChassisCompassPlugin/Plugin.js";
16
+ import { ModelEntryDoorGuidePlugin as Yl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
+ import { CameraMovementPlugin as Vl } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
+ import { CameraMovementEffect as hl, Rotation as kl } from "./CameraMovementPlugin/typing.js";
19
+ import { PanoRulerPlugin as Bl } from "./PanoRulerPlugin/Plugin.js";
20
+ import { PanoRulerProPlugin as Ul } from "./PanoRulerProPlugin/index.js";
21
+ import { PanoCompassPlugin as $l } from "./PanoCompassPlugin/index.js";
22
+ import { PanoMeasurePlugin as ql } from "./PanoMeasurePlugin/index.js";
23
+ import { PanoSpatialTagPlugin as Jl } from "./PanoSpatialTagPlugin/Plugin.js";
24
+ import { modelItemLabelPluginServerParams as Ql } from "./ModelItemLabelPlugin/index.js";
25
+ import { ModelTVVideoPlugin as Zl } from "./ModelTVVideoPlugin/Plugin.js";
26
+ import { DIRECTION as rn } from "./ModelTVVideoPlugin/typings.js";
27
+ import { itemLabelPluginServerParams as mn } from "./ItemLabelPlugin/index.js";
28
+ import { PanoDoorLabelPlugin as en } from "./PanoDoorLabelPlugin/index.js";
29
+ import { GuideLinePlugin as nn } from "./GuideLinePlugin/index.js";
30
+ import { CruisePlugin as Pn, MovePlugin as un } from "./CruisePlugin/index.js";
31
+ import { PanoTagPlugin as xn } from "./PanoTagPlugin/index.js";
32
+ import { Object3DHelperPlugin as sn } from "./Object3DHelperPlugin/index.js";
33
+ import { PanoVideoPlugin as Mn } from "./PanoVideoPlugin/index.js";
34
+ import { PipelinePlugin as Ln } from "./PipelinePlugin/index.js";
35
+ import { AreaMakerPlugin as _n } from "./AreaMakerPlugin/index.js";
36
+ import { CurrentPanoImagePlugin as In } from "./CurrentPanoImagePlugin/index.js";
37
+ import { Sculpt as Sn, SculptPlugin as On } from "./Sculpt/index.js";
38
+ import { ModelMakerPlugin as An } from "./ModelMakerPlugin/index.js";
39
+ import { index as Gn } from "./shared-utils/index.js";
40
+ import { CSS3DRender as vn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
+ import { Model as Yn } from "./PanoMeasurePlugin/Model/index.js";
42
+ import { default as Vn } from "./PanoMeasurePlugin/Model/point.js";
43
+ import { default as hn } from "./PanoMeasurePlugin/Model/line.js";
44
+ import { Polyline as wn } from "./PanoMeasurePlugin/Model/polyline.js";
45
+ import { Magnifier as Hn } from "./shared-utils/three/Magnifier.js";
46
+ import { DISPLAY_STRATEGY_TYPE as jn } from "./ModelItemLabelPlugin/typings.js";
47
+ import { ModelItemLabelPlugin as Wn } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as zn } from "./ItemLabelPlugin/typings.js";
49
+ import { Plugin as Kn } from "./ItemLabelPlugin/Plugin.js";
50
+ import { GuideLineItem$1 as Xn } from "./GuideLinePlugin/GuideLineItem/index.js";
51
+ import { GuideLineModeItem$1 as oa } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
+ import { default as ta, default as ia } from "./CruisePlugin/Work.js";
53
+ import { default as pa } from "./CruisePlugin/Move.js";
54
+ import { typing as la } from "./CruisePlugin/typing/index.js";
55
+ import { default as aa, pluginFlag as Pa } from "./PanoTagPlugin/controller/index.js";
56
+ import { defaultGlobalConfig as fa } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
+ import { ContentType as ga, DimensionType as sa, PointType as da } from "./PanoTagPlugin/Archive/deprecated.js";
58
+ import { Object3DHelperController as Ta, PLUGIN as La } from "./Object3DHelperPlugin/Controller.js";
59
+ import { typings as _a } from "./PanoVideoPlugin/typings/index.js";
60
60
  import "./components/PaintBrush/Controller.js";
61
61
  import "./components/PaintBrush/utils.js";
62
62
  import "./components/PaintBrush/tween.js";
@@ -72,6 +72,7 @@ import "hammerjs";
72
72
  import "animejs";
73
73
  import "./shared-utils/url/absoluteUrl.js";
74
74
  import "./shared-utils/five/fiveModelLoad.js";
75
+ import "./shared-utils/five/getFiveModel.js";
75
76
  import "./shared-utils/positionToVector3.js";
76
77
  import "./CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
77
78
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -133,8 +134,9 @@ import "./shared-utils/tap.js";
133
134
  import "./shared-utils/getPxmm.js";
134
135
  import "./base/BasePluginWithData.js";
135
136
  import "./base/BasePlugin.js";
136
- import "./shared-utils/Utils/WorkUtil.js";
137
+ import "./shared-utils/Utils/FiveUtil.js";
137
138
  import "./shared-utils/Utils/BaseUtil.js";
139
+ import "./shared-utils/Utils/WorkUtil.js";
138
140
  import "./shared-utils/five/transformPosition.js";
139
141
  import "./floorplan/utils/correctFiveState.js";
140
142
  import "./floorplan/utils/constant.js";
@@ -368,7 +370,6 @@ import "./CruisePlugin/utils/sleep.js";
368
370
  import "./GuideLinePlugin/Components/Tag.js";
369
371
  import "./GuideLinePlugin/utils/index.js";
370
372
  import "./CruisePlugin/BaseController.js";
371
- import "./shared-utils/Utils/FiveUtil.js";
372
373
  import "./CruisePlugin/utils/getFiveStateOnCurve.js";
373
374
  import "./shared-utils/vectorToCoordinate.js";
374
375
  import "./shared-utils/formatRad.js";
@@ -489,72 +490,72 @@ import "./shared-utils/three/getIntersect.js";
489
490
  r();
490
491
  o();
491
492
  export {
492
- Cn as AreaMakerPlugin,
493
- bn as CSS3DRender,
494
- Pl as CSS3DRenderPlugin,
495
- Nl as CameraMovementEffect,
496
- cl as CameraMovementPlugin,
497
- xa as ContentType,
498
- an as CruisePlugin,
499
- ra as CruisePluginController,
500
- ea as CruisePluginTypes,
501
- En as CurrentPanoImagePlugin,
502
- on as DIRECTION,
503
- Un as DISPLAY_STRATEGY_TYPE,
504
- ga as DimensionType,
505
- Ml as FLOOR_PLAN_ATTACHED_TO,
506
- yl as FLOOR_TYPE_MAP,
507
- Qn as GuideLineItem,
508
- Zn as GuideLineModeItem,
509
- ln as GuideLinePlugin,
510
- qn as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
511
- Jn as ItemLabelPlugin,
512
- Bn as Magnifier,
513
- _l as MapviewFloorplanPlugin,
514
- bl as ModelChassisCompassPlugin,
515
- Fl as ModelEntryDoorGuidePlugin,
516
- Ll as ModelFloorplanPlugin,
517
- $n as ModelItemLabelPlugin,
518
- yn as ModelMakerPlugin,
519
- gl as ModelRoomLabelPlugin,
520
- Xl as ModelTVVideoPlugin,
521
- nl as ModelViewPlugin,
522
- ma as MoveController,
523
- Pn as MovePlugin,
524
- Ma as Object3DHelperController,
525
- gn as Object3DHelperPlugin,
526
- Ta as PLUGIN,
527
- ml as PaintBrush,
528
- el as PaintBrushTypeEnum,
529
- jl as PanoCompassPlugin,
530
- fl as PanoCursorRaycasterPlugin,
531
- pn as PanoDoorLabelPlugin,
532
- Sl as PanoFloorplanRadarPlugin,
533
- Wl as PanoMeasurePlugin,
534
- Nn as PanoMeasurePluginLine,
535
- Fn as PanoMeasurePluginModel,
536
- cn as PanoMeasurePluginPoint,
537
- kn as PanoMeasurePluginPolyline,
538
- wl as PanoRulerPlugin,
539
- Hl as PanoRulerProPlugin,
540
- zl as PanoSpatialTagPlugin,
541
- fn as PanoTagPlugin,
542
- na as PanoTagPluginController,
543
- dn as PanoVideoPlugin,
544
- Ca as PanoVideoPluginType,
545
- Tn as PipelinePlugin,
546
- sa as PointType,
547
- Al as ROOM_FETILE_TYPE_MAP,
548
- Dl as ROOM_TYPE_MAP,
549
- hl as Rotation,
550
- Rn as Sculpt,
551
- Sn as SculptPlugin,
552
- Il as TopviewFloorplanPlugin,
553
- Dn as Util,
554
- ta as WalkController,
555
- ua as defaultGlobalConfig,
556
- tn as itemLabelPluginServerParams,
557
- Kl as modelItemLabelPluginServerParams,
558
- sl as modelRoomLabelPluginServerParams,
559
- aa as pluginFlag
493
+ _n as AreaMakerPlugin,
494
+ vn as CSS3DRender,
495
+ ul as CSS3DRenderPlugin,
496
+ hl as CameraMovementEffect,
497
+ Vl as CameraMovementPlugin,
498
+ ga as ContentType,
499
+ Pn as CruisePlugin,
500
+ ta as CruisePluginController,
501
+ la as CruisePluginTypes,
502
+ In as CurrentPanoImagePlugin,
503
+ rn as DIRECTION,
504
+ jn as DISPLAY_STRATEGY_TYPE,
505
+ sa as DimensionType,
506
+ Tl as FLOOR_PLAN_ATTACHED_TO,
507
+ Al as FLOOR_TYPE_MAP,
508
+ Xn as GuideLineItem,
509
+ oa as GuideLineModeItem,
510
+ nn as GuideLinePlugin,
511
+ zn as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
512
+ Kn as ItemLabelPlugin,
513
+ Hn as Magnifier,
514
+ El as MapviewFloorplanPlugin,
515
+ vl as ModelChassisCompassPlugin,
516
+ Yl as ModelEntryDoorGuidePlugin,
517
+ Cl as ModelFloorplanPlugin,
518
+ Wn as ModelItemLabelPlugin,
519
+ An as ModelMakerPlugin,
520
+ sl as ModelRoomLabelPlugin,
521
+ Zl as ModelTVVideoPlugin,
522
+ al as ModelViewPlugin,
523
+ pa as MoveController,
524
+ un as MovePlugin,
525
+ Ta as Object3DHelperController,
526
+ sn as Object3DHelperPlugin,
527
+ La as PLUGIN,
528
+ pl as PaintBrush,
529
+ ll as PaintBrushTypeEnum,
530
+ $l as PanoCompassPlugin,
531
+ xl as PanoCursorRaycasterPlugin,
532
+ en as PanoDoorLabelPlugin,
533
+ Ol as PanoFloorplanRadarPlugin,
534
+ ql as PanoMeasurePlugin,
535
+ hn as PanoMeasurePluginLine,
536
+ Yn as PanoMeasurePluginModel,
537
+ Vn as PanoMeasurePluginPoint,
538
+ wn as PanoMeasurePluginPolyline,
539
+ Bl as PanoRulerPlugin,
540
+ Ul as PanoRulerProPlugin,
541
+ Jl as PanoSpatialTagPlugin,
542
+ xn as PanoTagPlugin,
543
+ aa as PanoTagPluginController,
544
+ Mn as PanoVideoPlugin,
545
+ _a as PanoVideoPluginType,
546
+ Ln as PipelinePlugin,
547
+ da as PointType,
548
+ Dl as ROOM_FETILE_TYPE_MAP,
549
+ Gl as ROOM_TYPE_MAP,
550
+ kl as Rotation,
551
+ Sn as Sculpt,
552
+ On as SculptPlugin,
553
+ Rl as TopviewFloorplanPlugin,
554
+ Gn as Util,
555
+ ia as WalkController,
556
+ fa as defaultGlobalConfig,
557
+ mn as itemLabelPluginServerParams,
558
+ Ql as modelItemLabelPluginServerParams,
559
+ dl as modelRoomLabelPluginServerParams,
560
+ Pa as pluginFlag
560
561
  };
@@ -5,6 +5,7 @@ export declare class FiveUtil extends BaseUtil {
5
5
  workUtil: WorkUtil;
6
6
  get version(): string;
7
7
  get majorVersion(): number;
8
+ get model(): import("@realsee/five").Model;
8
9
  constructor(five: Five);
9
10
  moveToPano(panoNumber: number, movePanoOptions: Parameters<Five['moveToPano']>[1]): Promise<void>;
10
11
  }
@@ -1,12 +1,13 @@
1
1
  var n = Object.defineProperty;
2
- var v = (t, r, o) => r in t ? n(t, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[r] = o;
3
- var e = (t, r, o) => (v(t, typeof r != "symbol" ? r + "" : r, o), o);
4
- import { BaseUtil as m } from "./BaseUtil.js";
5
- import { WorkUtil as a } from "./WorkUtil.js";
6
- class p extends m {
2
+ var m = (r, e, o) => e in r ? n(r, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[e] = o;
3
+ var t = (r, e, o) => (m(r, typeof e != "symbol" ? e + "" : e, o), o);
4
+ import { BaseUtil as v } from "./BaseUtil.js";
5
+ import { WorkUtil as l } from "./WorkUtil.js";
6
+ import { getFiveModel as a } from "../five/getFiveModel.js";
7
+ class c extends v {
7
8
  constructor(o) {
8
9
  super(o);
9
- e(this, "workUtil", new a(this.five));
10
+ t(this, "workUtil", new l(this.five));
10
11
  }
11
12
  get version() {
12
13
  return this.five.constructor.version;
@@ -14,6 +15,9 @@ class p extends m {
14
15
  get majorVersion() {
15
16
  return Number(this.version.split(".")[0]);
16
17
  }
18
+ get model() {
19
+ return a(this.five);
20
+ }
17
21
  moveToPano(o, i) {
18
22
  const s = this.majorVersion === 5 ? o : {
19
23
  workCode: this.workUtil.workCode,
@@ -23,5 +27,5 @@ class p extends m {
23
27
  }
24
28
  }
25
29
  export {
26
- p as FiveUtil
30
+ c as FiveUtil
27
31
  };
@@ -86,6 +86,7 @@ export declare class FiveDomEvents {
86
86
  private get haveDragEventObject();
87
87
  private boundObject;
88
88
  private config;
89
+ private get model();
89
90
  constructor(five: Five, config?: EventHandlerConfig);
90
91
  /**
91
92
  * @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
@@ -1,19 +1,20 @@
1
1
  var w = Object.defineProperty;
2
2
  var L = Object.getOwnPropertySymbols;
3
3
  var M = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
- var p = (f, e, t) => e in f ? w(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t, D = (f, e) => {
4
+ var b = (f, e, t) => e in f ? w(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t, D = (f, e) => {
5
5
  for (var t in e || (e = {}))
6
- M.call(e, t) && p(f, t, e[t]);
6
+ M.call(e, t) && b(f, t, e[t]);
7
7
  if (L)
8
8
  for (var t of L(e))
9
- x.call(e, t) && p(f, t, e[t]);
9
+ x.call(e, t) && b(f, t, e[t]);
10
10
  return f;
11
11
  };
12
- var d = (f, e, t) => (p(f, typeof e != "symbol" ? e + "" : e, t), t);
12
+ var d = (f, e, t) => (b(f, typeof e != "symbol" ? e + "" : e, t), t);
13
13
  import * as I from "three";
14
14
  import { getObjectVisible as $ } from "../three/getObjectVisible.js";
15
15
  import { calculateThreeMouse as W } from "./calculateThreeMouse.js";
16
- class R {
16
+ import { getFiveModel as j } from "./getFiveModel.js";
17
+ class N {
17
18
  constructor(e, t) {
18
19
  d(this, "five");
19
20
  /**
@@ -28,8 +29,8 @@ class R {
28
29
  const n = t[0];
29
30
  if (n) {
30
31
  if (e === "mouseMove" && this.onDomEvent("hover", n), e === "tap") {
31
- const i = this.onDomEvent("click", n), r = this.onDomEvent("wantDblclick", n, void 0, this.boundObject.dblclick);
32
- if (i === !1 || r === !1)
32
+ const i = this.onDomEvent("click", n), s = this.onDomEvent("wantDblclick", n, void 0, this.boundObject.dblclick);
33
+ if (i === !1 || s === !1)
33
34
  return !1;
34
35
  }
35
36
  if (this.dragging)
@@ -70,21 +71,21 @@ class R {
70
71
  });
71
72
  // eslint-disable-next-line complexity
72
73
  d(this, "onDomEvent", (e, t, n, i = this.boundObject[e]) => {
73
- var u, l, v;
74
- if (!t || !i || (i == null ? void 0 : i.length) === 0 || !this.five.model.loaded)
74
+ var u, c, v;
75
+ if (!t || !i || (i == null ? void 0 : i.length) === 0 || !this.model.loaded)
75
76
  return;
76
- const r = (u = t.raycaster) != null ? u : this.getRaycaster(t);
77
- r.params.Points.threshold = 0.02;
78
- const o = r.intersectObjects(i, !0), c = this.five.model.intersectRaycaster(r), h = 0.01;
79
- if (c.length > 0 && o.length > 0 && c[0].distance + h < o[0].distance)
77
+ const s = (u = t.raycaster) != null ? u : this.getRaycaster(t);
78
+ s.params.Points.threshold = 0.02;
79
+ const o = s.intersectObjects(i, !0), l = this.model.intersectRaycaster(s), h = 0.01;
80
+ if (l.length > 0 && o.length > 0 && l[0].distance + h < o[0].distance)
80
81
  return;
81
- const s = (l = o == null ? void 0 : o[0]) == null ? void 0 : l.object;
82
+ const r = (c = o == null ? void 0 : o[0]) == null ? void 0 : c.object;
82
83
  if (e === "wantDblclick")
83
84
  return !1;
84
- if ((!s || !this.objectIsBound(s)) && e === "hover")
85
+ if ((!r || !this.objectIsBound(r)) && e === "hover")
85
86
  for (const m of (v = this.boundObject.hover) != null ? v : [])
86
87
  m._hovered && this.notify({ eventName: "unHover", object: m });
87
- if (s && s && this.notify({ eventName: e, object: s, originEvent: n, raycaster: r, intersects: o }))
88
+ if (r && r && this.notify({ eventName: e, object: r, originEvent: n, raycaster: s, intersects: o }))
88
89
  return !1;
89
90
  });
90
91
  d(this, "objectIsBound", (e) => {
@@ -95,16 +96,16 @@ class R {
95
96
  });
96
97
  d(this, "notify", (e) => {
97
98
  var v, m, _;
98
- const { eventName: t, object: n, originEvent: i, raycaster: r, intersects: o } = e;
99
- let c = !1, h = [];
100
- const s = [];
99
+ const { eventName: t, object: n, originEvent: i, raycaster: s, intersects: o } = e;
100
+ let l = !1, h = [];
101
+ const r = [];
101
102
  let u = n;
102
- for (s.push(u); u.parent; )
103
- u = u.parent, s.push(u);
104
- const l = s.at(-1);
105
- if (!((v = this.config) != null && v.noEmitWhenNotInScene && l.type !== "Scene")) {
106
- for (const a of s) {
107
- if (c)
103
+ for (r.push(u); u.parent; )
104
+ u = u.parent, r.push(u);
105
+ const c = r.at(-1);
106
+ if (!((v = this.config) != null && v.noEmitWhenNotInScene && c.type !== "Scene")) {
107
+ for (const a of r) {
108
+ if (l)
108
109
  break;
109
110
  a.draggable && (t === "dragstart" && (a._dragging = !0, this.dragging = !0), t === "dragend" && (a._dragging = !1, this.dragging = !1));
110
111
  const O = a._domEvent;
@@ -113,7 +114,7 @@ class R {
113
114
  const y = O[`${t}Handler`];
114
115
  if (y)
115
116
  for (const [H, E] of y) {
116
- if (E != null && E.noEmitWhenNotInScene && l.type !== "Scene" || ((m = this.config) != null && m.noEmitWhenHide || E != null && E.noEmitWhenHide) && !$(a))
117
+ if (E != null && E.noEmitWhenNotInScene && c.type !== "Scene" || ((m = this.config) != null && m.noEmitWhenHide || E != null && E.noEmitWhenHide) && !$(a))
117
118
  continue;
118
119
  if (t === "hover") {
119
120
  if (a._hovered)
@@ -127,17 +128,17 @@ class R {
127
128
  continue;
128
129
  a._hovered = !1;
129
130
  }
130
- const b = H({
131
+ const p = H({
131
132
  type: t,
132
133
  target: a,
133
134
  origDomEvent: i,
134
- raycaster: r,
135
+ raycaster: s,
135
136
  intersects: o,
136
137
  stopPropagation: () => {
137
- c = !0;
138
+ l = !0;
138
139
  }
139
140
  });
140
- h.push(b != null ? b : !0);
141
+ h.push(p != null ? p : !0);
141
142
  }
142
143
  }
143
144
  if (t === "click" || t === "wantDblclick")
@@ -149,15 +150,18 @@ class R {
149
150
  get haveDragEventObject() {
150
151
  return [...new Set([this.boundObject.dragend, this.boundObject.drag, this.boundObject.dragstart].flat())].filter(Boolean);
151
152
  }
153
+ get model() {
154
+ return j(this.five);
155
+ }
152
156
  /**
153
157
  * @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
154
158
  * @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
155
159
  * @todo: added 和 removed 还是不太智能
156
160
  */
157
161
  addAutoBindEventListener(e, t, n, i) {
158
- const r = () => this.addEventListener(e, t, n, i), o = () => this.removeEventListener(e, t, n, i);
159
- return e.addEventListener("added", r), e.addEventListener("removed", o), e.addEventListener("dispose", o), () => {
160
- e.removeEventListener("added", r), e.removeEventListener("removed", o), e.removeEventListener("dispose", o);
162
+ const s = () => this.addEventListener(e, t, n, i), o = () => this.removeEventListener(e, t, n, i);
163
+ return e.addEventListener("added", s), e.addEventListener("removed", o), e.addEventListener("dispose", o), () => {
164
+ e.removeEventListener("added", s), e.removeEventListener("removed", o), e.removeEventListener("dispose", o);
161
165
  };
162
166
  }
163
167
  /**
@@ -171,21 +175,21 @@ class R {
171
175
  e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), this.boundObject[t].includes(e) || this.boundObject[t].push(e), e._domEvent[`${t}Handler`].push([n, D({ noEmitWhenHide: !1, noEmitWhenNotInScene: !1 }, i)]);
172
176
  }
173
177
  removeEventListener(e, t, n, ...i) {
174
- var o, c;
178
+ var o, l;
175
179
  if (!e._domEvent || (t === void 0 && (Object.keys(this.boundObject).forEach((h) => {
176
- var u, l;
177
- const s = (u = this.boundObject[h]) == null ? void 0 : u.findIndex((v) => v === e);
178
- s !== -1 && ((l = this.boundObject[h]) == null || l.splice(s, 1));
180
+ var u, c;
181
+ const r = (u = this.boundObject[h]) == null ? void 0 : u.findIndex((v) => v === e);
182
+ r !== -1 && ((c = this.boundObject[h]) == null || c.splice(r, 1));
179
183
  }), e._domEvent = {}), !e._domEvent[`${t}Handler`]))
180
184
  return;
181
185
  if (n === void 0) {
182
186
  delete e._domEvent[`${t}Handler`];
183
187
  return;
184
188
  }
185
- const r = e._domEvent[`${t}Handler`].findIndex((h) => h[0] === n);
186
- if (r !== -1 && (e._domEvent[`${t}Handler`].splice(r, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
187
- const h = (o = this.boundObject[t]) == null ? void 0 : o.findIndex((s) => s === e);
188
- h !== -1 && ((c = this.boundObject[t]) == null || c.splice(h, 1));
189
+ const s = e._domEvent[`${t}Handler`].findIndex((h) => h[0] === n);
190
+ if (s !== -1 && (e._domEvent[`${t}Handler`].splice(s, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
191
+ const h = (o = this.boundObject[t]) == null ? void 0 : o.findIndex((r) => r === e);
192
+ h !== -1 && ((l = this.boundObject[t]) == null || l.splice(h, 1));
189
193
  }
190
194
  }
191
195
  clear() {
@@ -209,5 +213,5 @@ class R {
209
213
  }
210
214
  }
211
215
  export {
212
- R as FiveDomEvents
216
+ N as FiveDomEvents
213
217
  };
@@ -1,30 +1,39 @@
1
- var l = (o, e, n) => new Promise((r, t) => {
2
- var c = (d) => {
1
+ var r = (o, e, d) => new Promise((a, t) => {
2
+ var c = (n) => {
3
3
  try {
4
- a(n.next(d));
5
- } catch (i) {
6
- t(i);
4
+ i(d.next(n));
5
+ } catch (l) {
6
+ t(l);
7
7
  }
8
- }, u = (d) => {
8
+ }, f = (n) => {
9
9
  try {
10
- a(n.throw(d));
11
- } catch (i) {
12
- t(i);
10
+ i(d.throw(n));
11
+ } catch (l) {
12
+ t(l);
13
13
  }
14
- }, a = (d) => d.done ? r(d.value) : Promise.resolve(d.value).then(c, u);
15
- a((n = n.apply(o, e)).next());
14
+ }, i = (n) => n.done ? a(n.value) : Promise.resolve(n.value).then(c, f);
15
+ i((d = d.apply(o, e)).next());
16
16
  });
17
- function s(o) {
18
- return l(this, null, function* () {
17
+ import { getFiveModel as m } from "./getFiveModel.js";
18
+ function M(o) {
19
+ return r(this, null, function* () {
19
20
  return new Promise((e) => {
20
- f(o) ? e() : o.once("modelLoaded", () => e());
21
+ if (s(o))
22
+ e();
23
+ else {
24
+ const d = (a) => {
25
+ const t = m(o);
26
+ a === t && (o.off("modelLoaded", d), e());
27
+ };
28
+ o.on("modelLoaded", d);
29
+ }
21
30
  });
22
31
  });
23
32
  }
24
- function f(o) {
33
+ function s(o) {
25
34
  var e;
26
- return (e = o.model) == null ? void 0 : e.loaded;
35
+ return (e = m(o)) == null ? void 0 : e.loaded;
27
36
  }
28
37
  export {
29
- s as waitFiveModelLoaded
38
+ M as waitFiveModelLoaded
30
39
  };
@@ -0,0 +1,2 @@
1
+ import { Five } from '@realsee/five';
2
+ export declare function getFiveModel(five: Five): import("@realsee/five").Model;
@@ -0,0 +1,7 @@
1
+ function l(e) {
2
+ var o;
3
+ return ((o = e.models) == null ? void 0 : o.filter((t) => t.name === e.state.workCode)[0]) || e.model;
4
+ }
5
+ export {
6
+ l as getFiveModel
7
+ };