@realsee/dnalogel 2.3.3 → 2.3.5
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/ModelViewPlugin/Plugin.d.ts +8 -0
- package/dist/index.cjs.js +17 -17
- package/dist/index.js +1876 -1866
- package/dist/index.umd.js +17 -17
- 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 +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- 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 +12 -12
- 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/LinkType.html +7 -7
- 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/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- 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/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.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 +57 -9
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- 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 +11 -11
- 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/PointJson.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/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- 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/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.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/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.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/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/PointTag.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/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/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/ModelViewPlugin/Plugin.d.ts +8 -0
- package/libs/ModelViewPlugin/Plugin.js +83 -73
- package/libs/PanoTagPlugin/Components/Common/Text.js +33 -33
- package/package.json +15 -14
|
@@ -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>VERSION | 如视看房插件合集 - v2.3.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>VERSION | 如视看房插件合集 - v2.3.5</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.3.5"/><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,18 +6,18 @@
|
|
|
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.3.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.3.5</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.3.
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.3.5</a></li>
|
|
16
16
|
<li><a href="VERSION.html">VERSION</a></li></ul>
|
|
17
17
|
<h1>Variable VERSION<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature">VERSION<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"v1.0.0"</span><span class="tsd-signature-symbol"> = 'v1.0.0'</span></div><aside class="tsd-sources">
|
|
19
19
|
<ul>
|
|
20
|
-
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/
|
|
20
|
+
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/33a1ab0/plugins/src/Object3DHelperPlugin/Controller.ts#L18">plugins/src/Object3DHelperPlugin/Controller.ts:18</a></li></ul></aside></div>
|
|
21
21
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
22
22
|
<div class="tsd-navigation settings">
|
|
23
23
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<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>
|
|
35
35
|
<div class="tsd-accordion-details">
|
|
36
36
|
<ul>
|
|
37
|
-
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.3.
|
|
37
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.3.5</a>
|
|
38
38
|
<ul>
|
|
39
39
|
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
40
40
|
<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>itemLabelPluginServerParams | 如视看房插件合集 - v2.3.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>itemLabelPluginServerParams | 如视看房插件合集 - v2.3.5</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.3.5"/><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.3.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.3.5</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.3.
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.3.5</a></li>
|
|
16
16
|
<li><a href="itemLabelPluginServerParams.html">itemLabelPluginServerParams</a></li></ul>
|
|
17
17
|
<h1>Variable itemLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature">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/33a1ab0/plugins/src/ItemLabelPlugin/index.ts#L7">plugins/src/ItemLabelPlugin/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.3.
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.3.5</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>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.3.
|
|
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.3.5</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.3.5"/><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.3.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.3.5</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.3.
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.3.5</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/33a1ab0/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.3.
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.3.5</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.3.
|
|
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.3.5</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.3.5"/><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.3.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.3.5</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.3.
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.3.5</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/33a1ab0/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.3.
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.3.5</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">
|
|
@@ -7,6 +7,11 @@ export interface Config {
|
|
|
7
7
|
lockedLongitude: number | null;
|
|
8
8
|
}
|
|
9
9
|
export interface ModelViewPluginExportType {
|
|
10
|
+
enable: () => void;
|
|
11
|
+
disable: () => void;
|
|
12
|
+
getCurrentState: () => {
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
};
|
|
10
15
|
appendTo: (element: HTMLElement, size?: {
|
|
11
16
|
width?: number;
|
|
12
17
|
height?: number;
|
|
@@ -19,6 +24,9 @@ export interface ModelViewPluginExportType {
|
|
|
19
24
|
}
|
|
20
25
|
export interface ModelViewPluginParameterType {
|
|
21
26
|
config: Config;
|
|
27
|
+
initialState: {
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
};
|
|
22
30
|
}
|
|
23
31
|
/**
|
|
24
32
|
* Five 模型插件
|
|
@@ -1,107 +1,117 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
|
|
10
|
-
return
|
|
1
|
+
var T = Object.defineProperty;
|
|
2
|
+
var E = Object.getOwnPropertySymbols;
|
|
3
|
+
var U = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var N = (n, i, r) => i in n ? T(n, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[i] = r, y = (n, i) => {
|
|
5
|
+
for (var r in i || (i = {}))
|
|
6
|
+
U.call(i, r) && N(n, r, i[r]);
|
|
7
|
+
if (E)
|
|
8
|
+
for (var r of E(i))
|
|
9
|
+
V.call(i, r) && N(n, r, i[r]);
|
|
10
|
+
return n;
|
|
11
11
|
};
|
|
12
|
-
import { Camera as
|
|
13
|
-
import * as
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
import { Camera as H } from "@realsee/five";
|
|
13
|
+
import * as d from "three";
|
|
14
|
+
const J = (n, i) => {
|
|
15
|
+
var k, P;
|
|
16
|
+
let r = (P = (k = i == null ? void 0 : i.initialState) == null ? void 0 : k.enabled) != null ? P : !0, g = !1, h = !0, a = null;
|
|
17
|
+
const f = y(y({}, {
|
|
17
18
|
lookAtCurrentCamera: !1,
|
|
18
19
|
lockedPanoIndex: null,
|
|
19
20
|
lockedLatitude: null,
|
|
20
21
|
lockedLongitude: null
|
|
21
|
-
}), i == null ? void 0 : i.config),
|
|
22
|
-
let
|
|
22
|
+
}), i == null ? void 0 : i.config), s = new d.Scene(), m = new H(60);
|
|
23
|
+
let c = new d.Object3D(), b, M;
|
|
23
24
|
{
|
|
24
|
-
const e = new
|
|
25
|
-
e.position.copy(new
|
|
25
|
+
const e = new d.DirectionalLight(16777215, 0.5);
|
|
26
|
+
e.position.copy(new d.Vector3(1, 1, 1)), s.add(e);
|
|
26
27
|
}
|
|
27
28
|
{
|
|
28
|
-
const e = new
|
|
29
|
-
|
|
29
|
+
const e = new d.DirectionalLight(16777215, 0.3);
|
|
30
|
+
s.add(e);
|
|
30
31
|
}
|
|
31
32
|
{
|
|
32
|
-
const e = new
|
|
33
|
-
|
|
33
|
+
const e = new d.AmbientLight(16777215, 0.3);
|
|
34
|
+
s.add(e);
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
+
s.add(c);
|
|
36
37
|
const C = () => {
|
|
37
|
-
if (
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}), l.remove(m), m = new a.Object3D(), l.add(m), p();
|
|
43
|
-
}, k = () => {
|
|
44
|
-
h = E(o.model, f.fov, f.aspect), w = o.model.bounding.getCenter(new a.Vector3());
|
|
45
|
-
function e(n) {
|
|
46
|
-
const t = n.clone();
|
|
38
|
+
if (g)
|
|
39
|
+
return;
|
|
40
|
+
b = S(n.model, m.fov, m.aspect), M = n.model.bounding.getCenter(new d.Vector3()), s.remove(c), c = u(n.model), s.add(c), g = !0, p();
|
|
41
|
+
function e(o) {
|
|
42
|
+
const t = o.clone();
|
|
47
43
|
return t.uniforms.modelAlpha.value = 1, t.uniforms.map.value && (t.uniforms.map.value.needsUpdate = !0), t;
|
|
48
44
|
}
|
|
49
|
-
function
|
|
50
|
-
if (
|
|
51
|
-
const t =
|
|
52
|
-
return new
|
|
53
|
-
} else if (
|
|
54
|
-
const t = new
|
|
55
|
-
return
|
|
45
|
+
function u(o) {
|
|
46
|
+
if (o instanceof d.Mesh) {
|
|
47
|
+
const t = o.geometry, l = Array.isArray(o.material) ? o.material.map(e) : e(o.material);
|
|
48
|
+
return new d.Mesh(t, l);
|
|
49
|
+
} else if (o instanceof d.Group) {
|
|
50
|
+
const t = new d.Group();
|
|
51
|
+
return o.children.forEach((l) => t.add(u(l))), t;
|
|
56
52
|
} else {
|
|
57
|
-
const t = new
|
|
58
|
-
return
|
|
53
|
+
const t = new d.Object3D();
|
|
54
|
+
return o.children.forEach((l) => t.add(u(l))), t;
|
|
59
55
|
}
|
|
60
56
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
}, D = () => {
|
|
58
|
+
if (!!n.renderer)
|
|
59
|
+
return a || (a = new d.WebGLRenderer({ antialias: !1, alpha: !0 }), a.setPixelRatio(n.renderer.getPixelRatio()), a.outputEncoding = d.sRGBEncoding, a.setClearColor(1579548, 0), a.autoClear = !0), a;
|
|
60
|
+
}, R = () => {
|
|
61
|
+
c.traverse((e) => {
|
|
62
|
+
e instanceof d.Mesh && [].concat(e.material).forEach((o) => o.dispose());
|
|
63
|
+
}), s.remove(c), c = new d.Object3D(), s.add(c), g = !1, p();
|
|
64
|
+
}, j = () => {
|
|
65
|
+
!r || g || C();
|
|
66
|
+
}, A = () => {
|
|
67
|
+
r || (r = !0, s.add(c), !g && n.model.loaded && C(), p());
|
|
68
|
+
}, I = () => {
|
|
69
|
+
!r || (s.remove(c), h = !0, x(), r = !1);
|
|
70
|
+
}, O = (e, u = {}) => {
|
|
71
|
+
const o = D();
|
|
72
|
+
if (!o)
|
|
65
73
|
return;
|
|
66
|
-
e.appendChild(
|
|
74
|
+
e.appendChild(o.domElement), L(u);
|
|
67
75
|
const t = window.getComputedStyle(e).position;
|
|
68
76
|
t !== "relative" && t !== "absolute" && t !== "fixed" && t !== "sticky" && (e.style.position = "relative");
|
|
69
|
-
},
|
|
70
|
-
if (!
|
|
77
|
+
}, L = (e = {}) => {
|
|
78
|
+
if (!a)
|
|
71
79
|
return;
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
74
|
-
const { width: t =
|
|
75
|
-
|
|
80
|
+
const o = a.domElement.parentNode;
|
|
81
|
+
if (o != null && o.nodeName) {
|
|
82
|
+
const { width: t = o.offsetWidth, height: l = o.offsetHeight } = e;
|
|
83
|
+
a.setSize(t, l), m.aspect = t / l, m.updateProjectionMatrix();
|
|
76
84
|
}
|
|
77
85
|
p();
|
|
78
86
|
};
|
|
79
|
-
function
|
|
80
|
-
const t = e.bounding,
|
|
87
|
+
function S(e, u, o) {
|
|
88
|
+
const t = e.bounding, l = Math.pow(
|
|
81
89
|
Math.pow(t.max.x - t.min.x + 1, 2) + Math.pow(t.max.y - t.min.y + 1, 2) + Math.pow(t.max.z - t.min.z + 1, 2),
|
|
82
90
|
1 / 2
|
|
83
91
|
);
|
|
84
|
-
let
|
|
85
|
-
return
|
|
92
|
+
let w = l / 2 / Math.tan(Math.PI * u / 360);
|
|
93
|
+
return o < 1 && (w = w / o), isNaN(w) ? l : w;
|
|
86
94
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
95
|
+
function W(e) {
|
|
96
|
+
return n.work.observers[e].standingPosition.clone();
|
|
89
97
|
}
|
|
90
98
|
const p = () => {
|
|
91
|
-
if (!
|
|
99
|
+
if (!r || !b || !M)
|
|
92
100
|
return;
|
|
93
|
-
const e =
|
|
94
|
-
e.fov =
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
Object.assign(
|
|
101
|
-
}
|
|
102
|
-
|
|
101
|
+
const e = n.getPose();
|
|
102
|
+
e.fov = m.fov, e.offset = M, e.distance = b, typeof f.lockedLatitude == "number" && (e.latitude = f.lockedLatitude), typeof f.lockedLongitude == "number" && (e.longitude = f.lockedLongitude), typeof f.lockedPanoIndex == "number" && (e.offset = W(f.lockedPanoIndex)), f.lookAtCurrentCamera && (e.offset = n.camera.position.clone().setY(n.camera.position.y + 1)), m.setFromPose(e), h = !0;
|
|
103
|
+
}, x = () => {
|
|
104
|
+
!r || h !== !0 || !a || !a.domElement.parentNode || a.domElement.parentNode.offsetWidth === 0 || (a.render(s, m), h = !1);
|
|
105
|
+
}, F = () => {
|
|
106
|
+
a && a.dispose(), a = null;
|
|
107
|
+
}, G = (e) => {
|
|
108
|
+
Object.assign(f, e), p();
|
|
109
|
+
}, z = () => ({
|
|
110
|
+
enabled: r
|
|
111
|
+
});
|
|
112
|
+
return Object.assign(window, { camera: m }), n.on("modelLoaded", j), n.on("modelWillLoad", R), n.on("cameraDirectionUpdate", p), n.on("dispose", F), n.on("renderFrame", x), n.on("cameraPositionUpdate", p), { appendTo: O, refresh: L, changeConfigs: G, enable: A, disable: I, getCurrentState: z };
|
|
103
113
|
};
|
|
104
114
|
export {
|
|
105
|
-
|
|
106
|
-
|
|
115
|
+
J as ModelViewPlugin,
|
|
116
|
+
J as default
|
|
107
117
|
};
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
3
|
-
import { notNil as
|
|
1
|
+
import { SvelteComponent as b, init as k, safe_not_equal as x, append_styles as R, empty as L, insert as D, noop as g, destroy_each as T, detach as F, onMount as N, element as S, text as O, attr as v, append as z, set_data as C, binding_callbacks as w } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import p from "animejs";
|
|
3
|
+
import { notNil as A } from "../../../shared-utils/isNil.js";
|
|
4
4
|
import "three";
|
|
5
5
|
import { searchFirstValueSmallThanLastValue as J } from "../../utils/search.js";
|
|
6
6
|
import { RANDON_STRING as E } from "../../utils/constants.js";
|
|
7
7
|
function P(o) {
|
|
8
|
-
|
|
8
|
+
R(o, "svelte-zgfkts", ".text-char.svelte-zgfkts{text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
9
9
|
}
|
|
10
10
|
function y(o, i, l) {
|
|
11
11
|
const e = o.slice();
|
|
12
12
|
return e[10] = i[l], e[11] = i, e[12] = l, e;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function j(o) {
|
|
15
15
|
let i, l = o[10] + "", e, t = o[12];
|
|
16
16
|
const s = () => o[6](i, t), n = () => o[6](null, t);
|
|
17
17
|
return {
|
|
18
18
|
c() {
|
|
19
|
-
i =
|
|
19
|
+
i = S("span"), e = O(l), v(i, "class", "text-char svelte-zgfkts");
|
|
20
20
|
},
|
|
21
21
|
m(r, f) {
|
|
22
|
-
|
|
22
|
+
D(r, i, f), z(i, e), s();
|
|
23
23
|
},
|
|
24
24
|
p(r, f) {
|
|
25
25
|
o = r, f & 2 && l !== (l = o[10] + "") && C(e, l), t !== o[12] && (n(), t = o[12], s());
|
|
26
26
|
},
|
|
27
27
|
d(r) {
|
|
28
|
-
r &&
|
|
28
|
+
r && F(i), n();
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
function U(o) {
|
|
33
33
|
let i, l = o[1], e = [];
|
|
34
34
|
for (let t = 0; t < l.length; t += 1)
|
|
35
|
-
e[t] =
|
|
35
|
+
e[t] = j(y(o, l, t));
|
|
36
36
|
return {
|
|
37
37
|
c() {
|
|
38
38
|
for (let t = 0; t < e.length; t += 1)
|
|
39
39
|
e[t].c();
|
|
40
|
-
i =
|
|
40
|
+
i = L();
|
|
41
41
|
},
|
|
42
42
|
m(t, s) {
|
|
43
43
|
for (let n = 0; n < e.length; n += 1)
|
|
44
44
|
e[n].m(t, s);
|
|
45
|
-
|
|
45
|
+
D(t, i, s);
|
|
46
46
|
},
|
|
47
47
|
p(t, [s]) {
|
|
48
48
|
if (s & 3) {
|
|
@@ -50,38 +50,38 @@ function U(o) {
|
|
|
50
50
|
let n;
|
|
51
51
|
for (n = 0; n < l.length; n += 1) {
|
|
52
52
|
const r = y(t, l, n);
|
|
53
|
-
e[n] ? e[n].p(r, s) : (e[n] =
|
|
53
|
+
e[n] ? e[n].p(r, s) : (e[n] = j(r), e[n].c(), e[n].m(i.parentNode, i));
|
|
54
54
|
}
|
|
55
55
|
for (; n < e.length; n += 1)
|
|
56
56
|
e[n].d(1);
|
|
57
57
|
e.length = l.length;
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
i:
|
|
61
|
-
o:
|
|
60
|
+
i: g,
|
|
61
|
+
o: g,
|
|
62
62
|
d(t) {
|
|
63
|
-
|
|
63
|
+
T(e, t), t && F(i);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
function V(o, i, l) {
|
|
68
|
-
let e, { inDelay: t = 0 } = i, { outDelay: s = 0 } = i, { content: n } = i, { unfolded: r } = i, f,
|
|
69
|
-
function
|
|
68
|
+
let e, { inDelay: t = 0 } = i, { outDelay: s = 0 } = i, { content: n } = i, { unfolded: r } = i, f, c = [], u;
|
|
69
|
+
function I(a) {
|
|
70
70
|
clearTimeout(f), f = setTimeout(
|
|
71
71
|
function() {
|
|
72
|
-
!
|
|
72
|
+
!u || (a && u.reversed || !a && !u.reversed) && (u.reverse(), u.play());
|
|
73
73
|
},
|
|
74
74
|
a ? t : s
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
N(function() {
|
|
78
78
|
const a = (() => {
|
|
79
|
-
const _ = J((m) =>
|
|
79
|
+
const _ = J((m) => c[m].getBoundingClientRect().x, [Math.min(c.length - 1, 10), Math.min(c.length - 1, 30)]);
|
|
80
80
|
if (_ > 0)
|
|
81
81
|
return _;
|
|
82
82
|
})();
|
|
83
|
-
|
|
84
|
-
targets:
|
|
83
|
+
u = p({
|
|
84
|
+
targets: c.slice(0, a).filter(A),
|
|
85
85
|
autoplay: !1,
|
|
86
86
|
duration: 400,
|
|
87
87
|
scale: [0.7, 1],
|
|
@@ -89,13 +89,13 @@ function V(o, i, l) {
|
|
|
89
89
|
opacity: [0, 1],
|
|
90
90
|
translateX: [4, 0],
|
|
91
91
|
translateY: [10, 0],
|
|
92
|
-
delay:
|
|
92
|
+
delay: p.stagger(50),
|
|
93
93
|
easing: "easeInOutCubic"
|
|
94
|
-
}), r &&
|
|
94
|
+
}), r && u.seek(u.duration);
|
|
95
95
|
});
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
function M(a, _) {
|
|
97
|
+
w[a ? "unshift" : "push"](() => {
|
|
98
|
+
c[_] = a, l(0, c);
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
return o.$$set = (a) => {
|
|
@@ -103,18 +103,18 @@ function V(o, i, l) {
|
|
|
103
103
|
}, o.$$.update = () => {
|
|
104
104
|
o.$$.dirty & 16 && l(1, e = (() => {
|
|
105
105
|
const a = [], _ = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu")), m = `__EMOJI_SPLIT_${E}__`, h = `__EMOJI_${E}__`;
|
|
106
|
-
return n.slice().replace(_, (d) => `${m}${h}${d}${m}`).split(m).forEach((d) => d.startsWith(h) ? a.push(d.slice(h.length)) : a.push(...d.split(""))), a
|
|
107
|
-
})()), o.$$.dirty & 32 &&
|
|
108
|
-
}, [
|
|
106
|
+
return n.slice().replace(_, (d) => `${m}${h}${d}${m}`).split(m).forEach((d) => d.startsWith(h) ? a.push(d.slice(h.length)) : a.push(...d.split(""))), a;
|
|
107
|
+
})()), o.$$.dirty & 32 && I(r);
|
|
108
|
+
}, [c, e, t, s, n, r, M];
|
|
109
109
|
}
|
|
110
|
-
class H extends
|
|
110
|
+
class H extends b {
|
|
111
111
|
constructor(i) {
|
|
112
|
-
super(),
|
|
112
|
+
super(), k(
|
|
113
113
|
this,
|
|
114
114
|
i,
|
|
115
115
|
V,
|
|
116
116
|
U,
|
|
117
|
-
|
|
117
|
+
x,
|
|
118
118
|
{
|
|
119
119
|
inDelay: 2,
|
|
120
120
|
outDelay: 3,
|
package/package.json
CHANGED
|
@@ -7,8 +7,21 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.3.
|
|
10
|
+
"version": "2.3.5",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
14
|
+
"dev": "run-p dev:*",
|
|
15
|
+
"dev:libs": "NODE_ENV=development BUILD_MODULE=libs vite build -m development",
|
|
16
|
+
"dev:dist": "NODE_ENV=development BUILD_MODULE=dist vite build -m development",
|
|
17
|
+
"dev:components": "NODE_ENV=development BUILD_MODULE=components vite build -m development",
|
|
18
|
+
"build": "run-p build:*",
|
|
19
|
+
"build:libs": "NODE_ENV=production BUILD_MODULE=libs vite build -m production",
|
|
20
|
+
"build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
|
|
21
|
+
"build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
|
|
22
|
+
"docs": "typedoc --options ./typedoc.json",
|
|
23
|
+
"prepublishOnly": "run-p build docs"
|
|
24
|
+
},
|
|
12
25
|
"files": [
|
|
13
26
|
"libs",
|
|
14
27
|
"dist",
|
|
@@ -69,17 +82,5 @@
|
|
|
69
82
|
"peerDependencies": {
|
|
70
83
|
"@realsee/five": "^5.0.0",
|
|
71
84
|
"three": ">=0.115.0 <=0.117.1"
|
|
72
|
-
},
|
|
73
|
-
"scripts": {
|
|
74
|
-
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
75
|
-
"dev": "run-p dev:*",
|
|
76
|
-
"dev:libs": "NODE_ENV=development BUILD_MODULE=libs vite build -m development",
|
|
77
|
-
"dev:dist": "NODE_ENV=development BUILD_MODULE=dist vite build -m development",
|
|
78
|
-
"dev:components": "NODE_ENV=development BUILD_MODULE=components vite build -m development",
|
|
79
|
-
"build": "run-p build:*",
|
|
80
|
-
"build:libs": "NODE_ENV=production BUILD_MODULE=libs vite build -m production",
|
|
81
|
-
"build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
|
|
82
|
-
"build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
|
|
83
|
-
"docs": "typedoc --options ./typedoc.json"
|
|
84
85
|
}
|
|
85
|
-
}
|
|
86
|
+
}
|