@realsee/dnalogel 3.11.0 → 3.12.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.
- package/dist/CruisePlugin/BaseController.d.ts +5 -0
- package/dist/CruisePlugin/Work.d.ts +1 -5
- package/dist/GuideLinePlugin/Controller.d.ts +4 -0
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/DebugUtil.d.ts +6 -0
- package/dist/base/BasePlugin.d.ts +1 -1
- package/dist/index.cjs.js +52 -52
- package/dist/index.js +3178 -3067
- package/dist/index.umd.js +44 -44
- package/dist/shared-utils/Utils/BaseUtil.d.ts +5 -0
- package/dist/shared-utils/Utils/FiveUtil.d.ts +10 -0
- package/dist/shared-utils/Utils/WorkUtil.d.ts +33 -0
- package/libs/CruisePlugin/BaseController.d.ts +5 -0
- package/libs/CruisePlugin/BaseController.js +66 -54
- package/libs/CruisePlugin/Move.js +29 -25
- package/libs/CruisePlugin/Work.d.ts +1 -5
- package/libs/CruisePlugin/Work.js +133 -129
- package/libs/CruisePlugin/index.js +10 -6
- package/libs/GuideLinePlugin/Controller.d.ts +4 -0
- package/libs/GuideLinePlugin/Controller.js +41 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +6 -2
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +61 -61
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -2
- package/libs/GuideLinePlugin/index.js +12 -8
- package/libs/PanoTagPlugin/controller/TagComputer.js +24 -22
- package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +92 -100
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/index.js +32 -26
- package/libs/PanoTagPlugin/index.js +14 -11
- package/libs/PanoTagPlugin/utils/DebugUtil.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/DebugUtil.js +25 -0
- package/libs/base/BasePlugin.d.ts +1 -1
- package/libs/base/BasePlugin.js +2 -2
- package/libs/index.js +125 -121
- package/libs/shared-utils/Utils/BaseUtil.d.ts +5 -0
- package/libs/shared-utils/Utils/BaseUtil.js +12 -0
- package/libs/shared-utils/Utils/FiveUtil.d.ts +10 -0
- package/libs/shared-utils/Utils/FiveUtil.js +27 -0
- package/libs/shared-utils/Utils/WorkUtil.d.ts +33 -0
- package/libs/shared-utils/Utils/WorkUtil.js +68 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var t = (s, i, e) => i in s ? l(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e;
|
|
3
|
+
var n = (s, i, e) => (t(s, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
import { safeObj as a } from "../../shared-utils/safeObj.js";
|
|
5
|
+
class r {
|
|
6
|
+
constructor(i) {
|
|
7
|
+
n(this, "plugin");
|
|
8
|
+
this.plugin = i;
|
|
9
|
+
}
|
|
10
|
+
closeIntersectRaycaster() {
|
|
11
|
+
this.plugin.tags.forEach((i) => {
|
|
12
|
+
var e;
|
|
13
|
+
a((e = i == null ? void 0 : i.initialConfig) == null ? void 0 : e.visibleConfig).intersectRaycaster && (i.initialConfig.visibleConfig.intersectRaycaster.enabled = !1);
|
|
14
|
+
}), this.plugin.changeGlobalConfig({
|
|
15
|
+
visibleConfig: {
|
|
16
|
+
intersectRaycaster: {
|
|
17
|
+
enabled: !1
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
r as DebugUtil
|
|
25
|
+
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -14,10 +14,10 @@ let b = class {
|
|
|
14
14
|
/**
|
|
15
15
|
* @realsee/dnalogel 版本号
|
|
16
16
|
*/
|
|
17
|
-
i(this, "VERSION", "3.
|
|
17
|
+
i(this, "VERSION", "3.12.0");
|
|
18
18
|
i(this, "five");
|
|
19
19
|
/**
|
|
20
|
-
* 插件事件钩子
|
|
20
|
+
* @description: 插件事件钩子
|
|
21
21
|
*/
|
|
22
22
|
i(this, "hooks", new a());
|
|
23
23
|
i(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
|
package/libs/index.js
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
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 { index as
|
|
38
|
-
import { CSS3DRender as
|
|
39
|
-
import { Model as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { Polyline as
|
|
43
|
-
import { default as
|
|
44
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
45
|
-
import { ModelItemLabelPlugin as
|
|
46
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
47
|
-
import { Plugin as
|
|
48
|
-
import { GuideLineItem$1 as
|
|
49
|
-
import { GuideLineModeItem$1 as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { typing as
|
|
53
|
-
import { default as
|
|
54
|
-
import { defaultGlobalConfig as
|
|
55
|
-
import { ContentType as
|
|
56
|
-
import { Object3DHelperController as
|
|
57
|
-
import { typings as
|
|
3
|
+
import { PaintBrush as Xp } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as oe } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as te } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as me } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as ee } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as ne, modelRoomLabelPluginServerParams as ae } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as ue } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as xe } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as se } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as Me } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as Le } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FLOOR_TYPE_MAP as _e, ROOM_FETILE_TYPE_MAP as Ee, ROOM_TYPE_MAP as Ie } from "./floorplan/typings/floorplanServerData.js";
|
|
15
|
+
import { ModelChassisCompassPlugin as Oe } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
|
+
import { ModelEntryDoorGuidePlugin as Ae } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
+
import { CameraMovementPlugin as De } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
|
+
import { CameraMovementEffect as be, Rotation as ve } from "./CameraMovementPlugin/typing.js";
|
|
19
|
+
import { PanoRulerPlugin as Ye } from "./PanoRulerPlugin/Plugin.js";
|
|
20
|
+
import { PanoRulerProPlugin as Ve } from "./PanoRulerProPlugin/index.js";
|
|
21
|
+
import { PanoCompassPlugin as he } from "./PanoCompassPlugin/index.js";
|
|
22
|
+
import { PanoMeasurePlugin as Be } from "./PanoMeasurePlugin/index.js";
|
|
23
|
+
import { PanoSpatialTagPlugin as Ue } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
24
|
+
import { modelItemLabelPluginServerParams as ke } from "./ModelItemLabelPlugin/index.js";
|
|
25
|
+
import { ModelTVVideoPlugin as We } from "./ModelTVVideoPlugin/Plugin.js";
|
|
26
|
+
import { DIRECTION as ze } from "./ModelTVVideoPlugin/typings.js";
|
|
27
|
+
import { itemLabelPluginServerParams as Ke } from "./ItemLabelPlugin/index.js";
|
|
28
|
+
import { PanoDoorLabelPlugin as Xe } from "./PanoDoorLabelPlugin/index.js";
|
|
29
|
+
import { GuideLinePlugin as ol } from "./GuideLinePlugin/index.js";
|
|
30
|
+
import { CruisePlugin as tl, MovePlugin as il } from "./CruisePlugin/index.js";
|
|
31
|
+
import { PanoTagPlugin as pl } from "./PanoTagPlugin/index.js";
|
|
32
|
+
import { Object3DHelperPlugin as ll } from "./Object3DHelperPlugin/index.js";
|
|
33
|
+
import { PanoVideoPlugin as al } from "./PanoVideoPlugin/index.js";
|
|
34
|
+
import { PipelinePlugin as ul } from "./PipelinePlugin/index.js";
|
|
35
|
+
import { AreaMakerPlugin as xl } from "./AreaMakerPlugin/index.js";
|
|
36
|
+
import { CurrentPanoImagePlugin as sl } from "./CurrentPanoImagePlugin/index.js";
|
|
37
|
+
import { index as Ml } from "./shared-utils/index.js";
|
|
38
|
+
import { CSS3DRender as Ll } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
39
|
+
import { Model as _l } from "./PanoMeasurePlugin/Model/index.js";
|
|
40
|
+
import { default as Il } from "./PanoMeasurePlugin/Model/point.js";
|
|
41
|
+
import { default as Ol } from "./PanoMeasurePlugin/Model/line.js";
|
|
42
|
+
import { Polyline as Al } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
43
|
+
import { default as Dl } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
44
|
+
import { DISPLAY_STRATEGY_TYPE as bl } from "./ModelItemLabelPlugin/typings.js";
|
|
45
|
+
import { ModelItemLabelPlugin as Fl } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
46
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as cl } from "./ItemLabelPlugin/typings.js";
|
|
47
|
+
import { Plugin as Nl } from "./ItemLabelPlugin/Plugin.js";
|
|
48
|
+
import { GuideLineItem$1 as wl } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
49
|
+
import { GuideLineModeItem$1 as Hl } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
50
|
+
import { default as jl, default as kl } from "./CruisePlugin/Work.js";
|
|
51
|
+
import { default as Wl } from "./CruisePlugin/Move.js";
|
|
52
|
+
import { typing as zl } from "./CruisePlugin/typing/index.js";
|
|
53
|
+
import { default as Kl, pluginFlag as Ql } from "./PanoTagPlugin/controller/index.js";
|
|
54
|
+
import { defaultGlobalConfig as Zl } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
55
|
+
import { ContentType as rn, DimensionType as tn, PointType as mn } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
56
|
+
import { Object3DHelperController as en, PLUGIN as ln } from "./Object3DHelperPlugin/Controller.js";
|
|
57
|
+
import { typings as an } from "./PanoVideoPlugin/typings/index.js";
|
|
58
58
|
import "./components/PaintBrush/Controller.js";
|
|
59
59
|
import "./components/PaintBrush/utils.js";
|
|
60
60
|
import "./components/PaintBrush/tween.js";
|
|
@@ -249,6 +249,9 @@ import "./PanoDoorLabelPlugin/DoorLabelItem.js";
|
|
|
249
249
|
import "./PanoDoorLabelPlugin/utils.js";
|
|
250
250
|
import "./GuideLinePlugin/Controller.js";
|
|
251
251
|
import "./shared-utils/five/fiveLoaded.js";
|
|
252
|
+
import "./shared-utils/Utils/WorkUtil.js";
|
|
253
|
+
import "./shared-utils/Utils/BaseUtil.js";
|
|
254
|
+
import "./shared-utils/five/transformPosition.js";
|
|
252
255
|
import "./shared-utils/log.js";
|
|
253
256
|
import "./GuideLinePlugin/utils/createLineGeometry.js";
|
|
254
257
|
import "./vendor/polyline-normals/index.js";
|
|
@@ -288,7 +291,6 @@ import "./shared-utils/five/calculateThreeMouse.js";
|
|
|
288
291
|
import "./PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
289
292
|
import "./shared-utils/typescript/entries.js";
|
|
290
293
|
import "./shared-utils/url/getUrl.js";
|
|
291
|
-
import "./shared-utils/five/transformPosition.js";
|
|
292
294
|
import "./shared-utils/five/getFloorIndex.js";
|
|
293
295
|
import "./PanoTagPlugin/Components/TagContainer.js";
|
|
294
296
|
import "./PanoTagPlugin/Components/TagItem.js";
|
|
@@ -359,9 +361,11 @@ import "./PanoTagPlugin/Components/Common/TagPoint.js";
|
|
|
359
361
|
import "./shared-utils/three/GLTFLoader.js";
|
|
360
362
|
import "@realsee/five/gltf-loader";
|
|
361
363
|
import "./shared-utils/five/fiveModelLoad.js";
|
|
364
|
+
import "./PanoTagPlugin/utils/DebugUtil.js";
|
|
362
365
|
import "./GuideLinePlugin/Components/Tag.js";
|
|
363
366
|
import "./GuideLinePlugin/utils/index.js";
|
|
364
367
|
import "./CruisePlugin/BaseController.js";
|
|
368
|
+
import "./shared-utils/Utils/FiveUtil.js";
|
|
365
369
|
import "./CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
366
370
|
import "./shared-utils/vectorToCoordinate.js";
|
|
367
371
|
import "./shared-utils/formatRad.js";
|
|
@@ -423,69 +427,69 @@ import "./shared-utils/three/getRaycaster.js";
|
|
|
423
427
|
r();
|
|
424
428
|
o();
|
|
425
429
|
export {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
430
|
+
xl as AreaMakerPlugin,
|
|
431
|
+
Ll as CSS3DRender,
|
|
432
|
+
me as CSS3DRenderPlugin,
|
|
433
|
+
be as CameraMovementEffect,
|
|
434
|
+
De as CameraMovementPlugin,
|
|
435
|
+
rn as ContentType,
|
|
436
|
+
tl as CruisePlugin,
|
|
437
|
+
jl as CruisePluginController,
|
|
438
|
+
zl as CruisePluginTypes,
|
|
439
|
+
sl as CurrentPanoImagePlugin,
|
|
440
|
+
ze as DIRECTION,
|
|
441
|
+
bl as DISPLAY_STRATEGY_TYPE,
|
|
442
|
+
tn as DimensionType,
|
|
443
|
+
ue as FLOOR_PLAN_ATTACHED_TO,
|
|
444
|
+
_e as FLOOR_TYPE_MAP,
|
|
445
|
+
wl as GuideLineItem,
|
|
446
|
+
Hl as GuideLineModeItem,
|
|
447
|
+
ol as GuideLinePlugin,
|
|
448
|
+
cl as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
449
|
+
Nl as ItemLabelPlugin,
|
|
450
|
+
Dl as Magnifier,
|
|
451
|
+
se as MapviewFloorplanPlugin,
|
|
452
|
+
Oe as ModelChassisCompassPlugin,
|
|
453
|
+
Ae as ModelEntryDoorGuidePlugin,
|
|
454
|
+
xe as ModelFloorplanPlugin,
|
|
455
|
+
Fl as ModelItemLabelPlugin,
|
|
456
|
+
ne as ModelRoomLabelPlugin,
|
|
457
|
+
We as ModelTVVideoPlugin,
|
|
458
|
+
te as ModelViewPlugin,
|
|
459
|
+
Wl as MoveController,
|
|
460
|
+
il as MovePlugin,
|
|
461
|
+
en as Object3DHelperController,
|
|
462
|
+
ll as Object3DHelperPlugin,
|
|
463
|
+
ln as PLUGIN,
|
|
464
|
+
Xp as PaintBrush,
|
|
465
|
+
oe as PaintBrushTypeEnum,
|
|
466
|
+
he as PanoCompassPlugin,
|
|
467
|
+
ee as PanoCursorRaycasterPlugin,
|
|
468
|
+
Xe as PanoDoorLabelPlugin,
|
|
469
|
+
Le as PanoFloorplanRadarPlugin,
|
|
470
|
+
Be as PanoMeasurePlugin,
|
|
471
|
+
Ol as PanoMeasurePluginLine,
|
|
472
|
+
_l as PanoMeasurePluginModel,
|
|
473
|
+
Il as PanoMeasurePluginPoint,
|
|
474
|
+
Al as PanoMeasurePluginPolyline,
|
|
475
|
+
Ye as PanoRulerPlugin,
|
|
476
|
+
Ve as PanoRulerProPlugin,
|
|
477
|
+
Ue as PanoSpatialTagPlugin,
|
|
478
|
+
pl as PanoTagPlugin,
|
|
479
|
+
Kl as PanoTagPluginController,
|
|
480
|
+
al as PanoVideoPlugin,
|
|
481
|
+
an as PanoVideoPluginType,
|
|
482
|
+
ul as PipelinePlugin,
|
|
483
|
+
mn as PointType,
|
|
484
|
+
Ee as ROOM_FETILE_TYPE_MAP,
|
|
485
|
+
Ie as ROOM_TYPE_MAP,
|
|
486
|
+
ve as Rotation,
|
|
487
|
+
Me as TopviewFloorplanPlugin,
|
|
488
|
+
Ml as Util,
|
|
489
|
+
kl as WalkController,
|
|
490
|
+
Zl as defaultGlobalConfig,
|
|
491
|
+
Ke as itemLabelPluginServerParams,
|
|
492
|
+
ke as modelItemLabelPluginServerParams,
|
|
493
|
+
ae as modelRoomLabelPluginServerParams,
|
|
494
|
+
Ql as pluginFlag
|
|
491
495
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var o = (t, s, e) => s in t ? c(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
|
+
var i = (t, s, e) => (o(t, typeof s != "symbol" ? s + "" : s, e), e);
|
|
4
|
+
class a {
|
|
5
|
+
constructor(s) {
|
|
6
|
+
i(this, "five");
|
|
7
|
+
this.five = s;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
a as BaseUtil
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import { BaseUtil } from './BaseUtil';
|
|
3
|
+
import { WorkUtil } from './WorkUtil';
|
|
4
|
+
export declare class FiveUtil extends BaseUtil {
|
|
5
|
+
workUtil: WorkUtil;
|
|
6
|
+
get version(): string;
|
|
7
|
+
get majorVersion(): number;
|
|
8
|
+
constructor(five: Five);
|
|
9
|
+
moveToPano(panoNumber: number, movePanoOptions: Parameters<Five['moveToPano']>[1]): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 {
|
|
7
|
+
constructor(o) {
|
|
8
|
+
super(o);
|
|
9
|
+
e(this, "workUtil", new a(this.five));
|
|
10
|
+
}
|
|
11
|
+
get version() {
|
|
12
|
+
return this.five.constructor.version;
|
|
13
|
+
}
|
|
14
|
+
get majorVersion() {
|
|
15
|
+
return Number(this.version.split(".")[0]);
|
|
16
|
+
}
|
|
17
|
+
moveToPano(o, i) {
|
|
18
|
+
const s = this.majorVersion === 5 ? o : {
|
|
19
|
+
workCode: this.workUtil.workCode,
|
|
20
|
+
panoIndex: o
|
|
21
|
+
};
|
|
22
|
+
return this.five.moveToPano(s, i);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
p as FiveUtil
|
|
27
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import { BaseUtil } from './BaseUtil';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
|
+
export declare class WorkUtil extends BaseUtil {
|
|
5
|
+
private _workCode;
|
|
6
|
+
/**
|
|
7
|
+
* @description: 设置插件当前的 workCode
|
|
8
|
+
*/
|
|
9
|
+
set workCode(workCode: string);
|
|
10
|
+
/**
|
|
11
|
+
* @description: 获取插件当前的 workCode
|
|
12
|
+
*/
|
|
13
|
+
get workCode(): string;
|
|
14
|
+
/**
|
|
15
|
+
* @description: 获取当前的 work
|
|
16
|
+
*/
|
|
17
|
+
get work(): import("@realsee/five").Work;
|
|
18
|
+
get observers(): import("@realsee/five").WorkObserver[];
|
|
19
|
+
get transform(): THREE.Matrix4;
|
|
20
|
+
constructor(five: Five);
|
|
21
|
+
/**
|
|
22
|
+
* @description: 获取全景点坐标
|
|
23
|
+
*/
|
|
24
|
+
getObserverPosition(observerIndex: number): THREE.Vector3 | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* @description: 获取全景点位和模型的地面坐标
|
|
27
|
+
*/
|
|
28
|
+
getObserverStandingPosition(observerIndex: number): THREE.Vector3 | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* @description: 获取observer
|
|
31
|
+
*/
|
|
32
|
+
getObserver(observerIndex: number): import("@realsee/five").WorkObserver;
|
|
33
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var k = (s, o, r) => o in s ? f(s, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : s[o] = r;
|
|
3
|
+
var i = (s, o, r) => (k(s, typeof o != "symbol" ? o + "" : o, r), r);
|
|
4
|
+
import { BaseUtil as w } from "./BaseUtil.js";
|
|
5
|
+
import * as a from "three";
|
|
6
|
+
import { transformPosition as n } from "../five/transformPosition.js";
|
|
7
|
+
class g extends w {
|
|
8
|
+
constructor(r) {
|
|
9
|
+
super(r);
|
|
10
|
+
i(this, "_workCode");
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @description: 设置插件当前的 workCode
|
|
14
|
+
*/
|
|
15
|
+
set workCode(r) {
|
|
16
|
+
this._workCode = r;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @description: 获取插件当前的 workCode
|
|
20
|
+
*/
|
|
21
|
+
get workCode() {
|
|
22
|
+
var r;
|
|
23
|
+
return (r = this._workCode) != null ? r : this.five.state.workCode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @description: 获取当前的 work
|
|
27
|
+
*/
|
|
28
|
+
get work() {
|
|
29
|
+
var r, t;
|
|
30
|
+
return (t = (r = this.five.works) == null ? void 0 : r.find((e) => e.workCode === this.workCode)) != null ? t : this.five.work;
|
|
31
|
+
}
|
|
32
|
+
get observers() {
|
|
33
|
+
return this.work.observers;
|
|
34
|
+
}
|
|
35
|
+
get transform() {
|
|
36
|
+
var t;
|
|
37
|
+
const r = (t = this.work.options) == null ? void 0 : t.transform;
|
|
38
|
+
return r ? r.clone() : new a.Matrix4();
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @description: 获取全景点坐标
|
|
42
|
+
*/
|
|
43
|
+
getObserverPosition(r) {
|
|
44
|
+
var e;
|
|
45
|
+
const t = (e = this.getObserver(r)) == null ? void 0 : e.position;
|
|
46
|
+
if (t)
|
|
47
|
+
return n(t, this.transform);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @description: 获取全景点位和模型的地面坐标
|
|
51
|
+
*/
|
|
52
|
+
getObserverStandingPosition(r) {
|
|
53
|
+
var e;
|
|
54
|
+
const t = (e = this.getObserver(r)) == null ? void 0 : e.standingPosition;
|
|
55
|
+
if (t)
|
|
56
|
+
return n(t, this.transform);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @description: 获取observer
|
|
60
|
+
*/
|
|
61
|
+
getObserver(r) {
|
|
62
|
+
var t;
|
|
63
|
+
return (t = this.observers) == null ? void 0 : t[r];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
g as WorkUtil
|
|
68
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.12.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "3.
|
|
10
|
+
"version": "3.12.0",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|