@realsee/dnalogel 2.6.7-dev.1 → 2.6.7-dev.2
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 +1 -1
- package/dist/index.js +25 -12
- package/dist/index.umd.js +1 -1
- 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 +20 -20
- 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
|
@@ -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.2</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.6.7-dev.2"/><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.2</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.2</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/a72f900/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.2</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.2</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.6.7-dev.2"/><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.2</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.2</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/a72f900/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.2</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";
|
|
@@ -124,7 +124,7 @@ import "./TagCacheController.js";
|
|
|
124
124
|
import "../../base/BasePlugin.js";
|
|
125
125
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
126
126
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
127
|
-
const j = "2.0.10",
|
|
127
|
+
const j = "2.0.10", S = `DnalogelPlugin-PanoTagPlugin@${j}`, se = !1, Jt = (h) => `${S}--${h}`;
|
|
128
128
|
class Qt extends Y {
|
|
129
129
|
constructor(e, t) {
|
|
130
130
|
super(e);
|
|
@@ -152,17 +152,17 @@ class Qt extends Y {
|
|
|
152
152
|
e.data = u({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
153
153
|
}));
|
|
154
154
|
d(this, "disposedErrorLog", () => {
|
|
155
|
-
console.error(`${
|
|
155
|
+
console.error(`${S} is disposed`);
|
|
156
156
|
});
|
|
157
157
|
d(this, "handleFiveInitAnimationEnded", () => {
|
|
158
158
|
const e = this.five.getCurrentState().mode;
|
|
159
159
|
this.tags.forEach((t) => {
|
|
160
|
-
t.
|
|
160
|
+
t.state.visible = this.getVisible(t), f(t) && e === "Panorama" && this.changeTagMode(t, "front");
|
|
161
161
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
162
162
|
});
|
|
163
163
|
d(this, "handleFiveModelShownFloorChange", () => {
|
|
164
164
|
this.tags.forEach((e) => {
|
|
165
|
-
!
|
|
165
|
+
!f(e) || (e.state.visible = this.checkFloorIndex(e));
|
|
166
166
|
}), this.updateRenderAllTags();
|
|
167
167
|
});
|
|
168
168
|
d(this, "loadModel", (e) => c(this, null, function* () {
|
|
@@ -184,7 +184,7 @@ class Qt extends Y {
|
|
|
184
184
|
load(e, t) {
|
|
185
185
|
return c(this, null, function* () {
|
|
186
186
|
var s, o;
|
|
187
|
-
this.clearTags(), console.log(
|
|
187
|
+
this.clearTags(), console.log(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = u({}, this.config, {
|
|
188
188
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
189
189
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
190
190
|
});
|
|
@@ -201,13 +201,13 @@ class Qt extends Y {
|
|
|
201
201
|
addTag(e, t) {
|
|
202
202
|
return c(this, null, function* () {
|
|
203
203
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
204
|
-
const n = this.getTagConfig(o), r =
|
|
204
|
+
const n = this.getTagConfig(o), r = m(p({}, o), {
|
|
205
205
|
state: p({ visible: void 0, unfolded: se }, n.initialState),
|
|
206
206
|
hooks: new z(),
|
|
207
207
|
clickable: n.clickable,
|
|
208
208
|
mergedConfig: n
|
|
209
209
|
});
|
|
210
|
-
return
|
|
210
|
+
return f(o) && (r.temporaryState = { visible: !1 }), r;
|
|
211
211
|
}).filter((o) => o.position);
|
|
212
212
|
return s.forEach(ee), this.tags.push(...s), Q(this.five).then(() => {
|
|
213
213
|
var o, n, r;
|
|
@@ -303,7 +303,7 @@ class Qt extends Y {
|
|
|
303
303
|
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
304
|
if (!s)
|
|
305
305
|
return;
|
|
306
|
-
const o =
|
|
306
|
+
const o = f(e) ? e.data.mediaPosition : e.position;
|
|
307
307
|
t.updateWorldMatrix(!1, !1);
|
|
308
308
|
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
309
|
y.decompose(s.position, s.quaternion, s.scale);
|
|
@@ -375,13 +375,13 @@ class Qt extends Y {
|
|
|
375
375
|
}
|
|
376
376
|
handleFiveModeChange(e) {
|
|
377
377
|
this.tags.forEach((t) => {
|
|
378
|
-
t.
|
|
378
|
+
t.state.visible = this.getVisible(t), f(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
|
|
379
379
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
380
380
|
}
|
|
381
381
|
handleFiveWantsMoveToPano() {
|
|
382
382
|
this.tags.forEach((e) => {
|
|
383
383
|
const t = this.getTagConfig(e);
|
|
384
|
-
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState =
|
|
384
|
+
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
385
|
}), this.updateTagContainerVisible();
|
|
386
386
|
}
|
|
387
387
|
temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
|
|
@@ -429,7 +429,7 @@ class Qt extends Y {
|
|
|
429
429
|
handleFivePanoArrived() {
|
|
430
430
|
return c(this, null, function* () {
|
|
431
431
|
yield this.setVisibleAndUnfolded(), this.setModelMedialVisibleByPanoIndex(), this.tags.forEach((e) => {
|
|
432
|
-
e.temporaryState =
|
|
432
|
+
e.temporaryState = m(p({}, e.temporaryState), { visible: !0 });
|
|
433
433
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
|
|
434
434
|
});
|
|
435
435
|
}
|
|
@@ -503,7 +503,7 @@ class Qt extends Y {
|
|
|
503
503
|
props: {
|
|
504
504
|
tag: t,
|
|
505
505
|
hooks: this.hooks,
|
|
506
|
-
state: t.contentType === "MediaModel" ?
|
|
506
|
+
state: t.contentType === "MediaModel" ? m(p({}, this.state), { visible: !1 }) : this.state,
|
|
507
507
|
mediaStore: this.mediaStore,
|
|
508
508
|
temporaryState: this.temporaryState
|
|
509
509
|
}
|
|
@@ -517,7 +517,7 @@ class Qt extends Y {
|
|
|
517
517
|
}
|
|
518
518
|
updateRenderModelTag() {
|
|
519
519
|
const e = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
520
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(
|
|
520
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(f).forEach((i) => {
|
|
521
521
|
var s;
|
|
522
522
|
(s = i.model) == null || s.promise.then((o) => {
|
|
523
523
|
o.visible = i.state.visible;
|
|
@@ -541,7 +541,7 @@ class Qt extends Y {
|
|
|
541
541
|
}
|
|
542
542
|
addMediaModelTag(e) {
|
|
543
543
|
return c(this, null, function* () {
|
|
544
|
-
const t = e.filter(
|
|
544
|
+
const t = e.filter(f).map(this.loadModel);
|
|
545
545
|
yield Promise.all(t), this.five.getCurrentState().mode === "Panorama" && this.setModelMedialVisibleByPanoIndex(), this.updateRenderAllTags();
|
|
546
546
|
});
|
|
547
547
|
}
|
|
@@ -27,12 +27,12 @@ class k {
|
|
|
27
27
|
if (this.getIntersectObject(e))
|
|
28
28
|
return !1;
|
|
29
29
|
});
|
|
30
|
-
var
|
|
31
|
-
this.hooks = (
|
|
30
|
+
var a, d;
|
|
31
|
+
this.hooks = (a = e.sharedHooks) != null ? a : new u(), this.camera = e.camera, this.model = e.model, this.originObject3D = e.originObject3D, this.helperObject3D = e.helperObject3D, this.container = e.container, this.scene = e.scene, this.domEvents = new y(e.camera, e.container), this.onRender = (d = e.onRender) != null ? d : () => {
|
|
32
32
|
}, this.offset = t == null ? void 0 : t.offset, this.initialHelperPosition(), this.initialHelperQuaternion(), this.enable();
|
|
33
|
-
const h = (...c) => this.onSetOriginObjectScale(...c),
|
|
34
|
-
this.hooks.on("setObjectScale", h), this.hooks.on("setObjectRotate",
|
|
35
|
-
this.hooks.off("setObjectScale", h), this.hooks.off("setObjectRotate",
|
|
33
|
+
const h = (...c) => this.onSetOriginObjectScale(...c), n = (...c) => this.onSetOriginObjectRotate(...c), r = (...c) => this.onSetOriginObjectPosition(...c), i = (...c) => this.onApplyOriginObjectScale(...c), l = (...c) => this.onApplyOriginObjectRotate(...c), O = (...c) => this.onApplyOriginObjectPosition(...c);
|
|
34
|
+
this.hooks.on("setObjectScale", h), this.hooks.on("setObjectRotate", n), this.hooks.on("setObjectPosition", r), this.hooks.on("applyObjectPosition", O), this.hooks.on("applyObjectRotate", l), this.hooks.on("applyObjectScale", i), this.disposers.push(() => {
|
|
35
|
+
this.hooks.off("setObjectScale", h), this.hooks.off("setObjectRotate", n), this.hooks.off("setObjectPosition", r), this.hooks.off("applyObjectPosition", O), this.hooks.off("applyObjectRotate", l), this.hooks.off("applyObjectScale", i);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
initialHelperPosition() {
|
|
@@ -95,34 +95,34 @@ class k {
|
|
|
95
95
|
}
|
|
96
96
|
updateOffsetByScale(e) {
|
|
97
97
|
if (this.boundingBox && this.offset) {
|
|
98
|
-
const t = this.originObject3D.position, h = new p.Vector3().subVectors(this.boundingBox.max, t).multiply(e).add(t),
|
|
98
|
+
const t = this.originObject3D.position, h = new p.Vector3().subVectors(this.boundingBox.max, t).multiply(e).add(t), n = new p.Vector3().subVectors(this.boundingBox.min, t).multiply(e).add(t), r = this.calculateOffset(this.offset, { min: n, max: h });
|
|
99
99
|
this.helperObject3D.position.copy(r), this.helperObject3D.initialPosition();
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
hoverListener(e, t = 16777215, h = 1) {
|
|
103
|
-
const
|
|
104
|
-
for (const i of
|
|
103
|
+
const n = (Array.isArray(e) ? e : [e]).filter(m), r = [];
|
|
104
|
+
for (const i of n)
|
|
105
105
|
if (i instanceof p.Mesh || i instanceof p.Group) {
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
const l = i instanceof p.Group ? i.children.filter((o) => o instanceof p.Mesh) : [i];
|
|
107
|
+
l.forEach((o) => {
|
|
108
|
+
o.__originalColor__ = o.material.color.clone(), o.__originalOpacity__ = o.material.opacity;
|
|
109
109
|
});
|
|
110
110
|
const O = () => {
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
l.forEach((o) => {
|
|
112
|
+
o.material.color.set(t), o.material.opacity = h;
|
|
113
113
|
}), this.render();
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
}, a = () => {
|
|
115
|
+
l.forEach((o) => {
|
|
116
|
+
o.material.color.copy(o.__originalColor__), o.material.opacity = o.__originalOpacity__;
|
|
117
117
|
}), this.render();
|
|
118
118
|
}, d = () => {
|
|
119
119
|
this.isDragging || O();
|
|
120
120
|
}, c = () => {
|
|
121
|
-
this.isDragging ||
|
|
121
|
+
this.isDragging || a();
|
|
122
122
|
};
|
|
123
|
-
for (const
|
|
124
|
-
this.domEvents.addEventListener(
|
|
125
|
-
this.domEvents.removeEventListener(
|
|
123
|
+
for (const o of l)
|
|
124
|
+
this.domEvents.addEventListener(o, "mouseover", d), this.domEvents.addEventListener(o, "mouseout", c), this.hooks.on("moveStart", O), this.hooks.on("moveEnd", a), this.hooks.on("rotateEnd", a), r.push(() => {
|
|
125
|
+
this.domEvents.removeEventListener(o, "mouseover", d), this.domEvents.removeEventListener(o, "mouseout", c), this.hooks.off("moveStart", O), this.hooks.off("moveEnd", a), this.hooks.off("rotateEnd", a);
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
return () => r.forEach((i) => i == null ? void 0 : i());
|
|
@@ -131,41 +131,41 @@ class k {
|
|
|
131
131
|
const t = this.camera.position, h = this.helperObject3D;
|
|
132
132
|
if (!h)
|
|
133
133
|
return;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return o.object;
|
|
134
|
+
const n = this.helperObject3D.raycasterIntersectObject(e)[0];
|
|
135
|
+
if (!n)
|
|
136
|
+
return;
|
|
137
|
+
const r = n;
|
|
138
|
+
if (r.object = h, this.model.intersectRaycaster) {
|
|
139
|
+
const i = this.model.intersectRaycaster(e)[0];
|
|
140
|
+
if (i && i.point.distanceTo(t) < r.point.distanceTo(t))
|
|
141
|
+
return;
|
|
143
142
|
}
|
|
143
|
+
return r.object;
|
|
144
144
|
}
|
|
145
145
|
calculateOffset(e, t) {
|
|
146
|
-
const h = this.originObject3D,
|
|
146
|
+
const h = this.originObject3D, n = new p.Vector3(0, 0, 0);
|
|
147
147
|
if (!e)
|
|
148
|
-
return
|
|
148
|
+
return n;
|
|
149
149
|
const r = () => t || (this.boundingBox ? this.boundingBox : (this.boundingBox = g(h), this.boundingBox));
|
|
150
150
|
if (typeof e.x == "number")
|
|
151
|
-
|
|
151
|
+
n.setX(e.x);
|
|
152
152
|
else if (typeof e.x == "object") {
|
|
153
153
|
const i = r();
|
|
154
|
-
|
|
154
|
+
n.setX((i.max.x - i.min.x) * e.x.percents);
|
|
155
155
|
}
|
|
156
156
|
if (typeof e.y == "number")
|
|
157
|
-
|
|
157
|
+
n.setY(e.y);
|
|
158
158
|
else if (typeof e.y == "object") {
|
|
159
159
|
const i = r();
|
|
160
|
-
|
|
160
|
+
n.setY((i.max.y - i.min.y) * e.y.percents);
|
|
161
161
|
}
|
|
162
162
|
if (typeof e.z == "number")
|
|
163
|
-
|
|
163
|
+
n.setZ(e.z);
|
|
164
164
|
else if (typeof e.z == "object") {
|
|
165
165
|
const i = r();
|
|
166
|
-
|
|
166
|
+
n.setZ((i.max.z - i.min.z) * e.z.percents);
|
|
167
167
|
}
|
|
168
|
-
return
|
|
168
|
+
return n;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
export {
|
|
@@ -20,6 +20,7 @@ export declare abstract class BaseHelper<OriginObject3D extends Object3D = Objec
|
|
|
20
20
|
disable(): void;
|
|
21
21
|
show(): void;
|
|
22
22
|
hide(): void;
|
|
23
|
+
raycasterIntersectObject(raycaster: THREE.Raycaster, intersection?: THREE.Intersection[]): THREE.Intersection[];
|
|
23
24
|
initialPosition(): void;
|
|
24
25
|
initQuaternion(): void;
|
|
25
26
|
applyHelperScaleMatrix4(matrix: THREE.Matrix4, origin?: Vector3): void;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var o = (
|
|
4
|
-
import { Vector3 as a, Object3D as
|
|
5
|
-
class h extends
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var p = (s, r, e) => r in s ? c(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
|
|
3
|
+
var o = (s, r, e) => (p(s, typeof r != "symbol" ? r + "" : r, e), e);
|
|
4
|
+
import { Vector3 as a, Object3D as l } from "three";
|
|
5
|
+
class h extends l {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
8
|
}
|
|
9
9
|
removeFromParent() {
|
|
10
|
-
const
|
|
11
|
-
return
|
|
10
|
+
const r = this.parent;
|
|
11
|
+
return r !== null && r.remove(this), this;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
class n extends h {
|
|
15
|
-
constructor(e,
|
|
16
|
-
var
|
|
15
|
+
constructor(e, t) {
|
|
16
|
+
var i;
|
|
17
17
|
super();
|
|
18
18
|
o(this, "originObject3D");
|
|
19
19
|
o(this, "onRender");
|
|
20
|
-
this.originObject3D = e, this.onRender = (
|
|
20
|
+
this.originObject3D = e, this.onRender = (i = t == null ? void 0 : t.onRender) != null ? i : () => {
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
get helperObject() {
|
|
@@ -38,26 +38,29 @@ class n extends h {
|
|
|
38
38
|
hide() {
|
|
39
39
|
this.visible = !1, this.render();
|
|
40
40
|
}
|
|
41
|
+
raycasterIntersectObject(e, t = []) {
|
|
42
|
+
return e.intersectObject(this, !0, t);
|
|
43
|
+
}
|
|
41
44
|
initialPosition() {
|
|
42
45
|
this.position.add(this.originObject3D.position);
|
|
43
46
|
}
|
|
44
47
|
initQuaternion() {
|
|
45
48
|
this.quaternion.copy(this.originObject3D.quaternion);
|
|
46
49
|
}
|
|
47
|
-
applyHelperScaleMatrix4(e,
|
|
50
|
+
applyHelperScaleMatrix4(e, t) {
|
|
48
51
|
this.scale.applyMatrix4(e);
|
|
49
52
|
}
|
|
50
|
-
setHelperQuaternion(e,
|
|
51
|
-
if (
|
|
52
|
-
const
|
|
53
|
-
this.position.copy(
|
|
53
|
+
setHelperQuaternion(e, t) {
|
|
54
|
+
if (t) {
|
|
55
|
+
const i = new a().subVectors(this.position, t).applyQuaternion(e).add(t);
|
|
56
|
+
this.position.copy(i);
|
|
54
57
|
}
|
|
55
58
|
this.quaternion.copy(e);
|
|
56
59
|
}
|
|
57
|
-
applyHelperQuaternion(e,
|
|
58
|
-
if (
|
|
59
|
-
const
|
|
60
|
-
this.position.copy(
|
|
60
|
+
applyHelperQuaternion(e, t) {
|
|
61
|
+
if (t) {
|
|
62
|
+
const i = new a().subVectors(this.position, t).applyQuaternion(e).add(t);
|
|
63
|
+
this.position.copy(i);
|
|
61
64
|
}
|
|
62
65
|
this.applyQuaternion(e);
|
|
63
66
|
}
|
|
@@ -69,16 +72,16 @@ class x extends n {
|
|
|
69
72
|
}
|
|
70
73
|
class y extends n {
|
|
71
74
|
}
|
|
72
|
-
class
|
|
75
|
+
class j extends n {
|
|
73
76
|
}
|
|
74
77
|
class d extends n {
|
|
75
78
|
}
|
|
76
|
-
class
|
|
79
|
+
class m extends d {
|
|
77
80
|
}
|
|
78
81
|
export {
|
|
79
82
|
y as BoundingBoxHelperAbstract,
|
|
80
83
|
x as MoveHelperAbstract,
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
m as RectangleScaleHelperAbstract,
|
|
85
|
+
j as RotateHelperAbstract,
|
|
83
86
|
d as ScaleHelperAbstract
|
|
84
87
|
};
|
|
@@ -6,6 +6,8 @@ export declare class BoundingBoxHelper<T extends THREE.Object3D = THREE.Object3D
|
|
|
6
6
|
private originObject;
|
|
7
7
|
private positionAttribute;
|
|
8
8
|
constructor(originObject: T);
|
|
9
|
+
raycasterIntersectObject(raycaster: THREE.Raycaster, intersection: THREE.Intersection[]): THREE.Intersection[];
|
|
10
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
9
11
|
private update;
|
|
10
12
|
private createOutline;
|
|
11
13
|
private createBox;
|