@realsee/dnalogel 2.6.7-dev.1 → 2.6.7-dev.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/controller/TagComputer.d.ts +2 -1
- package/dist/index.cjs.js +15 -15
- package/dist/index.js +227 -220
- package/dist/index.umd.js +9 -9
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- 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 +123 -51
- 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 +18 -18
- 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/PointType.html +7 -7
- 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/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/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 +12 -12
- 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/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/TagCache.html +12 -12
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- 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/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/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/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/TagPointType.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/VERSION.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/TagComputer.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +26 -22
- package/libs/PanoTagPlugin/controller/index.js +26 -27
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/index.js +100 -101
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +38 -38
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +26 -23
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +28 -22
- package/package.json +1 -1
- package/dist/PanoTagPlugin/utils/tag/index.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/tag/index.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/tag/index.js +0 -11
|
@@ -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>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.6.7-dev.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.6.7-dev.3</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.6.7-dev.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.6.7-dev.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.6.7-dev.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.6.7-dev.
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.6.7-dev.3</a></li>
|
|
16
16
|
<li><a href="modelItemLabelPluginServerParams.html">modelItemLabelPluginServerParams</a></li></ul>
|
|
17
17
|
<h1>Variable modelItemLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature">model<wbr/>Item<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/e4ed7c8/plugins/src/ModelItemLabelPlugin/index.ts#L7">plugins/src/ModelItemLabelPlugin/index.ts:7</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.6.7-<wbr/>dev.
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.6.7-<wbr/>dev.3</a>
|
|
45
45
|
<ul>
|
|
46
46
|
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
47
47
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
@@ -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.6.7-dev.
|
|
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.6.7-dev.3</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.6.7-dev.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.6.7-dev.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.6.7-dev.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.6.7-dev.
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.6.7-dev.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/e4ed7c8/plugins/src/ModelRoomLabelPlugin/index.ts#L12">plugins/src/ModelRoomLabelPlugin/index.ts:12</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.6.7-<wbr/>dev.
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.6.7-<wbr/>dev.3</a>
|
|
45
45
|
<ul>
|
|
46
46
|
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
47
47
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
@@ -21,7 +21,8 @@ export declare abstract class TagComputer extends TagCacheController {
|
|
|
21
21
|
* @description: 获取是否可见
|
|
22
22
|
*/
|
|
23
23
|
getVisibleByPanoIndex(tag: Tag<any, any>, panoIndex?: number): boolean;
|
|
24
|
-
|
|
24
|
+
getVisibleByFiveMode(tag: Tag<any, any>, mode: Mode): boolean;
|
|
25
|
+
getVisible(tag: Tag<any, any>): boolean;
|
|
25
26
|
/** 获取当前点位上模型中的多媒体是否应该展示 */
|
|
26
27
|
getModelMedialVisibleByPanoIndex(tag: Tag<any, any>): boolean;
|
|
27
28
|
/**
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
var j = Object.defineProperty, B = Object.defineProperties;
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var V = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var T = (g, d, e) => d in g ? j(g, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[d] = e, C = (g, d) => {
|
|
6
6
|
for (var e in d || (d = {}))
|
|
7
|
-
|
|
7
|
+
V.call(d, e) && T(g, e, d[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(d))
|
|
10
|
-
|
|
10
|
+
R.call(d, e) && T(g, e, d[e]);
|
|
11
11
|
return g;
|
|
12
12
|
}, I = (g, d) => B(g, U(d));
|
|
13
13
|
var y = (g, d, e) => (T(g, typeof d != "symbol" ? d + "" : d, e), e);
|
|
14
14
|
import x from "object-assign-deep";
|
|
15
15
|
import * as k from "three";
|
|
16
|
-
import { DefaultConfig as
|
|
16
|
+
import { DefaultConfig as w } from "../tag.config.js";
|
|
17
17
|
import { isMediaModelTag as m, is3DTag as $ } from "../utils/tag/tagCheck.js";
|
|
18
18
|
import { anyPositionToVector3 as E } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
19
19
|
import { planeNormal as A } from "../utils/planeNormal.js";
|
|
20
20
|
import { getTagPosition as D, tagPosition as M } from "../utils/tagPosition.js";
|
|
21
21
|
import { checkRange as b } from "../utils/checkRange.js";
|
|
22
|
-
import { TagCacheController as
|
|
22
|
+
import { TagCacheController as S } from "./TagCacheController.js";
|
|
23
23
|
import "hammerjs";
|
|
24
24
|
import "@realsee/five";
|
|
25
25
|
import "@tweenjs/tween.js";
|
|
26
26
|
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
27
27
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
28
|
-
import { notNil as
|
|
28
|
+
import { notNil as F } from "../../shared-utils/isNil.js";
|
|
29
29
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
30
30
|
import "@realsee/five/gltf-loader";
|
|
31
31
|
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
@@ -41,11 +41,11 @@ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
41
41
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
42
42
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
43
43
|
import "../../shared-utils/animationFrame/index.js";
|
|
44
|
-
class
|
|
44
|
+
class pe extends S {
|
|
45
45
|
constructor(e) {
|
|
46
46
|
super(e);
|
|
47
47
|
y(this, "tags", []);
|
|
48
|
-
y(this, "config",
|
|
48
|
+
y(this, "config", w);
|
|
49
49
|
y(this, "raycaster", new k.Raycaster());
|
|
50
50
|
}
|
|
51
51
|
get isPanorama() {
|
|
@@ -102,9 +102,9 @@ class ve extends F {
|
|
|
102
102
|
value: !1,
|
|
103
103
|
reason: `intersectRaycaster check failed: fivePanoIndex is ${o}`
|
|
104
104
|
};
|
|
105
|
-
const r = this.getRaycasterFromPanoIndex(e, o),
|
|
106
|
-
if (
|
|
107
|
-
return
|
|
105
|
+
const r = this.getRaycasterFromPanoIndex(e, o), v = this.getTagEnableByIntersect(e, r);
|
|
106
|
+
if (v.value === !1)
|
|
107
|
+
return v;
|
|
108
108
|
}
|
|
109
109
|
if (s.angleRange && $(e)) {
|
|
110
110
|
const r = this.getAngle(e);
|
|
@@ -119,7 +119,7 @@ class ve extends F {
|
|
|
119
119
|
return i.visible = a.value, i.__debug_visible_reason__ = a, i.visible;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
getVisibleByFiveMode(e, t) {
|
|
123
123
|
var n;
|
|
124
124
|
const i = (n = this.getTagConfig(e).visibleConfig) != null ? n : {};
|
|
125
125
|
if (typeof i == "function")
|
|
@@ -127,6 +127,10 @@ class ve extends F {
|
|
|
127
127
|
const o = i == null ? void 0 : i.visibleFiveMode;
|
|
128
128
|
return o ? o.includes(t) : t === "Panorama";
|
|
129
129
|
}
|
|
130
|
+
getVisible(e) {
|
|
131
|
+
const t = this.five.getCurrentState(), i = this.getVisibleByFiveMode(e, t.mode), o = t.mode === "Panorama" ? this.getVisibleByPanoIndex(e, t.panoIndex) : !0;
|
|
132
|
+
return i && o;
|
|
133
|
+
}
|
|
130
134
|
getModelMedialVisibleByPanoIndex(e) {
|
|
131
135
|
const t = this.five.getCurrentState().panoIndex, i = this.getCache({ panoIndex: t, id: e.id });
|
|
132
136
|
if (i.modelMedialVisible !== void 0)
|
|
@@ -183,14 +187,14 @@ class ve extends F {
|
|
|
183
187
|
const r = this.getTagProject(f);
|
|
184
188
|
if (!r)
|
|
185
189
|
return !1;
|
|
186
|
-
const { x:
|
|
187
|
-
return !(Math.abs(h) > 1 || Math.abs(
|
|
190
|
+
const { x: v, y: p, z: h } = r;
|
|
191
|
+
return !(Math.abs(h) > 1 || Math.abs(v) > 1 || Math.abs(p) > 1);
|
|
188
192
|
}).map((f) => ({ tag: f, id: f.id, tagConfig: this.getTagConfig(f).unfoldedConfig })).filter(({ tag: f, tagConfig: r }) => {
|
|
189
|
-
var
|
|
190
|
-
return !(typeof r != "object" || r.keep || r.autoUnfold === !1 || ((
|
|
193
|
+
var v, p;
|
|
194
|
+
return !(typeof r != "object" || r.keep || r.autoUnfold === !1 || ((v = r.autoUnfold) == null ? void 0 : v.enable) === !1 || ((p = r.autoUnfold) == null ? void 0 : p.strategy) !== "MinimumDistance");
|
|
191
195
|
}).map((f) => I(C({}, f), { distance: this.getDistance(f.tag) })).filter(({ distance: f, tagConfig: r }) => {
|
|
192
|
-
var
|
|
193
|
-
return !(f === void 0 || typeof r != "object" || r.autoUnfold === !1 || ((
|
|
196
|
+
var v, p;
|
|
197
|
+
return !(f === void 0 || typeof r != "object" || r.autoUnfold === !1 || ((v = r.autoUnfold) == null ? void 0 : v.enable) === !1 || ((p = r.autoUnfold) == null ? void 0 : p.strategy) !== "MinimumDistance" || r.autoUnfold.distance && b(f, r.autoUnfold.distance) === !1);
|
|
194
198
|
}).sort((f, r) => f.distance - r.distance).findIndex((f) => f.id === e.id);
|
|
195
199
|
if (c === -1 || c <= ((a = n.autoUnfold.maxNumber) != null ? a : 1) - 1 === !1)
|
|
196
200
|
return !1;
|
|
@@ -362,10 +366,10 @@ class ve extends F {
|
|
|
362
366
|
const i = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, o = this.getDistance(e), [n] = this.five.model.intersectRaycaster(t), a = (() => {
|
|
363
367
|
if (!m(e))
|
|
364
368
|
return;
|
|
365
|
-
const r = this.tags.filter(m).map((
|
|
369
|
+
const r = this.tags.filter(m).map((p) => {
|
|
366
370
|
var h;
|
|
367
|
-
return (h =
|
|
368
|
-
}).filter(
|
|
371
|
+
return (h = p.model) == null ? void 0 : h.object;
|
|
372
|
+
}).filter(F);
|
|
369
373
|
return t.intersectObjects(r, !0)[0];
|
|
370
374
|
})(), s = (() => {
|
|
371
375
|
var r;
|
|
@@ -394,5 +398,5 @@ class ve extends F {
|
|
|
394
398
|
}
|
|
395
399
|
}
|
|
396
400
|
export {
|
|
397
|
-
|
|
401
|
+
pe as TagComputer
|
|
398
402
|
};
|
|
@@ -2,15 +2,15 @@ var x = Object.defineProperty, G = Object.defineProperties;
|
|
|
2
2
|
var V = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
4
|
var N = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var A = (h, a, e) => a in h ? x(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, p = (h, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
N.call(a, e) &&
|
|
7
|
+
N.call(a, e) && A(h, e, a[e]);
|
|
8
8
|
if (R)
|
|
9
9
|
for (var e of R(a))
|
|
10
|
-
W.call(a, e) &&
|
|
10
|
+
W.call(a, e) && A(h, e, a[e]);
|
|
11
11
|
return h;
|
|
12
|
-
},
|
|
13
|
-
var d = (h, a, e) => (
|
|
12
|
+
}, m = (h, a) => G(h, V(a));
|
|
13
|
+
var d = (h, a, e) => (A(h, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var c = (h, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
16
16
|
try {
|
|
@@ -37,7 +37,7 @@ import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/posit
|
|
|
37
37
|
import { addDebugPoints as J } from "../utils/addDebugPoints.js";
|
|
38
38
|
import { planeNormal as O } from "../utils/planeNormal.js";
|
|
39
39
|
import "@realsee/five/gltf-loader";
|
|
40
|
-
import { isMediaModelTag as
|
|
40
|
+
import { isMediaModelTag as f } from "../utils/tag/tagCheck.js";
|
|
41
41
|
import { waitFiveModelLoaded as Q } from "../utils/actionAfterFiveModelLoad.js";
|
|
42
42
|
import { normalPositionToPositions as X } from "../utils/normalPositionToPositions.js";
|
|
43
43
|
import { debounce as k } from "../utils/debounce.js";
|
|
@@ -48,7 +48,6 @@ import { CSS3DRenderPlugin as Z } from "../../CSS3DRenderPlugin/index.js";
|
|
|
48
48
|
import ee from "../utils/tag/format.js";
|
|
49
49
|
import { generateBlankAudio as L, AudioNamespace as U } from "../../shared-utils/audio.js";
|
|
50
50
|
import { loadGLTF as te } from "../../shared-utils/three/GLTFLoader.js";
|
|
51
|
-
import { getMediaModelPlanPositions as ie } from "../utils/tag/index.js";
|
|
52
51
|
import "../../vendor/svelte/internal/index.js";
|
|
53
52
|
import "../Components/TagItem.js";
|
|
54
53
|
import "../utils/noTypecheck.js";
|
|
@@ -124,8 +123,8 @@ import "./TagCacheController.js";
|
|
|
124
123
|
import "../../base/BasePlugin.js";
|
|
125
124
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
126
125
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
127
|
-
const j = "2.0.10",
|
|
128
|
-
class
|
|
126
|
+
const j = "2.0.10", S = `DnalogelPlugin-PanoTagPlugin@${j}`, ie = !1, qt = (h) => `${S}--${h}`;
|
|
127
|
+
class Ht extends Y {
|
|
129
128
|
constructor(e, t) {
|
|
130
129
|
super(e);
|
|
131
130
|
d(this, "version", j);
|
|
@@ -152,17 +151,17 @@ class Qt extends Y {
|
|
|
152
151
|
e.data = u({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
153
152
|
}));
|
|
154
153
|
d(this, "disposedErrorLog", () => {
|
|
155
|
-
console.error(`${
|
|
154
|
+
console.error(`${S} is disposed`);
|
|
156
155
|
});
|
|
157
156
|
d(this, "handleFiveInitAnimationEnded", () => {
|
|
158
157
|
const e = this.five.getCurrentState().mode;
|
|
159
158
|
this.tags.forEach((t) => {
|
|
160
|
-
t.
|
|
159
|
+
t.state.visible = this.getVisible(t), f(t) && e === "Panorama" && this.changeTagMode(t, "front");
|
|
161
160
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
162
161
|
});
|
|
163
162
|
d(this, "handleFiveModelShownFloorChange", () => {
|
|
164
163
|
this.tags.forEach((e) => {
|
|
165
|
-
!
|
|
164
|
+
!f(e) || (e.state.visible = this.checkFloorIndex(e));
|
|
166
165
|
}), this.updateRenderAllTags();
|
|
167
166
|
});
|
|
168
167
|
d(this, "loadModel", (e) => c(this, null, function* () {
|
|
@@ -184,7 +183,7 @@ class Qt extends Y {
|
|
|
184
183
|
load(e, t) {
|
|
185
184
|
return c(this, null, function* () {
|
|
186
185
|
var s, o;
|
|
187
|
-
this.clearTags(), console.log(
|
|
186
|
+
this.clearTags(), console.log(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = u({}, this.config, {
|
|
188
187
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
189
188
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
190
189
|
});
|
|
@@ -201,13 +200,13 @@ class Qt extends Y {
|
|
|
201
200
|
addTag(e, t) {
|
|
202
201
|
return c(this, null, function* () {
|
|
203
202
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
204
|
-
const n = this.getTagConfig(o), r =
|
|
205
|
-
state: p({ visible: void 0, unfolded:
|
|
203
|
+
const n = this.getTagConfig(o), r = m(p({}, o), {
|
|
204
|
+
state: p({ visible: void 0, unfolded: ie }, n.initialState),
|
|
206
205
|
hooks: new z(),
|
|
207
206
|
clickable: n.clickable,
|
|
208
207
|
mergedConfig: n
|
|
209
208
|
});
|
|
210
|
-
return
|
|
209
|
+
return f(o) && (r.temporaryState = { visible: !1 }), r;
|
|
211
210
|
}).filter((o) => o.position);
|
|
212
211
|
return s.forEach(ee), this.tags.push(...s), Q(this.five).then(() => {
|
|
213
212
|
var o, n, r;
|
|
@@ -303,7 +302,7 @@ class Qt extends Y {
|
|
|
303
302
|
const i = (w = (M = (P = e.mergedConfig) == null ? void 0 : P.tag3DConfig) == null ? void 0 : M.ratio) != null ? w : 216e-5, s = (F = e.tag3DContentSvelte) == null ? void 0 : F.domContainer.css3DObject;
|
|
304
303
|
if (!s)
|
|
305
304
|
return;
|
|
306
|
-
const o =
|
|
305
|
+
const o = f(e) ? e.data.mediaPosition : e.position;
|
|
307
306
|
t.updateWorldMatrix(!1, !1);
|
|
308
307
|
const n = t.matrixWorld, r = new T().fromArray(o[0]), l = new T().fromArray(o[2]), g = new T().lerpVectors(r, l, 0.5).add(new T(0, 0, 5e-4)), D = new C().setPosition(g), B = new C().makeScale(i, i, i), y = new C().multiply(n).multiply(D).multiply(B);
|
|
309
308
|
y.decompose(s.position, s.quaternion, s.scale);
|
|
@@ -375,13 +374,13 @@ class Qt extends Y {
|
|
|
375
374
|
}
|
|
376
375
|
handleFiveModeChange(e) {
|
|
377
376
|
this.tags.forEach((t) => {
|
|
378
|
-
t.
|
|
377
|
+
t.state.visible = this.getVisible(t), f(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
|
|
379
378
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
380
379
|
}
|
|
381
380
|
handleFiveWantsMoveToPano() {
|
|
382
381
|
this.tags.forEach((e) => {
|
|
383
382
|
const t = this.getTagConfig(e);
|
|
384
|
-
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState =
|
|
383
|
+
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = m(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = m(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
|
|
385
384
|
}), this.updateTagContainerVisible();
|
|
386
385
|
}
|
|
387
386
|
temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
|
|
@@ -429,7 +428,7 @@ class Qt extends Y {
|
|
|
429
428
|
handleFivePanoArrived() {
|
|
430
429
|
return c(this, null, function* () {
|
|
431
430
|
yield this.setVisibleAndUnfolded(), this.setModelMedialVisibleByPanoIndex(), this.tags.forEach((e) => {
|
|
432
|
-
e.temporaryState =
|
|
431
|
+
e.temporaryState = m(p({}, e.temporaryState), { visible: !0 });
|
|
433
432
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
|
|
434
433
|
});
|
|
435
434
|
}
|
|
@@ -477,7 +476,7 @@ class Qt extends Y {
|
|
|
477
476
|
return;
|
|
478
477
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Z(this.five)), t.stickType === "3DPoint" && !t.normal)
|
|
479
478
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
480
|
-
const s = (() => t.stickType === "Plane" ? t.position : t
|
|
479
|
+
const s = (() => t.stickType === "Plane" ? t.position : f(t) ? t.data.mediaPosition : X(
|
|
481
480
|
this.five.camera.position,
|
|
482
481
|
v(t.position),
|
|
483
482
|
v(t.normal)
|
|
@@ -503,7 +502,7 @@ class Qt extends Y {
|
|
|
503
502
|
props: {
|
|
504
503
|
tag: t,
|
|
505
504
|
hooks: this.hooks,
|
|
506
|
-
state: t.contentType === "MediaModel" ?
|
|
505
|
+
state: t.contentType === "MediaModel" ? m(p({}, this.state), { visible: !1 }) : this.state,
|
|
507
506
|
mediaStore: this.mediaStore,
|
|
508
507
|
temporaryState: this.temporaryState
|
|
509
508
|
}
|
|
@@ -517,7 +516,7 @@ class Qt extends Y {
|
|
|
517
516
|
}
|
|
518
517
|
updateRenderModelTag() {
|
|
519
518
|
const e = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
520
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(
|
|
519
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(f).forEach((i) => {
|
|
521
520
|
var s;
|
|
522
521
|
(s = i.model) == null || s.promise.then((o) => {
|
|
523
522
|
o.visible = i.state.visible;
|
|
@@ -541,7 +540,7 @@ class Qt extends Y {
|
|
|
541
540
|
}
|
|
542
541
|
addMediaModelTag(e) {
|
|
543
542
|
return c(this, null, function* () {
|
|
544
|
-
const t = e.filter(
|
|
543
|
+
const t = e.filter(f).map(this.loadModel);
|
|
545
544
|
yield Promise.all(t), this.five.getCurrentState().mode === "Panorama" && this.setModelMedialVisibleByPanoIndex(), this.updateRenderAllTags();
|
|
546
545
|
});
|
|
547
546
|
}
|
|
@@ -551,7 +550,7 @@ class Qt extends Y {
|
|
|
551
550
|
}
|
|
552
551
|
}
|
|
553
552
|
export {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
553
|
+
Ht as PanoTagPluginController,
|
|
554
|
+
Ht as default,
|
|
555
|
+
qt as pluginFlag
|
|
557
556
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import t from "./controller/index.js";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as Yo, pluginFlag as Zo } from "./controller/index.js";
|
|
3
3
|
import "@realsee/five/gltf-loader";
|
|
4
|
-
import { ContentType as
|
|
5
|
-
import { DimensionType as
|
|
4
|
+
import { ContentType as $o } from "./typings/tag/TagData.js";
|
|
5
|
+
import { DimensionType as rr, PointType as tr } from "./typings/tag/Utils.js";
|
|
6
6
|
import "@realsee/five";
|
|
7
7
|
import "three";
|
|
8
8
|
import "object-assign-deep";
|
|
@@ -98,14 +98,13 @@ import "../CSS3DRenderPlugin/Controller.js";
|
|
|
98
98
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
99
99
|
import "./utils/tag/format.js";
|
|
100
100
|
import "../shared-utils/three/GLTFLoader.js";
|
|
101
|
-
|
|
102
|
-
const Wo = (o, r) => new t(o, r);
|
|
101
|
+
const Vo = (o, r) => new t(o, r);
|
|
103
102
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
$o as ContentType,
|
|
104
|
+
rr as DimensionType,
|
|
105
|
+
Vo as PanoTagPlugin,
|
|
106
|
+
Yo as PanoTagPluginController,
|
|
107
|
+
tr as PointType,
|
|
108
|
+
Vo as default,
|
|
109
|
+
Zo as pluginFlag
|
|
111
110
|
};
|