@realsee/dnalogel 2.16.1 → 2.17.0-alpha.3
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 +7 -8
- 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 +1967 -1918
- 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 +141 -139
- package/libs/PanoTagPlugin/controller/TagRender.js +59 -52
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +24 -19
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/index.js +49 -42
- 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 +7 -8
- 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 +3 -3
- 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 +18 -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,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.17.0-alpha.3</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.17.0-alpha.3"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.17.0-alpha.3</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">如视看房插件合集 - v2.
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.17.0-alpha.3</a></li>
|
|
16
16
|
<li><a href="modelRoomLabelPluginServerParams.html">modelRoomLabelPluginServerParams</a></li></ul>
|
|
17
17
|
<h1>Variable modelRoomLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature">model<wbr/>Room<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<li class="tsd-parameter">
|
|
25
25
|
<h5>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
|
|
26
26
|
<ul>
|
|
27
|
-
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/
|
|
27
|
+
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/72fca50/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</a></li></ul></aside></div>
|
|
28
28
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
29
29
|
<div class="tsd-navigation settings">
|
|
30
30
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
42
42
|
<div class="tsd-accordion-details">
|
|
43
43
|
<ul>
|
|
44
|
-
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.17.0-<wbr/>alpha.3</a>
|
|
45
45
|
<ul>
|
|
46
46
|
<li class="tsd-kind-namespace"><a href="../modules/PanoVideoPluginType.html">Pano<wbr/>Video<wbr/>Plugin<wbr/>Type</a></li>
|
|
47
47
|
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
@@ -210,6 +210,7 @@
|
|
|
210
210
|
<li class="tsd-kind-type-alias"><a href="../types/PanoTagPluginParamsInterface.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Pano<wbr/>Tag<wbr/>Plugin<wbr/>Params<wbr/>Interface</a></li>
|
|
211
211
|
<li class="tsd-kind-type-alias"><a href="../types/PanoVideoPluginParameterType.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Pano<wbr/>Video<wbr/>Plugin<wbr/>Parameter<wbr/>Type</a></li>
|
|
212
212
|
<li class="tsd-kind-type-alias"><a href="../types/PanoVideoPluginReturnType.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Pano<wbr/>Video<wbr/>Plugin<wbr/>Return<wbr/>Type</a></li>
|
|
213
|
+
<li class="tsd-kind-type-alias"><a href="../types/PickTagContentTypeInContentTypeConfigKey.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Pick<wbr/>Tag<wbr/>Content<wbr/>Type<wbr/>In<wbr/>Content<wbr/>Type<wbr/>Config<wbr/>Key</a></li>
|
|
213
214
|
<li class="tsd-kind-type-alias"><a href="../types/PlaneTag.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Plane<wbr/>Tag</a></li>
|
|
214
215
|
<li class="tsd-kind-type-alias"><a href="../types/PlaneTagElement.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Plane<wbr/>Tag<wbr/>Element</a></li>
|
|
215
216
|
<li class="tsd-kind-type-alias"><a href="../types/Point2DElement.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Point2DElement</a></li>
|
|
@@ -5,3 +5,18 @@ export declare enum PointType {
|
|
|
5
5
|
}
|
|
6
6
|
/** @deprecated 改用 stickType */
|
|
7
7
|
export declare type TagPointType = keyof typeof PointType;
|
|
8
|
+
/** @deprecated */
|
|
9
|
+
export declare type DeprecatedTagProperty = {
|
|
10
|
+
/** @deprecated 2维/3维类型,已废弃,使用 stickType 代替 */
|
|
11
|
+
dimensionType?: '2D' | '3D';
|
|
12
|
+
/** @deprecated 一个点的标签/4个点的标签,已废弃,使用 stickType 代替 */
|
|
13
|
+
pointType?: 'PlaneTag' | 'PointTag';
|
|
14
|
+
};
|
|
15
|
+
/** @deprecated */
|
|
16
|
+
export declare type DeprecatedMediaPlaneProperty = {
|
|
17
|
+
/**
|
|
18
|
+
* @description stretch: 拉伸适配, proportional: 等比适配,默认值 'proportional'
|
|
19
|
+
* @deprecated replaced by objectFit
|
|
20
|
+
*/
|
|
21
|
+
adaptationMode?: 'stretch' | 'proportional';
|
|
22
|
+
};
|
|
@@ -265,24 +265,28 @@ function ye(t) {
|
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
function ke(t, i, l) {
|
|
268
|
-
let n, e, s, r, { tag: a } = i, { mediaData: o } = i, { inDelay: u = 0 } = i, { outDelay: I = 0 } = i, { duration: f = 0 } = i, { unfolded: _ = !0 } = i, { animation: b = !0 } = i, { mediaItemConfig: L } = i, { enableCarousel: k = !0 } = i, { autoplayConfig: C = {
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
let n, e, s, r, { tag: a } = i, { mediaData: o } = i, { inDelay: u = 0 } = i, { outDelay: I = 0 } = i, { duration: f = 0 } = i, { unfolded: _ = !0 } = i, { animation: b = !0 } = i, { mediaItemConfig: L } = i, { enableCarousel: k = !0 } = i, { autoplayConfig: C = {
|
|
269
|
+
autoplayVideo: !1,
|
|
270
|
+
autoplayCarousel: !0,
|
|
271
|
+
autoplayVideoInCarousel: !1
|
|
272
|
+
} } = i, g = [], v = 0, h, V = null;
|
|
273
|
+
const B = F("hooks"), O = F("mediaStore");
|
|
274
|
+
function T() {
|
|
271
275
|
const m = g[v], d = m == null ? void 0 : m.videoInstance;
|
|
272
276
|
!d || (d.paused ? (d.muted = !1, d.play()) : d.pause());
|
|
273
277
|
}
|
|
274
278
|
me(() => {
|
|
275
|
-
|
|
279
|
+
B.on("click", (m) => {
|
|
276
280
|
var d, z, A;
|
|
277
|
-
!((A = (z = (d = a.tag3DContentSvelte) == null ? void 0 : d.css3DInstance) == null ? void 0 : z.css3DObject) != null && A.opacityMesh) || m.tag.id === a.id &&
|
|
278
|
-
}),
|
|
281
|
+
!((A = (z = (d = a.tag3DContentSvelte) == null ? void 0 : d.css3DInstance) == null ? void 0 : z.css3DObject) != null && A.opacityMesh) || m.tag.id === a.id && T();
|
|
282
|
+
}), V = setInterval(
|
|
279
283
|
() => {
|
|
280
284
|
r && (h == null || h.goToNext());
|
|
281
285
|
},
|
|
282
286
|
3e3
|
|
283
287
|
);
|
|
284
288
|
}), se(() => {
|
|
285
|
-
clearInterval(
|
|
289
|
+
clearInterval(V), B.off("click", T);
|
|
286
290
|
});
|
|
287
291
|
function ee(m, d) {
|
|
288
292
|
t.$$.not_equal(g[d], m) && (g[d] = m, l(8, g));
|
|
@@ -293,7 +297,7 @@ function ke(t, i, l) {
|
|
|
293
297
|
});
|
|
294
298
|
}
|
|
295
299
|
const ie = (m) => {
|
|
296
|
-
n ||
|
|
300
|
+
n || O.set({ currentMediaElement: null }), l(11, v = m.detail);
|
|
297
301
|
};
|
|
298
302
|
function ne(m) {
|
|
299
303
|
t.$$.not_equal(g[0], m) && (g[0] = m, l(8, g));
|
|
@@ -301,7 +305,7 @@ function ke(t, i, l) {
|
|
|
301
305
|
return t.$$set = (m) => {
|
|
302
306
|
"tag" in m && l(0, a = m.tag), "mediaData" in m && l(1, o = m.mediaData), "inDelay" in m && l(2, u = m.inDelay), "outDelay" in m && l(3, I = m.outDelay), "duration" in m && l(4, f = m.duration), "unfolded" in m && l(5, _ = m.unfolded), "animation" in m && l(6, b = m.animation), "mediaItemConfig" in m && l(7, L = m.mediaItemConfig), "enableCarousel" in m && l(15, k = m.enableCarousel), "autoplayConfig" in m && l(16, C = m.autoplayConfig);
|
|
303
307
|
}, t.$$.update = () => {
|
|
304
|
-
t.$$.dirty & 256 && l(9, n = g.every((m) => m.paused)), t.$$.dirty & 32770 && l(13, e = k && (o == null ? void 0 : o.length) > 1), t.$$.dirty & 2 && l(10, s = o), t.$$.dirty & 67072 && (r = s.length > 1 && C.
|
|
308
|
+
t.$$.dirty & 256 && l(9, n = g.every((m) => m.paused)), t.$$.dirty & 32770 && l(13, e = k && (o == null ? void 0 : o.length) > 1), t.$$.dirty & 2 && l(10, s = o), t.$$.dirty & 67072 && (r = s.length > 1 && C.autoplayCarousel && n);
|
|
305
309
|
}, [
|
|
306
310
|
a,
|
|
307
311
|
o,
|
|
@@ -317,7 +321,7 @@ function ke(t, i, l) {
|
|
|
317
321
|
v,
|
|
318
322
|
h,
|
|
319
323
|
e,
|
|
320
|
-
|
|
324
|
+
O,
|
|
321
325
|
k,
|
|
322
326
|
C,
|
|
323
327
|
ee,
|
|
@@ -10,9 +10,7 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
10
10
|
* @description: 获取是否可见
|
|
11
11
|
*/
|
|
12
12
|
getVisibleByPanoIndex(tag: Tag<any, any>, panoIndex?: number): boolean;
|
|
13
|
-
getVisibleByFiveMode(tag:
|
|
14
|
-
/** 检测是否匹配当前楼层 */
|
|
15
|
-
getVisibleByFloorIndex(tag: TagElement<any, any>): boolean;
|
|
13
|
+
getVisibleByFiveMode(tag: TagElement<any, any>, mode?: Mode): boolean;
|
|
16
14
|
/**
|
|
17
15
|
* @description 获取标签当前状态
|
|
18
16
|
* @return (this.state.visible && tag.state.visible) ?? true
|
|
@@ -52,4 +50,6 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
52
50
|
};
|
|
53
51
|
/** 获取点位看向标签的射线 */
|
|
54
52
|
protected getRaycasterFromPanoIndex(tag: Tag, panoIndex: number): THREE.Raycaster;
|
|
53
|
+
/** 检测是否匹配当前楼层 */
|
|
54
|
+
private getVisibleByFloorIndex;
|
|
55
55
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var B = Object.defineProperty, U = Object.defineProperties;
|
|
2
2
|
var M = Object.getOwnPropertyDescriptors;
|
|
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
|
|
3
|
+
var P = Object.getOwnPropertySymbols;
|
|
4
|
+
var R = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var y = (c, l, e) => l in c ? B(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) => U(c, M(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,141 +63,134 @@ 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 _e 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
73
|
getVisibleByPanoIndex(e, i) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
if (h(e))
|
|
74
|
+
const s = this.getCache({ panoIndex: i, id: e.id }), n = i != null ? i : 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 t = (() => {
|
|
81
|
+
var d, u, p;
|
|
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: ${(p = e.fiveState) == null ? void 0 : p.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 = t.value, s.__debug_visible_reason__ = t, s.visible;
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
getVisibleByFiveMode(e, i) {
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
const s = i != null ? i : this.five.getCurrentState().mode, n = this.getTagConfig(e).visibleConfig;
|
|
134
|
+
if (typeof n == "object") {
|
|
135
|
+
const t = n == null ? void 0 : n.visibleFiveMode;
|
|
136
|
+
return t ? t != null && t.includes(s) ? n.followModelVisibility !== !1 && (s === "Floorplan" || s === "Mapview") ? this.getVisibleByFloorIndex(e) : !0 : !1 : s === "Panorama";
|
|
137
|
+
}
|
|
134
138
|
if (typeof n == "function")
|
|
135
139
|
return i === "Panorama";
|
|
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;
|
|
146
140
|
}
|
|
147
141
|
getCurrentVisibleState(e) {
|
|
148
142
|
var i;
|
|
149
143
|
return (i = this.state.visible && e.state.visible) != null ? i : !0;
|
|
150
144
|
}
|
|
151
145
|
getVisible(e) {
|
|
152
|
-
const i = this.five.getCurrentState(),
|
|
153
|
-
return
|
|
146
|
+
const i = this.five.getCurrentState(), s = this.getVisibleByFiveMode(e), n = i.mode === "Panorama" ? this.getVisibleByPanoIndex(e, i.panoIndex) : !0;
|
|
147
|
+
return s && n;
|
|
154
148
|
}
|
|
155
149
|
getModelMedialVisibleByPanoIndex(e) {
|
|
156
150
|
if (!this.getCurrentVisibleState(e))
|
|
157
151
|
return !1;
|
|
158
|
-
const i = this.five.getCurrentState().panoIndex,
|
|
159
|
-
if (
|
|
160
|
-
return
|
|
161
|
-
const
|
|
162
|
-
if (!
|
|
152
|
+
const i = this.five.getCurrentState().panoIndex, s = this.getCache({ panoIndex: i, id: e.id });
|
|
153
|
+
if (s.modelMedialVisible !== void 0)
|
|
154
|
+
return s.modelMedialVisible;
|
|
155
|
+
const n = this.getRaycasterFromPanoIndex(e, i);
|
|
156
|
+
if (!n)
|
|
163
157
|
return !1;
|
|
164
|
-
const t = this.getTagEnableByIntersect(e,
|
|
165
|
-
return
|
|
158
|
+
const t = this.getTagEnableByIntersect(e, n);
|
|
159
|
+
return s.modelMedialVisible = t.value, s.__debug_visible_reason__ = t, t.value !== !1;
|
|
166
160
|
}
|
|
167
161
|
getUnfoldedByPanoIndex(e, i) {
|
|
168
162
|
if (!this.getVisibleByPanoIndex(e))
|
|
169
163
|
return;
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
172
|
-
return
|
|
164
|
+
const n = this.getCache({ panoIndex: i, id: e.id });
|
|
165
|
+
if (n.unfolded !== void 0)
|
|
166
|
+
return n.unfolded;
|
|
173
167
|
{
|
|
174
168
|
const t = this.getTagConfig(e).unfoldedConfig;
|
|
175
169
|
if (!t)
|
|
176
170
|
return;
|
|
177
|
-
const
|
|
178
|
-
const
|
|
171
|
+
const o = (() => {
|
|
172
|
+
const d = this.getDistance(e);
|
|
179
173
|
if (typeof t == "function")
|
|
180
|
-
return t(this.five, { tag: e, distance:
|
|
174
|
+
return t(this.five, { tag: e, distance: d });
|
|
181
175
|
if (t.keep === "folded")
|
|
182
176
|
return !1;
|
|
183
177
|
if (t.keep === "unfolded")
|
|
184
178
|
return !0;
|
|
185
|
-
if (t.unfoldDistance &&
|
|
179
|
+
if (t.unfoldDistance && h(d, t.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
|
|
189
|
+
var o;
|
|
190
|
+
const n = this.getDistance(e), t = this.getTagConfig(e).unfoldedConfig;
|
|
197
191
|
if (!!t) {
|
|
198
192
|
if (typeof t == "function")
|
|
199
|
-
return t(this.five, { tag: e, distance:
|
|
193
|
+
return t(this.five, { tag: e, distance: n });
|
|
200
194
|
if (t.keep === "folded")
|
|
201
195
|
return !1;
|
|
202
196
|
if (t.keep === "unfolded")
|
|
@@ -204,25 +198,25 @@ class ke extends S {
|
|
|
204
198
|
if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
|
|
205
199
|
return;
|
|
206
200
|
if (t.autoUnfold.strategy === "ScreenPostion") {
|
|
207
|
-
const
|
|
208
|
-
if (
|
|
201
|
+
const f = this.getTagProject(e);
|
|
202
|
+
if (f && h(f.x, t.autoUnfold.autoUnfoldProjectX) === !1)
|
|
209
203
|
return !1;
|
|
210
204
|
}
|
|
211
205
|
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
212
|
-
const
|
|
213
|
-
const
|
|
214
|
-
if (!
|
|
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: v, z: b } = a;
|
|
211
|
+
return !(Math.abs(b) > 1 || Math.abs(m) > 1 || Math.abs(v) > 1);
|
|
212
|
+
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: a }) => {
|
|
213
|
+
var m, v;
|
|
214
|
+
return !(typeof a != "object" || a.keep || a.autoUnfold === !1 || ((m = a.autoUnfold) == null ? void 0 : m.enable) === !1 || ((v = a.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance");
|
|
215
|
+
}).map((r) => I(x({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: a }) => {
|
|
216
|
+
var m, v;
|
|
217
|
+
return !(r === void 0 || typeof a != "object" || a.autoUnfold === !1 || ((m = a.autoUnfold) == null ? void 0 : m.enable) === !1 || ((v = a.autoUnfold) == null ? void 0 : v.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 = t.autoUnfold.maxNumber) != null ? o : 1) - 1 === !1)
|
|
226
220
|
return !1;
|
|
227
221
|
}
|
|
228
222
|
return !0;
|
|
@@ -230,25 +224,25 @@ class ke extends S {
|
|
|
230
224
|
})() : void 0;
|
|
231
225
|
}
|
|
232
226
|
sort(e) {
|
|
233
|
-
return e.sort((i,
|
|
234
|
-
const
|
|
235
|
-
return
|
|
227
|
+
return e.sort((i, s) => {
|
|
228
|
+
const n = this.getDistance(i), t = this.getDistance(s);
|
|
229
|
+
return n === void 0 || t === void 0 ? 0 : t - n;
|
|
236
230
|
});
|
|
237
231
|
}
|
|
238
232
|
setPointTagPosition() {
|
|
239
233
|
const e = this.filterPointTag;
|
|
240
234
|
e.length !== 0 && e.forEach((i) => {
|
|
241
|
-
var
|
|
242
|
-
if (!((
|
|
235
|
+
var n;
|
|
236
|
+
if (!((n = i.state) != null && n.visible)) {
|
|
243
237
|
i.pointTagStyle = null;
|
|
244
238
|
return;
|
|
245
239
|
}
|
|
246
|
-
const
|
|
247
|
-
if (!
|
|
240
|
+
const s = this.getTagProject(i);
|
|
241
|
+
if (!s) {
|
|
248
242
|
i.pointTagStyle = null;
|
|
249
243
|
return;
|
|
250
244
|
}
|
|
251
|
-
i.pointTagStyle = { leftPercent: (
|
|
245
|
+
i.pointTagStyle = { leftPercent: (s.x + 1) / 2 * 100, topPercent: (-s.y + 1) / 2 * 100 };
|
|
252
246
|
});
|
|
253
247
|
}
|
|
254
248
|
setVisibleByPanoIndex() {
|
|
@@ -260,68 +254,76 @@ class ke extends S {
|
|
|
260
254
|
setModelMedialVisible() {
|
|
261
255
|
const e = this.five.getCurrentState().mode;
|
|
262
256
|
this.tags.forEach((i) => {
|
|
263
|
-
var
|
|
264
|
-
if (!
|
|
257
|
+
var n;
|
|
258
|
+
if (!g(i))
|
|
265
259
|
return;
|
|
266
|
-
if (!((
|
|
260
|
+
if (!((n = i.model) != null && n.object)) {
|
|
267
261
|
i.mediaVisible = !1;
|
|
268
262
|
return;
|
|
269
263
|
}
|
|
270
|
-
const
|
|
271
|
-
i.mediaVisible =
|
|
264
|
+
const s = e === "Panorama" ? this.getModelMedialVisibleByPanoIndex(i) : !0;
|
|
265
|
+
i.mediaVisible = s;
|
|
272
266
|
});
|
|
273
267
|
}
|
|
274
268
|
setUnfoldedByPanoIndex() {
|
|
275
269
|
this.tags.forEach((e) => {
|
|
276
270
|
const i = this.getUnfoldedByPanoIndex(e);
|
|
277
271
|
if (!!e.state && (i !== void 0 && (e.state.unfolded = i), i && !e.state.visible)) {
|
|
278
|
-
const
|
|
279
|
-
typeof
|
|
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: t, z: o } = s.project(this.five.camera);
|
|
284
|
+
if (!(o > 1))
|
|
285
|
+
return { x: n, y: t, z: o };
|
|
292
286
|
}
|
|
293
287
|
getTagEnableByIntersect(e, i) {
|
|
294
|
-
var
|
|
295
|
-
const
|
|
296
|
-
if (!
|
|
288
|
+
var u, p, r;
|
|
289
|
+
const s = (u = this.getTagConfig(e).visibleConfig) != null ? u : {}, n = this.getDistance(e), [t] = this.five.model.intersectRaycaster(i), o = (() => {
|
|
290
|
+
if (!g(e))
|
|
297
291
|
return;
|
|
298
|
-
const
|
|
292
|
+
const a = this.tags.filter(g).map((v) => {
|
|
299
293
|
var b;
|
|
300
294
|
return (b = v.model) == null ? void 0 : b.object;
|
|
301
295
|
}).filter(k);
|
|
302
|
-
return i.intersectObjects(
|
|
303
|
-
})(),
|
|
304
|
-
var
|
|
305
|
-
return typeof
|
|
306
|
-
})(),
|
|
307
|
-
return
|
|
296
|
+
return i.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((p = t == null ? void 0 : t.distance) != null ? p : 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 ${t == null ? void 0 : t.distance}, intersection.point is ${t == null ? void 0 : t.point.toArray()},
|
|
304
|
+
customModelIntersection.point is ${o == null ? void 0 : o.point.toArray()}, minIntersectionDistance is ${d}`
|
|
311
305
|
} : { value: !0, reason: "" };
|
|
312
306
|
}
|
|
313
307
|
getRaycasterFromPanoIndex(e, i) {
|
|
314
|
-
var
|
|
315
|
-
const
|
|
316
|
-
if (
|
|
317
|
-
throw new Error(`getVisible(): observerPosition is ${
|
|
318
|
-
const
|
|
319
|
-
if (!
|
|
308
|
+
var o;
|
|
309
|
+
const s = (o = this.five.work.observers[i]) == 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 t =
|
|
322
|
-
return this.raycaster.set(
|
|
315
|
+
const t = n.sub(s).normalize();
|
|
316
|
+
return this.raycaster.set(s, t), this.raycaster;
|
|
317
|
+
}
|
|
318
|
+
getVisibleByFloorIndex(e) {
|
|
319
|
+
var t, o, f, d, u, p;
|
|
320
|
+
let i = 0;
|
|
321
|
+
const s = (t = e.fiveState) == null ? void 0 : t.panoIndex;
|
|
322
|
+
s !== void 0 ? i = (o = this.five.work.observers[s]) == null ? void 0 : o.floorIndex : i = $(this.five.work.observers, (p = (d = (f = e.model) == null ? void 0 : f.object) == null ? void 0 : d.position) != null ? p : (u = e.mediaPlane) == null ? void 0 : u.position);
|
|
323
|
+
const n = this.five.model.shownFloor;
|
|
324
|
+
return n === null || n === i;
|
|
323
325
|
}
|
|
324
326
|
}
|
|
325
327
|
export {
|
|
326
|
-
|
|
328
|
+
_e as TagComputer
|
|
327
329
|
};
|