@realsee/dnalogel 2.16.2-alpha.0 → 2.17.0-aplha.1
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/PanoTagPlugin/Archive/deprecated.d.ts +22 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +6 -7
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +6 -1
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +25 -25
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +15 -25
- package/dist/index.cjs.js +42 -42
- package/dist/index.js +1899 -1855
- package/dist/index.umd.js +42 -42
- package/dist/shared-utils/five/FiveDomEvents.d.ts +6 -0
- package/dist/shared-utils/five/getFloorIndex.d.ts +10 -0
- package/dist/shared-utils/three/FragmentTransparencyMaterial.d.ts +17 -0
- package/dist/shared-utils/three/loadVideoTexture.d.ts +6 -1
- package/dist/typings/utils.type.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +81 -369
- 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 +19 -19
- 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/PaintBrushTypeEnum.html +8 -8
- 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 +6 -5
- 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/PanoVideoPlugin.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 +6 -5
- package/docs/index.html +5 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +19 -19
- 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/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.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 +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- 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 +6 -5
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- 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 +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
- 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/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.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 +6 -5
- package/docs/interfaces/Rooms.html +6 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +19 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +214 -13
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +6 -4
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/AudioAppearance.html +6 -5
- package/docs/types/AudioTagTypeConfigKey.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/ClassFunctionParameters.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +7 -6
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/ElementRenderer.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +6 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelElement.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PanoVideoPluginParameterType.html +6 -5
- package/docs/types/PanoVideoPluginReturnType.html +6 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +275 -0
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/PlaneTagElement.html +6 -5
- package/docs/types/Point2DElement.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DElement.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagElement.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +7 -6
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagGLTFObject.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagIconSize.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +15 -0
- package/libs/PanoTagPlugin/Components/Common/Media.js +14 -10
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +173 -171
- package/libs/PanoTagPlugin/controller/TagRender.js +51 -44
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +21 -16
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/index.js +45 -41
- package/libs/PanoTagPlugin/index.js +12 -10
- package/libs/PanoTagPlugin/tag.config.js +7 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +1 -1
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +6 -7
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +6 -1
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +25 -25
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +15 -25
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +130 -158
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +104 -102
- package/libs/shared-utils/five/FiveDomEvents.d.ts +6 -0
- package/libs/shared-utils/five/FiveDomEvents.js +48 -38
- package/libs/shared-utils/five/getFloorIndex.d.ts +10 -0
- package/libs/shared-utils/five/getFloorIndex.js +16 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/FragmentTransparencyMaterial.d.ts +17 -0
- package/libs/shared-utils/three/FragmentTransparencyMaterial.js +36 -0
- package/libs/shared-utils/three/loadVideoTexture.d.ts +6 -1
- package/libs/shared-utils/three/loadVideoTexture.js +8 -10
- package/libs/typings/utils.type.d.ts +2 -0
- package/libs/typings/utils.type.js +1 -0
- package/package.json +2 -2
- package/libs/PanoTagPlugin/Archive/index.d.ts +0 -1
- package/libs/PanoTagPlugin/Archive/index.js +0 -4
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var R = Object.prototype.hasOwnProperty,
|
|
5
|
-
var y = (
|
|
6
|
-
for (var e in
|
|
7
|
-
R.call(
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var T = (
|
|
14
|
-
import * as
|
|
15
|
-
import { isMediaModelTag as
|
|
1
|
+
var M = Object.defineProperty, B = Object.defineProperties;
|
|
2
|
+
var U = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var P = Object.getOwnPropertySymbols;
|
|
4
|
+
var R = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var y = (c, l, e) => l in c ? M(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e, x = (c, l) => {
|
|
6
|
+
for (var e in l || (l = {}))
|
|
7
|
+
R.call(l, e) && y(c, e, l[e]);
|
|
8
|
+
if (P)
|
|
9
|
+
for (var e of P(l))
|
|
10
|
+
C.call(l, e) && y(c, e, l[e]);
|
|
11
|
+
return c;
|
|
12
|
+
}, I = (c, l) => B(c, U(l));
|
|
13
|
+
var T = (c, l, e) => (y(c, typeof l != "symbol" ? l + "" : l, e), e);
|
|
14
|
+
import * as D from "three";
|
|
15
|
+
import { isMediaModelTag as g, is3DTag as j } from "../utils/tag/tagCheck.js";
|
|
16
16
|
import { tagPosition as V } from "../utils/tagPosition.js";
|
|
17
|
-
import { checkRange as
|
|
17
|
+
import { checkRange as h } from "../utils/checkRange.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
20
20
|
import "@tweenjs/tween.js";
|
|
@@ -23,6 +23,7 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
23
23
|
import { notNil as k } from "../../shared-utils/isNil.js";
|
|
24
24
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
25
25
|
import { TagUtil as S } from "./TagUtil.js";
|
|
26
|
+
import { getFloorIndex as $ } from "../../shared-utils/five/getFloorIndex.js";
|
|
26
27
|
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
27
28
|
import "../../shared-utils/three/centerPoint.js";
|
|
28
29
|
import "@realsee/five/gltf-loader";
|
|
@@ -62,167 +63,160 @@ import "../../shared-utils/math/pointIsRectangle.js";
|
|
|
62
63
|
import "../../shared-utils/three/loadVideoTexture.js";
|
|
63
64
|
import "../Assets/Icon.js";
|
|
64
65
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
66
|
+
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
65
67
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
66
|
-
class
|
|
68
|
+
class Fe extends S {
|
|
67
69
|
constructor(e) {
|
|
68
70
|
super(e);
|
|
69
|
-
T(this, "raycaster", new
|
|
71
|
+
T(this, "raycaster", new D.Raycaster());
|
|
70
72
|
}
|
|
71
|
-
getVisibleByPanoIndex(e,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
if (h(e))
|
|
73
|
+
getVisibleByPanoIndex(e, t) {
|
|
74
|
+
const s = this.getCache({ panoIndex: t, id: e.id }), n = t != null ? t : this.five.getCurrentState().panoIndex;
|
|
75
|
+
if (g(e))
|
|
75
76
|
return !0;
|
|
76
|
-
if (
|
|
77
|
-
return
|
|
77
|
+
if (s.visible !== void 0)
|
|
78
|
+
return s.visible;
|
|
78
79
|
{
|
|
79
|
-
const
|
|
80
|
-
var
|
|
81
|
-
const
|
|
82
|
-
if (typeof
|
|
83
|
-
return { value:
|
|
84
|
-
if (
|
|
80
|
+
const i = (() => {
|
|
81
|
+
var d, u, v;
|
|
82
|
+
const o = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, f = this.getDistance(e);
|
|
83
|
+
if (typeof o == "function")
|
|
84
|
+
return { value: o(this.five, { tag: e, distance: f }), reason: "config function result" };
|
|
85
|
+
if (o.keep === "hidden")
|
|
85
86
|
return { value: !1, reason: "config.keep is hidden" };
|
|
86
|
-
if (
|
|
87
|
+
if (o.keep === "visible")
|
|
87
88
|
return { value: !0, reason: "config.keep is visible" };
|
|
88
|
-
if (
|
|
89
|
-
if (Array.isArray(
|
|
89
|
+
if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && n !== void 0) {
|
|
90
|
+
if (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(n))
|
|
90
91
|
return {
|
|
91
92
|
value: !1,
|
|
92
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${
|
|
93
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${n}, visiblePanoIndex: ${o.visiblePanoIndex}`
|
|
93
94
|
};
|
|
94
|
-
if (
|
|
95
|
+
if (o.visiblePanoIndex === "current" && n !== ((u = e.fiveState) == null ? void 0 : u.panoIndex))
|
|
95
96
|
return {
|
|
96
97
|
value: !1,
|
|
97
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${
|
|
98
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${n}, tag.panoIndex: ${(v = e.fiveState) == null ? void 0 : v.panoIndex}`
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
|
-
if (
|
|
101
|
+
if (o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && h(f, o.visibleDistance) === !1)
|
|
101
102
|
return {
|
|
102
103
|
value: !1,
|
|
103
|
-
reason: `distance is not in visibleDistance. distance: ${
|
|
104
|
+
reason: `distance is not in visibleDistance. distance: ${f}, visibleDistance: ${o.visibleDistance}`
|
|
104
105
|
};
|
|
105
|
-
if (
|
|
106
|
-
if (
|
|
106
|
+
if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
|
|
107
|
+
if (n === void 0)
|
|
107
108
|
return {
|
|
108
109
|
value: !1,
|
|
109
|
-
reason: `intersectRaycaster check failed: fivePanoIndex is ${
|
|
110
|
+
reason: `intersectRaycaster check failed: fivePanoIndex is ${n}`
|
|
110
111
|
};
|
|
111
|
-
const
|
|
112
|
-
if (!
|
|
113
|
-
return { value: !1, reason: `intersectRaycaster check failed: raycaster is ${
|
|
114
|
-
const
|
|
115
|
-
if (
|
|
116
|
-
return
|
|
112
|
+
const r = this.getRaycasterFromPanoIndex(e, n);
|
|
113
|
+
if (!r)
|
|
114
|
+
return { value: !1, reason: `intersectRaycaster check failed: raycaster is ${r}` };
|
|
115
|
+
const a = this.getTagEnableByIntersect(e, r);
|
|
116
|
+
if (a.value === !1)
|
|
117
|
+
return a;
|
|
117
118
|
}
|
|
118
|
-
if (
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
121
|
-
return { value: !1, reason: `angle is not in angleRange. angle: ${
|
|
119
|
+
if (o.angleRange && j(e)) {
|
|
120
|
+
const r = this.getAngle(e);
|
|
121
|
+
if (h(r, o.angleRange) === !1)
|
|
122
|
+
return { value: !1, reason: `angle is not in angleRange. angle: ${r}, angleRange: ${o.angleRange}` };
|
|
122
123
|
}
|
|
123
124
|
return {
|
|
124
125
|
value: !0,
|
|
125
126
|
reason: "all check passed"
|
|
126
127
|
};
|
|
127
128
|
})();
|
|
128
|
-
return
|
|
129
|
+
return s.visible = i.value, s.__debug_visible_reason__ = i, s.visible;
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
|
-
getVisibleByFiveMode(e,
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
getVisibleByFiveMode(e, t) {
|
|
133
|
+
const s = t != null ? t : this.five.getCurrentState().mode, n = this.getTagConfig(e).visibleConfig;
|
|
134
|
+
if (typeof n == "object") {
|
|
135
|
+
const i = n == null ? void 0 : n.visibleFiveMode;
|
|
136
|
+
return i ? i.includes(s) ? n.followModelVisibility !== !1 && (s === "Floorplan" || s === "Mapview") ? this.getVisibleByFloorIndex(e) : !0 : !1 : s === "Panorama";
|
|
137
|
+
}
|
|
134
138
|
if (typeof n == "function")
|
|
135
|
-
return
|
|
136
|
-
const s = n == null ? void 0 : n.visibleFiveMode;
|
|
137
|
-
return s ? s.includes(i) : i === "Panorama";
|
|
138
|
-
}
|
|
139
|
-
getVisibleByFloorIndex(e) {
|
|
140
|
-
var l;
|
|
141
|
-
const i = e.fiveState;
|
|
142
|
-
if (!i)
|
|
143
|
-
return !0;
|
|
144
|
-
const n = i.panoIndex, s = (l = this.five.work.observers[n]) == null ? void 0 : l.floorIndex, t = this.five.model.shownFloor;
|
|
145
|
-
return t === null || t === s;
|
|
139
|
+
return t === "Panorama";
|
|
146
140
|
}
|
|
147
141
|
getCurrentVisibleState(e) {
|
|
148
|
-
var
|
|
149
|
-
return (
|
|
142
|
+
var t;
|
|
143
|
+
return (t = this.state.visible && e.state.visible) != null ? t : !0;
|
|
150
144
|
}
|
|
151
145
|
getVisible(e) {
|
|
152
|
-
const
|
|
153
|
-
return
|
|
146
|
+
const t = this.five.getCurrentState(), s = this.getVisibleByFiveMode(e), n = t.mode === "Panorama" ? this.getVisibleByPanoIndex(e, t.panoIndex) : !0;
|
|
147
|
+
return s && n;
|
|
154
148
|
}
|
|
155
149
|
getModelMedialVisibleByPanoIndex(e) {
|
|
156
150
|
if (!this.getCurrentVisibleState(e))
|
|
157
151
|
return !1;
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
160
|
-
return
|
|
161
|
-
const
|
|
162
|
-
if (!
|
|
152
|
+
const t = this.five.getCurrentState().panoIndex, s = this.getCache({ panoIndex: t, id: e.id });
|
|
153
|
+
if (s.modelMedialVisible !== void 0)
|
|
154
|
+
return s.modelMedialVisible;
|
|
155
|
+
const n = this.getRaycasterFromPanoIndex(e, t);
|
|
156
|
+
if (!n)
|
|
163
157
|
return !1;
|
|
164
|
-
const
|
|
165
|
-
return
|
|
158
|
+
const i = this.getTagEnableByIntersect(e, n);
|
|
159
|
+
return s.modelMedialVisible = i.value, s.__debug_visible_reason__ = i, i.value !== !1;
|
|
166
160
|
}
|
|
167
|
-
getUnfoldedByPanoIndex(e,
|
|
161
|
+
getUnfoldedByPanoIndex(e, t) {
|
|
168
162
|
if (!this.getVisibleByPanoIndex(e))
|
|
169
163
|
return;
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
172
|
-
return
|
|
164
|
+
const n = this.getCache({ panoIndex: t, id: e.id });
|
|
165
|
+
if (n.unfolded !== void 0)
|
|
166
|
+
return n.unfolded;
|
|
173
167
|
{
|
|
174
|
-
const
|
|
175
|
-
if (!
|
|
168
|
+
const i = this.getTagConfig(e).unfoldedConfig;
|
|
169
|
+
if (!i)
|
|
176
170
|
return;
|
|
177
|
-
const
|
|
178
|
-
const
|
|
179
|
-
if (typeof
|
|
180
|
-
return
|
|
181
|
-
if (
|
|
171
|
+
const o = (() => {
|
|
172
|
+
const d = this.getDistance(e);
|
|
173
|
+
if (typeof i == "function")
|
|
174
|
+
return i(this.five, { tag: e, distance: d });
|
|
175
|
+
if (i.keep === "folded")
|
|
182
176
|
return !1;
|
|
183
|
-
if (
|
|
177
|
+
if (i.keep === "unfolded")
|
|
184
178
|
return !0;
|
|
185
|
-
if (
|
|
179
|
+
if (i.unfoldDistance && h(d, i.unfoldDistance) === !1)
|
|
186
180
|
return !1;
|
|
187
181
|
})();
|
|
188
|
-
|
|
189
|
-
const
|
|
190
|
-
return
|
|
182
|
+
n.unfolded = o;
|
|
183
|
+
const f = this.getUnfoldedByCamera(e);
|
|
184
|
+
return f !== void 0 ? f : n.unfolded;
|
|
191
185
|
}
|
|
192
186
|
}
|
|
193
187
|
getUnfoldedByCamera(e) {
|
|
194
188
|
return this.getVisibleByPanoIndex(e) ? (() => {
|
|
195
|
-
var
|
|
196
|
-
const
|
|
197
|
-
if (!!
|
|
198
|
-
if (typeof
|
|
199
|
-
return
|
|
200
|
-
if (
|
|
189
|
+
var o;
|
|
190
|
+
const n = this.getDistance(e), i = this.getTagConfig(e).unfoldedConfig;
|
|
191
|
+
if (!!i) {
|
|
192
|
+
if (typeof i == "function")
|
|
193
|
+
return i(this.five, { tag: e, distance: n });
|
|
194
|
+
if (i.keep === "folded")
|
|
201
195
|
return !1;
|
|
202
|
-
if (
|
|
196
|
+
if (i.keep === "unfolded")
|
|
203
197
|
return !0;
|
|
204
|
-
if (
|
|
198
|
+
if (i.autoUnfold === void 0 || i.autoUnfold === !1 || i.autoUnfold.enable === !1 || !i.autoUnfold.strategy)
|
|
205
199
|
return;
|
|
206
|
-
if (
|
|
207
|
-
const
|
|
208
|
-
if (
|
|
200
|
+
if (i.autoUnfold.strategy === "ScreenPostion") {
|
|
201
|
+
const f = this.getTagProject(e);
|
|
202
|
+
if (f && h(f.x, i.autoUnfold.autoUnfoldProjectX) === !1)
|
|
209
203
|
return !1;
|
|
210
204
|
}
|
|
211
|
-
if (
|
|
212
|
-
const
|
|
213
|
-
const
|
|
214
|
-
if (!
|
|
205
|
+
if (i.autoUnfold.strategy === "MinimumDistance") {
|
|
206
|
+
const u = this.filterPointTag.filter((r) => this.getVisibleByPanoIndex(r)).filter((r) => {
|
|
207
|
+
const a = this.getTagProject(r);
|
|
208
|
+
if (!a)
|
|
215
209
|
return !1;
|
|
216
|
-
const { x:
|
|
217
|
-
return !(Math.abs(b) > 1 || Math.abs(
|
|
218
|
-
}).map((
|
|
219
|
-
var
|
|
220
|
-
return !(typeof
|
|
221
|
-
}).map((
|
|
222
|
-
var
|
|
223
|
-
return !(
|
|
224
|
-
}).sort((
|
|
225
|
-
if (
|
|
210
|
+
const { x: m, y: p, z: b } = a;
|
|
211
|
+
return !(Math.abs(b) > 1 || Math.abs(m) > 1 || Math.abs(p) > 1);
|
|
212
|
+
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: a }) => {
|
|
213
|
+
var m, p;
|
|
214
|
+
return !(typeof a != "object" || a.keep || a.autoUnfold === !1 || ((m = a.autoUnfold) == null ? void 0 : m.enable) === !1 || ((p = a.autoUnfold) == null ? void 0 : p.strategy) !== "MinimumDistance");
|
|
215
|
+
}).map((r) => I(x({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: a }) => {
|
|
216
|
+
var m, p;
|
|
217
|
+
return !(r === void 0 || typeof a != "object" || a.autoUnfold === !1 || ((m = a.autoUnfold) == null ? void 0 : m.enable) === !1 || ((p = a.autoUnfold) == null ? void 0 : p.strategy) !== "MinimumDistance" || a.autoUnfold.distance && h(r, a.autoUnfold.distance) === !1);
|
|
218
|
+
}).sort((r, a) => r.distance - a.distance).findIndex((r) => r.id === e.id);
|
|
219
|
+
if (u === -1 || u <= ((o = i.autoUnfold.maxNumber) != null ? o : 1) - 1 === !1)
|
|
226
220
|
return !1;
|
|
227
221
|
}
|
|
228
222
|
return !0;
|
|
@@ -230,98 +224,106 @@ class ke extends S {
|
|
|
230
224
|
})() : void 0;
|
|
231
225
|
}
|
|
232
226
|
sort(e) {
|
|
233
|
-
return e.sort((
|
|
234
|
-
const
|
|
235
|
-
return
|
|
227
|
+
return e.sort((t, s) => {
|
|
228
|
+
const n = this.getDistance(t), i = this.getDistance(s);
|
|
229
|
+
return n === void 0 || i === void 0 ? 0 : i - n;
|
|
236
230
|
});
|
|
237
231
|
}
|
|
238
232
|
setPointTagPosition() {
|
|
239
233
|
const e = this.filterPointTag;
|
|
240
|
-
e.length !== 0 && e.forEach((
|
|
241
|
-
var
|
|
242
|
-
if (!((
|
|
243
|
-
|
|
234
|
+
e.length !== 0 && e.forEach((t) => {
|
|
235
|
+
var n;
|
|
236
|
+
if (!((n = t.state) != null && n.visible)) {
|
|
237
|
+
t.pointTagStyle = null;
|
|
244
238
|
return;
|
|
245
239
|
}
|
|
246
|
-
const
|
|
247
|
-
if (!
|
|
248
|
-
|
|
240
|
+
const s = this.getTagProject(t);
|
|
241
|
+
if (!s) {
|
|
242
|
+
t.pointTagStyle = null;
|
|
249
243
|
return;
|
|
250
244
|
}
|
|
251
|
-
|
|
245
|
+
t.pointTagStyle = { leftPercent: (s.x + 1) / 2 * 100, topPercent: (-s.y + 1) / 2 * 100 };
|
|
252
246
|
});
|
|
253
247
|
}
|
|
254
248
|
setVisibleByPanoIndex() {
|
|
255
249
|
this.tags.forEach((e) => {
|
|
256
|
-
const
|
|
257
|
-
e.state && (e.state.visible =
|
|
250
|
+
const t = this.getVisibleByPanoIndex(e);
|
|
251
|
+
e.state && (e.state.visible = t);
|
|
258
252
|
});
|
|
259
253
|
}
|
|
260
254
|
setModelMedialVisible() {
|
|
261
255
|
const e = this.five.getCurrentState().mode;
|
|
262
|
-
this.tags.forEach((
|
|
263
|
-
var
|
|
264
|
-
if (!
|
|
256
|
+
this.tags.forEach((t) => {
|
|
257
|
+
var n;
|
|
258
|
+
if (!g(t))
|
|
265
259
|
return;
|
|
266
|
-
if (!((
|
|
267
|
-
|
|
260
|
+
if (!((n = t.model) != null && n.object)) {
|
|
261
|
+
t.mediaVisible = !1;
|
|
268
262
|
return;
|
|
269
263
|
}
|
|
270
|
-
const
|
|
271
|
-
|
|
264
|
+
const s = e === "Panorama" ? this.getModelMedialVisibleByPanoIndex(t) : !0;
|
|
265
|
+
t.mediaVisible = s;
|
|
272
266
|
});
|
|
273
267
|
}
|
|
274
268
|
setUnfoldedByPanoIndex() {
|
|
275
269
|
this.tags.forEach((e) => {
|
|
276
|
-
const
|
|
277
|
-
if (!!e.state && (
|
|
278
|
-
const
|
|
279
|
-
typeof
|
|
270
|
+
const t = this.getUnfoldedByPanoIndex(e);
|
|
271
|
+
if (!!e.state && (t !== void 0 && (e.state.unfolded = t), t && !e.state.visible)) {
|
|
272
|
+
const s = this.getTagConfig(e);
|
|
273
|
+
typeof s.unfoldedConfig == "object" && s.unfoldedConfig.autoUnfoldWhenHide !== !1 && (e.state.unfolded = !1);
|
|
280
274
|
}
|
|
281
275
|
});
|
|
282
276
|
}
|
|
283
277
|
getTagProject(e) {
|
|
284
278
|
if (!this.getVisibleByPanoIndex(e))
|
|
285
279
|
return;
|
|
286
|
-
const
|
|
287
|
-
if (!
|
|
280
|
+
const s = V(e.position);
|
|
281
|
+
if (!s)
|
|
288
282
|
return;
|
|
289
|
-
const { x:
|
|
290
|
-
if (!(
|
|
291
|
-
return { x:
|
|
283
|
+
const { x: n, y: i, z: o } = s.project(this.five.camera);
|
|
284
|
+
if (!(o > 1))
|
|
285
|
+
return { x: n, y: i, z: o };
|
|
292
286
|
}
|
|
293
|
-
getTagEnableByIntersect(e,
|
|
294
|
-
var
|
|
295
|
-
const
|
|
296
|
-
if (!
|
|
287
|
+
getTagEnableByIntersect(e, t) {
|
|
288
|
+
var u, v, r;
|
|
289
|
+
const s = (u = this.getTagConfig(e).visibleConfig) != null ? u : {}, n = this.getDistance(e), [i] = this.five.model.intersectRaycaster(t), o = (() => {
|
|
290
|
+
if (!g(e))
|
|
297
291
|
return;
|
|
298
|
-
const
|
|
292
|
+
const a = this.tags.filter(g).map((p) => {
|
|
299
293
|
var b;
|
|
300
|
-
return (b =
|
|
294
|
+
return (b = p.model) == null ? void 0 : b.object;
|
|
301
295
|
}).filter(k);
|
|
302
|
-
return
|
|
303
|
-
})(),
|
|
304
|
-
var
|
|
305
|
-
return typeof
|
|
306
|
-
})(),
|
|
307
|
-
return
|
|
296
|
+
return t.intersectObjects(a, !0)[0];
|
|
297
|
+
})(), f = (() => {
|
|
298
|
+
var a;
|
|
299
|
+
return typeof s == "object" && typeof s.intersectRaycaster == "object" && (a = s.intersectRaycaster.distanceAccuracy) != null ? a : 0.01;
|
|
300
|
+
})(), d = Math.min((v = i == null ? void 0 : i.distance) != null ? v : 1 / 0, (r = o == null ? void 0 : o.distance) != null ? r : 1 / 0);
|
|
301
|
+
return d + f < n ? {
|
|
308
302
|
value: !1,
|
|
309
|
-
reason: `intersectRaycaster check failed: distance is ${
|
|
310
|
-
customModelIntersection.point is ${
|
|
303
|
+
reason: `intersectRaycaster check failed: distance is ${n}, intersection.distance is ${i == null ? void 0 : i.distance}, intersection.point is ${i == null ? void 0 : i.point.toArray()},
|
|
304
|
+
customModelIntersection.point is ${o == null ? void 0 : o.point.toArray()}, minIntersectionDistance is ${d}`
|
|
311
305
|
} : { value: !0, reason: "" };
|
|
312
306
|
}
|
|
313
|
-
getRaycasterFromPanoIndex(e,
|
|
314
|
-
var
|
|
315
|
-
const
|
|
316
|
-
if (
|
|
317
|
-
throw new Error(`getVisible(): observerPosition is ${
|
|
318
|
-
const
|
|
319
|
-
if (!
|
|
307
|
+
getRaycasterFromPanoIndex(e, t) {
|
|
308
|
+
var o;
|
|
309
|
+
const s = (o = this.five.work.observers[t]) == null ? void 0 : o.position;
|
|
310
|
+
if (s === void 0)
|
|
311
|
+
throw new Error(`getVisible(): observerPosition is ${s}`);
|
|
312
|
+
const n = V(e.position);
|
|
313
|
+
if (!n)
|
|
320
314
|
return;
|
|
321
|
-
const
|
|
322
|
-
return this.raycaster.set(
|
|
315
|
+
const i = n.sub(s).normalize();
|
|
316
|
+
return this.raycaster.set(s, i), this.raycaster;
|
|
317
|
+
}
|
|
318
|
+
getVisibleByFloorIndex(e) {
|
|
319
|
+
var i, o, f, d, u, v;
|
|
320
|
+
let t = 0;
|
|
321
|
+
const s = (i = e.fiveState) == null ? void 0 : i.panoIndex;
|
|
322
|
+
s !== void 0 ? t = (o = this.five.work.observers[s]) == null ? void 0 : o.floorIndex : t = $(this.five.work.observers, (v = (d = (f = e.model) == null ? void 0 : f.object) == null ? void 0 : d.position) != null ? v : (u = e.mediaPlane) == null ? void 0 : u.position);
|
|
323
|
+
const n = this.five.model.shownFloor;
|
|
324
|
+
return n === null || n === t;
|
|
323
325
|
}
|
|
324
326
|
}
|
|
325
327
|
export {
|
|
326
|
-
|
|
328
|
+
Fe as TagComputer
|
|
327
329
|
};
|