@realsee/dnalogel 2.3.7-2 → 2.3.7-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +0 -7
- package/dist/index.cjs.js +28 -28
- package/dist/index.js +787 -826
- package/dist/index.umd.js +22 -22
- 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/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 +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/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/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/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/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +29 -28
- package/libs/PanoMeasurePlugin/Controller/ViewController.d.ts +0 -7
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +32 -78
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +3 -3
- package/libs/PanoMeasurePlugin/index.js +3 -3
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +14 -11
- package/libs/index.js +3 -3
- 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>itemLabelPluginServerParams | 如视看房插件合集 - v2.3.7-
|
|
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.7-4</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.3.7-4"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.3.7-
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.3.7-4</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">如视看房插件合集 - v2.3.7-
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.3.7-4</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/0837c73/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.7-<wbr/>
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.3.7-<wbr/>4</a>
|
|
45
45
|
<ul>
|
|
46
46
|
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
47
47
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.3.7-
|
|
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.7-4</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.3.7-4"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.3.7-
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.3.7-4</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">如视看房插件合集 - v2.3.7-
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.3.7-4</a></li>
|
|
16
16
|
<li><a href="modelItemLabelPluginServerParams.html">modelItemLabelPluginServerParams</a></li></ul>
|
|
17
17
|
<h1>Variable modelItemLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature">model<wbr/>Item<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<li class="tsd-parameter">
|
|
25
25
|
<h5>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
|
|
26
26
|
<ul>
|
|
27
|
-
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/
|
|
27
|
+
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/0837c73/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.7-<wbr/>
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.3.7-<wbr/>4</a>
|
|
45
45
|
<ul>
|
|
46
46
|
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
47
47
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.3.7-
|
|
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.7-4</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.3.7-4"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.3.7-
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.3.7-4</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">如视看房插件合集 - v2.3.7-
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.3.7-4</a></li>
|
|
16
16
|
<li><a href="modelRoomLabelPluginServerParams.html">modelRoomLabelPluginServerParams</a></li></ul>
|
|
17
17
|
<h1>Variable modelRoomLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature">model<wbr/>Room<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<li class="tsd-parameter">
|
|
25
25
|
<h5>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
|
|
26
26
|
<ul>
|
|
27
|
-
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/
|
|
27
|
+
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/0837c73/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.7-<wbr/>
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.3.7-<wbr/>4</a>
|
|
45
45
|
<ul>
|
|
46
46
|
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
47
47
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
@@ -11,6 +11,7 @@ export default class MixedController extends BaseController {
|
|
|
11
11
|
private highlightedLines;
|
|
12
12
|
private deleteDom;
|
|
13
13
|
private rangePieceController;
|
|
14
|
+
private disposers;
|
|
14
15
|
constructor(params: ControllerParams);
|
|
15
16
|
dispose(): void;
|
|
16
17
|
highlightLine(line: Line): void;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (h,
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var b = (h, n, e) => n in h ? k(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
|
|
3
|
+
var t = (h, n, e) => (b(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
4
|
import { Model as S } from "../Model/index.js";
|
|
5
5
|
import { Line as y } from "../Model/line.js";
|
|
6
|
-
import { BaseController as
|
|
7
|
-
import { DeleteDom as
|
|
6
|
+
import { BaseController as D } from "./BaseController.js";
|
|
7
|
+
import { DeleteDom as T } from "../Modules/DeleteDom/index.js";
|
|
8
8
|
import { findAssociatedLines as M } from "../utils/findAssociatedLines.js";
|
|
9
9
|
import { Vector2 as p } from "three";
|
|
10
|
-
import { isNDCPointInScreen as
|
|
10
|
+
import { isNDCPointInScreen as L } from "../utils/isNDCPointInScreen.js";
|
|
11
11
|
import { closestPointOnLine as G } from "../utils/math.js";
|
|
12
|
-
import { Polyline as
|
|
13
|
-
import { RangePieceController as
|
|
14
|
-
class O extends
|
|
12
|
+
import { Polyline as W } from "../Model/polyline.js";
|
|
13
|
+
import { RangePieceController as N } from "../Modules/rangePiece/index.js";
|
|
14
|
+
class O extends D {
|
|
15
15
|
constructor(e) {
|
|
16
16
|
super(e);
|
|
17
17
|
t(this, "state", "watching");
|
|
@@ -22,31 +22,32 @@ class O extends T {
|
|
|
22
22
|
t(this, "highlightedLines", []);
|
|
23
23
|
t(this, "deleteDom");
|
|
24
24
|
t(this, "rangePieceController");
|
|
25
|
+
t(this, "disposers", []);
|
|
25
26
|
t(this, "onLineChanged", () => {
|
|
26
27
|
this.hook.emit("editedPolylineChange", this.polyline);
|
|
27
28
|
});
|
|
28
29
|
t(this, "onWantsTapGesture", (e) => {
|
|
29
|
-
if (this.state === "editing")
|
|
30
|
+
if (console.log("\u{1F436} ~ onWantsTapGesture"), this.state === "editing")
|
|
30
31
|
return !1;
|
|
31
32
|
const [i] = this.five.model.intersectRaycaster(e);
|
|
32
33
|
if (!i)
|
|
33
34
|
return;
|
|
34
|
-
const
|
|
35
|
-
const [a,
|
|
36
|
-
if (!
|
|
35
|
+
const o = this.five.camera, f = i.point.clone().project(o), r = this.container.clientWidth, l = this.container.clientHeight, m = new p(f.x * r, f.y * l), g = this.polyline.lines.map((s) => {
|
|
36
|
+
const [a, v] = s.points, d = a.position.clone().project(o), c = v.position.clone().project(o);
|
|
37
|
+
if (!L(d) && !L(c))
|
|
37
38
|
return null;
|
|
38
|
-
const
|
|
39
|
-
return { id:
|
|
40
|
-
}).filter((
|
|
39
|
+
const C = new p(d.x * r, d.y * l), w = new p(c.x * r, c.y * l);
|
|
40
|
+
return { id: s.id, points: [C, w] };
|
|
41
|
+
}).filter((s) => !!s);
|
|
41
42
|
if (g.length === 0)
|
|
42
43
|
return;
|
|
43
|
-
const u = g.map((
|
|
44
|
-
const a = G(m,
|
|
45
|
-
return { id:
|
|
46
|
-
}).sort((
|
|
44
|
+
const u = g.map((s) => {
|
|
45
|
+
const a = G(m, s.points);
|
|
46
|
+
return { id: s.id, distance: a.distanceTo(m) };
|
|
47
|
+
}).sort((s, a) => s.distance - a.distance)[0];
|
|
47
48
|
if (u.distance > 20)
|
|
48
49
|
return;
|
|
49
|
-
const P = this.polyline.lines.find(({ id:
|
|
50
|
+
const P = this.polyline.lines.find(({ id: s }) => s === u.id);
|
|
50
51
|
if (!!P)
|
|
51
52
|
return this.chooseLine(P), !1;
|
|
52
53
|
});
|
|
@@ -55,7 +56,7 @@ class O extends T {
|
|
|
55
56
|
this.updateDistanceUI(), this.dashed.distanceItem.update(this.five);
|
|
56
57
|
});
|
|
57
58
|
t(this, "updateMobileDashed", () => {
|
|
58
|
-
!this.mobileStartPoint || !this.mobileNowPoint || (this.dashed.points[0].position.copy(this.mobileStartPoint.position), this.dashed.points[1].position.copy(this.mobileNowPoint.position), this.dashed.mesh.setPoints(this.mobileStartPoint.position, this.mobileNowPoint.position), this.dashed.distanceItem.update(this.five));
|
|
59
|
+
!this.mobileStartPoint || !this.mobileNowPoint || (this.dashed.points[0].position.copy(this.mobileStartPoint.position), this.dashed.points[1].position.copy(this.mobileNowPoint.position), this.dashed.mesh.setPoints(this.mobileStartPoint.position, this.mobileNowPoint.position), this.dashed.distanceItem.update(this.five), this.hook.emit("editedDashedLineChange", this.dashed));
|
|
59
60
|
});
|
|
60
61
|
t(this, "updateMagnifier", (e) => {
|
|
61
62
|
this.magnifier.visible === !1 && this.magnifier.appendTo(this.container), requestAnimationFrame(() => this.magnifier.renderWithPoint(e.position)), this.five.needsRender = !0;
|
|
@@ -66,8 +67,8 @@ class O extends T {
|
|
|
66
67
|
t(this, "onGetEndPoint", (e) => {
|
|
67
68
|
const i = this.mobileNowPoint;
|
|
68
69
|
if (this.removeLine(this.dashed), this.hasAppendDashed = !1, this.mobileStartPoint && i) {
|
|
69
|
-
const
|
|
70
|
-
|
|
70
|
+
const o = new y(this.mobileStartPoint, i, this.model);
|
|
71
|
+
o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), this.disposers.push(() => o.hook.off("selected", this.chooseLine)), this.group.add(o.mesh), this.polyline.addLine(o);
|
|
71
72
|
}
|
|
72
73
|
this.mobileStartPoint = null, this.mobileNowPoint = null, this.five.needsRender = !0;
|
|
73
74
|
});
|
|
@@ -85,7 +86,7 @@ class O extends T {
|
|
|
85
86
|
const i = M(e);
|
|
86
87
|
this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
|
|
87
88
|
"selectedChange",
|
|
88
|
-
i.map((
|
|
89
|
+
i.map((o) => o)
|
|
89
90
|
);
|
|
90
91
|
});
|
|
91
92
|
t(this, "deleteDomClickCallback", () => {
|
|
@@ -96,13 +97,13 @@ class O extends T {
|
|
|
96
97
|
t(this, "cancelDeleteClickCallback", () => {
|
|
97
98
|
this.clearHighlightLines();
|
|
98
99
|
});
|
|
99
|
-
this.model = new S(this.config), this.polyline = new
|
|
100
|
+
this.model = new S(this.config), this.polyline = new W({ model: this.model }), this.model.addPolyline(this.polyline), this.rangePieceController = new N(e), this.deleteDom = new T(this.five, {
|
|
100
101
|
onClick: this.deleteDomClickCallback,
|
|
101
102
|
cancelDelete: this.cancelDeleteClickCallback
|
|
102
|
-
}).appendTo(this.container), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.onWantsTapGesture), this.five.on("wantsToMoveToPano", this.onWantsToMoveToPano), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged), this.five.helperVisible = !1, this.hook.on("getStartPoint", this.onGetStartPoint), this.hook.on("getEndPoint", this.onGetEndPoint), this.hook.on("nowPointChange", this.onNowPointChange), this.hook.on("willChangeState", this.onWillChangeState), this.five.refresh();
|
|
103
|
+
}).appendTo(this.container), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.onWantsTapGesture), this.five.on("wantsToMoveToPano", this.onWantsToMoveToPano), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged), this.five.helperVisible = !1, this.hook.emit("editedDashedLineChange", null), this.hook.on("getStartPoint", this.onGetStartPoint), this.hook.on("getEndPoint", this.onGetEndPoint), this.hook.on("nowPointChange", this.onNowPointChange), this.hook.on("willChangeState", this.onWillChangeState), this.five.refresh();
|
|
103
104
|
}
|
|
104
105
|
dispose() {
|
|
105
|
-
super.dispose(), this.five.helperVisible = !0, this.rangePieceController.dispose(), this.group.remove(this.mouseGroup, this.dashed.mesh), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.onWantsTapGesture), this.five.off("wantsToMoveToPano", this.onWantsToMoveToPano), this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), this.hook.off("getStartPoint", this.onGetStartPoint), this.hook.off("getEndPoint", this.onGetEndPoint), this.hook.off("nowPointChange", this.onNowPointChange), this.hook.off("willChangeState", this.onWillChangeState), this.hook.emit("selectedChange", []), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
|
|
106
|
+
super.dispose(), this.disposers.forEach((e) => e()), this.five.helperVisible = !0, this.rangePieceController.dispose(), this.group.remove(this.mouseGroup, this.dashed.mesh), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.onWantsTapGesture), this.five.off("wantsToMoveToPano", this.onWantsToMoveToPano), this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), this.hook.off("getStartPoint", this.onGetStartPoint), this.hook.off("getEndPoint", this.onGetEndPoint), this.hook.off("nowPointChange", this.onNowPointChange), this.hook.off("willChangeState", this.onWillChangeState), this.hook.emit("selectedChange", []), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
|
|
106
107
|
}
|
|
107
108
|
highlightLine(e) {
|
|
108
109
|
e.selected || (e.selected = !0, this.group.add(e.lightMesh), e.distanceItem.highlight(), this.five.needsRender = !0);
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import type Line from '../Model/line';
|
|
2
1
|
import BaseController, { ControllerParams } from './BaseController';
|
|
3
2
|
export default class ViewController extends BaseController {
|
|
4
3
|
type: string;
|
|
5
|
-
private highlightedLines;
|
|
6
4
|
private hammer?;
|
|
7
5
|
constructor(params: ControllerParams);
|
|
8
6
|
dispose(): void;
|
|
9
|
-
highlightLine(line: Line): void;
|
|
10
|
-
clearHighlightLines(): void;
|
|
11
|
-
private wantsTapGesture;
|
|
12
|
-
private chooseLine;
|
|
13
|
-
private highlightLines;
|
|
14
7
|
private polylineRemoved;
|
|
15
8
|
private polylineAdded;
|
|
16
9
|
private onCameraUpdate;
|
|
@@ -1,106 +1,60 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { closestPointOnLine as R } from "../utils/math.js";
|
|
7
|
-
import { isNDCPointInScreen as L } from "../utils/isNDCPointInScreen.js";
|
|
8
|
-
import { findAssociatedLines as k } from "../utils/findAssociatedLines.js";
|
|
9
|
-
import { BaseController as x } from "./BaseController.js";
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var r = (n, o, i) => o in n ? d(n, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[o] = i;
|
|
3
|
+
var s = (n, o, i) => (r(n, typeof o != "symbol" ? o + "" : o, i), i);
|
|
4
|
+
import a from "hammerjs";
|
|
5
|
+
import "three";
|
|
10
6
|
import "@realsee/five/line";
|
|
11
7
|
import "../utils/constants.js";
|
|
12
8
|
import "@realsee/five";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return;
|
|
22
|
-
const [i] = this.five.model.intersectRaycaster(e);
|
|
23
|
-
if (!i)
|
|
24
|
-
return;
|
|
25
|
-
const t = this.five.camera, p = i.point.clone().project(t), d = this.container.clientWidth, a = this.container.clientHeight, g = new f(p.x * d, p.y * a), v = this.model.getAllLines().map((s) => {
|
|
26
|
-
const [r, A] = s.points, c = r.position.clone().project(t), m = A.position.clone().project(t);
|
|
27
|
-
if (!L(c) && !L(m))
|
|
28
|
-
return null;
|
|
29
|
-
const P = new f(c.x * d, c.y * a), I = new f(m.x * d, m.y * a);
|
|
30
|
-
return { id: s.id, points: [P, I] };
|
|
31
|
-
}).filter((s) => !!s);
|
|
32
|
-
if (v.length === 0)
|
|
33
|
-
return;
|
|
34
|
-
const u = v.map((s) => {
|
|
35
|
-
const r = R(g, s.points);
|
|
36
|
-
return { id: s.id, distance: r.distanceTo(g) };
|
|
37
|
-
}).sort((s, r) => s.distance - r.distance)[0], l = u.distance > 20 ? void 0 : this.model.getAllLines().find(({ id: s }) => s === u.id);
|
|
38
|
-
if (this.highlightedLines.length > 0 && !l)
|
|
39
|
-
return this.clearHighlightLines(), !1;
|
|
40
|
-
if (l)
|
|
41
|
-
return this.chooseLine(l), !1;
|
|
42
|
-
});
|
|
43
|
-
n(this, "chooseLine", (e) => {
|
|
44
|
-
const i = k(e);
|
|
45
|
-
this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
|
|
46
|
-
"selectedChange",
|
|
47
|
-
i.map((t) => t)
|
|
48
|
-
);
|
|
49
|
-
});
|
|
50
|
-
n(this, "polylineRemoved", (e) => {
|
|
51
|
-
e.lines.forEach((i) => this.removeLine(i)), this.hook.emit(
|
|
9
|
+
import { BaseController as h } from "./BaseController.js";
|
|
10
|
+
class A extends h {
|
|
11
|
+
constructor(i) {
|
|
12
|
+
super(i);
|
|
13
|
+
s(this, "type", "view");
|
|
14
|
+
s(this, "hammer");
|
|
15
|
+
s(this, "polylineRemoved", (i) => {
|
|
16
|
+
i.lines.forEach((e) => this.removeLine(e)), this.hook.emit(
|
|
52
17
|
"selectedChange",
|
|
53
|
-
this.model.getAllLines().filter((
|
|
18
|
+
this.model.getAllLines().filter((e) => e.selected).map((e) => e)
|
|
54
19
|
);
|
|
55
20
|
});
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
21
|
+
s(this, "polylineAdded", (i) => {
|
|
22
|
+
i.lines.forEach((e) => {
|
|
23
|
+
e.distanceItem.appendTo(this.container), e.distanceItem.update(this.five), this.group.add(e.mesh);
|
|
59
24
|
});
|
|
60
25
|
});
|
|
61
|
-
|
|
26
|
+
s(this, "onCameraUpdate", () => {
|
|
62
27
|
this.updateDistanceUI();
|
|
63
28
|
});
|
|
64
|
-
|
|
65
|
-
this.model.polylines.forEach((
|
|
66
|
-
!
|
|
29
|
+
s(this, "onFivePanoWillArrive", (i) => {
|
|
30
|
+
this.model.polylines.forEach((e) => {
|
|
31
|
+
!e.visiblePanoIndexes || e.visiblePanoIndexes.includes(i) || e.lines.forEach((t) => {
|
|
67
32
|
t.mesh.visible = !1, t.distanceItem.update(this.five);
|
|
68
33
|
});
|
|
69
34
|
});
|
|
70
35
|
});
|
|
71
|
-
|
|
72
|
-
this.model.polylines.forEach((
|
|
73
|
-
!
|
|
36
|
+
s(this, "onFivePanoArrived", (i) => {
|
|
37
|
+
this.model.polylines.forEach((e) => {
|
|
38
|
+
!e.visiblePanoIndexes || e.visiblePanoIndexes.includes(i) && e.lines.forEach((t) => {
|
|
74
39
|
t.mesh.visible = !0, t.distanceItem.update(this.five);
|
|
75
40
|
});
|
|
76
41
|
});
|
|
77
42
|
});
|
|
78
43
|
this.model.getAllLines().forEach((t) => {
|
|
79
|
-
t.distanceItem.appendTo(this.container), t.distanceItem.update(this.five),
|
|
44
|
+
t.distanceItem.appendTo(this.container), t.distanceItem.update(this.five), this.group.add(t.mesh);
|
|
80
45
|
});
|
|
81
|
-
const
|
|
82
|
-
if (
|
|
83
|
-
const t = new
|
|
46
|
+
const e = this.five.getElement();
|
|
47
|
+
if (e) {
|
|
48
|
+
const t = new a(e);
|
|
84
49
|
this.hammer = t;
|
|
85
50
|
}
|
|
86
|
-
this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("
|
|
51
|
+
this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive);
|
|
87
52
|
}
|
|
88
53
|
dispose() {
|
|
89
|
-
var
|
|
90
|
-
super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("
|
|
91
|
-
}
|
|
92
|
-
highlightLine(e) {
|
|
93
|
-
e.selected || (e.selected = !0, this.group.add(e.lightMesh), e.distanceItem.highlight(), this.five.needsRender = !0);
|
|
94
|
-
}
|
|
95
|
-
clearHighlightLines() {
|
|
96
|
-
this.group.children.length !== 0 && (this.model.getAllLines().forEach((e) => {
|
|
97
|
-
e.selected = !1, e.distanceItem.unHighlight(), this.group.remove(e.lightMesh);
|
|
98
|
-
}), this.highlightedLines = [], this.five.needsRender = !0);
|
|
99
|
-
}
|
|
100
|
-
highlightLines(e) {
|
|
101
|
-
this.clearHighlightLines(), this.highlightedLines = e, e.forEach((i) => this.highlightLine(i));
|
|
54
|
+
var i;
|
|
55
|
+
super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (i = this.hammer) == null || i.destroy();
|
|
102
56
|
}
|
|
103
57
|
}
|
|
104
58
|
export {
|
|
105
|
-
|
|
59
|
+
A as ViewController
|
|
106
60
|
};
|
|
@@ -60,7 +60,7 @@ class D {
|
|
|
60
60
|
return this.visible = !1, this.masking.style.pointerEvents = "none", this.container.style.opacity = "0", this.container.style.top = "10px", this.container.style.pointerEvents = "none", this;
|
|
61
61
|
}
|
|
62
62
|
show() {
|
|
63
|
-
return this.visible = !0, this.masking.style.pointerEvents = "auto", this.container.style.opacity = "1", this.container.style.top = "0", this.container.style.pointerEvents = "auto", this;
|
|
63
|
+
return console.trace("\u{1F436} ~ show"), this.visible = !0, this.masking.style.pointerEvents = "auto", this.container.style.opacity = "1", this.container.style.top = "0", this.container.style.pointerEvents = "auto", this;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
export {
|
|
@@ -3,7 +3,7 @@ var r = (i, t, e) => t in i ? _(i, t, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var n = (i, t, e) => (r(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import { mainIconStyle as l, mainItemStyle as o } from "./style.js";
|
|
5
5
|
import "three";
|
|
6
|
-
class
|
|
6
|
+
class p {
|
|
7
7
|
constructor(t, e, s) {
|
|
8
8
|
n(this, "container");
|
|
9
9
|
n(this, "measureController");
|
|
@@ -21,7 +21,7 @@ class f {
|
|
|
21
21
|
this._params = s, this._btnTexts = {
|
|
22
22
|
start: (a = this._params.startButtonText) != null ? a : this._btnTexts.start,
|
|
23
23
|
end: (m = this._params.endButtonText) != null ? m : this._btnTexts.end
|
|
24
|
-
}, this.measureController = t, this.container = e, this.mainElement = this.getMainElement(), Object.assign(this.mainElement.mainIcon.style, l), Object.assign(this.mainElement.mainItem.style, o), this.change2Add(), this.mainElement.mainItem.addEventListener("click", this.onClick);
|
|
24
|
+
}, this.measureController = t, this.container = e, this.mainElement = this.getMainElement(), this.mainElement.mainIcon.setAttribute("style", "-webkit-tap-highlight-color: rgba(0,0,0,0);"), Object.assign(this.mainElement.mainIcon.style, l), Object.assign(this.mainElement.mainItem.style, o), this.change2Add(), this.mainElement.mainItem.addEventListener("click", this.onClick);
|
|
25
25
|
}
|
|
26
26
|
dispose() {
|
|
27
27
|
this.mainElement.mainItem.removeEventListener("click", this.onClick);
|
|
@@ -50,5 +50,5 @@ class f {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
p as MobileMainBtnController
|
|
54
54
|
};
|
|
@@ -14,9 +14,6 @@ import "./utils/ironbox.js";
|
|
|
14
14
|
import "./utils/getIntersectionFromEvent.js";
|
|
15
15
|
import "./utils/getPointFromHammerEvent.js";
|
|
16
16
|
import "./Controller/ViewController.js";
|
|
17
|
-
import "./utils/math.js";
|
|
18
|
-
import "./utils/isNDCPointInScreen.js";
|
|
19
|
-
import "./utils/findAssociatedLines.js";
|
|
20
17
|
import "@realsee/five/line";
|
|
21
18
|
import "./utils/constants.js";
|
|
22
19
|
import "@realsee/five";
|
|
@@ -25,8 +22,11 @@ import "./Modules/DeleteDom/index.js";
|
|
|
25
22
|
import "./Modules/DeleteDom/_Assets/delete.svg.js";
|
|
26
23
|
import "./Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
27
24
|
import "./Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
25
|
+
import "./utils/isNDCPointInScreen.js";
|
|
26
|
+
import "./utils/math.js";
|
|
28
27
|
import "./utils/findClosestPoint.js";
|
|
29
28
|
import "./utils/ndc2Screen.js";
|
|
29
|
+
import "./utils/findAssociatedLines.js";
|
|
30
30
|
import "./Controller/MixedController.js";
|
|
31
31
|
import "./Modules/rangePiece/index.js";
|
|
32
32
|
import "@tweenjs/tween.js";
|
|
@@ -5,7 +5,10 @@ import "./constants.js";
|
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
function j() {
|
|
7
7
|
const t = document.createElement("div");
|
|
8
|
-
return t.setAttribute(
|
|
8
|
+
return t.setAttribute(
|
|
9
|
+
"style",
|
|
10
|
+
"backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);-webkit-tap-highlight-color: rgba(0,0,0,0);"
|
|
11
|
+
), t.style.width = "max-content", t.style.padding = "3px 6px", t.style.lineHeight = "1", t.style.textAlign = "center", t.style.transform = "translate(-50%, -50%)", t.style.borderRadius = "100px", t.style.fontSize = "14px", t.style.color = "#fff", t.style.background = "rgba(195,195,195,0.70)", t.style.border = "0.5px solid rgba(255,255,255,0.6)", t.style.cursor = "pointer", t;
|
|
9
12
|
}
|
|
10
13
|
function V(t) {
|
|
11
14
|
const e = document.createElement("div");
|
|
@@ -19,8 +22,8 @@ function J(t) {
|
|
|
19
22
|
update: H,
|
|
20
23
|
appendTo: I,
|
|
21
24
|
remove: T,
|
|
22
|
-
highlight:
|
|
23
|
-
unHighlight:
|
|
25
|
+
highlight: w,
|
|
26
|
+
unHighlight: F,
|
|
24
27
|
getCurrentContent: P,
|
|
25
28
|
setItemSelectable: A
|
|
26
29
|
};
|
|
@@ -29,12 +32,12 @@ function J(t) {
|
|
|
29
32
|
var i;
|
|
30
33
|
(i = t.clickCallback) == null || i.call(t, E);
|
|
31
34
|
}
|
|
32
|
-
function
|
|
35
|
+
function w() {
|
|
33
36
|
if (o)
|
|
34
37
|
return o.highlight();
|
|
35
38
|
r.style.border = "0.5px solid #95AEFF", r.style.background = "linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)";
|
|
36
39
|
}
|
|
37
|
-
function
|
|
40
|
+
function F() {
|
|
38
41
|
if (o)
|
|
39
42
|
return o.unHighlight();
|
|
40
43
|
r.style.border = "0.5px solid rgba(255,255,255,0.6)", r.style.background = "rgba(195,195,195,0.70)";
|
|
@@ -47,15 +50,15 @@ function J(t) {
|
|
|
47
50
|
const f = i.getElement();
|
|
48
51
|
if (!f)
|
|
49
52
|
return;
|
|
50
|
-
const u = f.clientWidth, l = f.clientHeight,
|
|
53
|
+
const u = f.clientWidth, l = f.clientHeight, p = u / 2, a = l / 2;
|
|
51
54
|
if (s.points.length < 2)
|
|
52
55
|
return;
|
|
53
|
-
const [
|
|
54
|
-
if ((() => !(Math.abs(c.z) > 1 || Math.abs(y.z) > 1 || !x(c) && !x(y) || !x(
|
|
56
|
+
const [g, d] = s.points, c = g.position.clone().project(i.camera), y = d.position.clone().project(i.camera), m = c.clone().lerp(y, 0.5), h = new D(c.x * p, c.y * a), b = new D(y.x * p, y.y * a), k = h.distanceTo(b);
|
|
57
|
+
if ((() => !(Math.abs(c.z) > 1 || Math.abs(y.z) > 1 || !x(c) && !x(y) || !x(m) || k === 0))() === !1) {
|
|
55
58
|
n.style.opacity = "0", n.style.pointerEvents = "none";
|
|
56
59
|
return;
|
|
57
60
|
}
|
|
58
|
-
const L = (
|
|
61
|
+
const L = (m.x + 1) / 2 * u, M = -(m.y - 1) / 2 * l, W = -(Math.atan((h.y - b.y) / (h.x - b.x)) * 180) / Math.PI, $ = n.parentElement && r.clientWidth > k ? -20 : 0;
|
|
59
62
|
n.style.transform = `translate(${L}px, ${M}px) rotate(${W}deg) translateY(${$}px)`, n.style.opacity = "1", n.style.pointerEvents = e ? "all" : "none", o && o.update({ line: s, polyline: s.getPolyline() });
|
|
60
63
|
const z = P();
|
|
61
64
|
r.innerText = z;
|
|
@@ -67,10 +70,10 @@ function J(t) {
|
|
|
67
70
|
r.removeEventListener("click", v), n.remove();
|
|
68
71
|
}
|
|
69
72
|
function P() {
|
|
70
|
-
var
|
|
73
|
+
var g, d, c;
|
|
71
74
|
if (s.points.length < 2)
|
|
72
75
|
return "";
|
|
73
|
-
const [i, f] = s.points, u = i.position.clone().distanceTo(f.position), l = (
|
|
76
|
+
const [i, f] = s.points, u = i.position.clone().distanceTo(f.position), l = (g = t.line.text) != null ? g : t.line.model.config.defaultText, p = (c = (d = t.line.model.config) == null ? void 0 : d.getDistanceText) == null ? void 0 : c.call(d, u), a = l != null ? l : p;
|
|
74
77
|
return a != null ? a : u.toFixed(2) + "m";
|
|
75
78
|
}
|
|
76
79
|
function A(i) {
|
package/libs/index.js
CHANGED
|
@@ -152,17 +152,17 @@ import "./PanoMeasurePlugin/utils/ironbox.js";
|
|
|
152
152
|
import "./PanoMeasurePlugin/utils/getIntersectionFromEvent.js";
|
|
153
153
|
import "./PanoMeasurePlugin/utils/getPointFromHammerEvent.js";
|
|
154
154
|
import "./PanoMeasurePlugin/Controller/ViewController.js";
|
|
155
|
-
import "./PanoMeasurePlugin/utils/math.js";
|
|
156
|
-
import "./PanoMeasurePlugin/utils/isNDCPointInScreen.js";
|
|
157
|
-
import "./PanoMeasurePlugin/utils/findAssociatedLines.js";
|
|
158
155
|
import "./PanoMeasurePlugin/utils/constants.js";
|
|
159
156
|
import "./PanoMeasurePlugin/Controller/WatchController.js";
|
|
160
157
|
import "./PanoMeasurePlugin/Modules/DeleteDom/index.js";
|
|
161
158
|
import "./PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js";
|
|
162
159
|
import "./PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
163
160
|
import "./PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
161
|
+
import "./PanoMeasurePlugin/utils/isNDCPointInScreen.js";
|
|
162
|
+
import "./PanoMeasurePlugin/utils/math.js";
|
|
164
163
|
import "./PanoMeasurePlugin/utils/findClosestPoint.js";
|
|
165
164
|
import "./PanoMeasurePlugin/utils/ndc2Screen.js";
|
|
165
|
+
import "./PanoMeasurePlugin/utils/findAssociatedLines.js";
|
|
166
166
|
import "./PanoMeasurePlugin/Controller/MixedController.js";
|
|
167
167
|
import "./PanoMeasurePlugin/Modules/rangePiece/index.js";
|
|
168
168
|
import "./PanoMeasurePlugin/Modules/rangePiece/html.js";
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.3.7-
|
|
10
|
+
"version": "2.3.7-4",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|