@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.
- package/CHANGELOG.md +6 -0
- package/dist/CruisePlugin/BaseController.d.ts +0 -2
- package/dist/CurrentPanoImagePlugin/Controller.d.ts +1 -0
- package/dist/base/BasePlugin.d.ts +2 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +3921 -3904
- package/dist/index.umd.js +48 -48
- package/dist/shared-utils/Utils/FiveUtil.d.ts +1 -0
- package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -0
- package/dist/shared-utils/five/getFiveModel.d.ts +2 -0
- package/libs/AreaMakerPlugin/Controller.js +6 -4
- package/libs/AreaMakerPlugin/index.js +5 -3
- package/libs/AreaMakerPlugin/utils/Item.js +2 -2
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CruisePlugin/BaseController.d.ts +0 -2
- package/libs/CruisePlugin/BaseController.js +36 -36
- package/libs/CruisePlugin/Move.js +5 -4
- package/libs/CruisePlugin/Work.js +5 -4
- package/libs/CruisePlugin/index.js +9 -8
- package/libs/CurrentPanoImagePlugin/Controller.d.ts +1 -0
- package/libs/CurrentPanoImagePlugin/Controller.js +13 -11
- package/libs/CurrentPanoImagePlugin/index.js +6 -4
- package/libs/GuideLinePlugin/Controller.js +7 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -3
- package/libs/GuideLinePlugin/index.js +9 -8
- package/libs/ModelMakerPlugin/Controller.js +5 -3
- package/libs/ModelMakerPlugin/index.js +5 -3
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +7 -6
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/Object3DHelperPlugin/Controller.js +16 -14
- package/libs/Object3DHelperPlugin/index.js +8 -6
- package/libs/PanoCompassPlugin/Controller.js +5 -3
- package/libs/PanoCompassPlugin/index.js +6 -4
- package/libs/PanoDoorLabelPlugin/BaseController.js +9 -7
- package/libs/PanoDoorLabelPlugin/Controller.js +5 -3
- package/libs/PanoDoorLabelPlugin/index.js +6 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +4 -3
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -34
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +50 -49
- package/libs/PanoMeasurePlugin/Controller/index.js +5 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +4 -3
- package/libs/PanoMeasurePlugin/index.js +16 -14
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/controller/TagCache.js +11 -9
- package/libs/PanoTagPlugin/controller/TagComputer.js +12 -10
- package/libs/PanoTagPlugin/controller/TagRender.js +5 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +5 -3
- package/libs/PanoTagPlugin/controller/index.js +8 -6
- package/libs/PanoTagPlugin/index.js +14 -12
- package/libs/PanoVideoPlugin/Controller.js +5 -3
- package/libs/PanoVideoPlugin/index.js +8 -6
- package/libs/PipelinePlugin/Controller.js +25 -23
- package/libs/PipelinePlugin/index.js +6 -4
- package/libs/base/BasePlugin.d.ts +2 -0
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +14 -11
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -4
- package/libs/index.js +128 -127
- package/libs/shared-utils/Utils/FiveUtil.d.ts +1 -0
- package/libs/shared-utils/Utils/FiveUtil.js +11 -7
- package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -0
- package/libs/shared-utils/five/FiveDomEvents.js +46 -42
- package/libs/shared-utils/five/fiveModelLoad.js +26 -17
- package/libs/shared-utils/five/getFiveModel.d.ts +2 -0
- package/libs/shared-utils/five/getFiveModel.js +7 -0
- package/libs/shared-utils/five/getPosition.js +24 -23
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +10 -9
- package/libs/shared-utils/three/PointSelector.js +11 -11
- package/libs/shared-utils/three/getIntersect.js +19 -18
- package/package.json +1 -1
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
- 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
|
|
4
|
-
import { PaintBrushTypeEnum as
|
|
5
|
-
import { ModelViewPlugin as
|
|
6
|
-
import { CSS3DRenderPlugin as
|
|
7
|
-
import { PanoCursorRaycasterPlugin as
|
|
8
|
-
import { ModelRoomLabelPlugin as
|
|
9
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
10
|
-
import { ModelFloorplanPlugin as
|
|
11
|
-
import { MapviewFloorplanPlugin as
|
|
12
|
-
import { TopviewFloorplanPlugin as
|
|
13
|
-
import { PanoFloorplanRadarPlugin as
|
|
14
|
-
import { FLOOR_TYPE_MAP as
|
|
15
|
-
import { ModelChassisCompassPlugin as
|
|
16
|
-
import { ModelEntryDoorGuidePlugin as
|
|
17
|
-
import { CameraMovementPlugin as
|
|
18
|
-
import { CameraMovementEffect as
|
|
19
|
-
import { PanoRulerPlugin as
|
|
20
|
-
import { PanoRulerProPlugin as
|
|
21
|
-
import { PanoCompassPlugin as
|
|
22
|
-
import { PanoMeasurePlugin as
|
|
23
|
-
import { PanoSpatialTagPlugin as
|
|
24
|
-
import { modelItemLabelPluginServerParams as
|
|
25
|
-
import { ModelTVVideoPlugin as
|
|
26
|
-
import { DIRECTION as
|
|
27
|
-
import { itemLabelPluginServerParams as
|
|
28
|
-
import { PanoDoorLabelPlugin as
|
|
29
|
-
import { GuideLinePlugin as
|
|
30
|
-
import { CruisePlugin as
|
|
31
|
-
import { PanoTagPlugin as
|
|
32
|
-
import { Object3DHelperPlugin as
|
|
33
|
-
import { PanoVideoPlugin as
|
|
34
|
-
import { PipelinePlugin as
|
|
35
|
-
import { AreaMakerPlugin as
|
|
36
|
-
import { CurrentPanoImagePlugin as
|
|
37
|
-
import { Sculpt as
|
|
38
|
-
import { ModelMakerPlugin as
|
|
39
|
-
import { index as
|
|
40
|
-
import { CSS3DRender as
|
|
41
|
-
import { Model as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { Polyline as
|
|
45
|
-
import { Magnifier as
|
|
46
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
47
|
-
import { ModelItemLabelPlugin as
|
|
48
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
49
|
-
import { Plugin as
|
|
50
|
-
import { GuideLineItem$1 as
|
|
51
|
-
import { GuideLineModeItem$1 as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { typing as
|
|
55
|
-
import { default as
|
|
56
|
-
import { defaultGlobalConfig as
|
|
57
|
-
import { ContentType as
|
|
58
|
-
import { Object3DHelperController as
|
|
59
|
-
import { typings as
|
|
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/
|
|
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
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
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
|
|
3
|
-
var
|
|
4
|
-
import { BaseUtil as
|
|
5
|
-
import { WorkUtil as
|
|
6
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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) &&
|
|
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) &&
|
|
9
|
+
x.call(e, t) && b(f, t, e[t]);
|
|
10
10
|
return f;
|
|
11
11
|
};
|
|
12
|
-
var d = (f, e, 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
|
-
|
|
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),
|
|
32
|
-
if (i === !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,
|
|
74
|
-
if (!t || !i || (i == null ? void 0 : i.length) === 0 || !this.
|
|
74
|
+
var u, c, v;
|
|
75
|
+
if (!t || !i || (i == null ? void 0 : i.length) === 0 || !this.model.loaded)
|
|
75
76
|
return;
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
const o =
|
|
79
|
-
if (
|
|
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
|
|
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 ((!
|
|
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 (
|
|
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:
|
|
99
|
-
let
|
|
100
|
-
const
|
|
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 (
|
|
103
|
-
u = u.parent,
|
|
104
|
-
const
|
|
105
|
-
if (!((v = this.config) != null && v.noEmitWhenNotInScene &&
|
|
106
|
-
for (const a of
|
|
107
|
-
if (
|
|
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 &&
|
|
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
|
|
131
|
+
const p = H({
|
|
131
132
|
type: t,
|
|
132
133
|
target: a,
|
|
133
134
|
origDomEvent: i,
|
|
134
|
-
raycaster:
|
|
135
|
+
raycaster: s,
|
|
135
136
|
intersects: o,
|
|
136
137
|
stopPropagation: () => {
|
|
137
|
-
|
|
138
|
+
l = !0;
|
|
138
139
|
}
|
|
139
140
|
});
|
|
140
|
-
h.push(
|
|
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
|
|
159
|
-
return e.addEventListener("added",
|
|
160
|
-
e.removeEventListener("added",
|
|
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,
|
|
178
|
+
var o, l;
|
|
175
179
|
if (!e._domEvent || (t === void 0 && (Object.keys(this.boundObject).forEach((h) => {
|
|
176
|
-
var u,
|
|
177
|
-
const
|
|
178
|
-
|
|
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
|
|
186
|
-
if (
|
|
187
|
-
const h = (o = this.boundObject[t]) == null ? void 0 : o.findIndex((
|
|
188
|
-
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
|
-
|
|
216
|
+
N as FiveDomEvents
|
|
213
217
|
};
|
|
@@ -1,30 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = (
|
|
1
|
+
var r = (o, e, d) => new Promise((a, t) => {
|
|
2
|
+
var c = (n) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
t(
|
|
4
|
+
i(d.next(n));
|
|
5
|
+
} catch (l) {
|
|
6
|
+
t(l);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, f = (n) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
t(
|
|
10
|
+
i(d.throw(n));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
t(l);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
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
|
-
|
|
18
|
-
|
|
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
|
-
|
|
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
|
|
33
|
+
function s(o) {
|
|
25
34
|
var e;
|
|
26
|
-
return (e = o
|
|
35
|
+
return (e = m(o)) == null ? void 0 : e.loaded;
|
|
27
36
|
}
|
|
28
37
|
export {
|
|
29
|
-
|
|
38
|
+
M as waitFiveModelLoaded
|
|
30
39
|
};
|