@realsee/dnalogel 2.6.7-dev.3 → 2.6.7-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/dist/index.cjs.js +5 -5
  2. package/dist/index.js +55 -54
  3. package/dist/index.umd.js +1 -1
  4. package/docs/classes/CSS3DRender.html +31 -31
  5. package/docs/classes/CruisePluginController.html +24 -24
  6. package/docs/classes/Magnifier.html +20 -20
  7. package/docs/classes/ModelRoomLabelController.html +11 -11
  8. package/docs/classes/Object3DHelperController.html +24 -24
  9. package/docs/classes/PaintBrush.html +15 -15
  10. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  11. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  12. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  13. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  14. package/docs/classes/PanoTagPluginController.html +46 -46
  15. package/docs/classes/Util.BetterTween.html +8 -8
  16. package/docs/classes/Util.FivePointSelector.html +12 -12
  17. package/docs/classes/Util.Interval.html +12 -12
  18. package/docs/classes/Util.Magnifier.html +17 -17
  19. package/docs/classes/Util.PointDomHelper.html +11 -11
  20. package/docs/classes/Util.PointHelper.html +11 -11
  21. package/docs/classes/Util.Rectangle.html +13 -13
  22. package/docs/enums/CameraMovementEffect.html +7 -7
  23. package/docs/enums/ContentType.html +18 -18
  24. package/docs/enums/DIRECTION.html +9 -9
  25. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  26. package/docs/enums/DimensionType.html +7 -7
  27. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  28. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  29. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  30. package/docs/enums/PointType.html +7 -7
  31. package/docs/enums/Rotation.html +8 -8
  32. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  33. package/docs/functions/CameraMovementPlugin.html +4 -4
  34. package/docs/functions/CruisePlugin.html +4 -4
  35. package/docs/functions/GuideLinePlugin.html +5 -5
  36. package/docs/functions/ItemLabelPlugin.html +4 -4
  37. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  38. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  39. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  40. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  41. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  42. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  43. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  44. package/docs/functions/ModelViewPlugin.html +4 -4
  45. package/docs/functions/Object3DHelperPlugin.html +4 -4
  46. package/docs/functions/PanoCompassPlugin.html +4 -4
  47. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  48. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  49. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  50. package/docs/functions/PanoMeasurePlugin.html +4 -4
  51. package/docs/functions/PanoRulerPlugin.html +4 -4
  52. package/docs/functions/PanoRulerProPlugin.html +4 -4
  53. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  54. package/docs/functions/PanoTagPlugin.html +4 -4
  55. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  56. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  57. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  58. package/docs/functions/Util.getFrameTime.html +5 -5
  59. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  60. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  61. package/docs/functions/Util.isNil.html +5 -5
  62. package/docs/functions/Util.nextFrame.html +5 -5
  63. package/docs/functions/Util.notNil.html +5 -5
  64. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  65. package/docs/functions/Util.tweenProgress.html +5 -5
  66. package/docs/functions/pluginFlag.html +5 -5
  67. package/docs/index.html +4 -4
  68. package/docs/interfaces/AddTagConfig.html +6 -6
  69. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  70. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  71. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  72. package/docs/interfaces/EventMap.html +15 -15
  73. package/docs/interfaces/FloorplanBounding.html +8 -8
  74. package/docs/interfaces/FloorplanData.html +10 -10
  75. package/docs/interfaces/FloorplanEntrance.html +11 -11
  76. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  77. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  78. package/docs/interfaces/FloorplanFloorData.html +9 -9
  79. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  80. package/docs/interfaces/FloorplanObserver.html +9 -9
  81. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  82. package/docs/interfaces/FloorplanPosition.html +7 -7
  83. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  84. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  85. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  86. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  87. package/docs/interfaces/FloorplanServerData.html +7 -7
  88. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  89. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  90. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  91. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  92. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  93. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  94. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  95. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  96. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  97. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  98. package/docs/interfaces/HelperOffset.html +8 -8
  99. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  100. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  101. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  102. package/docs/interfaces/MinMax.html +7 -7
  103. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  104. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  105. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  106. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  107. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  108. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  109. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  110. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  111. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  112. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  113. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  114. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  115. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  116. package/docs/interfaces/Object3DHelperState.html +8 -8
  117. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  118. package/docs/interfaces/PaintBrushAction.html +12 -12
  119. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  120. package/docs/interfaces/PaintBrushState.html +10 -10
  121. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  122. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  123. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  124. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  125. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  126. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  127. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  128. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  129. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  130. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  131. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  132. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  133. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  134. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  135. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  136. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  137. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  138. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  139. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  140. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  141. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  142. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  143. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  144. package/docs/interfaces/Point.html +8 -8
  145. package/docs/interfaces/Room.html +9 -9
  146. package/docs/interfaces/RoomInfo.html +7 -7
  147. package/docs/interfaces/RoomLabel.html +14 -14
  148. package/docs/interfaces/RoomRules.html +5 -5
  149. package/docs/interfaces/Rooms.html +5 -5
  150. package/docs/interfaces/Scissor.html +9 -9
  151. package/docs/interfaces/State.html +8 -8
  152. package/docs/interfaces/TagCache.html +12 -12
  153. package/docs/interfaces/TagConfig.html +10 -10
  154. package/docs/interfaces/TagIconUrl.html +9 -9
  155. package/docs/interfaces/Tags.html +9 -9
  156. package/docs/interfaces/TemporaryState.html +6 -6
  157. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  158. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  159. package/docs/modules/Util.html +5 -5
  160. package/docs/modules.html +4 -4
  161. package/docs/types/ArrayPosition.html +5 -5
  162. package/docs/types/AudioAppearance.html +5 -5
  163. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  164. package/docs/types/CSS3DRenderExportType.html +5 -5
  165. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  166. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  167. package/docs/types/ClassFunctionParameters.html +5 -5
  168. package/docs/types/Color.html +5 -5
  169. package/docs/types/ContentTypeConfigKey.html +5 -5
  170. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  171. package/docs/types/ContentTypeMap.html +5 -5
  172. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  173. package/docs/types/Create3DElementReturnType.html +5 -5
  174. package/docs/types/CruisePluginExportType.html +5 -5
  175. package/docs/types/Direction-1.html +5 -5
  176. package/docs/types/Direction4.html +5 -5
  177. package/docs/types/FloorplanRuleLabels.html +5 -5
  178. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  179. package/docs/types/GuideLinePluginExportType.html +5 -5
  180. package/docs/types/HelperEventMap.html +5 -5
  181. package/docs/types/LoadTagConfig.html +5 -5
  182. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  183. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  184. package/docs/types/MediaData.html +5 -5
  185. package/docs/types/MediaStore.html +5 -5
  186. package/docs/types/ModelElement.html +5 -5
  187. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  188. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  189. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  190. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  191. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  192. package/docs/types/MoveArgs.html +5 -5
  193. package/docs/types/MoveOpts.html +5 -5
  194. package/docs/types/Object3DHelperEventMap.html +5 -5
  195. package/docs/types/ObjectFit.html +5 -5
  196. package/docs/types/PaintBrushEventMap.html +5 -5
  197. package/docs/types/PanoCompassPluginData.html +5 -5
  198. package/docs/types/PanoCompassPluginExportType.html +5 -5
  199. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  200. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  201. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  202. package/docs/types/PanoIndex.html +5 -5
  203. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  204. package/docs/types/PanoMeasureReturnType.html +5 -5
  205. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  206. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  207. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  208. package/docs/types/PlaneTag.html +5 -5
  209. package/docs/types/PlaneTagElement.html +5 -5
  210. package/docs/types/Point2DElement.html +5 -5
  211. package/docs/types/Point2DTag.html +5 -5
  212. package/docs/types/Point3DElement.html +5 -5
  213. package/docs/types/Point3DTag.html +5 -5
  214. package/docs/types/PointTag.html +5 -5
  215. package/docs/types/PointTagElement.html +5 -5
  216. package/docs/types/Position.html +5 -5
  217. package/docs/types/RotateArgs.html +5 -5
  218. package/docs/types/RotateOpts.html +5 -5
  219. package/docs/types/RuleLabelsKey.html +5 -5
  220. package/docs/types/RuleLabelsValue.html +5 -5
  221. package/docs/types/StickType.html +5 -5
  222. package/docs/types/Tag.html +5 -5
  223. package/docs/types/Tag2D.html +5 -5
  224. package/docs/types/Tag3D.html +5 -5
  225. package/docs/types/TagContentType.html +5 -5
  226. package/docs/types/TagDimensionType.html +5 -5
  227. package/docs/types/TagElement.html +5 -5
  228. package/docs/types/TagEvents.html +5 -5
  229. package/docs/types/TagGLTFObject.html +5 -5
  230. package/docs/types/TagHooks.html +5 -5
  231. package/docs/types/TagIconSize.html +5 -5
  232. package/docs/types/TagId.html +5 -5
  233. package/docs/types/TagPointType.html +5 -5
  234. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  235. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  236. package/docs/types/WorkCode.html +5 -5
  237. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  238. package/docs/variables/PLUGIN.html +5 -5
  239. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  240. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  241. package/docs/variables/VERSION.html +5 -5
  242. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  243. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  244. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  245. package/libs/PanoTagPlugin/controller/index.js +100 -100
  246. package/libs/PanoTagPlugin/tag.config.js +1 -0
  247. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.6.7-dev.3</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.6.7-dev.3"/><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">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.6.7-dev.4</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.6.7-dev.4"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,13 +6,13 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.6.7-dev.3</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.6.7-dev.4</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-8 col-content">
13
13
  <div class="tsd-page-title">
14
14
  <ul class="tsd-breadcrumb">
15
- <li><a href="../modules.html">如视看房插件合集 - v2.6.7-dev.3</a></li>
15
+ <li><a href="../modules.html">如视看房插件合集 - v2.6.7-dev.4</a></li>
16
16
  <li><a href="modelItemLabelPluginServerParams.html">modelItemLabelPluginServerParams</a></li></ul>
17
17
  <h1>Variable modelItemLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
18
18
  <div class="tsd-signature">model<wbr/>Item<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
@@ -24,7 +24,7 @@
24
24
  <li class="tsd-parameter">
25
25
  <h5>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
26
26
  <ul>
27
- <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/e4ed7c8/plugins/src/ModelItemLabelPlugin/index.ts#L7">plugins/src/ModelItemLabelPlugin/index.ts:7</a></li></ul></aside></div>
27
+ <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/73b9a25/plugins/src/ModelItemLabelPlugin/index.ts#L7">plugins/src/ModelItemLabelPlugin/index.ts:7</a></li></ul></aside></div>
28
28
  <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
29
29
  <div class="tsd-navigation settings">
30
30
  <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
@@ -41,7 +41,7 @@
41
41
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
42
42
  <div class="tsd-accordion-details">
43
43
  <ul>
44
- <li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.6.7-<wbr/>dev.3</a>
44
+ <li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.6.7-<wbr/>dev.4</a>
45
45
  <ul>
46
46
  <li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
47
47
  <nav class="tsd-navigation secondary menu-sticky">
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.6.7-dev.3</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.6.7-dev.3"/><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">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.6.7-dev.4</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.6.7-dev.4"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,13 +6,13 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.6.7-dev.3</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.6.7-dev.4</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-8 col-content">
13
13
  <div class="tsd-page-title">
14
14
  <ul class="tsd-breadcrumb">
15
- <li><a href="../modules.html">如视看房插件合集 - v2.6.7-dev.3</a></li>
15
+ <li><a href="../modules.html">如视看房插件合集 - v2.6.7-dev.4</a></li>
16
16
  <li><a href="modelRoomLabelPluginServerParams.html">modelRoomLabelPluginServerParams</a></li></ul>
17
17
  <h1>Variable modelRoomLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
18
18
  <div class="tsd-signature">model<wbr/>Room<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
@@ -24,7 +24,7 @@
24
24
  <li class="tsd-parameter">
25
25
  <h5>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
26
26
  <ul>
27
- <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/e4ed7c8/plugins/src/ModelRoomLabelPlugin/index.ts#L12">plugins/src/ModelRoomLabelPlugin/index.ts:12</a></li></ul></aside></div>
27
+ <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/73b9a25/plugins/src/ModelRoomLabelPlugin/index.ts#L12">plugins/src/ModelRoomLabelPlugin/index.ts:12</a></li></ul></aside></div>
28
28
  <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
29
29
  <div class="tsd-navigation settings">
30
30
  <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
@@ -41,7 +41,7 @@
41
41
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
42
42
  <div class="tsd-accordion-details">
43
43
  <ul>
44
- <li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.6.7-<wbr/>dev.3</a>
44
+ <li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.6.7-<wbr/>dev.4</a>
45
45
  <ul>
46
46
  <li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
47
47
  <nav class="tsd-navigation secondary menu-sticky">
@@ -2,42 +2,42 @@ var x = Object.defineProperty, G = Object.defineProperties;
2
2
  var V = Object.getOwnPropertyDescriptors;
3
3
  var R = Object.getOwnPropertySymbols;
4
4
  var N = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
5
- var A = (h, a, e) => a in h ? x(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, p = (h, a) => {
6
- for (var e in a || (a = {}))
7
- N.call(a, e) && A(h, e, a[e]);
5
+ var A = (h, d, e) => d in h ? x(h, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[d] = e, c = (h, d) => {
6
+ for (var e in d || (d = {}))
7
+ N.call(d, e) && A(h, e, d[e]);
8
8
  if (R)
9
- for (var e of R(a))
10
- W.call(a, e) && A(h, e, a[e]);
9
+ for (var e of R(d))
10
+ W.call(d, e) && A(h, e, d[e]);
11
11
  return h;
12
- }, m = (h, a) => G(h, V(a));
13
- var d = (h, a, e) => (A(h, typeof a != "symbol" ? a + "" : a, e), e);
14
- var c = (h, a, e) => new Promise((t, i) => {
12
+ }, g = (h, d) => G(h, V(d));
13
+ var l = (h, d, e) => (A(h, typeof d != "symbol" ? d + "" : d, e), e);
14
+ var f = (h, d, e) => new Promise((t, i) => {
15
15
  var s = (r) => {
16
16
  try {
17
17
  n(e.next(r));
18
- } catch (l) {
19
- i(l);
18
+ } catch (a) {
19
+ i(a);
20
20
  }
21
21
  }, o = (r) => {
22
22
  try {
23
23
  n(e.throw(r));
24
- } catch (l) {
25
- i(l);
24
+ } catch (a) {
25
+ i(a);
26
26
  }
27
27
  }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
28
- n((e = e.apply(h, a)).next());
28
+ n((e = e.apply(h, d)).next());
29
29
  });
30
30
  import { Subscribe as z } from "@realsee/five";
31
- import { Group as E, Vector3 as T, Matrix4 as C, Quaternion as _ } from "three";
32
- import u from "object-assign-deep";
31
+ import { Group as O, Vector3 as C, Matrix4 as D, Quaternion as _ } from "three";
32
+ import v from "object-assign-deep";
33
33
  import { writable as $ } from "../../vendor/svelte/store/index.js";
34
34
  import q from "../Components/TagContainer.js";
35
35
  import H from "../Components/Tag/index.js";
36
- import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
36
+ import { arrayPositionToVector3 as b } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
37
37
  import { addDebugPoints as J } from "../utils/addDebugPoints.js";
38
- import { planeNormal as O } from "../utils/planeNormal.js";
38
+ import { planeNormal as E } from "../utils/planeNormal.js";
39
39
  import "@realsee/five/gltf-loader";
40
- import { isMediaModelTag as f } from "../utils/tag/tagCheck.js";
40
+ import { isMediaModelTag as m } from "../utils/tag/tagCheck.js";
41
41
  import { waitFiveModelLoaded as Q } from "../utils/actionAfterFiveModelLoad.js";
42
42
  import { normalPositionToPositions as X } from "../utils/normalPositionToPositions.js";
43
43
  import { debounce as k } from "../utils/debounce.js";
@@ -46,7 +46,7 @@ import { resizeObserver as I } from "../utils/resizeObserver.js";
46
46
  import { TagComputer as Y } from "./TagComputer.js";
47
47
  import { CSS3DRenderPlugin as Z } from "../../CSS3DRenderPlugin/index.js";
48
48
  import ee from "../utils/tag/format.js";
49
- import { generateBlankAudio as L, AudioNamespace as U } from "../../shared-utils/audio.js";
49
+ import { generateBlankAudio as j, AudioNamespace as L } from "../../shared-utils/audio.js";
50
50
  import { loadGLTF as te } from "../../shared-utils/three/GLTFLoader.js";
51
51
  import "../../vendor/svelte/internal/index.js";
52
52
  import "../Components/TagItem.js";
@@ -123,67 +123,67 @@ import "./TagCacheController.js";
123
123
  import "../../base/BasePlugin.js";
124
124
  import "../../CSS3DRenderPlugin/Controller.js";
125
125
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
126
- const j = "2.0.10", S = `DnalogelPlugin-PanoTagPlugin@${j}`, ie = !1, qt = (h) => `${S}--${h}`;
126
+ const U = "2.0.10", S = `DnalogelPlugin-PanoTagPlugin@${U}`, ie = !1, qt = (h) => `${S}--${h}`;
127
127
  class Ht extends Y {
128
128
  constructor(e, t) {
129
129
  super(e);
130
- d(this, "version", j);
131
- d(this, "state", { enabled: !0, visible: !0 });
132
- d(this, "params");
133
- d(this, "debug");
134
- d(this, "css3DRenderPlugin");
135
- d(this, "TagContainerSvelte");
136
- d(this, "temporaryState", { visible: !0 });
137
- d(this, "mediaStore", $({
130
+ l(this, "version", U);
131
+ l(this, "state", { enabled: !0, visible: !0 });
132
+ l(this, "params");
133
+ l(this, "debug");
134
+ l(this, "css3DRenderPlugin");
135
+ l(this, "TagContainerSvelte");
136
+ l(this, "temporaryState", { visible: !0 });
137
+ l(this, "mediaStore", $({
138
138
  currentMediaElement: null
139
139
  }));
140
- d(this, "group", new E());
141
- d(this, "gltfObjectGroup", new E());
142
- d(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
143
- d(this, "store", {
140
+ l(this, "group", new O());
141
+ l(this, "gltfObjectGroup", new O());
142
+ l(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
143
+ l(this, "store", {
144
144
  disposers: [],
145
145
  disposed: !1,
146
146
  resizeObserverDisposerAdding: !1,
147
147
  css3DRenderDisposer: /* @__PURE__ */ new Map()
148
148
  });
149
- d(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
150
- d(this, "changeTagModel", (e, t) => c(this, null, function* () {
151
- e.data = u({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
149
+ l(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
150
+ l(this, "changeTagModel", (e, t) => f(this, null, function* () {
151
+ e.data = v({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
152
152
  }));
153
- d(this, "disposedErrorLog", () => {
153
+ l(this, "disposedErrorLog", () => {
154
154
  console.error(`${S} is disposed`);
155
155
  });
156
- d(this, "handleFiveInitAnimationEnded", () => {
156
+ l(this, "handleFiveInitAnimationEnded", () => {
157
157
  const e = this.five.getCurrentState().mode;
158
158
  this.tags.forEach((t) => {
159
- t.state.visible = this.getVisible(t), f(t) && e === "Panorama" && this.changeTagMode(t, "front");
159
+ t.state.visible = this.getVisible(t), m(t) && e === "Panorama" && this.changeTagMode(t, "front");
160
160
  }), this.updateRenderAllTags(), this.updateRenderAllTags();
161
161
  });
162
- d(this, "handleFiveModelShownFloorChange", () => {
162
+ l(this, "handleFiveModelShownFloorChange", () => {
163
163
  this.tags.forEach((e) => {
164
- !f(e) || (e.state.visible = this.checkFloorIndex(e));
164
+ !m(e) || (e.state.visible = this.checkFloorIndex(e));
165
165
  }), this.updateRenderAllTags();
166
166
  });
167
- d(this, "loadModel", (e) => c(this, null, function* () {
167
+ l(this, "loadModel", (e) => f(this, null, function* () {
168
168
  var r;
169
169
  const t = e.data.modelUrl;
170
170
  if (console.log("\u{1F436} ==> url:", t), !t)
171
171
  return;
172
- const i = te(t).then((l) => Object.assign(l.scene, { customID: e.id, isTagModel: !0 }));
172
+ const i = te(t).then((a) => Object.assign(a.scene, { customID: e.id, isTagModel: !0 }));
173
173
  e.model = { promise: i };
174
174
  const s = yield i;
175
175
  if (((r = e.model) == null ? void 0 : r.promise) !== i || (e.model.object = s, !this.tags.includes(e)))
176
176
  return;
177
- s.visible = e.state.visible, new C().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), this.checkFloorIndex(e) || (s.visible = !1);
178
- const n = this.gltfObjectGroup.children.find((l) => l.customID === e.id);
177
+ s.visible = e.state.visible, new D().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), this.checkFloorIndex(e) || (s.visible = !1);
178
+ const n = this.gltfObjectGroup.children.find((a) => a.customID === e.id);
179
179
  return n && this.gltfObjectGroup.remove(n), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
180
180
  }));
181
- this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, L(1, { namespace: U.GetAudioDuration }), L(1, { namespace: U.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
181
+ this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = c({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, j(1, { namespace: L.GetAudioDuration }), j(1, { namespace: L.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
182
182
  }
183
183
  load(e, t) {
184
- return c(this, null, function* () {
184
+ return f(this, null, function* () {
185
185
  var s, o;
186
- this.clearTags(), console.log(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = u({}, this.config, {
186
+ this.clearTags(), console.log(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = v({}, this.config, {
187
187
  globalConfig: (s = e.globalConfig) != null ? s : {},
188
188
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
189
189
  });
@@ -198,15 +198,15 @@ class Ht extends Y {
198
198
  });
199
199
  }
200
200
  addTag(e, t) {
201
- return c(this, null, function* () {
201
+ return f(this, null, function* () {
202
202
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
203
- const n = this.getTagConfig(o), r = m(p({}, o), {
204
- state: p({ visible: void 0, unfolded: ie }, n.initialState),
203
+ const n = this.getTagConfig(o), r = g(c({}, o), {
204
+ state: c({ visible: void 0, unfolded: ie }, n.initialState),
205
205
  hooks: new z(),
206
206
  clickable: n.clickable,
207
207
  mergedConfig: n
208
208
  });
209
- return f(o) && (r.temporaryState = { visible: !1 }), r;
209
+ return m(o) && (r.temporaryState = { visible: !1 }), r;
210
210
  }).filter((o) => o.position);
211
211
  return s.forEach(ee), this.tags.push(...s), Q(this.five).then(() => {
212
212
  var o, n, r;
@@ -215,16 +215,16 @@ class Ht extends Y {
215
215
  });
216
216
  }
217
217
  changeConfig(e, t = !0) {
218
- t ? this.config = u({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
218
+ t ? this.config = v({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
219
219
  }
220
220
  changeGlobalConfig(e, t = !0) {
221
- t ? this.config.globalConfig = u({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
221
+ t ? this.config.globalConfig = v({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
222
222
  }
223
223
  clearTags() {
224
224
  this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
225
225
  }
226
226
  show(e) {
227
- return c(this, null, function* () {
227
+ return f(this, null, function* () {
228
228
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
229
229
  if (this.store.disposed)
230
230
  return this.disposedErrorLog();
@@ -232,7 +232,7 @@ class Ht extends Y {
232
232
  });
233
233
  }
234
234
  hide(e) {
235
- return c(this, null, function* () {
235
+ return f(this, null, function* () {
236
236
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
237
237
  if (this.store.disposed)
238
238
  return this.disposedErrorLog();
@@ -254,14 +254,14 @@ class Ht extends Y {
254
254
  dispose() {
255
255
  var e, t, i, s, o, n;
256
256
  this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((r) => {
257
- var l;
258
- return (l = r.tag3DContentSvelte) == null ? void 0 : l.svelteApp.$destroy();
257
+ var a;
258
+ return (a = r.tag3DContentSvelte) == null ? void 0 : a.svelteApp.$destroy();
259
259
  }), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (n = (o = this.store).resizeObserverDisposer) == null || n.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.hooks.emit("dispose");
260
260
  }
261
261
  setState(e, t) {
262
262
  if (this.store.disposed)
263
263
  return this.disposedErrorLog();
264
- const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = p({}, this.state);
264
+ const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = c({}, this.state);
265
265
  this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
266
266
  }
267
267
  changeUnfoldedById(e, t) {
@@ -275,18 +275,18 @@ class Ht extends Y {
275
275
  }
276
276
  changeTagNormalById(e, t) {
277
277
  const i = this.getTagById(e);
278
- !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = v(t), this.updateRenderPlaneTag());
278
+ !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = b(t), this.updateRenderPlaneTag());
279
279
  }
280
280
  changeDataById(e, t, i = !0) {
281
281
  const s = this.getTagById(e);
282
- !s || (i ? s.data = u({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
282
+ !s || (i ? s.data = v({}, s.data, t) : s.data = c(c({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
283
283
  }
284
284
  changeStickTypeById(e, t, i = !0) {
285
285
  this.changeTagById(e, t, i);
286
286
  }
287
287
  changeTagById(e, t, i = !0) {
288
288
  const s = this.getTagById(e);
289
- !t || (i ? u(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = v(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
289
+ !t || (i ? v(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = b(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
290
290
  }
291
291
  destroyTagById(e) {
292
292
  (Array.isArray(e) ? e : [e]).forEach((i) => {
@@ -302,15 +302,15 @@ class Ht extends Y {
302
302
  const i = (w = (M = (P = e.mergedConfig) == null ? void 0 : P.tag3DConfig) == null ? void 0 : M.ratio) != null ? w : 216e-5, s = (F = e.tag3DContentSvelte) == null ? void 0 : F.domContainer.css3DObject;
303
303
  if (!s)
304
304
  return;
305
- const o = f(e) ? e.data.mediaPosition : e.position;
305
+ const o = m(e) ? e.data.mediaPosition : e.position;
306
306
  t.updateWorldMatrix(!1, !1);
307
- const n = t.matrixWorld, r = new T().fromArray(o[0]), l = new T().fromArray(o[2]), g = new T().lerpVectors(r, l, 0.5).add(new T(0, 0, 5e-4)), D = new C().setPosition(g), B = new C().makeScale(i, i, i), y = new C().multiply(n).multiply(D).multiply(B);
307
+ const n = t.matrixWorld, r = new C().fromArray(o[0]), a = new C().fromArray(o[2]), p = new C().lerpVectors(r, a, 0.5).add(new C(0, 0, 5e-4)), u = new D().setPosition(p), B = new D().makeScale(i, i, i), y = new D().multiply(n).multiply(u).multiply(B);
308
308
  y.decompose(s.position, s.quaternion, s.scale);
309
- const b = s.opacityMesh;
310
- !b || y.decompose(b.position, b.quaternion, b.scale);
309
+ const T = s.opacityMesh;
310
+ !T || y.decompose(T.position, T.quaternion, T.scale);
311
311
  }
312
312
  setVisibleAndUnfolded() {
313
- return c(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
313
+ return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
314
314
  if (!!this.isPanorama)
315
315
  return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
316
316
  setTimeout(() => {
@@ -336,9 +336,9 @@ class Ht extends Y {
336
336
  });
337
337
  }
338
338
  addEventListener() {
339
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), l = this.loadVideoFirstFrame.bind(this), g = this.clickhandler.bind(this), D = this.five.currentMode;
340
- return this.handleFiveModeChange(D), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", l), t.on("click", g), () => {
341
- e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", l), t.off("click", g), this.store.eventListenerDisposer = void 0;
339
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), a = this.loadVideoFirstFrame.bind(this), p = this.clickhandler.bind(this), u = this.five.currentMode;
340
+ return this.handleFiveModeChange(u), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", a), t.on("click", p), () => {
341
+ e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", a), t.off("click", p), this.store.eventListenerDisposer = void 0;
342
342
  };
343
343
  }
344
344
  loadVideoFirstFrame() {
@@ -374,13 +374,13 @@ class Ht extends Y {
374
374
  }
375
375
  handleFiveModeChange(e) {
376
376
  this.tags.forEach((t) => {
377
- t.state.visible = this.getVisible(t), f(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
377
+ t.state.visible = this.getVisible(t), m(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
378
378
  }), this.updateRenderAllTags(), this.updateRenderAllTags();
379
379
  }
380
380
  handleFiveWantsMoveToPano() {
381
381
  this.tags.forEach((e) => {
382
382
  const t = this.getTagConfig(e);
383
- typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = m(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = m(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
383
+ typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = g(c({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = g(c({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
384
384
  }), this.updateTagContainerVisible();
385
385
  }
386
386
  temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
@@ -426,9 +426,9 @@ class Ht extends Y {
426
426
  this.updateRenderPointTag();
427
427
  }
428
428
  handleFivePanoArrived() {
429
- return c(this, null, function* () {
429
+ return f(this, null, function* () {
430
430
  yield this.setVisibleAndUnfolded(), this.setModelMedialVisibleByPanoIndex(), this.tags.forEach((e) => {
431
- e.temporaryState = m(p({}, e.temporaryState), { visible: !0 });
431
+ e.temporaryState = g(c({}, e.temporaryState), { visible: !0 });
432
432
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
433
433
  });
434
434
  }
@@ -459,64 +459,64 @@ class Ht extends Y {
459
459
  }
460
460
  updateRenderPlaneTag() {
461
461
  this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag(), ...this.filterModelTag()]).forEach((t) => {
462
- var i;
462
+ var i, s, o;
463
463
  if (t.tag3DContentSvelte) {
464
- const { svelteApp: s, domContainer: o, initialNormal: n, currentNormal: r } = t.tag3DContentSvelte;
465
- if (s.$set({
464
+ const { svelteApp: n, domContainer: r, initialNormal: a, currentNormal: p } = t.tag3DContentSvelte;
465
+ if (n.$set({
466
466
  tag: t,
467
467
  hooks: this.hooks,
468
468
  state: this.state,
469
469
  temporaryState: this.temporaryState
470
- }), !n.equals(r)) {
471
- const l = new _().setFromUnitVectors(n, r);
472
- o.css3DObject.setRotationFromQuaternion(l);
470
+ }), !a.equals(p)) {
471
+ const u = new _().setFromUnitVectors(a, p);
472
+ r.css3DObject.setRotationFromQuaternion(u);
473
473
  }
474
474
  } else {
475
475
  if (((i = t.state) == null ? void 0 : i.visible) === !1)
476
476
  return;
477
477
  if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Z(this.five)), t.stickType === "3DPoint" && !t.normal)
478
478
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
479
- const s = (() => t.stickType === "Plane" ? t.position : f(t) ? t.data.mediaPosition : X(
479
+ const n = (() => t.stickType === "Plane" ? t.position : m(t) ? t.data.mediaPosition : X(
480
480
  this.five.camera.position,
481
- v(t.position),
482
- v(t.normal)
481
+ b(t.position),
482
+ b(t.normal)
483
483
  ))();
484
- if (!s)
484
+ if (!n)
485
485
  return;
486
- const o = function() {
486
+ const r = function() {
487
487
  if (t.normal)
488
- return v(t.normal);
488
+ return b(t.normal);
489
489
  if (t.stickType === "Plane")
490
- return O(t.position);
490
+ return E(t.position);
491
491
  if (t.contentType === "MediaModel")
492
- return O(s);
492
+ return E(n);
493
493
  }();
494
- if (!o)
495
- return;
496
- const n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
497
494
  if (!r)
498
495
  return;
499
- this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
496
+ const a = this.getTagConfig(t).tag3DConfig, p = this.css3DRenderPlugin.create3DDomContainer(n, a);
497
+ if (!p)
498
+ return;
499
+ this.store.css3DRenderDisposer.set(t.id, p.dispose), t.tag3DContentSvelte = {
500
500
  svelteApp: new H({
501
- target: r.container,
501
+ target: p.container,
502
502
  props: {
503
503
  tag: t,
504
504
  hooks: this.hooks,
505
- state: t.contentType === "MediaModel" ? m(p({}, this.state), { visible: !1 }) : this.state,
505
+ state: t.contentType === "MediaModel" ? g(c({}, this.state), { visible: !1 }) : this.state,
506
506
  mediaStore: this.mediaStore,
507
507
  temporaryState: this.temporaryState
508
508
  }
509
509
  }),
510
- domContainer: r,
511
- initialNormal: o,
512
- currentNormal: o
513
- };
510
+ domContainer: p,
511
+ initialNormal: r,
512
+ currentNormal: r
513
+ }, m(t) && ((s = t.model) == null ? void 0 : s.object) && this.updateTagCss3DObjectMatrix(t, (o = t.model) == null ? void 0 : o.object);
514
514
  }
515
515
  }), this.checkPanelTag();
516
516
  }
517
517
  updateRenderModelTag() {
518
518
  const e = (i) => !this.enabledModelTagSet.has(i.customID);
519
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(f).forEach((i) => {
519
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(m).forEach((i) => {
520
520
  var s;
521
521
  (s = i.model) == null || s.promise.then((o) => {
522
522
  o.visible = i.state.visible;
@@ -539,8 +539,8 @@ class Ht extends Y {
539
539
  }
540
540
  }
541
541
  addMediaModelTag(e) {
542
- return c(this, null, function* () {
543
- const t = e.filter(f).map(this.loadModel);
542
+ return f(this, null, function* () {
543
+ const t = e.filter(m).map(this.loadModel);
544
544
  yield Promise.all(t), this.five.getCurrentState().mode === "Panorama" && this.setModelMedialVisibleByPanoIndex(), this.updateRenderAllTags();
545
545
  });
546
546
  }
@@ -57,6 +57,7 @@ const e = {
57
57
  },
58
58
  visibleConfig: {
59
59
  keep: "visible",
60
+ visibleFiveMode: ["Panorama", "Floorplan", "Model", "Mapview"],
60
61
  alwaysShowWhenMovePano: !0
61
62
  }
62
63
  }
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.6.7-dev.3",
10
+ "version": "2.6.7-dev.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*",