@realsee/dnalogel 2.6.7-dev.2 → 2.6.7-dev.4
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/index.cjs.js +15 -15
- package/dist/index.js +254 -259
- package/dist/index.umd.js +9 -9
- 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 +46 -46
- 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/index.js +104 -105
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/PanoTagPlugin/tag.config.js +1 -0
- package/libs/index.js +100 -101
- 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.4</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.6.7-dev.4"/><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.4</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.4</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/73b9a25/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.4</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.4</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.6.7-dev.4"/><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.4</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.4</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/73b9a25/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.4</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">
|
|
@@ -2,42 +2,42 @@ 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 A = (h,
|
|
6
|
-
for (var e in
|
|
7
|
-
N.call(
|
|
5
|
+
var A = (h, d, e) => d in h ? x(h, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[d] = e, c = (h, d) => {
|
|
6
|
+
for (var e in d || (d = {}))
|
|
7
|
+
N.call(d, e) && A(h, e, d[e]);
|
|
8
8
|
if (R)
|
|
9
|
-
for (var e of R(
|
|
10
|
-
W.call(
|
|
9
|
+
for (var e of R(d))
|
|
10
|
+
W.call(d, e) && A(h, e, d[e]);
|
|
11
11
|
return h;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, g = (h, d) => G(h, V(d));
|
|
13
|
+
var l = (h, d, e) => (A(h, typeof d != "symbol" ? d + "" : d, e), e);
|
|
14
|
+
var f = (h, d, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (a) {
|
|
19
|
+
i(a);
|
|
20
20
|
}
|
|
21
21
|
}, o = (r) => {
|
|
22
22
|
try {
|
|
23
23
|
n(e.throw(r));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (a) {
|
|
25
|
+
i(a);
|
|
26
26
|
}
|
|
27
27
|
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
|
|
28
|
-
n((e = e.apply(h,
|
|
28
|
+
n((e = e.apply(h, d)).next());
|
|
29
29
|
});
|
|
30
30
|
import { Subscribe as z } from "@realsee/five";
|
|
31
|
-
import { Group as
|
|
32
|
-
import
|
|
31
|
+
import { Group as O, Vector3 as C, Matrix4 as D, Quaternion as _ } from "three";
|
|
32
|
+
import v from "object-assign-deep";
|
|
33
33
|
import { writable as $ } from "../../vendor/svelte/store/index.js";
|
|
34
34
|
import q from "../Components/TagContainer.js";
|
|
35
35
|
import H from "../Components/Tag/index.js";
|
|
36
|
-
import { arrayPositionToVector3 as
|
|
36
|
+
import { arrayPositionToVector3 as b } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
37
37
|
import { addDebugPoints as J } from "../utils/addDebugPoints.js";
|
|
38
|
-
import { planeNormal as
|
|
38
|
+
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
39
39
|
import "@realsee/five/gltf-loader";
|
|
40
|
-
import { isMediaModelTag as
|
|
40
|
+
import { isMediaModelTag as m } 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";
|
|
@@ -46,9 +46,8 @@ import { resizeObserver as I } from "../utils/resizeObserver.js";
|
|
|
46
46
|
import { TagComputer as Y } from "./TagComputer.js";
|
|
47
47
|
import { CSS3DRenderPlugin as Z } from "../../CSS3DRenderPlugin/index.js";
|
|
48
48
|
import ee from "../utils/tag/format.js";
|
|
49
|
-
import { generateBlankAudio as
|
|
49
|
+
import { generateBlankAudio as j, AudioNamespace as L } 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,67 +123,67 @@ import "./TagCacheController.js";
|
|
|
124
123
|
import "../../base/BasePlugin.js";
|
|
125
124
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
126
125
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
127
|
-
const
|
|
128
|
-
class
|
|
126
|
+
const U = "2.0.10", S = `DnalogelPlugin-PanoTagPlugin@${U}`, ie = !1, qt = (h) => `${S}--${h}`;
|
|
127
|
+
class Ht extends Y {
|
|
129
128
|
constructor(e, t) {
|
|
130
129
|
super(e);
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
130
|
+
l(this, "version", U);
|
|
131
|
+
l(this, "state", { enabled: !0, visible: !0 });
|
|
132
|
+
l(this, "params");
|
|
133
|
+
l(this, "debug");
|
|
134
|
+
l(this, "css3DRenderPlugin");
|
|
135
|
+
l(this, "TagContainerSvelte");
|
|
136
|
+
l(this, "temporaryState", { visible: !0 });
|
|
137
|
+
l(this, "mediaStore", $({
|
|
139
138
|
currentMediaElement: null
|
|
140
139
|
}));
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
l(this, "group", new O());
|
|
141
|
+
l(this, "gltfObjectGroup", new O());
|
|
142
|
+
l(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
|
|
143
|
+
l(this, "store", {
|
|
145
144
|
disposers: [],
|
|
146
145
|
disposed: !1,
|
|
147
146
|
resizeObserverDisposerAdding: !1,
|
|
148
147
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
149
148
|
});
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
e.data =
|
|
149
|
+
l(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
150
|
+
l(this, "changeTagModel", (e, t) => f(this, null, function* () {
|
|
151
|
+
e.data = v({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
153
152
|
}));
|
|
154
|
-
|
|
153
|
+
l(this, "disposedErrorLog", () => {
|
|
155
154
|
console.error(`${S} is disposed`);
|
|
156
155
|
});
|
|
157
|
-
|
|
156
|
+
l(this, "handleFiveInitAnimationEnded", () => {
|
|
158
157
|
const e = this.five.getCurrentState().mode;
|
|
159
158
|
this.tags.forEach((t) => {
|
|
160
|
-
t.state.visible = this.getVisible(t),
|
|
159
|
+
t.state.visible = this.getVisible(t), m(t) && e === "Panorama" && this.changeTagMode(t, "front");
|
|
161
160
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
162
161
|
});
|
|
163
|
-
|
|
162
|
+
l(this, "handleFiveModelShownFloorChange", () => {
|
|
164
163
|
this.tags.forEach((e) => {
|
|
165
|
-
!
|
|
164
|
+
!m(e) || (e.state.visible = this.checkFloorIndex(e));
|
|
166
165
|
}), this.updateRenderAllTags();
|
|
167
166
|
});
|
|
168
|
-
|
|
167
|
+
l(this, "loadModel", (e) => f(this, null, function* () {
|
|
169
168
|
var r;
|
|
170
169
|
const t = e.data.modelUrl;
|
|
171
170
|
if (console.log("\u{1F436} ==> url:", t), !t)
|
|
172
171
|
return;
|
|
173
|
-
const i = te(t).then((
|
|
172
|
+
const i = te(t).then((a) => Object.assign(a.scene, { customID: e.id, isTagModel: !0 }));
|
|
174
173
|
e.model = { promise: i };
|
|
175
174
|
const s = yield i;
|
|
176
175
|
if (((r = e.model) == null ? void 0 : r.promise) !== i || (e.model.object = s, !this.tags.includes(e)))
|
|
177
176
|
return;
|
|
178
|
-
s.visible = e.state.visible, new
|
|
179
|
-
const n = this.gltfObjectGroup.children.find((
|
|
177
|
+
s.visible = e.state.visible, new D().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), this.checkFloorIndex(e) || (s.visible = !1);
|
|
178
|
+
const n = this.gltfObjectGroup.children.find((a) => a.customID === e.id);
|
|
180
179
|
return n && this.gltfObjectGroup.remove(n), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
|
|
181
180
|
}));
|
|
182
|
-
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params =
|
|
181
|
+
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = c({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, j(1, { namespace: L.GetAudioDuration }), j(1, { namespace: L.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
|
|
183
182
|
}
|
|
184
183
|
load(e, t) {
|
|
185
|
-
return
|
|
184
|
+
return f(this, null, function* () {
|
|
186
185
|
var s, o;
|
|
187
|
-
this.clearTags(), console.log(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config =
|
|
186
|
+
this.clearTags(), console.log(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = v({}, this.config, {
|
|
188
187
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
189
188
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
190
189
|
});
|
|
@@ -199,15 +198,15 @@ class Qt extends Y {
|
|
|
199
198
|
});
|
|
200
199
|
}
|
|
201
200
|
addTag(e, t) {
|
|
202
|
-
return
|
|
201
|
+
return f(this, null, function* () {
|
|
203
202
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
204
|
-
const n = this.getTagConfig(o), r =
|
|
205
|
-
state:
|
|
203
|
+
const n = this.getTagConfig(o), r = g(c({}, o), {
|
|
204
|
+
state: c({ 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 m(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;
|
|
@@ -216,16 +215,16 @@ class Qt extends Y {
|
|
|
216
215
|
});
|
|
217
216
|
}
|
|
218
217
|
changeConfig(e, t = !0) {
|
|
219
|
-
t ? this.config =
|
|
218
|
+
t ? this.config = v({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
220
219
|
}
|
|
221
220
|
changeGlobalConfig(e, t = !0) {
|
|
222
|
-
t ? this.config.globalConfig =
|
|
221
|
+
t ? this.config.globalConfig = v({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
223
222
|
}
|
|
224
223
|
clearTags() {
|
|
225
224
|
this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
226
225
|
}
|
|
227
226
|
show(e) {
|
|
228
|
-
return
|
|
227
|
+
return f(this, null, function* () {
|
|
229
228
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
230
229
|
if (this.store.disposed)
|
|
231
230
|
return this.disposedErrorLog();
|
|
@@ -233,7 +232,7 @@ class Qt extends Y {
|
|
|
233
232
|
});
|
|
234
233
|
}
|
|
235
234
|
hide(e) {
|
|
236
|
-
return
|
|
235
|
+
return f(this, null, function* () {
|
|
237
236
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
238
237
|
if (this.store.disposed)
|
|
239
238
|
return this.disposedErrorLog();
|
|
@@ -255,14 +254,14 @@ class Qt extends Y {
|
|
|
255
254
|
dispose() {
|
|
256
255
|
var e, t, i, s, o, n;
|
|
257
256
|
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((r) => {
|
|
258
|
-
var
|
|
259
|
-
return (
|
|
257
|
+
var a;
|
|
258
|
+
return (a = r.tag3DContentSvelte) == null ? void 0 : a.svelteApp.$destroy();
|
|
260
259
|
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (n = (o = this.store).resizeObserverDisposer) == null || n.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.hooks.emit("dispose");
|
|
261
260
|
}
|
|
262
261
|
setState(e, t) {
|
|
263
262
|
if (this.store.disposed)
|
|
264
263
|
return this.disposedErrorLog();
|
|
265
|
-
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o =
|
|
264
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = c({}, this.state);
|
|
266
265
|
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
267
266
|
}
|
|
268
267
|
changeUnfoldedById(e, t) {
|
|
@@ -276,18 +275,18 @@ class Qt extends Y {
|
|
|
276
275
|
}
|
|
277
276
|
changeTagNormalById(e, t) {
|
|
278
277
|
const i = this.getTagById(e);
|
|
279
|
-
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal =
|
|
278
|
+
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = b(t), this.updateRenderPlaneTag());
|
|
280
279
|
}
|
|
281
280
|
changeDataById(e, t, i = !0) {
|
|
282
281
|
const s = this.getTagById(e);
|
|
283
|
-
!s || (i ? s.data =
|
|
282
|
+
!s || (i ? s.data = v({}, s.data, t) : s.data = c(c({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
|
|
284
283
|
}
|
|
285
284
|
changeStickTypeById(e, t, i = !0) {
|
|
286
285
|
this.changeTagById(e, t, i);
|
|
287
286
|
}
|
|
288
287
|
changeTagById(e, t, i = !0) {
|
|
289
288
|
const s = this.getTagById(e);
|
|
290
|
-
!t || (i ?
|
|
289
|
+
!t || (i ? v(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = b(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
|
|
291
290
|
}
|
|
292
291
|
destroyTagById(e) {
|
|
293
292
|
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
@@ -303,15 +302,15 @@ 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 = m(e) ? e.data.mediaPosition : e.position;
|
|
307
306
|
t.updateWorldMatrix(!1, !1);
|
|
308
|
-
const n = t.matrixWorld, r = new
|
|
307
|
+
const n = t.matrixWorld, r = new C().fromArray(o[0]), a = new C().fromArray(o[2]), p = new C().lerpVectors(r, a, 0.5).add(new C(0, 0, 5e-4)), u = new D().setPosition(p), B = new D().makeScale(i, i, i), y = new D().multiply(n).multiply(u).multiply(B);
|
|
309
308
|
y.decompose(s.position, s.quaternion, s.scale);
|
|
310
|
-
const
|
|
311
|
-
!
|
|
309
|
+
const T = s.opacityMesh;
|
|
310
|
+
!T || y.decompose(T.position, T.quaternion, T.scale);
|
|
312
311
|
}
|
|
313
312
|
setVisibleAndUnfolded() {
|
|
314
|
-
return
|
|
313
|
+
return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
315
314
|
if (!!this.isPanorama)
|
|
316
315
|
return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
|
|
317
316
|
setTimeout(() => {
|
|
@@ -337,9 +336,9 @@ class Qt extends Y {
|
|
|
337
336
|
});
|
|
338
337
|
}
|
|
339
338
|
addEventListener() {
|
|
340
|
-
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this),
|
|
341
|
-
return this.handleFiveModeChange(
|
|
342
|
-
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived",
|
|
339
|
+
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), a = this.loadVideoFirstFrame.bind(this), p = this.clickhandler.bind(this), u = this.five.currentMode;
|
|
340
|
+
return this.handleFiveModeChange(u), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", a), t.on("click", p), () => {
|
|
341
|
+
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", a), t.off("click", p), this.store.eventListenerDisposer = void 0;
|
|
343
342
|
};
|
|
344
343
|
}
|
|
345
344
|
loadVideoFirstFrame() {
|
|
@@ -375,13 +374,13 @@ class Qt extends Y {
|
|
|
375
374
|
}
|
|
376
375
|
handleFiveModeChange(e) {
|
|
377
376
|
this.tags.forEach((t) => {
|
|
378
|
-
t.state.visible = this.getVisible(t),
|
|
377
|
+
t.state.visible = this.getVisible(t), m(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 = g(c({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = g(c({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
|
|
385
384
|
}), this.updateTagContainerVisible();
|
|
386
385
|
}
|
|
387
386
|
temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
|
|
@@ -427,9 +426,9 @@ class Qt extends Y {
|
|
|
427
426
|
this.updateRenderPointTag();
|
|
428
427
|
}
|
|
429
428
|
handleFivePanoArrived() {
|
|
430
|
-
return
|
|
429
|
+
return f(this, null, function* () {
|
|
431
430
|
yield this.setVisibleAndUnfolded(), this.setModelMedialVisibleByPanoIndex(), this.tags.forEach((e) => {
|
|
432
|
-
e.temporaryState =
|
|
431
|
+
e.temporaryState = g(c({}, e.temporaryState), { visible: !0 });
|
|
433
432
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
|
|
434
433
|
});
|
|
435
434
|
}
|
|
@@ -460,64 +459,64 @@ class Qt extends Y {
|
|
|
460
459
|
}
|
|
461
460
|
updateRenderPlaneTag() {
|
|
462
461
|
this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag(), ...this.filterModelTag()]).forEach((t) => {
|
|
463
|
-
var i;
|
|
462
|
+
var i, s, o;
|
|
464
463
|
if (t.tag3DContentSvelte) {
|
|
465
|
-
const { svelteApp:
|
|
466
|
-
if (
|
|
464
|
+
const { svelteApp: n, domContainer: r, initialNormal: a, currentNormal: p } = t.tag3DContentSvelte;
|
|
465
|
+
if (n.$set({
|
|
467
466
|
tag: t,
|
|
468
467
|
hooks: this.hooks,
|
|
469
468
|
state: this.state,
|
|
470
469
|
temporaryState: this.temporaryState
|
|
471
|
-
}), !
|
|
472
|
-
const
|
|
473
|
-
|
|
470
|
+
}), !a.equals(p)) {
|
|
471
|
+
const u = new _().setFromUnitVectors(a, p);
|
|
472
|
+
r.css3DObject.setRotationFromQuaternion(u);
|
|
474
473
|
}
|
|
475
474
|
} else {
|
|
476
475
|
if (((i = t.state) == null ? void 0 : i.visible) === !1)
|
|
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
|
|
479
|
+
const n = (() => t.stickType === "Plane" ? t.position : m(t) ? t.data.mediaPosition : X(
|
|
481
480
|
this.five.camera.position,
|
|
482
|
-
|
|
483
|
-
|
|
481
|
+
b(t.position),
|
|
482
|
+
b(t.normal)
|
|
484
483
|
))();
|
|
485
|
-
if (!
|
|
484
|
+
if (!n)
|
|
486
485
|
return;
|
|
487
|
-
const
|
|
486
|
+
const r = function() {
|
|
488
487
|
if (t.normal)
|
|
489
|
-
return
|
|
488
|
+
return b(t.normal);
|
|
490
489
|
if (t.stickType === "Plane")
|
|
491
|
-
return
|
|
490
|
+
return E(t.position);
|
|
492
491
|
if (t.contentType === "MediaModel")
|
|
493
|
-
return
|
|
492
|
+
return E(n);
|
|
494
493
|
}();
|
|
495
|
-
if (!o)
|
|
496
|
-
return;
|
|
497
|
-
const n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
|
|
498
494
|
if (!r)
|
|
499
495
|
return;
|
|
500
|
-
this.
|
|
496
|
+
const a = this.getTagConfig(t).tag3DConfig, p = this.css3DRenderPlugin.create3DDomContainer(n, a);
|
|
497
|
+
if (!p)
|
|
498
|
+
return;
|
|
499
|
+
this.store.css3DRenderDisposer.set(t.id, p.dispose), t.tag3DContentSvelte = {
|
|
501
500
|
svelteApp: new H({
|
|
502
|
-
target:
|
|
501
|
+
target: p.container,
|
|
503
502
|
props: {
|
|
504
503
|
tag: t,
|
|
505
504
|
hooks: this.hooks,
|
|
506
|
-
state: t.contentType === "MediaModel" ?
|
|
505
|
+
state: t.contentType === "MediaModel" ? g(c({}, this.state), { visible: !1 }) : this.state,
|
|
507
506
|
mediaStore: this.mediaStore,
|
|
508
507
|
temporaryState: this.temporaryState
|
|
509
508
|
}
|
|
510
509
|
}),
|
|
511
|
-
domContainer:
|
|
512
|
-
initialNormal:
|
|
513
|
-
currentNormal:
|
|
514
|
-
};
|
|
510
|
+
domContainer: p,
|
|
511
|
+
initialNormal: r,
|
|
512
|
+
currentNormal: r
|
|
513
|
+
}, m(t) && ((s = t.model) == null ? void 0 : s.object) && this.updateTagCss3DObjectMatrix(t, (o = t.model) == null ? void 0 : o.object);
|
|
515
514
|
}
|
|
516
515
|
}), this.checkPanelTag();
|
|
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(m).forEach((i) => {
|
|
521
520
|
var s;
|
|
522
521
|
(s = i.model) == null || s.promise.then((o) => {
|
|
523
522
|
o.visible = i.state.visible;
|
|
@@ -540,8 +539,8 @@ class Qt extends Y {
|
|
|
540
539
|
}
|
|
541
540
|
}
|
|
542
541
|
addMediaModelTag(e) {
|
|
543
|
-
return
|
|
544
|
-
const t = e.filter(
|
|
542
|
+
return f(this, null, function* () {
|
|
543
|
+
const t = e.filter(m).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
|
};
|