@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.
Files changed (45) hide show
  1. package/dist/CruisePlugin/BaseController.d.ts +5 -0
  2. package/dist/CruisePlugin/Work.d.ts +1 -5
  3. package/dist/GuideLinePlugin/Controller.d.ts +4 -0
  4. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
  5. package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
  6. package/dist/PanoTagPlugin/utils/DebugUtil.d.ts +6 -0
  7. package/dist/base/BasePlugin.d.ts +1 -1
  8. package/dist/index.cjs.js +52 -52
  9. package/dist/index.js +3178 -3067
  10. package/dist/index.umd.js +44 -44
  11. package/dist/shared-utils/Utils/BaseUtil.d.ts +5 -0
  12. package/dist/shared-utils/Utils/FiveUtil.d.ts +10 -0
  13. package/dist/shared-utils/Utils/WorkUtil.d.ts +33 -0
  14. package/libs/CruisePlugin/BaseController.d.ts +5 -0
  15. package/libs/CruisePlugin/BaseController.js +66 -54
  16. package/libs/CruisePlugin/Move.js +29 -25
  17. package/libs/CruisePlugin/Work.d.ts +1 -5
  18. package/libs/CruisePlugin/Work.js +133 -129
  19. package/libs/CruisePlugin/index.js +10 -6
  20. package/libs/GuideLinePlugin/Controller.d.ts +4 -0
  21. package/libs/GuideLinePlugin/Controller.js +41 -30
  22. package/libs/GuideLinePlugin/GuideLineItem.js +6 -2
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +61 -61
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -2
  25. package/libs/GuideLinePlugin/index.js +12 -8
  26. package/libs/PanoTagPlugin/controller/TagComputer.js +24 -22
  27. package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
  28. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
  29. package/libs/PanoTagPlugin/controller/TagUtil.js +92 -100
  30. package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
  31. package/libs/PanoTagPlugin/controller/index.js +32 -26
  32. package/libs/PanoTagPlugin/index.js +14 -11
  33. package/libs/PanoTagPlugin/utils/DebugUtil.d.ts +6 -0
  34. package/libs/PanoTagPlugin/utils/DebugUtil.js +25 -0
  35. package/libs/base/BasePlugin.d.ts +1 -1
  36. package/libs/base/BasePlugin.js +2 -2
  37. package/libs/index.js +125 -121
  38. package/libs/shared-utils/Utils/BaseUtil.d.ts +5 -0
  39. package/libs/shared-utils/Utils/BaseUtil.js +12 -0
  40. package/libs/shared-utils/Utils/FiveUtil.d.ts +10 -0
  41. package/libs/shared-utils/Utils/FiveUtil.js +27 -0
  42. package/libs/shared-utils/Utils/WorkUtil.d.ts +33 -0
  43. package/libs/shared-utils/Utils/WorkUtil.js +68 -0
  44. package/libs/shared-utils/logger.js +1 -1
  45. 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
+ };
@@ -57,7 +57,7 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
57
57
  readonly VERSION: string;
58
58
  five: Five;
59
59
  /**
60
- * 插件事件钩子
60
+ * @description: 插件事件钩子
61
61
  */
62
62
  hooks: Subscribe<PluginEventMap>;
63
63
  readonly staticPrefix: string;
@@ -14,10 +14,10 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "3.11.0");
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 zp } from "./components/PaintBrush/index.js";
4
- import { PaintBrushTypeEnum as Kp } from "./components/PaintBrush/typings.js";
5
- import { ModelViewPlugin as Xp } from "./ModelViewPlugin/Plugin.js";
6
- import { CSS3DRenderPlugin as oe } from "./CSS3DRenderPlugin/index.js";
7
- import { PanoCursorRaycasterPlugin as te } from "./PanoCursorRaycasterPlugin/index.js";
8
- import { ModelRoomLabelPlugin as me, modelRoomLabelPluginServerParams as pe } from "./ModelRoomLabelPlugin/index.js";
9
- import { FLOOR_PLAN_ATTACHED_TO as le } from "./floorplan/constant.js";
10
- import { ModelFloorplanPlugin as ae } from "./floorplan/ModelFloorplanPlugin/index.js";
11
- import { MapviewFloorplanPlugin as ue } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
- import { TopviewFloorplanPlugin as xe } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
- import { PanoFloorplanRadarPlugin as se } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
- import { FLOOR_TYPE_MAP as Me, ROOM_FETILE_TYPE_MAP as Te, ROOM_TYPE_MAP as Le } from "./floorplan/typings/floorplanServerData.js";
15
- import { ModelChassisCompassPlugin as _e } from "./ModelChassisCompassPlugin/Plugin.js";
16
- import { ModelEntryDoorGuidePlugin as Ie } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
- import { CameraMovementPlugin as Oe } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
- import { CameraMovementEffect as Ae, Rotation as Se } from "./CameraMovementPlugin/typing.js";
19
- import { PanoRulerPlugin as Ge } from "./PanoRulerPlugin/Plugin.js";
20
- import { PanoRulerProPlugin as ve } from "./PanoRulerProPlugin/index.js";
21
- import { PanoCompassPlugin as Ye } from "./PanoCompassPlugin/index.js";
22
- import { PanoMeasurePlugin as Ve } from "./PanoMeasurePlugin/index.js";
23
- import { PanoSpatialTagPlugin as he } from "./PanoSpatialTagPlugin/Plugin.js";
24
- import { modelItemLabelPluginServerParams as Be } from "./ModelItemLabelPlugin/index.js";
25
- import { ModelTVVideoPlugin as Ue } from "./ModelTVVideoPlugin/Plugin.js";
26
- import { DIRECTION as ke } from "./ModelTVVideoPlugin/typings.js";
27
- import { itemLabelPluginServerParams as We } from "./ItemLabelPlugin/index.js";
28
- import { PanoDoorLabelPlugin as ze } from "./PanoDoorLabelPlugin/index.js";
29
- import { GuideLinePlugin as Ke } from "./GuideLinePlugin/index.js";
30
- import { CruisePlugin as Xe, MovePlugin as Ze } from "./CruisePlugin/index.js";
31
- import { PanoTagPlugin as rl } from "./PanoTagPlugin/index.js";
32
- import { Object3DHelperPlugin as il } from "./Object3DHelperPlugin/index.js";
33
- import { PanoVideoPlugin as pl } from "./PanoVideoPlugin/index.js";
34
- import { PipelinePlugin as ll } from "./PipelinePlugin/index.js";
35
- import { AreaMakerPlugin as al } from "./AreaMakerPlugin/index.js";
36
- import { CurrentPanoImagePlugin as ul } from "./CurrentPanoImagePlugin/index.js";
37
- import { index as xl } from "./shared-utils/index.js";
38
- import { CSS3DRender as sl } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
39
- import { Model as Ml } from "./PanoMeasurePlugin/Model/index.js";
40
- import { default as Ll } from "./PanoMeasurePlugin/Model/point.js";
41
- import { default as _l } from "./PanoMeasurePlugin/Model/line.js";
42
- import { Polyline as Il } from "./PanoMeasurePlugin/Model/polyline.js";
43
- import { default as Ol } from "./PanoMeasurePlugin/Modules/Magnifier.js";
44
- import { DISPLAY_STRATEGY_TYPE as Al } from "./ModelItemLabelPlugin/typings.js";
45
- import { ModelItemLabelPlugin as Dl } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
46
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as bl } from "./ItemLabelPlugin/typings.js";
47
- import { Plugin as Fl } from "./ItemLabelPlugin/Plugin.js";
48
- import { GuideLineItem$1 as cl } from "./GuideLinePlugin/GuideLineItem/index.js";
49
- import { GuideLineModeItem$1 as Nl } from "./GuideLinePlugin/GuideLineModeItem/index.js";
50
- import { default as wl, default as Bl } from "./CruisePlugin/Work.js";
51
- import { default as Ul } from "./CruisePlugin/Move.js";
52
- import { typing as kl } from "./CruisePlugin/typing/index.js";
53
- import { default as Wl, pluginFlag as ql } from "./PanoTagPlugin/controller/index.js";
54
- import { defaultGlobalConfig as Jl } from "./PanoTagPlugin/typings/tag/TagConfig.js";
55
- import { ContentType as Ql, DimensionType as Xl, PointType as Zl } from "./PanoTagPlugin/Archive/deprecated.js";
56
- import { Object3DHelperController as rn, PLUGIN as tn } from "./Object3DHelperPlugin/Controller.js";
57
- import { typings as pn } from "./PanoVideoPlugin/typings/index.js";
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
- al as AreaMakerPlugin,
427
- sl as CSS3DRender,
428
- oe as CSS3DRenderPlugin,
429
- Ae as CameraMovementEffect,
430
- Oe as CameraMovementPlugin,
431
- Ql as ContentType,
432
- Xe as CruisePlugin,
433
- wl as CruisePluginController,
434
- kl as CruisePluginTypes,
435
- ul as CurrentPanoImagePlugin,
436
- ke as DIRECTION,
437
- Al as DISPLAY_STRATEGY_TYPE,
438
- Xl as DimensionType,
439
- le as FLOOR_PLAN_ATTACHED_TO,
440
- Me as FLOOR_TYPE_MAP,
441
- cl as GuideLineItem,
442
- Nl as GuideLineModeItem,
443
- Ke as GuideLinePlugin,
444
- bl as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
445
- Fl as ItemLabelPlugin,
446
- Ol as Magnifier,
447
- ue as MapviewFloorplanPlugin,
448
- _e as ModelChassisCompassPlugin,
449
- Ie as ModelEntryDoorGuidePlugin,
450
- ae as ModelFloorplanPlugin,
451
- Dl as ModelItemLabelPlugin,
452
- me as ModelRoomLabelPlugin,
453
- Ue as ModelTVVideoPlugin,
454
- Xp as ModelViewPlugin,
455
- Ul as MoveController,
456
- Ze as MovePlugin,
457
- rn as Object3DHelperController,
458
- il as Object3DHelperPlugin,
459
- tn as PLUGIN,
460
- zp as PaintBrush,
461
- Kp as PaintBrushTypeEnum,
462
- Ye as PanoCompassPlugin,
463
- te as PanoCursorRaycasterPlugin,
464
- ze as PanoDoorLabelPlugin,
465
- se as PanoFloorplanRadarPlugin,
466
- Ve as PanoMeasurePlugin,
467
- _l as PanoMeasurePluginLine,
468
- Ml as PanoMeasurePluginModel,
469
- Ll as PanoMeasurePluginPoint,
470
- Il as PanoMeasurePluginPolyline,
471
- Ge as PanoRulerPlugin,
472
- ve as PanoRulerProPlugin,
473
- he as PanoSpatialTagPlugin,
474
- rl as PanoTagPlugin,
475
- Wl as PanoTagPluginController,
476
- pl as PanoVideoPlugin,
477
- pn as PanoVideoPluginType,
478
- ll as PipelinePlugin,
479
- Zl as PointType,
480
- Te as ROOM_FETILE_TYPE_MAP,
481
- Le as ROOM_TYPE_MAP,
482
- Se as Rotation,
483
- xe as TopviewFloorplanPlugin,
484
- xl as Util,
485
- Bl as WalkController,
486
- Jl as defaultGlobalConfig,
487
- We as itemLabelPluginServerParams,
488
- Be as modelItemLabelPluginServerParams,
489
- pe as modelRoomLabelPluginServerParams,
490
- ql as pluginFlag
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,5 @@
1
+ import type { Five } from '@realsee/five';
2
+ export declare class BaseUtil {
3
+ five: Five;
4
+ constructor(five: Five);
5
+ }
@@ -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.11.0",
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.11.0",
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*",