@realsee/dnalogel 2.17.0-aplha.1 → 2.17.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/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
- package/dist/index.cjs.js +13 -13
- package/dist/index.js +299 -293
- package/dist/index.umd.js +13 -13
- 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 +45 -45
- 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 +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- 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 +5 -5
- package/docs/index.html +4 -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 +15 -15
- 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 +5 -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 +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -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 +5 -5
- package/docs/interfaces/Rooms.html +5 -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 +12 -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 +9 -9
- 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 +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/ElementRenderer.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoTagPlugin/controller/TagCache.js +18 -18
- package/libs/PanoTagPlugin/controller/TagComputer.js +89 -89
- package/libs/PanoTagPlugin/controller/TagRender.js +114 -113
- package/libs/PanoTagPlugin/controller/TagUtil.js +91 -91
- package/libs/PanoTagPlugin/controller/index.js +11 -8
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
- package/libs/base/BasePlugin.js +3 -3
- package/libs/shared-utils/five/getFloorIndex.js +12 -10
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -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.17.0
|
|
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</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.17.0"/><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.17.0
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.17.0</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.17.0
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.17.0</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/788e6c1/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.17.0
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.17.0</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>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var l = (
|
|
4
|
-
import { Controller as
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var v = (o, t, e) => t in o ? u(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var l = (o, t, e) => (v(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { Controller as d } from "../../base/BasePlugin.js";
|
|
5
5
|
import "../../shared-utils/Subscribe.js";
|
|
6
|
-
class
|
|
6
|
+
class x extends d {
|
|
7
7
|
constructor(e) {
|
|
8
8
|
super(e);
|
|
9
9
|
l(this, "tagCacheByPanoIndex", {});
|
|
10
10
|
}
|
|
11
|
-
getCache({ panoIndex: e, id:
|
|
12
|
-
var i, C, g
|
|
13
|
-
const { five:
|
|
14
|
-
if (
|
|
15
|
-
throw new Error(`TagCacheController getCache(): fivePanoIndex is ${
|
|
16
|
-
const s = `${(
|
|
17
|
-
let
|
|
18
|
-
if (
|
|
19
|
-
return
|
|
11
|
+
getCache({ panoIndex: e, id: a, key: h }) {
|
|
12
|
+
var i, C, g;
|
|
13
|
+
const { five: c } = this, n = e != null ? e : c.getCurrentState().panoIndex;
|
|
14
|
+
if (n === void 0)
|
|
15
|
+
throw new Error(`TagCacheController getCache(): fivePanoIndex is ${n}`);
|
|
16
|
+
const s = `${(C = (i = c.work) == null ? void 0 : i.workCode) != null ? C : c.model.uuid}-${n}`;
|
|
17
|
+
let r = this.tagCacheByPanoIndex[s];
|
|
18
|
+
if (r || (r = /* @__PURE__ */ new Map(), this.tagCacheByPanoIndex[s] = r), a === void 0)
|
|
19
|
+
return r;
|
|
20
20
|
if (h === void 0) {
|
|
21
|
-
const f =
|
|
22
|
-
return f || (
|
|
21
|
+
const f = r.get(a);
|
|
22
|
+
return f || (r.set(a, {}), r.get(a));
|
|
23
23
|
}
|
|
24
|
-
return (
|
|
24
|
+
return (g = r.get(a)) == null ? void 0 : g[h];
|
|
25
25
|
}
|
|
26
26
|
clearCache() {
|
|
27
27
|
this.tagCacheByPanoIndex = {};
|
|
@@ -30,5 +30,5 @@ class m extends v {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
x as TagCache
|
|
34
34
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var U = Object.defineProperty, B = Object.defineProperties;
|
|
2
|
+
var M = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
4
|
var R = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var y = (c, l, e) => l in c ?
|
|
5
|
+
var y = (c, l, e) => l in c ? U(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e, x = (c, l) => {
|
|
6
6
|
for (var e in l || (l = {}))
|
|
7
7
|
R.call(l, e) && y(c, e, l[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(l))
|
|
10
10
|
C.call(l, e) && y(c, e, l[e]);
|
|
11
11
|
return c;
|
|
12
|
-
}, I = (c, l) => B(c,
|
|
12
|
+
}, I = (c, l) => B(c, M(l));
|
|
13
13
|
var T = (c, l, e) => (y(c, typeof l != "symbol" ? l + "" : l, e), e);
|
|
14
14
|
import * as D from "three";
|
|
15
15
|
import { isMediaModelTag as g, is3DTag as j } from "../utils/tag/tagCheck.js";
|
|
@@ -65,20 +65,20 @@ import "../Assets/Icon.js";
|
|
|
65
65
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
66
66
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
67
67
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
68
|
-
class
|
|
68
|
+
class _e extends S {
|
|
69
69
|
constructor(e) {
|
|
70
70
|
super(e);
|
|
71
71
|
T(this, "raycaster", new D.Raycaster());
|
|
72
72
|
}
|
|
73
|
-
getVisibleByPanoIndex(e,
|
|
74
|
-
const s = this.getCache({ panoIndex:
|
|
73
|
+
getVisibleByPanoIndex(e, i) {
|
|
74
|
+
const s = this.getCache({ panoIndex: i, id: e.id }), n = i != null ? i : this.five.getCurrentState().panoIndex;
|
|
75
75
|
if (g(e))
|
|
76
76
|
return !0;
|
|
77
77
|
if (s.visible !== void 0)
|
|
78
78
|
return s.visible;
|
|
79
79
|
{
|
|
80
|
-
const
|
|
81
|
-
var d, u,
|
|
80
|
+
const t = (() => {
|
|
81
|
+
var d, u, p;
|
|
82
82
|
const o = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, f = this.getDistance(e);
|
|
83
83
|
if (typeof o == "function")
|
|
84
84
|
return { value: o(this.five, { tag: e, distance: f }), reason: "config function result" };
|
|
@@ -95,7 +95,7 @@ class Fe extends S {
|
|
|
95
95
|
if (o.visiblePanoIndex === "current" && n !== ((u = e.fiveState) == null ? void 0 : u.panoIndex))
|
|
96
96
|
return {
|
|
97
97
|
value: !1,
|
|
98
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${n}, tag.panoIndex: ${(
|
|
98
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${n}, tag.panoIndex: ${(p = e.fiveState) == null ? void 0 : p.panoIndex}`
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
if (o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && h(f, o.visibleDistance) === !1)
|
|
@@ -126,57 +126,57 @@ class Fe extends S {
|
|
|
126
126
|
reason: "all check passed"
|
|
127
127
|
};
|
|
128
128
|
})();
|
|
129
|
-
return s.visible =
|
|
129
|
+
return s.visible = t.value, s.__debug_visible_reason__ = t, s.visible;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
getVisibleByFiveMode(e,
|
|
133
|
-
const s =
|
|
132
|
+
getVisibleByFiveMode(e, i) {
|
|
133
|
+
const s = i != null ? i : this.five.getCurrentState().mode, n = this.getTagConfig(e).visibleConfig;
|
|
134
134
|
if (typeof n == "object") {
|
|
135
|
-
const
|
|
136
|
-
return
|
|
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
137
|
}
|
|
138
138
|
if (typeof n == "function")
|
|
139
|
-
return
|
|
139
|
+
return i === "Panorama";
|
|
140
140
|
}
|
|
141
141
|
getCurrentVisibleState(e) {
|
|
142
|
-
var
|
|
143
|
-
return (
|
|
142
|
+
var i;
|
|
143
|
+
return (i = this.state.visible && e.state.visible) != null ? i : !0;
|
|
144
144
|
}
|
|
145
145
|
getVisible(e) {
|
|
146
|
-
const
|
|
146
|
+
const i = this.five.getCurrentState(), s = this.getVisibleByFiveMode(e), n = i.mode === "Panorama" ? this.getVisibleByPanoIndex(e, i.panoIndex) : !0;
|
|
147
147
|
return s && n;
|
|
148
148
|
}
|
|
149
149
|
getModelMedialVisibleByPanoIndex(e) {
|
|
150
150
|
if (!this.getCurrentVisibleState(e))
|
|
151
151
|
return !1;
|
|
152
|
-
const
|
|
152
|
+
const i = this.five.getCurrentState().panoIndex, s = this.getCache({ panoIndex: i, id: e.id });
|
|
153
153
|
if (s.modelMedialVisible !== void 0)
|
|
154
154
|
return s.modelMedialVisible;
|
|
155
|
-
const n = this.getRaycasterFromPanoIndex(e,
|
|
155
|
+
const n = this.getRaycasterFromPanoIndex(e, i);
|
|
156
156
|
if (!n)
|
|
157
157
|
return !1;
|
|
158
|
-
const
|
|
159
|
-
return s.modelMedialVisible =
|
|
158
|
+
const t = this.getTagEnableByIntersect(e, n);
|
|
159
|
+
return s.modelMedialVisible = t.value, s.__debug_visible_reason__ = t, t.value !== !1;
|
|
160
160
|
}
|
|
161
|
-
getUnfoldedByPanoIndex(e,
|
|
161
|
+
getUnfoldedByPanoIndex(e, i) {
|
|
162
162
|
if (!this.getVisibleByPanoIndex(e))
|
|
163
163
|
return;
|
|
164
|
-
const n = this.getCache({ panoIndex:
|
|
164
|
+
const n = this.getCache({ panoIndex: i, id: e.id });
|
|
165
165
|
if (n.unfolded !== void 0)
|
|
166
166
|
return n.unfolded;
|
|
167
167
|
{
|
|
168
|
-
const
|
|
169
|
-
if (!
|
|
168
|
+
const t = this.getTagConfig(e).unfoldedConfig;
|
|
169
|
+
if (!t)
|
|
170
170
|
return;
|
|
171
171
|
const o = (() => {
|
|
172
172
|
const d = this.getDistance(e);
|
|
173
|
-
if (typeof
|
|
174
|
-
return
|
|
175
|
-
if (
|
|
173
|
+
if (typeof t == "function")
|
|
174
|
+
return t(this.five, { tag: e, distance: d });
|
|
175
|
+
if (t.keep === "folded")
|
|
176
176
|
return !1;
|
|
177
|
-
if (
|
|
177
|
+
if (t.keep === "unfolded")
|
|
178
178
|
return !0;
|
|
179
|
-
if (
|
|
179
|
+
if (t.unfoldDistance && h(d, t.unfoldDistance) === !1)
|
|
180
180
|
return !1;
|
|
181
181
|
})();
|
|
182
182
|
n.unfolded = o;
|
|
@@ -187,36 +187,36 @@ class Fe extends S {
|
|
|
187
187
|
getUnfoldedByCamera(e) {
|
|
188
188
|
return this.getVisibleByPanoIndex(e) ? (() => {
|
|
189
189
|
var o;
|
|
190
|
-
const n = this.getDistance(e),
|
|
191
|
-
if (!!
|
|
192
|
-
if (typeof
|
|
193
|
-
return
|
|
194
|
-
if (
|
|
190
|
+
const n = this.getDistance(e), t = this.getTagConfig(e).unfoldedConfig;
|
|
191
|
+
if (!!t) {
|
|
192
|
+
if (typeof t == "function")
|
|
193
|
+
return t(this.five, { tag: e, distance: n });
|
|
194
|
+
if (t.keep === "folded")
|
|
195
195
|
return !1;
|
|
196
|
-
if (
|
|
196
|
+
if (t.keep === "unfolded")
|
|
197
197
|
return !0;
|
|
198
|
-
if (
|
|
198
|
+
if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
|
|
199
199
|
return;
|
|
200
|
-
if (
|
|
200
|
+
if (t.autoUnfold.strategy === "ScreenPostion") {
|
|
201
201
|
const f = this.getTagProject(e);
|
|
202
|
-
if (f && h(f.x,
|
|
202
|
+
if (f && h(f.x, t.autoUnfold.autoUnfoldProjectX) === !1)
|
|
203
203
|
return !1;
|
|
204
204
|
}
|
|
205
|
-
if (
|
|
206
|
-
const u = this.filterPointTag.filter((r) => this.
|
|
205
|
+
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
206
|
+
const u = this.filterPointTag.filter((r) => this.getVisible(r)).filter((r) => {
|
|
207
207
|
const a = this.getTagProject(r);
|
|
208
208
|
if (!a)
|
|
209
209
|
return !1;
|
|
210
|
-
const { x: m, y:
|
|
211
|
-
return !(Math.abs(b) > 1 || Math.abs(m) > 1 || Math.abs(
|
|
210
|
+
const { x: m, y: v, z: b } = a;
|
|
211
|
+
return !(Math.abs(b) > 1 || Math.abs(m) > 1 || Math.abs(v) > 1);
|
|
212
212
|
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: a }) => {
|
|
213
|
-
var m,
|
|
214
|
-
return !(typeof a != "object" || a.keep || a.autoUnfold === !1 || ((m = a.autoUnfold) == null ? void 0 : m.enable) === !1 || ((
|
|
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
215
|
}).map((r) => I(x({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: a }) => {
|
|
216
|
-
var m,
|
|
217
|
-
return !(r === void 0 || typeof a != "object" || a.autoUnfold === !1 || ((m = a.autoUnfold) == null ? void 0 : m.enable) === !1 || ((
|
|
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
218
|
}).sort((r, a) => r.distance - a.distance).findIndex((r) => r.id === e.id);
|
|
219
|
-
if (u === -1 || u <= ((o =
|
|
219
|
+
if (u === -1 || u <= ((o = t.autoUnfold.maxNumber) != null ? o : 1) - 1 === !1)
|
|
220
220
|
return !1;
|
|
221
221
|
}
|
|
222
222
|
return !0;
|
|
@@ -224,51 +224,51 @@ class Fe extends S {
|
|
|
224
224
|
})() : void 0;
|
|
225
225
|
}
|
|
226
226
|
sort(e) {
|
|
227
|
-
return e.sort((
|
|
228
|
-
const n = this.getDistance(
|
|
229
|
-
return n === void 0 ||
|
|
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;
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
setPointTagPosition() {
|
|
233
233
|
const e = this.filterPointTag;
|
|
234
|
-
e.length !== 0 && e.forEach((
|
|
234
|
+
e.length !== 0 && e.forEach((i) => {
|
|
235
235
|
var n;
|
|
236
|
-
if (!((n =
|
|
237
|
-
|
|
236
|
+
if (!((n = i.state) != null && n.visible)) {
|
|
237
|
+
i.pointTagStyle = null;
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
240
|
-
const s = this.getTagProject(
|
|
240
|
+
const s = this.getTagProject(i);
|
|
241
241
|
if (!s) {
|
|
242
|
-
|
|
242
|
+
i.pointTagStyle = null;
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
i.pointTagStyle = { leftPercent: (s.x + 1) / 2 * 100, topPercent: (-s.y + 1) / 2 * 100 };
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
248
|
setVisibleByPanoIndex() {
|
|
249
249
|
this.tags.forEach((e) => {
|
|
250
|
-
const
|
|
251
|
-
e.state && (e.state.visible =
|
|
250
|
+
const i = this.getVisibleByPanoIndex(e);
|
|
251
|
+
e.state && (e.state.visible = i);
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
setModelMedialVisible() {
|
|
255
255
|
const e = this.five.getCurrentState().mode;
|
|
256
|
-
this.tags.forEach((
|
|
256
|
+
this.tags.forEach((i) => {
|
|
257
257
|
var n;
|
|
258
|
-
if (!g(
|
|
258
|
+
if (!g(i))
|
|
259
259
|
return;
|
|
260
|
-
if (!((n =
|
|
261
|
-
|
|
260
|
+
if (!((n = i.model) != null && n.object)) {
|
|
261
|
+
i.mediaVisible = !1;
|
|
262
262
|
return;
|
|
263
263
|
}
|
|
264
|
-
const s = e === "Panorama" ? this.getModelMedialVisibleByPanoIndex(
|
|
265
|
-
|
|
264
|
+
const s = e === "Panorama" ? this.getModelMedialVisibleByPanoIndex(i) : !0;
|
|
265
|
+
i.mediaVisible = s;
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
setUnfoldedByPanoIndex() {
|
|
269
269
|
this.tags.forEach((e) => {
|
|
270
|
-
const
|
|
271
|
-
if (!!e.state && (
|
|
270
|
+
const i = this.getUnfoldedByPanoIndex(e);
|
|
271
|
+
if (!!e.state && (i !== void 0 && (e.state.unfolded = i), i && !e.state.visible)) {
|
|
272
272
|
const s = this.getTagConfig(e);
|
|
273
273
|
typeof s.unfoldedConfig == "object" && s.unfoldedConfig.autoUnfoldWhenHide !== !1 && (e.state.unfolded = !1);
|
|
274
274
|
}
|
|
@@ -280,50 +280,50 @@ class Fe extends S {
|
|
|
280
280
|
const s = V(e.position);
|
|
281
281
|
if (!s)
|
|
282
282
|
return;
|
|
283
|
-
const { x: n, y:
|
|
283
|
+
const { x: n, y: t, z: o } = s.project(this.five.camera);
|
|
284
284
|
if (!(o > 1))
|
|
285
|
-
return { x: n, y:
|
|
285
|
+
return { x: n, y: t, z: o };
|
|
286
286
|
}
|
|
287
|
-
getTagEnableByIntersect(e,
|
|
288
|
-
var u,
|
|
289
|
-
const s = (u = this.getTagConfig(e).visibleConfig) != null ? u : {}, n = this.getDistance(e), [
|
|
287
|
+
getTagEnableByIntersect(e, i) {
|
|
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
290
|
if (!g(e))
|
|
291
291
|
return;
|
|
292
|
-
const a = this.tags.filter(g).map((
|
|
292
|
+
const a = this.tags.filter(g).map((v) => {
|
|
293
293
|
var b;
|
|
294
|
-
return (b =
|
|
294
|
+
return (b = v.model) == null ? void 0 : b.object;
|
|
295
295
|
}).filter(k);
|
|
296
|
-
return
|
|
296
|
+
return i.intersectObjects(a, !0)[0];
|
|
297
297
|
})(), f = (() => {
|
|
298
298
|
var a;
|
|
299
299
|
return typeof s == "object" && typeof s.intersectRaycaster == "object" && (a = s.intersectRaycaster.distanceAccuracy) != null ? a : 0.01;
|
|
300
|
-
})(), d = Math.min((
|
|
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
301
|
return d + f < n ? {
|
|
302
302
|
value: !1,
|
|
303
|
-
reason: `intersectRaycaster check failed: distance is ${n}, intersection.distance 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
304
|
customModelIntersection.point is ${o == null ? void 0 : o.point.toArray()}, minIntersectionDistance is ${d}`
|
|
305
305
|
} : { value: !0, reason: "" };
|
|
306
306
|
}
|
|
307
|
-
getRaycasterFromPanoIndex(e,
|
|
307
|
+
getRaycasterFromPanoIndex(e, i) {
|
|
308
308
|
var o;
|
|
309
|
-
const s = (o = this.five.work.observers[
|
|
309
|
+
const s = (o = this.five.work.observers[i]) == null ? void 0 : o.position;
|
|
310
310
|
if (s === void 0)
|
|
311
311
|
throw new Error(`getVisible(): observerPosition is ${s}`);
|
|
312
312
|
const n = V(e.position);
|
|
313
313
|
if (!n)
|
|
314
314
|
return;
|
|
315
|
-
const
|
|
316
|
-
return this.raycaster.set(s,
|
|
315
|
+
const t = n.sub(s).normalize();
|
|
316
|
+
return this.raycaster.set(s, t), this.raycaster;
|
|
317
317
|
}
|
|
318
318
|
getVisibleByFloorIndex(e) {
|
|
319
|
-
var
|
|
320
|
-
let
|
|
321
|
-
const s = (
|
|
322
|
-
s !== void 0 ?
|
|
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
323
|
const n = this.five.model.shownFloor;
|
|
324
|
-
return n === null || n ===
|
|
324
|
+
return n === null || n === i;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
export {
|
|
328
|
-
|
|
328
|
+
_e as TagComputer
|
|
329
329
|
};
|