@realsee/dnalogel 2.17.0-alpha.4 → 2.17.0-alpha.6

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 (265) hide show
  1. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  2. package/dist/index.cjs.js +4 -4
  3. package/dist/index.js +5 -4
  4. package/dist/index.umd.js +4 -4
  5. package/docs/classes/CSS3DRender.html +31 -31
  6. package/docs/classes/CruisePluginController.html +25 -25
  7. package/docs/classes/Magnifier.html +20 -20
  8. package/docs/classes/ModelRoomLabelController.html +11 -11
  9. package/docs/classes/Object3DHelperController.html +24 -24
  10. package/docs/classes/PaintBrush.html +15 -15
  11. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  12. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  13. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  14. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  15. package/docs/classes/PanoTagPluginController.html +45 -45
  16. package/docs/classes/Util.BetterTween.html +8 -8
  17. package/docs/classes/Util.FivePointSelector.html +12 -12
  18. package/docs/classes/Util.Interval.html +12 -12
  19. package/docs/classes/Util.Magnifier.html +17 -17
  20. package/docs/classes/Util.PointDomHelper.html +11 -11
  21. package/docs/classes/Util.PointHelper.html +11 -11
  22. package/docs/classes/Util.Rectangle.html +13 -13
  23. package/docs/enums/CameraMovementEffect.html +7 -7
  24. package/docs/enums/ContentType.html +19 -19
  25. package/docs/enums/DIRECTION.html +9 -9
  26. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  27. package/docs/enums/DimensionType.html +7 -7
  28. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  29. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  30. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  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/PanoVideoPlugin.html +4 -4
  56. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  57. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  58. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  59. package/docs/functions/Util.getFrameTime.html +5 -5
  60. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  61. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  62. package/docs/functions/Util.isNil.html +5 -5
  63. package/docs/functions/Util.nextFrame.html +5 -5
  64. package/docs/functions/Util.notNil.html +5 -5
  65. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  66. package/docs/functions/Util.tweenProgress.html +5 -5
  67. package/docs/functions/pluginFlag.html +5 -5
  68. package/docs/index.html +4 -4
  69. package/docs/interfaces/AddTagConfig.html +6 -6
  70. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  71. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  72. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  73. package/docs/interfaces/EventMap.html +15 -15
  74. package/docs/interfaces/FloorplanBounding.html +8 -8
  75. package/docs/interfaces/FloorplanData.html +10 -10
  76. package/docs/interfaces/FloorplanEntrance.html +11 -11
  77. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  78. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  79. package/docs/interfaces/FloorplanFloorData.html +9 -9
  80. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  81. package/docs/interfaces/FloorplanObserver.html +9 -9
  82. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  83. package/docs/interfaces/FloorplanPosition.html +7 -7
  84. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  85. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  86. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  87. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  88. package/docs/interfaces/FloorplanServerData.html +7 -7
  89. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  90. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  91. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  92. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  93. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  94. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  95. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  96. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  97. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  98. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  99. package/docs/interfaces/HelperOffset.html +8 -8
  100. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  101. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  102. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  103. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  104. package/docs/interfaces/MinMax.html +7 -7
  105. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  106. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  107. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  108. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  109. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  110. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  111. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  112. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  113. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  114. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  115. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  116. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  117. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  118. package/docs/interfaces/Object3DHelperState.html +8 -8
  119. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  120. package/docs/interfaces/PaintBrushAction.html +12 -12
  121. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  122. package/docs/interfaces/PaintBrushState.html +10 -10
  123. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  124. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  125. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  126. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  127. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  128. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  129. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  130. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  131. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  132. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  133. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  134. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  135. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  136. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  137. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  138. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  139. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  140. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  141. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  142. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  143. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  144. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  145. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  146. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  147. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  148. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  149. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  150. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  151. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  152. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  153. package/docs/interfaces/Point.html +8 -8
  154. package/docs/interfaces/Room.html +9 -9
  155. package/docs/interfaces/RoomInfo.html +7 -7
  156. package/docs/interfaces/RoomLabel.html +14 -14
  157. package/docs/interfaces/RoomRules.html +5 -5
  158. package/docs/interfaces/Rooms.html +5 -5
  159. package/docs/interfaces/Scissor.html +9 -9
  160. package/docs/interfaces/State.html +8 -8
  161. package/docs/interfaces/TagCacheInterface.html +12 -12
  162. package/docs/interfaces/TagConfig.html +12 -12
  163. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  164. package/docs/interfaces/TagIconUrl.html +11 -11
  165. package/docs/interfaces/TagObjectGroup.html +6 -6
  166. package/docs/interfaces/TagStyle.html +6 -6
  167. package/docs/interfaces/Tags.html +9 -9
  168. package/docs/interfaces/TemporaryState.html +6 -6
  169. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  170. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  171. package/docs/modules/PanoVideoPluginType.html +5 -5
  172. package/docs/modules/Util.html +5 -5
  173. package/docs/modules.html +4 -4
  174. package/docs/types/ArrayPosition.html +5 -5
  175. package/docs/types/AudioAppearance.html +5 -5
  176. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  177. package/docs/types/CSS3DRenderExportType.html +5 -5
  178. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  179. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  180. package/docs/types/ClassFunctionParameters.html +5 -5
  181. package/docs/types/Color.html +5 -5
  182. package/docs/types/ContentTypeConfigKey.html +5 -5
  183. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  184. package/docs/types/ContentTypeMap.html +5 -5
  185. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  186. package/docs/types/Create3DElementReturnType.html +5 -5
  187. package/docs/types/CruisePluginExportType.html +5 -5
  188. package/docs/types/Direction-1.html +5 -5
  189. package/docs/types/Direction4.html +5 -5
  190. package/docs/types/ElementRenderer.html +5 -5
  191. package/docs/types/FloorplanRuleLabels.html +5 -5
  192. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  193. package/docs/types/GuideLinePluginExportType.html +5 -5
  194. package/docs/types/HelperEventMap.html +5 -5
  195. package/docs/types/LoadTagConfig.html +5 -5
  196. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  197. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  198. package/docs/types/MediaData.html +5 -5
  199. package/docs/types/MediaStore.html +5 -5
  200. package/docs/types/ModelElement.html +5 -5
  201. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  202. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  203. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  204. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  205. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  206. package/docs/types/MoveArgs.html +5 -5
  207. package/docs/types/MoveOpts.html +5 -5
  208. package/docs/types/Object3DHelperEventMap.html +5 -5
  209. package/docs/types/ObjectFit.html +5 -5
  210. package/docs/types/PaintBrushEventMap.html +5 -5
  211. package/docs/types/PanoCompassPluginData.html +5 -5
  212. package/docs/types/PanoCompassPluginExportType.html +5 -5
  213. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  214. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  215. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  216. package/docs/types/PanoIndex.html +5 -5
  217. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  218. package/docs/types/PanoMeasureReturnType.html +5 -5
  219. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  220. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  221. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  222. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  223. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  224. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -5
  225. package/docs/types/PlaneTag.html +5 -5
  226. package/docs/types/PlaneTagElement.html +5 -5
  227. package/docs/types/Point2DElement.html +5 -5
  228. package/docs/types/Point2DTag.html +5 -5
  229. package/docs/types/Point3DElement.html +5 -5
  230. package/docs/types/Point3DTag.html +5 -5
  231. package/docs/types/PointTag.html +5 -5
  232. package/docs/types/PointTagElement.html +5 -5
  233. package/docs/types/Position.html +5 -5
  234. package/docs/types/RotateArgs.html +5 -5
  235. package/docs/types/RotateOpts.html +5 -5
  236. package/docs/types/RuleLabelsKey.html +5 -5
  237. package/docs/types/RuleLabelsValue.html +5 -5
  238. package/docs/types/StickType.html +5 -5
  239. package/docs/types/Tag.html +6 -6
  240. package/docs/types/Tag2D.html +5 -5
  241. package/docs/types/Tag3D.html +5 -5
  242. package/docs/types/TagContentType.html +5 -5
  243. package/docs/types/TagDimensionType.html +5 -5
  244. package/docs/types/TagElement.html +5 -5
  245. package/docs/types/TagEvents.html +5 -5
  246. package/docs/types/TagGLTFObject.html +5 -5
  247. package/docs/types/TagHooks.html +5 -5
  248. package/docs/types/TagIconSize.html +5 -5
  249. package/docs/types/TagId.html +5 -5
  250. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  251. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  252. package/docs/types/WorkCode.html +5 -5
  253. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  254. package/docs/variables/PLUGIN.html +5 -5
  255. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  256. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  257. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  258. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  259. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  260. package/libs/PanoTagPlugin/controller/TagRender.js +95 -94
  261. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  262. package/libs/base/BasePlugin.js +1 -1
  263. package/libs/shared-utils/logger.js +1 -1
  264. package/libs/shared-utils/three/getPositionsByObjectFit.js +15 -15
  265. 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.17.0-alpha.4</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.17.0-alpha.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">
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.17.0-alpha.6</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.17.0-alpha.6"/><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.17.0-alpha.4</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.17.0-alpha.6</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.17.0-alpha.4</a></li>
15
+ <li><a href="../modules.html">如视看房插件合集 - v2.17.0-alpha.6</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/fe03a1b/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/7d94634/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.17.0-<wbr/>alpha.4</a>
44
+ <li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.17.0-<wbr/>alpha.6</a>
45
45
  <ul>
46
46
  <li class="tsd-kind-namespace"><a href="../modules/PanoVideoPluginType.html">Pano<wbr/>Video<wbr/>Plugin<wbr/>Type</a></li>
47
47
  <li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
@@ -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.17.0-alpha.4</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.17.0-alpha.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">
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.17.0-alpha.6</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.17.0-alpha.6"/><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.17.0-alpha.4</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.17.0-alpha.6</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.17.0-alpha.4</a></li>
15
+ <li><a href="../modules.html">如视看房插件合集 - v2.17.0-alpha.6</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/fe03a1b/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</a></li></ul></aside></div>
27
+ <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/7d94634/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</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.17.0-<wbr/>alpha.4</a>
44
+ <li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.17.0-<wbr/>alpha.6</a>
45
45
  <ul>
46
46
  <li class="tsd-kind-namespace"><a href="../modules/PanoVideoPluginType.html">Pano<wbr/>Video<wbr/>Plugin<wbr/>Type</a></li>
47
47
  <li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
@@ -1,33 +1,33 @@
1
1
  var w = Object.defineProperty;
2
- var E = (c, l, e) => l in c ? w(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e;
3
- var u = (c, l, e) => (E(c, typeof l != "symbol" ? l + "" : l, e), e);
4
- var T = (c, l, e) => new Promise((t, i) => {
2
+ var E = (c, l, t) => l in c ? w(c, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[l] = t;
3
+ var u = (c, l, t) => (E(c, typeof l != "symbol" ? l + "" : l, t), t);
4
+ var T = (c, l, t) => new Promise((e, i) => {
5
5
  var o = (s) => {
6
6
  try {
7
- a(e.next(s));
7
+ a(t.next(s));
8
8
  } catch (r) {
9
9
  i(r);
10
10
  }
11
11
  }, n = (s) => {
12
12
  try {
13
- a(e.throw(s));
13
+ a(t.throw(s));
14
14
  } catch (r) {
15
15
  i(r);
16
16
  }
17
- }, a = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(o, n);
18
- a((e = e.apply(c, l)).next());
17
+ }, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(o, n);
18
+ a((t = t.apply(c, l)).next());
19
19
  });
20
20
  import { TagComputer as O } from "./TagComputer.js";
21
21
  import { Group as b, Quaternion as k, Vector3 as D, Matrix4 as P } from "three";
22
22
  import x from "../Components/TagContainer.js";
23
- import G from "../Components/Tag/index.js";
23
+ import F from "../Components/Tag/index.js";
24
24
  import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
- import { centerPoint as I } from "../../shared-utils/three/centerPoint.js";
25
+ import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
26
26
  import "@realsee/five/gltf-loader";
27
- import { VideoPlane as R, ImagePlane as j } from "../utils/model/mediaPlane.js";
27
+ import { VideoPlane as j, ImagePlane as R } from "../utils/model/mediaPlane.js";
28
28
  import { isMediaModelTag as C } from "../utils/tag/tagCheck.js";
29
- import { CSS3DRenderPlugin as V } from "../../CSS3DRenderPlugin/index.js";
30
- import { loadGLTF as A } from "../../shared-utils/three/GLTFLoader.js";
29
+ import { CSS3DRenderPlugin as I } from "../../CSS3DRenderPlugin/index.js";
30
+ import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
31
31
  import "@realsee/five";
32
32
  import "../utils/tagPosition.js";
33
33
  import "../../shared-utils/three/loadTexture.js";
@@ -139,133 +139,134 @@ import "../Components/Tag/LinkTag.js";
139
139
  import "../Components/Tag/CustomTag.js";
140
140
  import "../../CSS3DRenderPlugin/Controller.js";
141
141
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
142
- const F = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
142
+ const A = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
143
143
  class ei extends O {
144
- constructor(e) {
145
- super(e);
144
+ constructor(t) {
145
+ super(t);
146
146
  u(this, "group", new b());
147
147
  u(this, "imagePlaneGroup", new b());
148
148
  u(this, "gltfObjectGroup", new b());
149
149
  u(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
150
150
  u(this, "temporaryState", { visible: !0 });
151
151
  u(this, "TagContainerSvelte");
152
- u(this, "loadModel", (e) => T(this, null, function* () {
152
+ u(this, "loadModel", (t) => T(this, null, function* () {
153
153
  var s;
154
- const t = e.data.modelUrl;
155
- if (!t)
154
+ const e = t.data.modelUrl;
155
+ if (!e)
156
156
  return;
157
- const i = A(t).then((r) => Object.assign(r.scene, { customID: e.id, isTagModel: !0 }));
158
- e.model = { promise: i };
157
+ const i = V(e).then((r) => Object.assign(r.scene, { customID: t.id, isTagModel: !0 }));
158
+ t.model = { promise: i };
159
159
  const o = yield i;
160
- if (((s = e.model) == null ? void 0 : s.promise) !== i || (e.model.object = o, !this.tags.includes(e)))
160
+ if (((s = t.model) == null ? void 0 : s.promise) !== i || (t.model.object = o, !this.tags.includes(t)))
161
161
  return;
162
- o.visible = this.getCurrentVisibleState(e), new P().fromArray(e.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFiveMode(e);
163
- const a = this.gltfObjectGroup.children.find((r) => r.customID === e.id);
164
- if (a && this.gltfObjectGroup.remove(a), this.getRenderType(e) === "Mesh") {
165
- if (!e.mediaPlane) {
166
- const r = e.data.mediaPosition.map(v);
167
- e.mediaPlane = new j(e.data.mediaData[0].url, e.data.mediaPosition.map(v), {
168
- objectFit: e.data.objectFit
162
+ o.visible = this.getCurrentVisibleState(t), new P().fromArray(t.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFiveMode(t);
163
+ const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
164
+ if (a && this.gltfObjectGroup.remove(a), this.getRenderType(t) === "Mesh") {
165
+ if (!t.mediaPlane) {
166
+ const r = t.data.mediaPosition.map(v);
167
+ t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(v), {
168
+ objectFit: t.data.objectFit
169
169
  });
170
170
  const m = new D().addVectors(r[0], r[2]).divideScalar(2);
171
- e.mediaPlane.position.copy(m), o.add(e.mediaPlane);
171
+ t.mediaPlane.position.copy(m), o.add(t.mediaPlane);
172
172
  }
173
173
  } else
174
- o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(e, o), o.updateTagCss3DObjectMatrix();
174
+ o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix();
175
175
  return this.gltfObjectGroup.add(o), o;
176
176
  }));
177
177
  this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
178
178
  }
179
179
  clearTags() {
180
- this.tags.forEach((e) => {
181
- var t, i;
182
- (i = (t = e.mediaPlane) == null ? void 0 : t.parent) == null || i.remove(e.mediaPlane);
180
+ this.tags.forEach((t) => {
181
+ var e, i;
182
+ (i = (e = t.mediaPlane) == null ? void 0 : e.parent) == null || i.remove(t.mediaPlane);
183
183
  }), this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
184
184
  }
185
185
  updateRenderAllTags() {
186
- this.enabledModelTagSet.clear(), this.tags.forEach((e) => e.stickType === "Model" && this.enabledModelTagSet.add(e.id)), this.updateRenderPointTag(), this.updateRender3DDomTag(), this.updateRenderModelTag(), this.updateRenderImagePlane();
186
+ this.enabledModelTagSet.clear(), this.tags.forEach((t) => t.stickType === "Model" && this.enabledModelTagSet.add(t.id)), this.updateRenderPointTag(), this.updateRender3DDomTag(), this.updateRenderModelTag(), this.updateRenderImagePlane();
187
187
  }
188
188
  updateRenderImagePlane() {
189
- this.sort(this.filterImagePlane).forEach((t) => {
189
+ this.sort(this.filterImagePlane).forEach((e) => {
190
190
  var s, r, m, f, g;
191
- const i = t.data.mediaData[0];
191
+ const i = e.data.mediaData[0];
192
192
  if (!i)
193
193
  return;
194
194
  const { url: o, type: n } = i;
195
- if (!o || (t.mediaPlane && (t.mediaPlane.visible = (r = (s = t.state) == null ? void 0 : s.visible) != null ? r : !0, t.mediaPlane.visible || t.mediaPlane instanceof R && ((m = t.data.autoplayConfig) != null && m.autoplayVideo || t.mediaPlane.pause())), ((f = t.mediaPlane) == null ? void 0 : f.src) === o))
195
+ if (!o || (e.mediaPlane && (e.mediaPlane.visible = (r = (s = e.state) == null ? void 0 : s.visible) != null ? r : !0, e.mediaPlane.visible || e.mediaPlane instanceof j && ((m = e.data.autoplayConfig) != null && m.autoplayVideo || e.mediaPlane.pause())), ((f = e.mediaPlane) == null ? void 0 : f.src) === o))
196
196
  return;
197
- const a = t.position.map(v);
198
- if (t.mediaPlane && t.mediaPlane.removeFromParent(), n === "Image")
199
- t.mediaPlane = new j(o, a), this.domEvents.addAutoBindEventListener(t.mediaPlane, "click", (p) => {
200
- this.hooks.emit("click", { tag: t, target: "TagContent", event: p.origDomEvent });
197
+ const a = e.position.map(v);
198
+ if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
199
+ e.mediaPlane = new R(o, a, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
200
+ this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
201
201
  });
202
202
  else if (n === "Video") {
203
- const p = new R(o, a, {
203
+ const p = new j(o, a, {
204
204
  videoCoverSrc: i.videoCoverUrl,
205
- playButton: t.data.playIcon,
206
- paused: !((g = t.data.autoplayConfig) != null && g.autoplayVideo),
207
- videoTextureMap: F,
205
+ playButton: e.data.playIcon,
206
+ paused: !((g = e.data.autoplayConfig) != null && g.autoplayVideo),
207
+ objectFit: e.data.objectFit,
208
+ videoTextureMap: A,
208
209
  ImageTextureMap: B
209
210
  });
210
211
  p.onVideoReady = (d) => {
211
212
  d.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: p.videoInstance }));
212
213
  }, p.initialDomEvents(this.domEvents);
213
214
  const h = (d) => (this.five.on("renderFrame", d), () => this.five.off("renderFrame", d));
214
- p.initialRenderHooks(h), t.mediaPlane = p;
215
+ p.initialRenderHooks(h), e.mediaPlane = p;
215
216
  }
216
- this.imagePlaneGroup.add(t.mediaPlane);
217
+ this.imagePlaneGroup.add(e.mediaPlane);
217
218
  });
218
219
  }
219
220
  updateRender3DDomTag() {
220
- this.sort([...this.filterCSS3DTag]).forEach((t) => {
221
+ this.sort([...this.filterCSS3DTag]).forEach((e) => {
221
222
  var i, o;
222
- if (t.tag3DContentSvelte) {
223
- const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = t.tag3DContentSvelte;
224
- if (n.$set({ tag: t, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
223
+ if (e.tag3DContentSvelte) {
224
+ const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
225
+ if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
225
226
  const m = new k().setFromUnitVectors(s, r);
226
227
  a.css3DObject.setRotationFromQuaternion(m);
227
228
  }
228
229
  return;
229
230
  } else {
230
- if (((i = t.state) == null ? void 0 : i.visible) === !1)
231
+ if (((i = e.state) == null ? void 0 : i.visible) === !1)
231
232
  return;
232
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = V(this.five)), t.stickType === "3DPoint" && !t.normal)
233
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = I(this.five)), e.stickType === "3DPoint" && !e.normal)
233
234
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
234
- const n = this.getPositions(t);
235
+ const n = this.getPositions(e);
235
236
  if (!n)
236
237
  return;
237
- const a = this.getTagNormal(t);
238
+ const a = this.getTagNormal(e);
238
239
  if (!a)
239
240
  return;
240
- const r = (o = this.getTagConfig(t).tag3DConfig) != null ? o : {};
241
- if (this.getRenderType(t) === "BehindDom") {
241
+ const r = (o = this.getTagConfig(e).tag3DConfig) != null ? o : {};
242
+ if (this.getRenderType(e) === "BehindDom") {
242
243
  r.mode = "behind", r.container = document.createElement("div");
243
244
  const g = "black";
244
245
  r.container.style.backgroundColor = g, r.container.style.border = `3px solid ${g}`, this.css3DRenderPlugin.hooks.on("render", () => {
245
246
  var p;
246
247
  if (m.css3DObject.opacityMesh) {
247
- const h = this.addObjectClickHandler(t, m.css3DObject.opacityMesh, (d) => {
248
- this.hooks.emit("click", { event: d, target: "TagContent", tag: t });
248
+ const h = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (d) => {
249
+ this.hooks.emit("click", { event: d, target: "TagContent", tag: e });
249
250
  });
250
- (p = this.store.css3DRenderDisposer.get(t.id)) == null || p.push(h);
251
+ (p = this.store.css3DRenderDisposer.get(e.id)) == null || p.push(h);
251
252
  }
252
253
  });
253
254
  }
254
255
  const m = this.css3DRenderPlugin.create3DDomContainer(n, r);
255
256
  if (!m)
256
257
  return;
257
- this.store.css3DRenderDisposer.set(t.id, [m.dispose]);
258
- const f = new G({
258
+ this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
259
+ const f = new F({
259
260
  target: m.container,
260
261
  props: {
261
- tag: t,
262
+ tag: e,
262
263
  hooks: this.hooks,
263
264
  state: this.state,
264
265
  mediaStore: this.mediaStore,
265
266
  temporaryState: this.temporaryState
266
267
  }
267
268
  });
268
- t.tag3DContentSvelte = {
269
+ e.tag3DContentSvelte = {
269
270
  svelteApp: f,
270
271
  domContainer: m,
271
272
  css3DInstance: m,
@@ -279,8 +280,8 @@ class ei extends O {
279
280
  }), this.clearUnusedPanelTag();
280
281
  }
281
282
  updateRenderModelTag() {
282
- const e = (i) => !this.enabledModelTagSet.has(i.customID);
283
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(C).forEach((i) => {
283
+ const t = (i) => !this.enabledModelTagSet.has(i.customID);
284
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(C).forEach((i) => {
284
285
  var o;
285
286
  (o = i.model) == null || o.promise.then((n) => {
286
287
  n.visible = this.getCurrentVisibleState(i);
@@ -288,53 +289,53 @@ class ei extends O {
288
289
  });
289
290
  }
290
291
  updateTagModelVisible() {
291
- this.tags.forEach((e) => {
292
- var t;
293
- e.mediaPlane && (e.mediaPlane.visible = this.getCurrentVisibleState(e)), (t = e.model) != null && t.object && (e.model.object.visible = this.getCurrentVisibleState(e));
292
+ this.tags.forEach((t) => {
293
+ var e;
294
+ t.mediaPlane && (t.mediaPlane.visible = this.getCurrentVisibleState(t)), (e = t.model) != null && e.object && (t.model.object.visible = this.getCurrentVisibleState(t));
294
295
  });
295
296
  }
296
- updateTagCss3DObjectMatrix(e, t) {
297
+ updateTagCss3DObjectMatrix(t, e) {
297
298
  var d, S, y, M;
298
- const i = (y = (S = (d = e.mergedConfig) == null ? void 0 : d.tag3DConfig) == null ? void 0 : S.ratio) != null ? y : 216e-5, o = (M = e.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
299
+ const i = (y = (S = (d = t.mergedConfig) == null ? void 0 : d.tag3DConfig) == null ? void 0 : S.ratio) != null ? y : 216e-5, o = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
299
300
  if (!o)
300
301
  return;
301
- const n = C(e) ? e.data.mediaPosition : e.position;
302
- t.updateWorldMatrix(!1, !1);
303
- const a = t.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = I(s, r).add(new D(0, 0, 5e-4)), f = new P().setPosition(m), g = new P().makeScale(i, i, i), p = new P().multiply(a).multiply(f).multiply(g);
302
+ const n = C(t) ? t.data.mediaPosition : t.position;
303
+ e.updateWorldMatrix(!1, !1);
304
+ const a = e.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = G(s, r).add(new D(0, 0, 5e-4)), f = new P().setPosition(m), g = new P().makeScale(i, i, i), p = new P().multiply(a).multiply(f).multiply(g);
304
305
  p.decompose(o.position, o.quaternion, o.scale);
305
306
  const h = o.opacityMesh;
306
307
  h && p.decompose(h.position, h.quaternion, h.scale);
307
308
  }
308
- addMediaModelTag(e) {
309
+ addMediaModelTag(t) {
309
310
  return T(this, null, function* () {
310
- const t = e.filter(C).map((i) => this.loadModel(i));
311
- yield Promise.all(t), this.setModelMedialVisible(), this.updateRenderAllTags();
311
+ const e = t.filter(C).map((i) => this.loadModel(i));
312
+ yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
312
313
  });
313
314
  }
314
315
  updateRenderPointTag() {
315
- var t;
316
- const e = this.sort(this.filterPointTag);
316
+ var e;
317
+ const t = this.sort(this.filterPointTag);
317
318
  if (this.setPointTagPosition(), this.TagContainerSvelte)
318
- this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
319
+ this.TagContainerSvelte.$set({ tags: t, state: this.state, temporaryState: this.temporaryState });
319
320
  else {
320
- const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
321
+ const i = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
321
322
  if (!i)
322
323
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
323
324
  this.TagContainerSvelte = new x({
324
325
  target: i,
325
- props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
326
+ props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
326
327
  });
327
328
  }
328
329
  }
329
330
  updateTagContainerVisible() {
330
- var e;
331
- (e = this.TagContainerSvelte) == null || e.$set({
331
+ var t;
332
+ (t = this.TagContainerSvelte) == null || t.$set({
332
333
  state: this.state,
333
334
  temporaryState: this.temporaryState,
334
335
  withAnimation: this.store.visibleWithAnimation
335
- }), this.filterCSS3DTag.forEach((t) => {
336
+ }), this.filterCSS3DTag.forEach((e) => {
336
337
  var i, o, n, a, s;
337
- (a = (o = (i = t.tag3DContentSvelte) == null ? void 0 : i.css3DInstance) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = t.state) == null ? void 0 : n.visible)) !== !1), (s = t.tag3DContentSvelte) == null || s.svelteApp.$set({
338
+ (a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.css3DInstance) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (s = e.tag3DContentSvelte) == null || s.svelteApp.$set({
338
339
  state: this.state,
339
340
  temporaryState: this.temporaryState,
340
341
  withAnimation: this.store.visibleWithAnimation
@@ -342,18 +343,18 @@ class ei extends O {
342
343
  });
343
344
  }
344
345
  disposeAllCSS3DContainer() {
345
- for (const [e, t] of this.store.css3DRenderDisposer)
346
- t == null || t.forEach((i) => i == null ? void 0 : i());
346
+ for (const [t, e] of this.store.css3DRenderDisposer)
347
+ e == null || e.forEach((i) => i == null ? void 0 : i());
347
348
  this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
348
349
  }
349
350
  clearUnusedPanelTag() {
350
- this.filter2DPointTag.forEach((e) => {
351
- var t;
352
- (t = e.tag3DContentSvelte) == null || t.css3DInstance.dispose(), e.tag3DContentSvelte = void 0;
351
+ this.filter2DPointTag.forEach((t) => {
352
+ var e;
353
+ (e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
353
354
  });
354
- for (const [e, t] of this.store.css3DRenderDisposer) {
355
- const i = this.getTagById(e);
356
- (!i || i.stickType === "2DPoint") && (t == null || t.forEach((o) => o == null ? void 0 : o()), this.store.css3DRenderDisposer.delete(e));
355
+ for (const [t, e] of this.store.css3DRenderDisposer) {
356
+ const i = this.getTagById(t);
357
+ (!i || i.stickType === "2DPoint") && (e == null || e.forEach((o) => o == null ? void 0 : o()), this.store.css3DRenderDisposer.delete(t));
357
358
  }
358
359
  }
359
360
  }
@@ -21,7 +21,7 @@ export declare type Tag<C extends TagContentType = TagContentType, S extends Sti
21
21
  /** 开启/禁用 */
22
22
  enabled?: boolean;
23
23
  /** 唯一标识 */
24
- id?: TagId;
24
+ id: TagId;
25
25
  /** @type {StickType} 附着方式 */
26
26
  stickType: S;
27
27
  /** @type {TagContentType} 内容类型,根据内容类型展示对应UI */
@@ -4,7 +4,7 @@ var s = (e, r, t) => (a(e, typeof r != "symbol" ? r + "" : r, t), t);
4
4
  import { Subscribe as c } from "../shared-utils/Subscribe.js";
5
5
  class o {
6
6
  constructor(r, t) {
7
- s(this, "VERSION", "2.17.0-alpha.4");
7
+ s(this, "VERSION", "2.17.0-alpha.6");
8
8
  s(this, "five");
9
9
  s(this, "hooks", new c());
10
10
  s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.info(
3
- "%c %c@realsee/dnalogel %cv2.17.0-alpha.4",
3
+ "%c %c@realsee/dnalogel %cv2.17.0-alpha.6",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
@@ -1,4 +1,4 @@
1
- import * as l from "three";
1
+ import * as m from "three";
2
2
  import "@realsee/five";
3
3
  import "object-assign-deep";
4
4
  import "@realsee/five/gltf-loader";
@@ -19,22 +19,22 @@ import "lodash.clonedeep";
19
19
  import "lodash.isequal";
20
20
  import "classnames";
21
21
  import "./GLTFLoader.js";
22
- function G(m, i, s) {
23
- if (m === "fill")
24
- return i;
25
- if (m === "contain") {
26
- const [t, e, o, r] = i, a = t.distanceTo(e), u = o.distanceTo(r), d = t.distanceTo(r), f = e.distanceTo(o), h = a, w = d, b = h / w;
27
- if (b > s) {
28
- const c = w * s, n = new l.Vector3().subVectors(e, t).multiplyScalar((a - c) / 2 / a), p = new l.Vector3().subVectors(o, r).multiplyScalar((u - c) / 2 / u);
29
- return [t.clone().add(n), e.clone().sub(n), o.clone().sub(p), r.clone().add(p)];
30
- } else if (b < s) {
31
- const c = h / s, n = new l.Vector3().subVectors(r, t).multiplyScalar((d - c) / 2 / d), p = new l.Vector3().subVectors(o, e).multiplyScalar((f - c) / 2 / f);
32
- return [t.clone().add(n), e.clone().add(p), o.clone().sub(p), r.clone().sub(n)];
22
+ function J(i, c, n) {
23
+ if (console.log({ objectFit: i, originPositions: c, originRatio: n }), i === "fill")
24
+ return c;
25
+ if (i === "contain") {
26
+ const [t, e, o, r] = c, a = t.distanceTo(e), u = o.distanceTo(r), d = t.distanceTo(r), f = e.distanceTo(o), h = a, w = d, b = h / w;
27
+ if (b > n) {
28
+ const p = w * n, s = new m.Vector3().subVectors(e, t).multiplyScalar((a - p) / 2 / a), l = new m.Vector3().subVectors(o, r).multiplyScalar((u - p) / 2 / u);
29
+ return [t.clone().add(s), e.clone().sub(s), o.clone().sub(l), r.clone().add(l)];
30
+ } else if (b < n) {
31
+ const p = h / n, s = new m.Vector3().subVectors(r, t).multiplyScalar((d - p) / 2 / d), l = new m.Vector3().subVectors(o, e).multiplyScalar((f - p) / 2 / f);
32
+ return [t.clone().add(s), e.clone().add(l), o.clone().sub(l), r.clone().sub(s)];
33
33
  } else
34
- return i;
34
+ return c;
35
35
  } else
36
- return console.warn(`objectFit: ${m} is not supported yet`), i;
36
+ return console.warn(`objectFit: ${i} is not supported yet`), c;
37
37
  }
38
38
  export {
39
- G as getPositionsByObjectFit
39
+ J as getPositionsByObjectFit
40
40
  };
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.17.0-alpha.4",
10
+ "version": "2.17.0-alpha.6",
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*",