@realsee/dnalogel 2.17.0-aplha.2 → 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 +296 -291
- 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 +4 -4
- package/libs/PanoTagPlugin/controller/TagRender.js +114 -113
- package/libs/PanoTagPlugin/controller/TagUtil.js +91 -91
- package/libs/PanoTagPlugin/controller/index.js +9 -7
- 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
|
|
1
|
+
var U = Object.defineProperty, B = Object.defineProperties;
|
|
2
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) =>
|
|
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";
|
|
@@ -203,7 +203,7 @@ class _e extends S {
|
|
|
203
203
|
return !1;
|
|
204
204
|
}
|
|
205
205
|
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
206
|
-
const u = this.filterPointTag.filter((r) => this.
|
|
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;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
var w = Object.defineProperty;
|
|
2
|
-
var E = (c,
|
|
3
|
-
var
|
|
4
|
-
var T = (c,
|
|
2
|
+
var E = (c, l, t) => l in c ? w(c, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[l] = t;
|
|
3
|
+
var u = (c, l, t) => (E(c, typeof l != "symbol" ? l + "" : l, t), t);
|
|
4
|
+
var T = (c, l, t) => new Promise((e, i) => {
|
|
5
5
|
var o = (s) => {
|
|
6
6
|
try {
|
|
7
|
-
a(
|
|
7
|
+
a(t.next(s));
|
|
8
8
|
} catch (r) {
|
|
9
9
|
i(r);
|
|
10
10
|
}
|
|
11
11
|
}, n = (s) => {
|
|
12
12
|
try {
|
|
13
|
-
a(
|
|
13
|
+
a(t.throw(s));
|
|
14
14
|
} catch (r) {
|
|
15
15
|
i(r);
|
|
16
16
|
}
|
|
17
|
-
}, a = (s) => s.done ?
|
|
18
|
-
a((
|
|
17
|
+
}, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(o, n);
|
|
18
|
+
a((t = t.apply(c, l)).next());
|
|
19
19
|
});
|
|
20
20
|
import { TagComputer as O } from "./TagComputer.js";
|
|
21
21
|
import { Group as b, Quaternion as k, Vector3 as D, Matrix4 as P } from "three";
|
|
22
22
|
import x from "../Components/TagContainer.js";
|
|
23
|
-
import
|
|
23
|
+
import F from "../Components/Tag/index.js";
|
|
24
24
|
import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
|
-
import { centerPoint as
|
|
25
|
+
import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
|
|
26
26
|
import "@realsee/five/gltf-loader";
|
|
27
|
-
import { VideoPlane as
|
|
28
|
-
import { isMediaModelTag as
|
|
29
|
-
import { CSS3DRenderPlugin as
|
|
27
|
+
import { VideoPlane as j, ImagePlane as R } from "../utils/model/mediaPlane.js";
|
|
28
|
+
import { isMediaModelTag as C } from "../utils/tag/tagCheck.js";
|
|
29
|
+
import { CSS3DRenderPlugin as I } from "../../CSS3DRenderPlugin/index.js";
|
|
30
30
|
import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
|
|
31
31
|
import "@realsee/five";
|
|
32
32
|
import "../utils/tagPosition.js";
|
|
@@ -139,148 +139,149 @@ import "../Components/Tag/LinkTag.js";
|
|
|
139
139
|
import "../Components/Tag/CustomTag.js";
|
|
140
140
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
141
141
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
142
|
-
const
|
|
142
|
+
const A = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
|
|
143
143
|
class ei extends O {
|
|
144
|
-
constructor(
|
|
145
|
-
super(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
144
|
+
constructor(t) {
|
|
145
|
+
super(t);
|
|
146
|
+
u(this, "group", new b());
|
|
147
|
+
u(this, "imagePlaneGroup", new b());
|
|
148
|
+
u(this, "gltfObjectGroup", new b());
|
|
149
|
+
u(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
150
|
+
u(this, "temporaryState", { visible: !0 });
|
|
151
|
+
u(this, "TagContainerSvelte");
|
|
152
|
+
u(this, "loadModel", (t) => T(this, null, function* () {
|
|
153
153
|
var s;
|
|
154
|
-
const
|
|
155
|
-
if (!
|
|
154
|
+
const e = t.data.modelUrl;
|
|
155
|
+
if (!e)
|
|
156
156
|
return;
|
|
157
|
-
const i = V(
|
|
158
|
-
|
|
157
|
+
const i = V(e).then((r) => Object.assign(r.scene, { customID: t.id, isTagModel: !0 }));
|
|
158
|
+
t.model = { promise: i };
|
|
159
159
|
const o = yield i;
|
|
160
|
-
if (((s =
|
|
160
|
+
if (((s = t.model) == null ? void 0 : s.promise) !== i || (t.model.object = o, !this.tags.includes(t)))
|
|
161
161
|
return;
|
|
162
|
-
o.visible = this.getCurrentVisibleState(
|
|
163
|
-
const a = this.gltfObjectGroup.children.find((r) => r.customID ===
|
|
164
|
-
if (a && this.gltfObjectGroup.remove(a), this.getRenderType(
|
|
165
|
-
if (!
|
|
166
|
-
const r =
|
|
167
|
-
|
|
168
|
-
objectFit:
|
|
162
|
+
o.visible = this.getCurrentVisibleState(t), new P().fromArray(t.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFiveMode(t);
|
|
163
|
+
const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
|
|
164
|
+
if (a && this.gltfObjectGroup.remove(a), this.getRenderType(t) === "Mesh") {
|
|
165
|
+
if (!t.mediaPlane) {
|
|
166
|
+
const r = t.data.mediaPosition.map(v);
|
|
167
|
+
t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(v), {
|
|
168
|
+
objectFit: t.data.objectFit
|
|
169
169
|
});
|
|
170
170
|
const m = new D().addVectors(r[0], r[2]).divideScalar(2);
|
|
171
|
-
|
|
171
|
+
t.mediaPlane.position.copy(m), o.add(t.mediaPlane);
|
|
172
172
|
}
|
|
173
173
|
} else
|
|
174
|
-
o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(
|
|
174
|
+
o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix();
|
|
175
175
|
return this.gltfObjectGroup.add(o), o;
|
|
176
176
|
}));
|
|
177
177
|
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
|
|
178
178
|
}
|
|
179
179
|
clearTags() {
|
|
180
|
-
this.tags.forEach((
|
|
181
|
-
var
|
|
182
|
-
(i = (
|
|
180
|
+
this.tags.forEach((t) => {
|
|
181
|
+
var e, i;
|
|
182
|
+
(i = (e = t.mediaPlane) == null ? void 0 : e.parent) == null || i.remove(t.mediaPlane);
|
|
183
183
|
}), this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
184
184
|
}
|
|
185
185
|
updateRenderAllTags() {
|
|
186
|
-
this.enabledModelTagSet.clear(), this.tags.forEach((
|
|
186
|
+
this.enabledModelTagSet.clear(), this.tags.forEach((t) => t.stickType === "Model" && this.enabledModelTagSet.add(t.id)), this.updateRenderPointTag(), this.updateRender3DDomTag(), this.updateRenderModelTag(), this.updateRenderImagePlane();
|
|
187
187
|
}
|
|
188
188
|
updateRenderImagePlane() {
|
|
189
|
-
this.sort(this.filterImagePlane).forEach((
|
|
190
|
-
var s, r, m,
|
|
191
|
-
const i =
|
|
189
|
+
this.sort(this.filterImagePlane).forEach((e) => {
|
|
190
|
+
var s, r, m, f, g;
|
|
191
|
+
const i = e.data.mediaData[0];
|
|
192
192
|
if (!i)
|
|
193
193
|
return;
|
|
194
194
|
const { url: o, type: n } = i;
|
|
195
|
-
if (!o || (
|
|
195
|
+
if (!o || (e.mediaPlane && (e.mediaPlane.visible = (r = (s = e.state) == null ? void 0 : s.visible) != null ? r : !0, e.mediaPlane.visible || e.mediaPlane instanceof j && ((m = e.data.autoplayConfig) != null && m.autoplayVideo || e.mediaPlane.pause())), ((f = e.mediaPlane) == null ? void 0 : f.src) === o))
|
|
196
196
|
return;
|
|
197
|
-
const a =
|
|
198
|
-
if (
|
|
199
|
-
|
|
200
|
-
this.hooks.emit("click", { tag:
|
|
197
|
+
const a = e.position.map(v);
|
|
198
|
+
if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
|
|
199
|
+
e.mediaPlane = new R(o, a, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
|
|
200
|
+
this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
|
|
201
201
|
});
|
|
202
202
|
else if (n === "Video") {
|
|
203
|
-
const p = new
|
|
203
|
+
const p = new j(o, a, {
|
|
204
204
|
videoCoverSrc: i.videoCoverUrl,
|
|
205
|
-
playButton:
|
|
206
|
-
paused: !((
|
|
207
|
-
|
|
205
|
+
playButton: e.data.playIcon,
|
|
206
|
+
paused: !((g = e.data.autoplayConfig) != null && g.autoplayVideo),
|
|
207
|
+
objectFit: e.data.objectFit,
|
|
208
|
+
videoTextureMap: A,
|
|
208
209
|
ImageTextureMap: B
|
|
209
210
|
});
|
|
210
|
-
p.onVideoReady = (
|
|
211
|
-
|
|
211
|
+
p.onVideoReady = (d) => {
|
|
212
|
+
d.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: p.videoInstance }));
|
|
212
213
|
}, p.initialDomEvents(this.domEvents);
|
|
213
|
-
const
|
|
214
|
-
p.initialRenderHooks(
|
|
214
|
+
const h = (d) => (this.five.on("renderFrame", d), () => this.five.off("renderFrame", d));
|
|
215
|
+
p.initialRenderHooks(h), e.mediaPlane = p;
|
|
215
216
|
}
|
|
216
|
-
this.imagePlaneGroup.add(
|
|
217
|
+
this.imagePlaneGroup.add(e.mediaPlane);
|
|
217
218
|
});
|
|
218
219
|
}
|
|
219
220
|
updateRender3DDomTag() {
|
|
220
|
-
this.sort([...this.filterCSS3DTag]).forEach((
|
|
221
|
+
this.sort([...this.filterCSS3DTag]).forEach((e) => {
|
|
221
222
|
var i, o;
|
|
222
|
-
if (
|
|
223
|
-
const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } =
|
|
224
|
-
if (n.$set({ tag:
|
|
223
|
+
if (e.tag3DContentSvelte) {
|
|
224
|
+
const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
|
|
225
|
+
if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
|
|
225
226
|
const m = new k().setFromUnitVectors(s, r);
|
|
226
227
|
a.css3DObject.setRotationFromQuaternion(m);
|
|
227
228
|
}
|
|
228
229
|
return;
|
|
229
230
|
} else {
|
|
230
|
-
if (((i =
|
|
231
|
+
if (((i = e.state) == null ? void 0 : i.visible) === !1)
|
|
231
232
|
return;
|
|
232
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
233
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = I(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
233
234
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
234
|
-
const n = this.getPositions(
|
|
235
|
+
const n = this.getPositions(e);
|
|
235
236
|
if (!n)
|
|
236
237
|
return;
|
|
237
|
-
const a = this.getTagNormal(
|
|
238
|
+
const a = this.getTagNormal(e);
|
|
238
239
|
if (!a)
|
|
239
240
|
return;
|
|
240
|
-
const r = (o = this.getTagConfig(
|
|
241
|
-
if (this.getRenderType(
|
|
241
|
+
const r = (o = this.getTagConfig(e).tag3DConfig) != null ? o : {};
|
|
242
|
+
if (this.getRenderType(e) === "BehindDom") {
|
|
242
243
|
r.mode = "behind", r.container = document.createElement("div");
|
|
243
|
-
const
|
|
244
|
-
r.container.style.backgroundColor =
|
|
245
|
-
var
|
|
244
|
+
const g = "black";
|
|
245
|
+
r.container.style.backgroundColor = g, r.container.style.border = `3px solid ${g}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
246
|
+
var p;
|
|
246
247
|
if (m.css3DObject.opacityMesh) {
|
|
247
|
-
const
|
|
248
|
-
this.hooks.emit("click", { event:
|
|
248
|
+
const h = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (d) => {
|
|
249
|
+
this.hooks.emit("click", { event: d, target: "TagContent", tag: e });
|
|
249
250
|
});
|
|
250
|
-
(
|
|
251
|
+
(p = this.store.css3DRenderDisposer.get(e.id)) == null || p.push(h);
|
|
251
252
|
}
|
|
252
253
|
});
|
|
253
254
|
}
|
|
254
255
|
const m = this.css3DRenderPlugin.create3DDomContainer(n, r);
|
|
255
256
|
if (!m)
|
|
256
257
|
return;
|
|
257
|
-
this.store.css3DRenderDisposer.set(
|
|
258
|
-
const
|
|
258
|
+
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
259
|
+
const f = new F({
|
|
259
260
|
target: m.container,
|
|
260
261
|
props: {
|
|
261
|
-
tag:
|
|
262
|
+
tag: e,
|
|
262
263
|
hooks: this.hooks,
|
|
263
264
|
state: this.state,
|
|
264
265
|
mediaStore: this.mediaStore,
|
|
265
266
|
temporaryState: this.temporaryState
|
|
266
267
|
}
|
|
267
268
|
});
|
|
268
|
-
|
|
269
|
-
svelteApp:
|
|
269
|
+
e.tag3DContentSvelte = {
|
|
270
|
+
svelteApp: f,
|
|
270
271
|
domContainer: m,
|
|
271
272
|
css3DInstance: m,
|
|
272
273
|
initialNormal: a,
|
|
273
274
|
currentNormal: a,
|
|
274
275
|
dispose: () => {
|
|
275
|
-
|
|
276
|
+
f.$destroy(), m.dispose();
|
|
276
277
|
}
|
|
277
278
|
};
|
|
278
279
|
}
|
|
279
280
|
}), this.clearUnusedPanelTag();
|
|
280
281
|
}
|
|
281
282
|
updateRenderModelTag() {
|
|
282
|
-
const
|
|
283
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(
|
|
283
|
+
const t = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
284
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(C).forEach((i) => {
|
|
284
285
|
var o;
|
|
285
286
|
(o = i.model) == null || o.promise.then((n) => {
|
|
286
287
|
n.visible = this.getCurrentVisibleState(i);
|
|
@@ -288,53 +289,53 @@ class ei extends O {
|
|
|
288
289
|
});
|
|
289
290
|
}
|
|
290
291
|
updateTagModelVisible() {
|
|
291
|
-
this.tags.forEach((
|
|
292
|
-
var
|
|
293
|
-
|
|
292
|
+
this.tags.forEach((t) => {
|
|
293
|
+
var e;
|
|
294
|
+
t.mediaPlane && (t.mediaPlane.visible = this.getCurrentVisibleState(t)), (e = t.model) != null && e.object && (t.model.object.visible = this.getCurrentVisibleState(t));
|
|
294
295
|
});
|
|
295
296
|
}
|
|
296
|
-
updateTagCss3DObjectMatrix(
|
|
297
|
-
var
|
|
298
|
-
const i = (y = (
|
|
297
|
+
updateTagCss3DObjectMatrix(t, e) {
|
|
298
|
+
var d, S, y, M;
|
|
299
|
+
const i = (y = (S = (d = t.mergedConfig) == null ? void 0 : d.tag3DConfig) == null ? void 0 : S.ratio) != null ? y : 216e-5, o = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
|
|
299
300
|
if (!o)
|
|
300
301
|
return;
|
|
301
|
-
const n =
|
|
302
|
-
|
|
303
|
-
const a =
|
|
304
|
-
|
|
305
|
-
const
|
|
306
|
-
|
|
302
|
+
const n = C(t) ? t.data.mediaPosition : t.position;
|
|
303
|
+
e.updateWorldMatrix(!1, !1);
|
|
304
|
+
const a = e.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = G(s, r).add(new D(0, 0, 5e-4)), f = new P().setPosition(m), g = new P().makeScale(i, i, i), p = new P().multiply(a).multiply(f).multiply(g);
|
|
305
|
+
p.decompose(o.position, o.quaternion, o.scale);
|
|
306
|
+
const h = o.opacityMesh;
|
|
307
|
+
h && p.decompose(h.position, h.quaternion, h.scale);
|
|
307
308
|
}
|
|
308
|
-
addMediaModelTag(
|
|
309
|
+
addMediaModelTag(t) {
|
|
309
310
|
return T(this, null, function* () {
|
|
310
|
-
const
|
|
311
|
-
yield Promise.all(
|
|
311
|
+
const e = t.filter(C).map((i) => this.loadModel(i));
|
|
312
|
+
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
312
313
|
});
|
|
313
314
|
}
|
|
314
315
|
updateRenderPointTag() {
|
|
315
|
-
var
|
|
316
|
-
const
|
|
316
|
+
var e;
|
|
317
|
+
const t = this.sort(this.filterPointTag);
|
|
317
318
|
if (this.setPointTagPosition(), this.TagContainerSvelte)
|
|
318
|
-
this.TagContainerSvelte.$set({ tags:
|
|
319
|
+
this.TagContainerSvelte.$set({ tags: t, state: this.state, temporaryState: this.temporaryState });
|
|
319
320
|
else {
|
|
320
|
-
const i = (
|
|
321
|
+
const i = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
|
|
321
322
|
if (!i)
|
|
322
323
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
323
324
|
this.TagContainerSvelte = new x({
|
|
324
325
|
target: i,
|
|
325
|
-
props: { hooks: this.hooks, tags:
|
|
326
|
+
props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
326
327
|
});
|
|
327
328
|
}
|
|
328
329
|
}
|
|
329
330
|
updateTagContainerVisible() {
|
|
330
|
-
var
|
|
331
|
-
(
|
|
331
|
+
var t;
|
|
332
|
+
(t = this.TagContainerSvelte) == null || t.$set({
|
|
332
333
|
state: this.state,
|
|
333
334
|
temporaryState: this.temporaryState,
|
|
334
335
|
withAnimation: this.store.visibleWithAnimation
|
|
335
|
-
}), this.filterCSS3DTag.forEach((
|
|
336
|
+
}), this.filterCSS3DTag.forEach((e) => {
|
|
336
337
|
var i, o, n, a, s;
|
|
337
|
-
(a = (o = (i =
|
|
338
|
+
(a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.css3DInstance) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (s = e.tag3DContentSvelte) == null || s.svelteApp.$set({
|
|
338
339
|
state: this.state,
|
|
339
340
|
temporaryState: this.temporaryState,
|
|
340
341
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -342,18 +343,18 @@ class ei extends O {
|
|
|
342
343
|
});
|
|
343
344
|
}
|
|
344
345
|
disposeAllCSS3DContainer() {
|
|
345
|
-
for (const [
|
|
346
|
-
|
|
346
|
+
for (const [t, e] of this.store.css3DRenderDisposer)
|
|
347
|
+
e == null || e.forEach((i) => i == null ? void 0 : i());
|
|
347
348
|
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
348
349
|
}
|
|
349
350
|
clearUnusedPanelTag() {
|
|
350
|
-
this.filter2DPointTag.forEach((
|
|
351
|
-
var
|
|
352
|
-
(
|
|
351
|
+
this.filter2DPointTag.forEach((t) => {
|
|
352
|
+
var e;
|
|
353
|
+
(e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
|
|
353
354
|
});
|
|
354
|
-
for (const [
|
|
355
|
-
const i = this.getTagById(
|
|
356
|
-
(!i || i.stickType === "2DPoint") && (
|
|
355
|
+
for (const [t, e] of this.store.css3DRenderDisposer) {
|
|
356
|
+
const i = this.getTagById(t);
|
|
357
|
+
(!i || i.stickType === "2DPoint") && (e == null || e.forEach((o) => o == null ? void 0 : o()), this.store.css3DRenderDisposer.delete(t));
|
|
357
358
|
}
|
|
358
359
|
}
|
|
359
360
|
}
|