@realsee/dnalogel 2.17.1-alpha.1 → 2.17.1-alpha.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 (272) hide show
  1. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +46 -12
  2. package/dist/index.cjs.js +44 -44
  3. package/dist/index.js +1323 -1318
  4. package/dist/index.umd.js +37 -37
  5. package/dist/shared-utils/device.d.ts +3 -0
  6. package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
  7. package/docs/classes/CSS3DRender.html +31 -31
  8. package/docs/classes/CruisePluginController.html +25 -25
  9. package/docs/classes/Magnifier.html +20 -20
  10. package/docs/classes/ModelRoomLabelController.html +11 -11
  11. package/docs/classes/Object3DHelperController.html +24 -24
  12. package/docs/classes/PaintBrush.html +15 -15
  13. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  14. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  15. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  16. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  17. package/docs/classes/PanoTagPluginController.html +45 -45
  18. package/docs/classes/Util.BetterTween.html +8 -8
  19. package/docs/classes/Util.FivePointSelector.html +12 -12
  20. package/docs/classes/Util.Interval.html +12 -12
  21. package/docs/classes/Util.Magnifier.html +17 -17
  22. package/docs/classes/Util.PointDomHelper.html +11 -11
  23. package/docs/classes/Util.PointHelper.html +11 -11
  24. package/docs/classes/Util.Rectangle.html +13 -13
  25. package/docs/enums/CameraMovementEffect.html +7 -7
  26. package/docs/enums/ContentType.html +19 -19
  27. package/docs/enums/DIRECTION.html +9 -9
  28. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  29. package/docs/enums/DimensionType.html +7 -7
  30. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  31. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  32. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  33. package/docs/enums/Rotation.html +8 -8
  34. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  35. package/docs/functions/CameraMovementPlugin.html +4 -4
  36. package/docs/functions/CruisePlugin.html +4 -4
  37. package/docs/functions/GuideLinePlugin.html +5 -5
  38. package/docs/functions/ItemLabelPlugin.html +4 -4
  39. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  40. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  41. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  42. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  43. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  44. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  45. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  46. package/docs/functions/ModelViewPlugin.html +4 -4
  47. package/docs/functions/Object3DHelperPlugin.html +4 -4
  48. package/docs/functions/PanoCompassPlugin.html +4 -4
  49. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  50. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  51. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  52. package/docs/functions/PanoMeasurePlugin.html +4 -4
  53. package/docs/functions/PanoRulerPlugin.html +4 -4
  54. package/docs/functions/PanoRulerProPlugin.html +4 -4
  55. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  56. package/docs/functions/PanoTagPlugin.html +4 -4
  57. package/docs/functions/PanoVideoPlugin.html +4 -4
  58. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  59. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  60. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  61. package/docs/functions/Util.getFrameTime.html +5 -5
  62. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  63. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  64. package/docs/functions/Util.isNil.html +5 -5
  65. package/docs/functions/Util.nextFrame.html +5 -5
  66. package/docs/functions/Util.notNil.html +5 -5
  67. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  68. package/docs/functions/Util.tweenProgress.html +5 -5
  69. package/docs/functions/pluginFlag.html +5 -5
  70. package/docs/index.html +4 -4
  71. package/docs/interfaces/AddTagConfig.html +6 -6
  72. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  73. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  74. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  75. package/docs/interfaces/EventMap.html +15 -15
  76. package/docs/interfaces/FloorplanBounding.html +8 -8
  77. package/docs/interfaces/FloorplanData.html +10 -10
  78. package/docs/interfaces/FloorplanEntrance.html +11 -11
  79. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  80. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  81. package/docs/interfaces/FloorplanFloorData.html +9 -9
  82. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  83. package/docs/interfaces/FloorplanObserver.html +9 -9
  84. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  85. package/docs/interfaces/FloorplanPosition.html +7 -7
  86. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  87. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  88. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  89. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  90. package/docs/interfaces/FloorplanServerData.html +7 -7
  91. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  92. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  93. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  94. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  95. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  96. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  97. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  98. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  99. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  100. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  101. package/docs/interfaces/HelperOffset.html +8 -8
  102. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  103. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  104. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  105. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  106. package/docs/interfaces/MinMax.html +7 -7
  107. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  108. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  109. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  110. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  111. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  112. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  113. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  114. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  115. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  116. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  117. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  118. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  119. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  120. package/docs/interfaces/Object3DHelperState.html +8 -8
  121. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  122. package/docs/interfaces/PaintBrushAction.html +12 -12
  123. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  124. package/docs/interfaces/PaintBrushState.html +10 -10
  125. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  126. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  127. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  128. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  129. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  130. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  131. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  132. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  133. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  134. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  135. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  136. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  137. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  138. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  139. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  140. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  141. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  142. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  143. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  144. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  145. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  146. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  147. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  148. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  149. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  150. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  151. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  152. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  153. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  154. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  155. package/docs/interfaces/Point.html +8 -8
  156. package/docs/interfaces/Room.html +9 -9
  157. package/docs/interfaces/RoomInfo.html +7 -7
  158. package/docs/interfaces/RoomLabel.html +14 -14
  159. package/docs/interfaces/RoomRules.html +5 -5
  160. package/docs/interfaces/Rooms.html +5 -5
  161. package/docs/interfaces/Scissor.html +9 -9
  162. package/docs/interfaces/State.html +8 -8
  163. package/docs/interfaces/TagCacheInterface.html +12 -12
  164. package/docs/interfaces/TagConfig.html +13 -13
  165. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  166. package/docs/interfaces/TagIconUrl.html +11 -11
  167. package/docs/interfaces/TagObjectGroup.html +6 -6
  168. package/docs/interfaces/TagStyle.html +6 -6
  169. package/docs/interfaces/Tags.html +9 -9
  170. package/docs/interfaces/TemporaryState.html +6 -6
  171. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  172. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  173. package/docs/modules/PanoVideoPluginType.html +5 -5
  174. package/docs/modules/Util.html +5 -5
  175. package/docs/modules.html +4 -4
  176. package/docs/types/ArrayPosition.html +5 -5
  177. package/docs/types/AudioAppearance.html +5 -5
  178. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  179. package/docs/types/CSS3DRenderExportType.html +5 -5
  180. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  181. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  182. package/docs/types/ClassFunctionParameters.html +5 -5
  183. package/docs/types/Color.html +5 -5
  184. package/docs/types/ContentTypeConfigKey.html +5 -5
  185. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  186. package/docs/types/ContentTypeMap.html +5 -5
  187. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  188. package/docs/types/Create3DElementReturnType.html +5 -5
  189. package/docs/types/CruisePluginExportType.html +5 -5
  190. package/docs/types/Direction-1.html +5 -5
  191. package/docs/types/Direction4.html +5 -5
  192. package/docs/types/ElementRenderer.html +5 -5
  193. package/docs/types/FloorplanRuleLabels.html +5 -5
  194. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  195. package/docs/types/GuideLinePluginExportType.html +5 -5
  196. package/docs/types/HelperEventMap.html +5 -5
  197. package/docs/types/LoadTagConfig.html +5 -5
  198. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  199. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  200. package/docs/types/MediaData.html +5 -5
  201. package/docs/types/MediaStore.html +5 -5
  202. package/docs/types/ModelElement.html +5 -5
  203. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  204. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  205. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  206. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  207. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  208. package/docs/types/MoveArgs.html +5 -5
  209. package/docs/types/MoveOpts.html +5 -5
  210. package/docs/types/Object3DHelperEventMap.html +5 -5
  211. package/docs/types/ObjectFit.html +5 -5
  212. package/docs/types/PaintBrushEventMap.html +5 -5
  213. package/docs/types/PanoCompassPluginData.html +5 -5
  214. package/docs/types/PanoCompassPluginExportType.html +5 -5
  215. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  216. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  217. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  218. package/docs/types/PanoIndex.html +5 -5
  219. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  220. package/docs/types/PanoMeasureReturnType.html +5 -5
  221. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  222. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  223. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  224. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  225. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  226. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -5
  227. package/docs/types/PlaneTag.html +5 -5
  228. package/docs/types/PlaneTagElement.html +5 -5
  229. package/docs/types/Point2DElement.html +5 -5
  230. package/docs/types/Point2DTag.html +5 -5
  231. package/docs/types/Point3DElement.html +5 -5
  232. package/docs/types/Point3DTag.html +5 -5
  233. package/docs/types/PointTag.html +5 -5
  234. package/docs/types/PointTagElement.html +5 -5
  235. package/docs/types/Position.html +5 -5
  236. package/docs/types/RotateArgs.html +5 -5
  237. package/docs/types/RotateOpts.html +5 -5
  238. package/docs/types/RuleLabelsKey.html +5 -5
  239. package/docs/types/RuleLabelsValue.html +5 -5
  240. package/docs/types/StickType.html +5 -5
  241. package/docs/types/Tag.html +5 -5
  242. package/docs/types/Tag2D.html +5 -5
  243. package/docs/types/Tag3D.html +5 -5
  244. package/docs/types/TagContentType.html +5 -5
  245. package/docs/types/TagDimensionType.html +5 -5
  246. package/docs/types/TagElement.html +5 -5
  247. package/docs/types/TagEvents.html +5 -5
  248. package/docs/types/TagGLTFObject.html +5 -5
  249. package/docs/types/TagHooks.html +5 -5
  250. package/docs/types/TagIconSize.html +5 -5
  251. package/docs/types/TagId.html +5 -5
  252. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  253. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  254. package/docs/types/WorkCode.html +5 -5
  255. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  256. package/docs/variables/PLUGIN.html +5 -5
  257. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  258. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  259. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  260. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  261. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  262. package/libs/PanoTagPlugin/controller/TagComputer.js +14 -14
  263. package/libs/PanoTagPlugin/tag.config.js +4 -1
  264. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +46 -12
  265. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +13 -13
  266. package/libs/base/BasePlugin.js +1 -1
  267. package/libs/shared-utils/device.d.ts +3 -0
  268. package/libs/shared-utils/device.js +5 -2
  269. package/libs/shared-utils/logger.js +1 -1
  270. package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
  271. package/libs/shared-utils/three/loadVideoTexture.js +14 -14
  272. 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>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.17.1-alpha.1</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.17.1-alpha.1"/><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.1-alpha.4</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.17.1-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">
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.1-alpha.1</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.17.1-alpha.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.17.1-alpha.1</a></li>
15
+ <li><a href="../modules.html">如视看房插件合集 - v2.17.1-alpha.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/788e6c1/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/ef2cc2a/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.1-<wbr/>alpha.1</a>
44
+ <li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.17.1-<wbr/>alpha.4</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,29 +1,29 @@
1
- var U = Object.defineProperty, B = Object.defineProperties;
2
- var M = Object.getOwnPropertyDescriptors;
1
+ var B = Object.defineProperty, M = Object.defineProperties;
2
+ var U = Object.getOwnPropertyDescriptors;
3
3
  var P = Object.getOwnPropertySymbols;
4
4
  var R = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
- var y = (c, l, e) => l in c ? U(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e, x = (c, l) => {
5
+ var y = (c, l, e) => l in c ? B(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e, x = (c, l) => {
6
6
  for (var e in l || (l = {}))
7
7
  R.call(l, e) && y(c, e, l[e]);
8
8
  if (P)
9
9
  for (var e of P(l))
10
10
  C.call(l, e) && y(c, e, l[e]);
11
11
  return c;
12
- }, I = (c, l) => B(c, M(l));
12
+ }, I = (c, l) => M(c, U(l));
13
13
  var T = (c, l, e) => (y(c, typeof l != "symbol" ? l + "" : l, e), e);
14
14
  import * as D from "three";
15
15
  import { isMediaModelTag as g, is3DTag as j } from "../utils/tag/tagCheck.js";
16
- import { tagPosition as V } from "../utils/tagPosition.js";
16
+ import { tagPosition as V, getTagPosition as k } from "../utils/tagPosition.js";
17
17
  import { checkRange as h } from "../utils/checkRange.js";
18
18
  import "hammerjs";
19
19
  import "@realsee/five";
20
20
  import "@tweenjs/tween.js";
21
21
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
22
22
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
- import { notNil as k } from "../../shared-utils/isNil.js";
23
+ import { notNil as S } from "../../shared-utils/isNil.js";
24
24
  import "../../shared-utils/animationFrame/BetterTween.js";
25
- import { TagUtil as S } from "./TagUtil.js";
26
- import { getFloorIndex as $ } from "../../shared-utils/five/getFloorIndex.js";
25
+ import { TagUtil as $ } from "./TagUtil.js";
26
+ import { getFloorIndex as F } from "../../shared-utils/five/getFloorIndex.js";
27
27
  import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
28
28
  import "../../shared-utils/three/centerPoint.js";
29
29
  import "@realsee/five/gltf-loader";
@@ -65,7 +65,7 @@ import "../Assets/Icon.js";
65
65
  import "../../shared-utils/three/getPositionsByObjectFit.js";
66
66
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
67
67
  import "../../shared-utils/five/FiveDomEvents.js";
68
- class _e extends S {
68
+ class _e extends $ {
69
69
  constructor(e) {
70
70
  super(e);
71
71
  T(this, "raycaster", new D.Raycaster());
@@ -134,7 +134,7 @@ class _e extends S {
134
134
  if (n) {
135
135
  if (typeof n == "object") {
136
136
  const t = n == null ? void 0 : n.visibleFiveMode;
137
- return t ? t != null && t.includes(s) ? n.followModelVisibility !== !1 && (s === "Floorplan" || s === "Mapview") ? this.getVisibleByFloorIndex(e) : !0 : !1 : s === "Panorama";
137
+ return t ? t != null && t.includes(s) ? n.followModelVisibility === !0 && (s === "Floorplan" || s === "Mapview") ? this.getVisibleByFloorIndex(e) : !0 : !1 : s === "Panorama";
138
138
  } else if (typeof n == "function")
139
139
  return i === "Panorama";
140
140
  } else
@@ -272,7 +272,7 @@ class _e extends S {
272
272
  const i = this.getUnfoldedByPanoIndex(e);
273
273
  if (!!e.state && (i !== void 0 && (e.state.unfolded = i), i && !e.state.visible)) {
274
274
  const s = this.getTagConfig(e);
275
- typeof s.unfoldedConfig == "object" && s.unfoldedConfig.autoUnfoldWhenHide !== !1 && (e.state.unfolded = !1);
275
+ typeof s.unfoldedConfig == "object" && s.unfoldedConfig.autoFoldWhenHide !== !1 && (e.state.unfolded = !1);
276
276
  }
277
277
  });
278
278
  }
@@ -294,7 +294,7 @@ class _e extends S {
294
294
  const a = this.tags.filter(g).map((v) => {
295
295
  var b;
296
296
  return (b = v.model) == null ? void 0 : b.object;
297
- }).filter(k);
297
+ }).filter(S);
298
298
  return i.intersectObjects(a, !0)[0];
299
299
  })(), f = (() => {
300
300
  var a;
@@ -318,10 +318,10 @@ class _e extends S {
318
318
  return this.raycaster.set(s, t), this.raycaster;
319
319
  }
320
320
  getVisibleByFloorIndex(e) {
321
- var t, o, f, d, u, p;
321
+ var t, o, f, d, u, p, r;
322
322
  let i = 0;
323
323
  const s = (t = e.fiveState) == null ? void 0 : t.panoIndex;
324
- s !== void 0 ? i = (o = this.five.work.observers[s]) == null ? void 0 : o.floorIndex : i = $(this.five.work.observers, (p = (d = (f = e.model) == null ? void 0 : f.object) == null ? void 0 : d.position) != null ? p : (u = e.mediaPlane) == null ? void 0 : u.position);
324
+ s !== void 0 ? i = (o = this.five.work.observers[s]) == null ? void 0 : o.floorIndex : i = F(this.five.work.observers, (r = (p = (d = (f = e.model) == null ? void 0 : f.object) == null ? void 0 : d.position) != null ? p : (u = e.mediaPlane) == null ? void 0 : u.position) != null ? r : k(e));
325
325
  const n = this.five.model.shownFloor;
326
326
  return n === null || n === i;
327
327
  }
@@ -1,5 +1,8 @@
1
1
  const e = {
2
2
  globalConfig: {
3
+ visibleConfig: {
4
+ followModelVisibility: !0
5
+ },
3
6
  unfoldedConfig: {
4
7
  autoUnfold: {
5
8
  strategy: "MinimumDistance",
@@ -53,7 +56,7 @@ const e = {
53
56
  initialData: {
54
57
  autoplayConfig: {
55
58
  autoplayCarousel: !0,
56
- autoplayVideo: !0,
59
+ autoplayVideo: !1,
57
60
  autoplayVideoInCarousel: !1
58
61
  }
59
62
  }
@@ -7,31 +7,59 @@ import type { PartialDeep } from 'type-fest';
7
7
  export interface TagConfig<C extends TagContentType = TagContentType, S extends StickType = StickType> {
8
8
  /** 显示/隐藏配置 */
9
9
  visibleConfig?: {
10
- /** 保持可见/不可见, 设置后visibleConfig下所有其他配置都不生效 */
10
+ /**
11
+ * @description 保持可见/不可见, 设置后visibleConfig下所有其他配置都不生效
12
+ * @default undefined
13
+ */
11
14
  keep?: 'visible' | 'hidden';
12
- /** 在哪些 five mode 下可见,默认为 ['Panorama'] */
15
+ /**
16
+ * @description 在哪些 five mode 下可见
17
+ * @default ['Panorama']
18
+ */
13
19
  visibleFiveMode?: Mode[];
14
- /** 当 visibleFiveMode 包含 'Floorplan' 或者 'MapView' 时,是否仅在当前楼层模型下可见,默认为true */
20
+ /**
21
+ * @description 当 visibleFiveMode 包含 'Floorplan' 或者 'MapView' 时,是否仅在当前楼层模型下可见
22
+ * @default false
23
+ */
15
24
  followModelVisibility?: boolean;
16
- /** 走点时不隐藏 */
25
+ /**
26
+ * @description 走点时不隐藏
27
+ * @default false
28
+ */
17
29
  alwaysShowWhenMovePano?: true;
18
- /** min-max米内显示 | 无距离限制 */
30
+ /**
31
+ * @description min-max米内显示 | 无距离限制
32
+ * @default 'unLimited'
33
+ */
19
34
  visibleDistance?: MinMax | 'unLimited';
20
35
  /**
21
36
  * @description: 限制xx点位上可见,默认为all
22
37
  * @param all: 不限制
23
38
  * @param current: 仅当前点位可见
24
39
  * @param: number[] 仅指定点位可见
40
+ * @default 'all'
25
41
  */
26
42
  visiblePanoIndex?: 'all' | 'current' | number[];
27
- /** 碰撞检测配置,默认开启 */
28
- intersectRaycaster?: boolean /** 是否开启碰撞检测,默认true */ | {
29
- /** 是否开启碰撞检测,默认true */
43
+ /**
44
+ * @description 碰撞检测配置,默认开启
45
+ * @default true
46
+ */
47
+ intersectRaycaster?: boolean | {
48
+ /**
49
+ * @description 是否开启碰撞检测
50
+ * @default true
51
+ */
30
52
  enabled?: boolean;
31
- /** 碰撞检测的允许误差, 默认值为0.01 */
53
+ /**
54
+ * @description 碰撞检测的允许误差
55
+ * @default 0.01
56
+ */
32
57
  distanceAccuracy?: number;
33
58
  };
34
- /** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角,范围内自动展开,范围外自动收起 */
59
+ /**
60
+ * @description 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角,范围内自动展开,范围外自动收起
61
+ * @default undefined
62
+ */
35
63
  angleRange?: MinMax;
36
64
  } | ((five: Five, tagState: {
37
65
  tag: Tag<C, S>;
@@ -44,16 +72,22 @@ export interface TagConfig<C extends TagContentType = TagContentType, S extends
44
72
  unfoldedConfig?: {
45
73
  /** 保持展开/收起,设置后unfoldedConfig下所有其他配置都不生效 */
46
74
  keep?: 'unfolded' | 'folded';
47
- /** 划动到不可见状态时,自动收起,disableFold: true 的标签不受此参数影响 */
48
- autoUnfoldWhenHide?: false;
75
+ /**
76
+ * @description 划动到不可见状态时,自动收起,disableFold: true 的标签不受此参数影响
77
+ * @note 部分标签是无法收起的
78
+ * @default true
79
+ */
80
+ autoFoldWhenHide?: false;
49
81
  /**
50
82
  * @deprecated replace by { keep: 'folded' }
51
83
  * @deprecated 部分标签是无法打开的
84
+ * @default undefined
52
85
  */
53
86
  disableUnfold?: true;
54
87
  /**
55
88
  * @deprecated replace by { keep: 'unfolded' }
56
89
  * @deprecated 部分标签是无法收起的
90
+ * @default undefined
57
91
  */
58
92
  disableFold?: true;
59
93
  /** min-max米内自动展开,否则收起 */
@@ -24,7 +24,7 @@ import { loadTexture as I } from "../../../shared-utils/three/loadTexture.js";
24
24
  import { QuadrangleGeometry as V, QuadrangleMesh as y } from "../../../shared-utils/three/Quadrangle.js";
25
25
  import { getVideoTexture as B } from "../../../shared-utils/three/loadVideoTexture.js";
26
26
  import { Image_Play_Icon_With_Text as C, Image_Play_Icon as T } from "../../Assets/Icon.js";
27
- import { getPositionsByObjectFit as l } from "../../../shared-utils/three/getPositionsByObjectFit.js";
27
+ import { getPositionsByObjectFit as M } from "../../../shared-utils/three/getPositionsByObjectFit.js";
28
28
  import "@realsee/five";
29
29
  import "../../../shared-utils/threex/domevents/index.js";
30
30
  import "@realsee/five/gltf-loader";
@@ -75,8 +75,8 @@ class ye extends b {
75
75
  n(this, "name", "PanoTagPluginImagePlane");
76
76
  this.src = e, I(e).then((s) => {
77
77
  var u;
78
- const d = new URL(e, location.href).pathname.endsWith(".png"), r = new p.MeshBasicMaterial({ map: s, transparent: d }), o = l((u = i == null ? void 0 : i.objectFit) != null ? u : "contain", t, s.image.width / s.image.height), h = w(...o), m = o.map((f) => f.clone().sub(h)), M = new V(m);
79
- this.position.copy(h), this.geometry = M, this.material = r;
78
+ const d = new URL(e, location.href).pathname.endsWith(".png"), r = new p.MeshBasicMaterial({ map: s, transparent: d }), o = M((u = i == null ? void 0 : i.objectFit) != null ? u : "contain", t, s.image.width / s.image.height), h = w(...o), m = o.map((f) => f.clone().sub(h)), l = new V(m);
79
+ this.position.copy(h), this.geometry = l, this.material = r;
80
80
  }).catch((s) => {
81
81
  console.error({ e: s });
82
82
  });
@@ -107,13 +107,13 @@ class Ee extends b {
107
107
  }), this.addEventListener("removed", () => {
108
108
  this.remove(...this.children);
109
109
  }), this.addEventListener("dispose", () => {
110
- var M;
111
- this.domEventsListenerTemporaryList = [], (M = this.disposers) == null || M.forEach((u) => u == null ? void 0 : u());
110
+ var l;
111
+ this.domEventsListenerTemporaryList = [], (l = this.disposers) == null || l.forEach((u) => u == null ? void 0 : u());
112
112
  });
113
113
  }
114
114
  play(e = !1) {
115
115
  return v(this, null, function* () {
116
- this.videoMesh || (yield this.addVideoMesh()), this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), this.videoMesh.visible = !0, this.videoInstance.paused && this.videoInstance.play().catch((t) => {
116
+ console.log("play"), this.videoMesh || (yield this.addVideoMesh()), this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), this.videoMesh.visible = !0, this.videoInstance.paused && this.videoInstance.play().catch((t) => {
117
117
  console.error(t);
118
118
  }), this.videoInstance.muted = e, this.render();
119
119
  });
@@ -171,7 +171,7 @@ class Ee extends b {
171
171
  const t = yield this.getImageTexture(this.videoCoverSrc);
172
172
  if (!t)
173
173
  return;
174
- const i = new p.MeshBasicMaterial({ transparent: !1, map: t }), s = l(this.objectFit, this.cornerPoints, t.image.width / t.image.height), d = new y(s, i);
174
+ const i = new p.MeshBasicMaterial({ transparent: !1, map: t }), s = M(this.objectFit, this.cornerPoints, t.image.width / t.image.height), d = new y(s, i);
175
175
  return d.position.copy(new g(0, 0, 0)), d.name = "videoCoverMesh", d;
176
176
  }))();
177
177
  return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
@@ -179,7 +179,7 @@ class Ee extends b {
179
179
  }
180
180
  addVideoMesh() {
181
181
  return v(this, null, function* () {
182
- if (this.children.includes(this.videoMesh))
182
+ if (console.log("addVideoMesh"), this.children.includes(this.videoMesh))
183
183
  return;
184
184
  const e = yield (() => v(this, null, function* () {
185
185
  if (this.videoMesh)
@@ -187,9 +187,9 @@ class Ee extends b {
187
187
  if (!this.src)
188
188
  return;
189
189
  const i = this.getVideoTexture(this.src), s = new p.MeshBasicMaterial({ transparent: !1, map: i }), d = yield new Promise((o) => {
190
- i.metadataLoaded ? o(l(this.objectFit, this.cornerPoints, i.image.videoWidth / i.image.videoHeight)) : i.addEventListener(
190
+ i.metadataLoaded ? o(M(this.objectFit, this.cornerPoints, i.image.videoWidth / i.image.videoHeight)) : i.addEventListener(
191
191
  "videoLoaded",
192
- () => o(l(this.objectFit, this.cornerPoints, i.image.videoWidth / i.image.videoHeight))
192
+ () => o(M(this.objectFit, this.cornerPoints, i.image.videoWidth / i.image.videoHeight))
193
193
  );
194
194
  }), r = new y(d, s);
195
195
  return r.name = "videoMesh", r.position.copy(new g(0, 0, 0)), r;
@@ -215,10 +215,10 @@ class Ee extends b {
215
215
  var u, f, E, L;
216
216
  if (this.buttonMesh)
217
217
  return this.buttonMesh;
218
- const t = (f = (u = this.videoMesh) == null ? void 0 : u.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, i = (L = (E = this.coverMesh) == null ? void 0 : E.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? L : 1 / 0, s = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), r = Math.min(t, i, s) / s * 0.3, o = yield this.getImageTexture(this.buttonSrc), h = l("contain", this.cornerPoints, o.image.width / o.image.height), m = new y(h, new F(o));
218
+ const t = (f = (u = this.videoMesh) == null ? void 0 : u.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, i = (L = (E = this.coverMesh) == null ? void 0 : E.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? L : 1 / 0, s = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), r = Math.min(t, i, s) / s * 0.3, o = yield this.getImageTexture(this.buttonSrc), h = M("contain", this.cornerPoints, o.image.width / o.image.height), m = new y(h, new F(o));
219
219
  m.position.copy(new g(0, 0, 0)), m.name = "buttonMesh", m.scale.set(r, r, r), this.addAutoBindEventListener(m, "click", () => this.play());
220
- const M = new p.Vector3().crossVectors(new p.Vector3().subVectors(h[0], h[1]), new p.Vector3().subVectors(h[0], h[3])).normalize().multiplyScalar(1e-4);
221
- return m.position.add(M), m;
220
+ const l = new p.Vector3().crossVectors(new p.Vector3().subVectors(h[0], h[1]), new p.Vector3().subVectors(h[0], h[3])).normalize().multiplyScalar(1e-4);
221
+ return m.position.add(l), m;
222
222
  }))();
223
223
  return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
224
224
  });
@@ -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.1-alpha.1");
7
+ s(this, "VERSION", "2.17.1-alpha.4");
8
8
  s(this, "five");
9
9
  s(this, "hooks", new c());
10
10
  s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
@@ -1,3 +1,6 @@
1
1
  export declare const isIOS: boolean;
2
+ export declare const isAndroid: boolean;
2
3
  export declare const isWX: boolean;
3
4
  export declare const isIOSWX: boolean;
5
+ export declare const isAndroidWX: boolean;
6
+ export declare const isBrowser: boolean;
@@ -1,5 +1,8 @@
1
- const e = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1, o = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, s = e && o;
1
+ const e = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1;
2
+ navigator.userAgent.toLowerCase().indexOf("android");
3
+ const o = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, n = e && o;
2
4
  export {
3
- s as isIOSWX,
5
+ e as isIOS,
6
+ n as isIOSWX,
4
7
  o as isWX
5
8
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.info(
3
- "%c %c@realsee/dnalogel %cv2.17.1-alpha.1",
3
+ "%c %c@realsee/dnalogel %cv2.17.1-alpha.4",
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",
@@ -3,7 +3,7 @@ import { Overwrite } from '../../typings/utils.type';
3
3
  export default function loadVideoTexture(src: string, videoElement?: HTMLVideoElement): Promise<Overwrite<THREE.VideoTexture, {
4
4
  image: HTMLVideoElement;
5
5
  }>>;
6
- export declare function getVideoTexture(src: string, videoElement?: HTMLVideoElement, metadataLoadedCallback?: (texture: THREE.VideoTexture) => void): Overwrite<THREE.VideoTexture, {
6
+ export declare function getVideoTexture(src: string, videoElement?: HTMLVideoElement, hasPoster?: boolean, metadataLoadedCallback?: (texture: THREE.VideoTexture) => void): Overwrite<THREE.VideoTexture, {
7
7
  image: HTMLVideoElement;
8
8
  metadataLoaded: boolean;
9
9
  }>;
@@ -1,20 +1,20 @@
1
- import * as n from "three";
2
- import { isWX as a } from "../device.js";
3
- function p(d, o, u) {
4
- let r = !a;
1
+ import * as r from "three";
2
+ import { isWX as s, isIOS as a } from "../device.js";
3
+ function f(d, o, c, n) {
4
+ let u = !s;
5
5
  const e = o != null ? o : document.createElement("video");
6
6
  e.preload = "metadata", e.crossOrigin = "anonymous", e.muted = !0, e.loop = !0, e.playsInline = !0, e.autoplay = !0;
7
- const t = new n.VideoTexture(e);
8
- t.minFilter = n.LinearFilter, t.magFilter = n.LinearFilter, t.encoding = n.sRGBEncoding, t.metadataLoaded = !1, e.src = d;
9
- const i = () => {
10
- e.onloadedmetadata = () => {
11
- !r || (u == null || u(t), t.dispatchEvent({ type: "videoLoaded" }), t.metadataLoaded = !0);
7
+ const t = new r.VideoTexture(e);
8
+ if (t.minFilter = r.LinearFilter, t.magFilter = r.LinearFilter, t.encoding = r.sRGBEncoding, t.metadataLoaded = !1, e.src = d, e.onloadedmetadata = () => {
9
+ t.metadataLoaded || (n == null || n(t), t.dispatchEvent({ type: "videoLoaded" }), t.metadataLoaded = !0);
10
+ }, s) {
11
+ const i = () => {
12
+ u || !e.paused || (u = !0, e.muted = !0, e.play(), e.pause());
12
13
  };
13
- }, s = () => {
14
- r || (r = !0, i(), e.muted = !0, e.play(), e.pause());
15
- };
16
- return r ? i() : (document.addEventListener("click", s, { once: !0 }), document.addEventListener("touchstart", s, { once: !0 })), t;
14
+ document.addEventListener("click", i, { once: !0 }), a && document.addEventListener("touchstart", i, { once: !0 });
15
+ }
16
+ return t;
17
17
  }
18
18
  export {
19
- p as getVideoTexture
19
+ f as getVideoTexture
20
20
  };
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.1-alpha.1",
10
+ "version": "2.17.1-alpha.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*",