@realsee/dnalogel 2.2.7 → 2.3.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/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
- package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/dist/CSS3DRenderPlugin/index.d.ts +2 -1
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/dist/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
- package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/dist/index.cjs.js +46 -46
- package/dist/index.js +4987 -4817
- package/dist/index.umd.js +39 -39
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +533 -0
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +6 -5
- package/docs/functions/CameraMovementPlugin.html +6 -5
- package/docs/functions/CruisePlugin.html +6 -5
- package/docs/functions/GuideLinePlugin.html +7 -6
- package/docs/functions/ItemLabelPlugin.html +6 -5
- package/docs/functions/MapviewFloorplanPlugin.html +6 -5
- package/docs/functions/ModelChassisCompassPlugin.html +6 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
- package/docs/functions/ModelFloorplanPlugin.html +6 -5
- package/docs/functions/ModelItemLabelPlugin.html +6 -5
- package/docs/functions/ModelRoomLabelPlugin.html +6 -5
- package/docs/functions/ModelTVVideoPlugin.html +6 -5
- package/docs/functions/ModelViewPlugin.html +6 -5
- package/docs/functions/Object3DHelperPlugin.html +6 -5
- package/docs/functions/PanoCompassPlugin.html +6 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
- package/docs/functions/PanoDoorLabelPlugin.html +6 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
- package/docs/functions/PanoMeasurePlugin.html +6 -5
- package/docs/functions/PanoRulerPlugin.html +6 -5
- package/docs/functions/PanoRulerProPlugin.html +6 -5
- package/docs/functions/PanoSpatialTagPlugin.html +6 -5
- package/docs/functions/PanoTagPlugin.html +6 -5
- package/docs/functions/TopviewFloorplanPlugin.html +6 -5
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +7 -6
- package/docs/index.html +6 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -6
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -6
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +7 -6
- package/docs/interfaces/Rooms.html +7 -6
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +7 -5
- package/docs/types/ArrayPosition.html +7 -6
- package/docs/types/CSS3DRenderExportType.html +8 -7
- package/docs/types/CSS3DRenderPluginExportType.html +7 -6
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
- package/docs/types/Color.html +7 -6
- package/docs/types/ContentTypeConfigKey.html +7 -6
- package/docs/types/ContentTypeConfigKeyArray.html +7 -6
- package/docs/types/Create3DDomContainerReturnType.html +7 -6
- package/docs/types/Create3DElementReturnType.html +8 -7
- package/docs/types/CruisePluginExportType.html +7 -6
- package/docs/types/Direction-1.html +7 -6
- package/docs/types/Direction4.html +7 -6
- package/docs/types/FloorplanRuleLabels.html +7 -6
- package/docs/types/FloorplanServerRuleLabels.html +7 -6
- package/docs/types/GuideLinePluginExportType.html +7 -6
- package/docs/types/HelperEventMap.html +7 -6
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
- package/docs/types/MediaData.html +7 -6
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
- package/docs/types/MoveArgs.html +7 -6
- package/docs/types/MoveOpts.html +7 -6
- package/docs/types/Object3DHelperEventMap.html +7 -6
- package/docs/types/ObjectFit.html +7 -6
- package/docs/types/PaintBrushEventMap.html +7 -6
- package/docs/types/PanoCompassPluginData.html +7 -6
- package/docs/types/PanoCompassPluginExportType.html +7 -6
- package/docs/types/PanoCompassPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
- package/docs/types/PanoMeasurePluginEvent.html +7 -6
- package/docs/types/PanoMeasureReturnType.html +7 -6
- package/docs/types/PanoSpatialTagPluginId.html +7 -6
- package/docs/types/PanoTagPluginExportInterface.html +7 -6
- package/docs/types/PanoTagPluginParamsInterface.html +7 -6
- package/docs/types/PlaneTag.html +7 -6
- package/docs/types/PointTag.html +7 -6
- package/docs/types/Position.html +7 -6
- package/docs/types/RotateArgs.html +7 -6
- package/docs/types/RotateOpts.html +7 -6
- package/docs/types/RuleLabelsKey.html +7 -6
- package/docs/types/RuleLabelsValue.html +7 -6
- package/docs/types/Tag.html +7 -6
- package/docs/types/Tag2D.html +7 -6
- package/docs/types/Tag3D.html +7 -6
- package/docs/types/TagId.html +7 -6
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
- package/docs/variables/PLUGIN.html +7 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
- package/docs/variables/ROOM_TYPE_MAP.html +7 -6
- package/docs/variables/VERSION.html +7 -6
- package/docs/variables/itemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +197 -256
- package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +59 -62
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
- package/libs/CSS3DRenderPlugin/index.js +17 -8
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
- package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +29 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
- package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +53 -0
- package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +115 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
- package/libs/CruisePlugin/Controller.js +16 -16
- package/libs/ModelTVVideoPlugin/Plugin.js +60 -52
- package/libs/ModelTVVideoPlugin/index.js +15 -7
- package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/libs/Object3DHelperPlugin/Controller.js +103 -83
- package/libs/Object3DHelperPlugin/index.js +20 -12
- package/libs/PanoCompassPlugin/Controller.js +49 -41
- package/libs/PanoCompassPlugin/index.js +13 -5
- package/libs/PanoSpatialTagPlugin/Plugin.js +46 -38
- package/libs/PanoSpatialTagPlugin/index.js +13 -5
- package/libs/PanoTagPlugin/index.js +21 -13
- package/libs/index.js +102 -93
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
- package/libs/shared-utils/three/index.js +2 -1
- package/package.json +15 -14
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -66
- package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var M = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
5
|
-
for (var e in
|
|
6
|
-
M.call(
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
10
|
-
return
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
|
+
var w = Object.getOwnPropertySymbols;
|
|
3
|
+
var M = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var b = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
|
|
5
|
+
for (var e in s || (s = {}))
|
|
6
|
+
M.call(s, e) && b(i, e, s[e]);
|
|
7
|
+
if (w)
|
|
8
|
+
for (var e of w(s))
|
|
9
|
+
E.call(s, e) && b(i, e, s[e]);
|
|
10
|
+
return i;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var l = (
|
|
12
|
+
var p = (i, s, e) => (b(i, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
|
+
var u = (i, s, e) => new Promise((r, t) => {
|
|
14
|
+
var l = (n) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
d(e.next(n));
|
|
17
|
+
} catch (h) {
|
|
18
|
+
t(h);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, c = (n) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
d(e.throw(n));
|
|
23
|
+
} catch (h) {
|
|
24
|
+
t(h);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, d = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(l, c);
|
|
27
|
+
d((e = e.apply(i, s)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
29
|
+
import { Controller as R } from "../base/BasePlugin.js";
|
|
30
30
|
import "three";
|
|
31
|
-
import { MoveHelper as
|
|
32
|
-
import { RotateHelper as
|
|
33
|
-
import { RectangleScaleHelper as
|
|
31
|
+
import { MoveHelper as j } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
32
|
+
import { RotateHelper as P } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
33
|
+
import { RectangleScaleHelper as y } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
34
34
|
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
35
35
|
import { MoveController as F } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
36
|
-
import { ControllerWrapper as
|
|
37
|
-
import { Object3DHelper as
|
|
38
|
-
import { RotateController as
|
|
39
|
-
import { CSS3DScaleController as
|
|
36
|
+
import { ControllerWrapper as v } from "./FiveControllerWrapper.js";
|
|
37
|
+
import { Object3DHelper as I } from "../shared-utils/Object3DHelper/index.js";
|
|
38
|
+
import { RotateController as k } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
39
|
+
import { CSS3DScaleController as B } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
40
|
+
import { CSS3DRender as L } from "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
41
|
+
import { fiveModelLoaded as $ } from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
42
|
+
import { generateBehindFiveElement as W } from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
40
43
|
import "../shared-utils/Subscribe.js";
|
|
41
44
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
42
45
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
@@ -45,46 +48,53 @@ import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
|
45
48
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
46
49
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
47
50
|
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
48
|
-
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
49
|
-
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
50
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
51
|
-
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
52
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
53
51
|
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
54
52
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
55
53
|
import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
|
|
56
54
|
import "../shared-utils/isNil.js";
|
|
55
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
56
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
57
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
58
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
57
59
|
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
58
60
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
59
61
|
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
60
62
|
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
64
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
66
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
67
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
68
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
69
|
+
const g = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${g}`, _ = () => {
|
|
70
|
+
console.error(`${C} is disposed`);
|
|
71
|
+
}, G = () => {
|
|
72
|
+
console.warn(`${C} is disabled`);
|
|
73
|
+
}, N = () => {
|
|
74
|
+
console.error(`${C} is disabled`);
|
|
67
75
|
};
|
|
68
|
-
class
|
|
76
|
+
class je extends R {
|
|
69
77
|
constructor(e) {
|
|
70
78
|
super(e);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
79
|
+
p(this, "version", g);
|
|
80
|
+
p(this, "name", H);
|
|
81
|
+
p(this, "state", {
|
|
74
82
|
visible: !0,
|
|
75
83
|
enabled: !0,
|
|
76
84
|
disposed: !1
|
|
77
85
|
});
|
|
78
|
-
|
|
79
|
-
this
|
|
86
|
+
p(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
87
|
+
p(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
88
|
+
p(this, "css3DRender");
|
|
89
|
+
this.five = e, this.css3DRender = new L(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${H.toUpperCase()}_DEBUG__`]: this });
|
|
80
90
|
}
|
|
81
91
|
show(e) {
|
|
82
|
-
return
|
|
92
|
+
return u(this, null, function* () {
|
|
83
93
|
this.setState({ visible: !0 }, e);
|
|
84
94
|
});
|
|
85
95
|
}
|
|
86
96
|
hide(e) {
|
|
87
|
-
return
|
|
97
|
+
return u(this, null, function* () {
|
|
88
98
|
this.setState({ visible: !1 }, e);
|
|
89
99
|
});
|
|
90
100
|
}
|
|
@@ -97,70 +107,80 @@ class ue extends D {
|
|
|
97
107
|
dispose() {
|
|
98
108
|
this.setState({ disposed: !0 });
|
|
99
109
|
}
|
|
100
|
-
setState(e,
|
|
110
|
+
setState(e, r) {
|
|
101
111
|
if (this.state.disposed)
|
|
102
|
-
return
|
|
112
|
+
return _();
|
|
103
113
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
104
|
-
return
|
|
105
|
-
const
|
|
106
|
-
this.state =
|
|
114
|
+
return N();
|
|
115
|
+
const t = f({}, this.state);
|
|
116
|
+
this.state = f(f({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
|
|
107
117
|
}
|
|
108
118
|
getObject3DHelper(e) {
|
|
109
119
|
return this.objectHelperMap.get(e);
|
|
110
120
|
}
|
|
111
|
-
addObject3DHelper(e,
|
|
112
|
-
var
|
|
121
|
+
addObject3DHelper(e, r = {}) {
|
|
122
|
+
var S;
|
|
113
123
|
if (!e)
|
|
114
124
|
return console.error("Object3D is undefined");
|
|
115
125
|
if (this.objectHelperMap.has(e)) {
|
|
116
126
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
117
127
|
return;
|
|
118
128
|
}
|
|
119
|
-
const
|
|
120
|
-
this.objectHelperMap.set(e,
|
|
121
|
-
const l = (
|
|
122
|
-
if (
|
|
123
|
-
const
|
|
124
|
-
|
|
129
|
+
const t = new I();
|
|
130
|
+
this.objectHelperMap.set(e, t);
|
|
131
|
+
const l = (S = this.five.getElement()) == null ? void 0 : S.parentElement, c = this.five.camera, { moveHelper: d = !0, rotateHelper: n = !0, scaleHelper: h = !0 } = r;
|
|
132
|
+
if (d) {
|
|
133
|
+
const o = new j(e), a = new v(this.five, F, e, o);
|
|
134
|
+
t.addControllers({ moveController: a.helperController });
|
|
125
135
|
}
|
|
126
|
-
if (
|
|
127
|
-
let
|
|
128
|
-
l &&
|
|
129
|
-
const
|
|
130
|
-
|
|
136
|
+
if (n) {
|
|
137
|
+
let o;
|
|
138
|
+
l && c && (o = { container: l });
|
|
139
|
+
const a = new P(e, o), m = new v(this.five, k, e, a);
|
|
140
|
+
t.addControllers({ rotateController: m.helperController });
|
|
131
141
|
}
|
|
132
|
-
if (
|
|
133
|
-
const
|
|
134
|
-
|
|
142
|
+
if (h && l) {
|
|
143
|
+
const o = new y(e, l, c, this.five.scene), a = new v(this.five, B, e, o);
|
|
144
|
+
t.addControllers({ scaleController: a.helperController });
|
|
135
145
|
}
|
|
136
|
-
e.isCSS3DObjectPlus &&
|
|
146
|
+
e.isCSS3DObjectPlus && $(this.five).then(() => {
|
|
147
|
+
var m, D;
|
|
148
|
+
const o = e, a = (m = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? m : W(this.five);
|
|
149
|
+
a && (this.css3DObjectParentMap.set(o, o.parent), o.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(a), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(o), this.css3DRender.render(this.five.camera));
|
|
150
|
+
});
|
|
137
151
|
}
|
|
138
152
|
removeObject3DHelper(e) {
|
|
139
|
-
const
|
|
140
|
-
|
|
153
|
+
const r = this.objectHelperMap.get(e);
|
|
154
|
+
if (!!r) {
|
|
155
|
+
if (e.isCSS3DObjectPlus) {
|
|
156
|
+
const t = e, l = this.css3DObjectParentMap.get(t);
|
|
157
|
+
l == null || l.add(t), this.css3DRender.render(this.five.camera);
|
|
158
|
+
}
|
|
159
|
+
this.objectHelperMap.delete(e), r.dispose();
|
|
160
|
+
}
|
|
141
161
|
}
|
|
142
|
-
handleEnable(e,
|
|
143
|
-
e ? (this.everyHelperDo((
|
|
162
|
+
handleEnable(e, r = !0) {
|
|
163
|
+
e ? (this.everyHelperDo((t) => t.enable()), this.hooks.emit("enable", { userAction: r })) : (this.everyHelperDo((t) => t.disable()), this.hooks.emit("disable", { userAction: r })), this.state.enabled = e;
|
|
144
164
|
}
|
|
145
|
-
handleVisible(e,
|
|
146
|
-
e ? (this.everyHelperDo((
|
|
165
|
+
handleVisible(e, r = !0) {
|
|
166
|
+
e ? (this.everyHelperDo((t) => t.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: r }))) : (this.everyHelperDo((t) => t.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: r }))), this.state.visible = e;
|
|
147
167
|
}
|
|
148
168
|
handleDispose() {
|
|
149
169
|
this.everyHelperDo((e) => e.dispose());
|
|
150
170
|
}
|
|
151
171
|
everyHelperDo(e) {
|
|
152
|
-
this.objectHelperMap.forEach((
|
|
153
|
-
|
|
172
|
+
this.objectHelperMap.forEach((r) => {
|
|
173
|
+
r && e(r);
|
|
154
174
|
});
|
|
155
175
|
}
|
|
156
|
-
actionIfStateIsEnabled(e,
|
|
176
|
+
actionIfStateIsEnabled(e, r) {
|
|
157
177
|
if (this.state.enabled)
|
|
158
178
|
return e();
|
|
159
|
-
|
|
179
|
+
r != null && r.warnLog && G();
|
|
160
180
|
}
|
|
161
181
|
}
|
|
162
182
|
export {
|
|
163
|
-
|
|
164
|
-
|
|
183
|
+
je as Object3DHelperController,
|
|
184
|
+
C as PLUGIN,
|
|
165
185
|
g as VERSION
|
|
166
186
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Object3DHelperController as o } from "./Controller.js";
|
|
2
|
-
import { Object3DHelperController as
|
|
2
|
+
import { Object3DHelperController as Q, PLUGIN as T, VERSION as W } from "./Controller.js";
|
|
3
3
|
import "../base/BasePlugin.js";
|
|
4
4
|
import "../shared-utils/Subscribe.js";
|
|
5
5
|
import "three";
|
|
@@ -8,17 +8,23 @@ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
|
8
8
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
9
9
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
10
10
|
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
11
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
11
13
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
15
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
16
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
17
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
18
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
12
23
|
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
13
24
|
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
14
25
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
15
26
|
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
16
27
|
import "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
17
|
-
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
18
|
-
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
19
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
20
|
-
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
21
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
22
28
|
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
23
29
|
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
24
30
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
@@ -32,11 +38,13 @@ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
|
32
38
|
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
33
39
|
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
34
40
|
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
35
|
-
|
|
41
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
42
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
43
|
+
const J = (r) => new o(r);
|
|
36
44
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
Q as Object3DHelperController,
|
|
46
|
+
J as Object3DHelperPlugin,
|
|
47
|
+
T as PLUGIN,
|
|
48
|
+
W as VERSION,
|
|
49
|
+
J as default
|
|
42
50
|
};
|
|
@@ -10,21 +10,21 @@ var u = (h, n, e) => n in h ? D(h, n, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
return h;
|
|
11
11
|
};
|
|
12
12
|
var i = (h, n, e) => (u(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
13
|
-
var d = (h, n, e) => new Promise((t,
|
|
14
|
-
var
|
|
13
|
+
var d = (h, n, e) => new Promise((t, o) => {
|
|
14
|
+
var s = (m) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
p(e.next(m));
|
|
17
|
+
} catch (c) {
|
|
18
|
+
o(c);
|
|
19
19
|
}
|
|
20
20
|
}, r = (m) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
p(e.throw(m));
|
|
23
|
+
} catch (c) {
|
|
24
|
+
o(c);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, p = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(s, r);
|
|
27
|
+
p((e = e.apply(h, n)).next());
|
|
28
28
|
});
|
|
29
29
|
import * as a from "three";
|
|
30
30
|
import { Five as C } from "@realsee/five";
|
|
@@ -38,15 +38,23 @@ import "../shared-utils/Subscribe.js";
|
|
|
38
38
|
import "./Assets/roomInfoIcon.js";
|
|
39
39
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
40
40
|
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
41
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
41
42
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
42
|
-
import "../CSS3DRenderPlugin/utils/
|
|
43
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
44
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
45
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
43
46
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
44
|
-
import "../CSS3DRenderPlugin/utils/
|
|
47
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
45
48
|
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
49
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
50
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
51
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
52
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
53
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
46
54
|
import "@tweenjs/tween.js";
|
|
47
55
|
import "../shared-utils/animationFrame/index.js";
|
|
48
56
|
const v = { userAction: !0 };
|
|
49
|
-
class
|
|
57
|
+
class se extends A {
|
|
50
58
|
constructor(e, t) {
|
|
51
59
|
super(e);
|
|
52
60
|
i(this, "state", {
|
|
@@ -65,8 +73,8 @@ class Z extends A {
|
|
|
65
73
|
i(this, "compassMesh");
|
|
66
74
|
i(this, "entryDoorMesh");
|
|
67
75
|
i(this, "dispose", () => {
|
|
68
|
-
var e, t,
|
|
69
|
-
this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (
|
|
76
|
+
var e, t, o, s;
|
|
77
|
+
this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (s = (o = this.entryDoorMesh) == null ? void 0 : o.material.map) == null || s.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
|
|
70
78
|
});
|
|
71
79
|
i(this, "_addEventListener", () => {
|
|
72
80
|
this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive), this.five.on("modeChange", this.onFiveModeChange), this.five.on("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
|
|
@@ -92,13 +100,13 @@ class Z extends A {
|
|
|
92
100
|
this.entryDoorMesh && (this.group.remove(this.entryDoorMesh), (e = this.entryDoorMesh.material.map) == null || e.dispose(), this.entryDoorMesh = null), this.roomInfoInstance && (this.roomInfoInstance.dispose(), this.roomInfoInstance = null), this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.dispose(), this.roomInfoWrapperInstance = null);
|
|
93
101
|
});
|
|
94
102
|
i(this, "onFivePanoWillArrive", (e) => {
|
|
95
|
-
var t,
|
|
96
|
-
e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (
|
|
103
|
+
var t, o;
|
|
104
|
+
e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }));
|
|
97
105
|
});
|
|
98
106
|
i(this, "onFivePanoArrived", (e) => {
|
|
99
|
-
var
|
|
100
|
-
const t = (r = (
|
|
101
|
-
if (this.compassMesh && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((
|
|
107
|
+
var o, s, r, p, m, c, I;
|
|
108
|
+
const t = (r = (s = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : s[e]) == null ? void 0 : r.standingPosition;
|
|
109
|
+
if (this.compassMesh && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((p = this.compassMeshTween) == null || p.dispose(), this.compassMeshTween = W(1e3).onUpdate(({ progress: y }) => {
|
|
102
110
|
var f;
|
|
103
111
|
(f = this.compassMesh) == null || f.material.setValues({ opacity: y }), this.five.needsRender = !0;
|
|
104
112
|
}).play())), this.entryDoorMesh) {
|
|
@@ -107,7 +115,7 @@ class Z extends A {
|
|
|
107
115
|
this.data.entrance.position.y,
|
|
108
116
|
this.data.entrance.position.z
|
|
109
117
|
).clone().setY(t.y).sub(t).normalize(), b = t.clone().add(f.clone().multiplyScalar(0.7)).setY(t.y + 0.01);
|
|
110
|
-
this.entryDoorMesh.rotation.z = new a.Vector3(0, 0, -1).angleTo(f), this.entryDoorMesh.position.copy(b), ((m = this.data) == null ? void 0 : m.room_observers[e].room.type) === 1 ? (
|
|
118
|
+
this.entryDoorMesh.rotation.z = new a.Vector3(0, 0, -1).angleTo(f), this.entryDoorMesh.position.copy(b), ((m = this.data) == null ? void 0 : m.room_observers[e].room.type) === 1 ? (c = this.entryDoorMesh) == null || c.material.setValues({ opacity: 1 }) : (I = this.entryDoorMesh) == null || I.material.setValues({ opacity: 0 });
|
|
111
119
|
}
|
|
112
120
|
this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(
|
|
113
121
|
t.clone().setY(t.y + 0.01)
|
|
@@ -117,10 +125,10 @@ class Z extends A {
|
|
|
117
125
|
longitude: e,
|
|
118
126
|
latitude: t
|
|
119
127
|
}) => {
|
|
120
|
-
var
|
|
121
|
-
!this.roomInfoWrapperInstance || (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (
|
|
128
|
+
var o, s;
|
|
129
|
+
!this.roomInfoWrapperInstance || (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (s = this.roomInfoInstance) == null || s.hide());
|
|
122
130
|
});
|
|
123
|
-
i(this, "onFiveModeChange", (e, t,
|
|
131
|
+
i(this, "onFiveModeChange", (e, t, o, s, r) => {
|
|
124
132
|
e !== t && this.setState(
|
|
125
133
|
{
|
|
126
134
|
visible: e === C.Mode.Panorama
|
|
@@ -169,22 +177,22 @@ class Z extends A {
|
|
|
169
177
|
), Promise.resolve();
|
|
170
178
|
}
|
|
171
179
|
setState(e, t = { userAction: !0 }) {
|
|
172
|
-
var
|
|
173
|
-
const
|
|
180
|
+
var s, r;
|
|
181
|
+
const o = JSON.parse(JSON.stringify(this.state));
|
|
174
182
|
this.state = {
|
|
175
|
-
visible: (
|
|
176
|
-
enabled: (r = e.enabled) != null ? r :
|
|
177
|
-
config: l(l({},
|
|
183
|
+
visible: (s = e.visible) != null ? s : o.visible,
|
|
184
|
+
enabled: (r = e.enabled) != null ? r : o.enabled,
|
|
185
|
+
config: l(l({}, o.config), e.config || {})
|
|
178
186
|
}, this.hooks.emit("stateChange", {
|
|
179
187
|
state: this.state,
|
|
180
|
-
prevState:
|
|
188
|
+
prevState: o,
|
|
181
189
|
userAction: t.userAction
|
|
182
190
|
}), e.enabled === !0 && (this._enable(), this.hooks.emit("enable", t)), e.enabled === !1 && (this._disable(), this.hooks.emit("disable", t)), e.visible === !1 && (this._toggleVisible(), this.hooks.emit("hide", t)), e.visible === !0 && (this._toggleVisible(), this.hooks.emit("show", t)), e.config && this.init();
|
|
183
191
|
}
|
|
184
|
-
load(e, t,
|
|
192
|
+
load(e, t, o = !0) {
|
|
185
193
|
return d(this, null, function* () {
|
|
186
|
-
const
|
|
187
|
-
JSON.stringify(this.data) !== JSON.stringify(
|
|
194
|
+
const s = yield this.formatData(e);
|
|
195
|
+
JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = l({}, s), this.init(), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
|
|
188
196
|
});
|
|
189
197
|
}
|
|
190
198
|
formatData(e) {
|
|
@@ -192,32 +200,32 @@ class Z extends A {
|
|
|
192
200
|
}
|
|
193
201
|
init() {
|
|
194
202
|
return d(this, null, function* () {
|
|
195
|
-
var
|
|
196
|
-
const e = (
|
|
203
|
+
var o, s, r, p;
|
|
204
|
+
const e = (s = (o = this.data) == null ? void 0 : o.north_rad) != null ? s : null;
|
|
197
205
|
this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh));
|
|
198
|
-
const t = (
|
|
206
|
+
const t = (p = (r = this.data) == null ? void 0 : r.entrance) != null ? p : null;
|
|
199
207
|
this._clearEntryDoorIfNeed(), t !== null && (this.entryDoorMesh = yield this.loadEntryDoorMesh(), this.roomInfoWrapperInstance = this.loadRoomInfo(), this.roomInfoInstance = _(), this.entryDoorMesh.rotateX(-Math.PI / 2), this.roomInfoWrapperInstance && this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container), this.group.add(this.entryDoorMesh)), this.onFivePanoArrived(this.five.panoIndex || 0), this.five.needsRender = !0;
|
|
200
208
|
});
|
|
201
209
|
}
|
|
202
210
|
loadCompassMesh() {
|
|
203
211
|
return d(this, null, function* () {
|
|
204
|
-
const e = this.state.config.compassImageUrl, t = yield M(e),
|
|
212
|
+
const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32), s = new a.MeshBasicMaterial({
|
|
205
213
|
map: t,
|
|
206
214
|
transparent: !0,
|
|
207
215
|
opacity: 0,
|
|
208
216
|
depthTest: !1
|
|
209
|
-
}), r = new a.Mesh(
|
|
217
|
+
}), r = new a.Mesh(o, s);
|
|
210
218
|
return r.name = "pano-compass-mesh", r;
|
|
211
219
|
});
|
|
212
220
|
}
|
|
213
221
|
loadEntryDoorMesh() {
|
|
214
222
|
return d(this, null, function* () {
|
|
215
|
-
const e = this.state.config.entryDoorImageUrl, t = yield M(e),
|
|
223
|
+
const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16), s = new a.MeshBasicMaterial({
|
|
216
224
|
map: t,
|
|
217
225
|
transparent: !0,
|
|
218
226
|
opacity: 0.8,
|
|
219
227
|
depthTest: !1
|
|
220
|
-
}), r = new a.Mesh(
|
|
228
|
+
}), r = new a.Mesh(o, s);
|
|
221
229
|
return r.name = "pano-compass-entry-door", r;
|
|
222
230
|
});
|
|
223
231
|
}
|
|
@@ -232,5 +240,5 @@ class Z extends A {
|
|
|
232
240
|
}
|
|
233
241
|
}
|
|
234
242
|
export {
|
|
235
|
-
|
|
243
|
+
se as PanoCompassController
|
|
236
244
|
};
|
|
@@ -10,16 +10,24 @@ import "../shared-utils/three/loadTexture.js";
|
|
|
10
10
|
import "../CSS3DRenderPlugin/index.js";
|
|
11
11
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
12
12
|
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
13
14
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
14
|
-
import "../CSS3DRenderPlugin/utils/
|
|
15
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
16
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
17
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
15
18
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
16
|
-
import "../CSS3DRenderPlugin/utils/
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
17
20
|
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
23
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
24
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
25
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
18
26
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
19
27
|
import "@tweenjs/tween.js";
|
|
20
28
|
import "../shared-utils/animationFrame/index.js";
|
|
21
|
-
const
|
|
29
|
+
const E = (o, r) => new t(o, r);
|
|
22
30
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
E as PanoCompassPlugin,
|
|
32
|
+
E as default
|
|
25
33
|
};
|