@realsee/dnalogel 2.16.0-2 → 2.16.0-alpha.0

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 (427) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +0 -1
  2. package/dist/CruisePlugin/Controller.d.ts +2 -1
  3. package/dist/CruisePlugin/typing.d.ts +2 -12
  4. package/dist/GuideLinePlugin/Controller.d.ts +12 -20
  5. package/dist/GuideLinePlugin/index.d.ts +0 -4
  6. package/dist/GuideLinePlugin/typing.d.ts +1 -70
  7. package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
  8. package/dist/PanoTagPlugin/typings/controller.d.ts +5 -2
  9. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
  10. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
  11. package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
  12. package/dist/base/BasePlugin.d.ts +0 -1
  13. package/dist/index.cjs.js +115 -162
  14. package/dist/index.js +5234 -5141
  15. package/dist/index.umd.js +116 -163
  16. package/dist/shared-utils/five/FiveDomEvents.d.ts +11 -0
  17. package/dist/shared-utils/index.d.ts +0 -3
  18. package/dist/shared-utils/logger.d.ts +17 -0
  19. package/dist/shared-utils/math/pointIsRectangle.d.ts +2 -0
  20. package/dist/shared-utils/offscreenCanvas.d.ts +2 -0
  21. package/dist/shared-utils/three/Quadrangle.d.ts +20 -0
  22. package/dist/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
  23. package/dist/shared-utils/three/loadVideoTexture.d.ts +4 -0
  24. package/docs/assets/search.js +1 -1
  25. package/docs/classes/CSS3DRender.html +31 -34
  26. package/docs/classes/CruisePluginController.html +27 -46
  27. package/docs/classes/Magnifier.html +20 -23
  28. package/docs/classes/ModelRoomLabelController.html +11 -14
  29. package/docs/classes/Object3DHelperController.html +24 -43
  30. package/docs/classes/PaintBrush.html +15 -18
  31. package/docs/classes/PanoMeasurePluginLine.html +23 -26
  32. package/docs/classes/PanoMeasurePluginModel.html +22 -25
  33. package/docs/classes/PanoMeasurePluginPoint.html +14 -17
  34. package/docs/classes/PanoMeasurePluginPolyline.html +26 -29
  35. package/docs/classes/PanoTagPluginController.html +65 -84
  36. package/docs/classes/Util.BetterTween.html +8 -11
  37. package/docs/classes/Util.FivePointSelector.html +12 -15
  38. package/docs/classes/Util.Interval.html +12 -15
  39. package/docs/classes/Util.Magnifier.html +17 -20
  40. package/docs/classes/Util.PointDomHelper.html +11 -14
  41. package/docs/classes/Util.PointHelper.html +11 -14
  42. package/docs/classes/Util.Rectangle.html +13 -16
  43. package/docs/enums/CameraMovementEffect.html +7 -10
  44. package/docs/enums/ContentType.html +19 -22
  45. package/docs/enums/DIRECTION.html +9 -12
  46. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -12
  47. package/docs/enums/DimensionType.html +7 -10
  48. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -11
  49. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -12
  50. package/docs/enums/PaintBrushTypeEnum.html +8 -11
  51. package/docs/enums/Rotation.html +8 -11
  52. package/docs/functions/CSS3DRenderPlugin.html +5 -7
  53. package/docs/functions/CameraMovementPlugin.html +5 -7
  54. package/docs/functions/CruisePlugin.html +5 -7
  55. package/docs/functions/GuideLinePlugin.html +6 -8
  56. package/docs/functions/ItemLabelPlugin.html +5 -7
  57. package/docs/functions/MapviewFloorplanPlugin.html +5 -7
  58. package/docs/functions/ModelChassisCompassPlugin.html +5 -7
  59. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -7
  60. package/docs/functions/ModelFloorplanPlugin.html +5 -7
  61. package/docs/functions/ModelItemLabelPlugin.html +5 -7
  62. package/docs/functions/ModelRoomLabelPlugin.html +5 -7
  63. package/docs/functions/ModelTVVideoPlugin.html +5 -7
  64. package/docs/functions/ModelViewPlugin.html +5 -7
  65. package/docs/functions/Object3DHelperPlugin.html +5 -7
  66. package/docs/functions/PanoCompassPlugin.html +5 -7
  67. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -7
  68. package/docs/functions/PanoDoorLabelPlugin.html +5 -7
  69. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -7
  70. package/docs/functions/PanoMeasurePlugin.html +5 -7
  71. package/docs/functions/PanoRulerPlugin.html +5 -7
  72. package/docs/functions/PanoRulerProPlugin.html +5 -7
  73. package/docs/functions/PanoSpatialTagPlugin.html +5 -7
  74. package/docs/functions/PanoTagPlugin.html +5 -7
  75. package/docs/functions/PanoVideoPlugin.html +5 -7
  76. package/docs/functions/TopviewFloorplanPlugin.html +5 -7
  77. package/docs/functions/Util.getCoordsFromClient.html +6 -13
  78. package/docs/functions/Util.getCoordsFromElement.html +6 -13
  79. package/docs/functions/Util.getFrameTime.html +6 -13
  80. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -13
  81. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -13
  82. package/docs/functions/Util.isNil.html +6 -13
  83. package/docs/functions/Util.nextFrame.html +6 -13
  84. package/docs/functions/Util.notNil.html +6 -13
  85. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -13
  86. package/docs/functions/Util.tweenProgress.html +6 -13
  87. package/docs/functions/pluginFlag.html +6 -8
  88. package/docs/index.html +5 -7
  89. package/docs/interfaces/AddTagConfig.html +6 -9
  90. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -14
  91. package/docs/interfaces/CSS3DRenderPluginState.html +8 -11
  92. package/docs/interfaces/CameraMovementPluginExportType.html +7 -10
  93. package/docs/interfaces/EventMap.html +15 -18
  94. package/docs/interfaces/FloorplanBounding.html +8 -11
  95. package/docs/interfaces/FloorplanData.html +10 -13
  96. package/docs/interfaces/FloorplanEntrance.html +11 -14
  97. package/docs/interfaces/FloorplanExtraObject.html +10 -13
  98. package/docs/interfaces/FloorplanExtraObject3D.html +8 -11
  99. package/docs/interfaces/FloorplanFloorData.html +9 -12
  100. package/docs/interfaces/FloorplanImagePosition.html +7 -10
  101. package/docs/interfaces/FloorplanObserver.html +9 -12
  102. package/docs/interfaces/FloorplanOutlineItem.html +9 -12
  103. package/docs/interfaces/FloorplanPosition.html +7 -10
  104. package/docs/interfaces/FloorplanRoomItem.html +13 -16
  105. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -10
  106. package/docs/interfaces/FloorplanServerBounding.html +8 -11
  107. package/docs/interfaces/FloorplanServerComputedData.html +10 -13
  108. package/docs/interfaces/FloorplanServerData.html +7 -10
  109. package/docs/interfaces/FloorplanServerDoorItem.html +10 -13
  110. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -11
  111. package/docs/interfaces/FloorplanServerEntrance.html +11 -14
  112. package/docs/interfaces/FloorplanServerFloorData.html +9 -12
  113. package/docs/interfaces/FloorplanServerImagePosition.html +7 -10
  114. package/docs/interfaces/FloorplanServerObserver.html +9 -12
  115. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -12
  116. package/docs/interfaces/FloorplanServerPosition.html +7 -10
  117. package/docs/interfaces/FloorplanServerRoomItem.html +14 -17
  118. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -10
  119. package/docs/interfaces/HelperOffset.html +8 -11
  120. package/docs/interfaces/ImagePlaneGroup.html +6 -9
  121. package/docs/interfaces/ItemLabelPluginData.html +6 -9
  122. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -14
  123. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -12
  124. package/docs/interfaces/MinMax.html +7 -10
  125. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -10
  126. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -11
  127. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -10
  128. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -11
  129. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -11
  130. package/docs/interfaces/ModelItemLabelPluginData.html +6 -9
  131. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -14
  132. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -10
  133. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -9
  134. package/docs/interfaces/ModelTVVideoPluginData.html +9 -12
  135. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -11
  136. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -9
  137. package/docs/interfaces/ModelViewPluginExportType.html +11 -14
  138. package/docs/interfaces/Object3DHelperState.html +8 -11
  139. package/docs/interfaces/ObjectHelperControllers.html +9 -12
  140. package/docs/interfaces/PaintBrushAction.html +12 -15
  141. package/docs/interfaces/PaintBrushConfigs.html +12 -15
  142. package/docs/interfaces/PaintBrushState.html +10 -13
  143. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -13
  144. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -8
  145. package/docs/interfaces/PanoMeasureParameterType.html +14 -17
  146. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -11
  147. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -10
  148. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -10
  149. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -11
  150. package/docs/interfaces/PanoRulerPluginExportType.html +10 -13
  151. package/docs/interfaces/PanoRulerPluginOptions.html +7 -10
  152. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -11
  153. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -12
  154. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -10
  155. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -10
  156. package/docs/interfaces/PanoRulerProPluginState.html +8 -11
  157. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -8
  158. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -8
  159. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -14
  160. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -13
  161. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -16
  162. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -13
  163. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -16
  164. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -14
  165. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -13
  166. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -9
  167. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -11
  168. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -9
  169. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -18
  170. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -9
  171. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -11
  172. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -13
  173. package/docs/interfaces/Point.html +8 -11
  174. package/docs/interfaces/Room.html +9 -12
  175. package/docs/interfaces/RoomInfo.html +7 -10
  176. package/docs/interfaces/RoomLabel.html +14 -17
  177. package/docs/interfaces/RoomRules.html +6 -8
  178. package/docs/interfaces/Rooms.html +6 -8
  179. package/docs/interfaces/Scissor.html +9 -12
  180. package/docs/interfaces/State.html +8 -11
  181. package/docs/interfaces/TagCacheInterface.html +12 -15
  182. package/docs/interfaces/TagConfig.html +11 -14
  183. package/docs/interfaces/TagGLTFObjectGroup.html +6 -9
  184. package/docs/interfaces/TagIconUrl.html +11 -14
  185. package/docs/interfaces/TagObjectGroup.html +6 -9
  186. package/docs/interfaces/TagStyle.html +6 -9
  187. package/docs/interfaces/Tags.html +10 -13
  188. package/docs/interfaces/TemporaryState.html +6 -9
  189. package/docs/interfaces/Util.MagnifierParameter.html +11 -14
  190. package/docs/interfaces/Util.MouseGroupParameter.html +8 -11
  191. package/docs/modules/PanoVideoPluginType.html +5 -8
  192. package/docs/modules/Util.html +6 -17
  193. package/docs/modules.html +7 -11
  194. package/docs/types/ArrayPosition.html +6 -8
  195. package/docs/types/AudioAppearance.html +6 -8
  196. package/docs/types/AudioTagTypeConfigKey.html +6 -8
  197. package/docs/types/CSS3DRenderExportType.html +6 -8
  198. package/docs/types/CSS3DRenderPluginExportType.html +6 -8
  199. package/docs/types/CSS3DRenderPluginParameterType.html +6 -8
  200. package/docs/types/ClassFunctionParameters.html +6 -8
  201. package/docs/types/Color.html +6 -8
  202. package/docs/types/ContentTypeConfigKey.html +6 -8
  203. package/docs/types/ContentTypeConfigKeySplit.html +6 -8
  204. package/docs/types/ContentTypeMap.html +6 -8
  205. package/docs/types/Create3DDomContainerReturnType.html +6 -8
  206. package/docs/types/Create3DElementReturnType.html +6 -8
  207. package/docs/types/CruisePluginExportType.html +6 -8
  208. package/docs/types/Direction-1.html +6 -8
  209. package/docs/types/Direction4.html +6 -8
  210. package/docs/types/ElementRenderer.html +288 -0
  211. package/docs/types/FloorplanRuleLabels.html +6 -8
  212. package/docs/types/FloorplanServerRuleLabels.html +6 -8
  213. package/docs/types/GuideLinePluginExportType.html +6 -8
  214. package/docs/types/HelperEventMap.html +6 -8
  215. package/docs/types/LoadTagConfig.html +6 -8
  216. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -8
  217. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -8
  218. package/docs/types/MediaData.html +6 -8
  219. package/docs/types/MediaStore.html +6 -8
  220. package/docs/types/ModelElement.html +6 -8
  221. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -8
  222. package/docs/types/ModelFloorplanPluginParameterType.html +6 -8
  223. package/docs/types/ModelFloorplanPluginReturnType.html +6 -8
  224. package/docs/types/ModelRoomLabelPluginParameters.html +6 -8
  225. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -8
  226. package/docs/types/MoveArgs.html +6 -8
  227. package/docs/types/MoveOpts.html +6 -8
  228. package/docs/types/Object3DHelperEventMap.html +6 -8
  229. package/docs/types/ObjectFit.html +6 -8
  230. package/docs/types/PaintBrushEventMap.html +6 -8
  231. package/docs/types/PanoCompassPluginData.html +6 -8
  232. package/docs/types/PanoCompassPluginExportType.html +6 -8
  233. package/docs/types/PanoCompassPluginParameterType.html +6 -8
  234. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -8
  235. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -8
  236. package/docs/types/PanoIndex.html +6 -8
  237. package/docs/types/PanoMeasurePluginEvent.html +6 -8
  238. package/docs/types/PanoMeasureReturnType.html +6 -8
  239. package/docs/types/PanoSpatialTagPluginId.html +6 -8
  240. package/docs/types/PanoTagPluginExportInterface.html +6 -8
  241. package/docs/types/PanoTagPluginParamsInterface.html +6 -8
  242. package/docs/types/PanoVideoPluginParameterType.html +6 -8
  243. package/docs/types/PanoVideoPluginReturnType.html +6 -8
  244. package/docs/types/PlaneTag.html +6 -8
  245. package/docs/types/PlaneTagElement.html +6 -8
  246. package/docs/types/Point2DElement.html +6 -8
  247. package/docs/types/Point2DTag.html +6 -8
  248. package/docs/types/Point3DElement.html +6 -8
  249. package/docs/types/Point3DTag.html +6 -8
  250. package/docs/types/PointTag.html +6 -8
  251. package/docs/types/PointTagElement.html +6 -8
  252. package/docs/types/Position.html +6 -8
  253. package/docs/types/RotateArgs.html +6 -8
  254. package/docs/types/RotateOpts.html +6 -8
  255. package/docs/types/RuleLabelsKey.html +6 -8
  256. package/docs/types/RuleLabelsValue.html +6 -8
  257. package/docs/types/StickType.html +6 -8
  258. package/docs/types/Tag.html +7 -9
  259. package/docs/types/Tag2D.html +6 -8
  260. package/docs/types/Tag3D.html +6 -8
  261. package/docs/types/TagContentType.html +6 -8
  262. package/docs/types/TagDimensionType.html +6 -8
  263. package/docs/types/TagElement.html +7 -9
  264. package/docs/types/TagEvents.html +6 -8
  265. package/docs/types/TagGLTFObject.html +7 -9
  266. package/docs/types/TagHooks.html +6 -8
  267. package/docs/types/TagIconSize.html +6 -8
  268. package/docs/types/TagId.html +6 -8
  269. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -8
  270. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -8
  271. package/docs/types/WorkCode.html +6 -8
  272. package/docs/variables/FLOOR_TYPE_MAP.html +6 -8
  273. package/docs/variables/PLUGIN.html +6 -8
  274. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -8
  275. package/docs/variables/ROOM_TYPE_MAP.html +6 -8
  276. package/docs/variables/itemLabelPluginServerParams.html +6 -8
  277. package/docs/variables/modelItemLabelPluginServerParams.html +6 -8
  278. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -8
  279. package/libs/CSS3DRenderPlugin/Controller.d.ts +0 -1
  280. package/libs/CSS3DRenderPlugin/Controller.js +31 -40
  281. package/libs/CSS3DRenderPlugin/index.js +6 -12
  282. package/libs/CruisePlugin/Controller.d.ts +2 -1
  283. package/libs/CruisePlugin/Controller.js +174 -197
  284. package/libs/CruisePlugin/index.js +10 -33
  285. package/libs/CruisePlugin/typing.d.ts +2 -12
  286. package/libs/GuideLinePlugin/Controller.d.ts +12 -20
  287. package/libs/GuideLinePlugin/Controller.js +88 -125
  288. package/libs/GuideLinePlugin/index.d.ts +0 -4
  289. package/libs/GuideLinePlugin/index.js +7 -33
  290. package/libs/GuideLinePlugin/typing.d.ts +1 -70
  291. package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
  292. package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -0
  293. package/libs/ModelTVVideoPlugin/Plugin.js +45 -53
  294. package/libs/ModelTVVideoPlugin/index.js +5 -11
  295. package/libs/Object3DHelperPlugin/Controller.js +28 -33
  296. package/libs/Object3DHelperPlugin/index.js +13 -18
  297. package/libs/PanoCompassPlugin/Controller.js +6 -8
  298. package/libs/PanoCompassPlugin/index.js +10 -12
  299. package/libs/PanoDoorLabelPlugin/BaseController.js +28 -47
  300. package/libs/PanoDoorLabelPlugin/Controller.js +22 -40
  301. package/libs/PanoDoorLabelPlugin/index.js +3 -21
  302. package/libs/PanoMeasurePlugin/typings/index.js +1 -20
  303. package/libs/PanoSpatialTagPlugin/Plugin.js +3 -8
  304. package/libs/PanoSpatialTagPlugin/index.js +3 -8
  305. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +4 -2
  306. package/libs/PanoTagPlugin/Components/Common/Media.js +49 -49
  307. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
  308. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +13 -11
  309. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
  310. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +4 -2
  311. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +4 -2
  312. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +20 -18
  313. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +4 -2
  314. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
  315. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +38 -36
  316. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +25 -23
  317. package/libs/PanoTagPlugin/Components/Tag/index.js +26 -25
  318. package/libs/PanoTagPlugin/Components/TagContainer.js +4 -3
  319. package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
  320. package/libs/PanoTagPlugin/controller/TagCache.js +22 -42
  321. package/libs/PanoTagPlugin/controller/TagComputer.js +4 -5
  322. package/libs/PanoTagPlugin/controller/TagRender.js +82 -63
  323. package/libs/PanoTagPlugin/controller/TagUtil.js +13 -20
  324. package/libs/PanoTagPlugin/controller/index.js +22 -15
  325. package/libs/PanoTagPlugin/index.js +17 -13
  326. package/libs/PanoTagPlugin/typings/controller.d.ts +5 -2
  327. package/libs/PanoTagPlugin/typings/index.js +6 -4
  328. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
  329. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
  330. package/libs/PanoTagPlugin/typings/tag/Utils.js +2 -0
  331. package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -2
  332. package/libs/PanoTagPlugin/utils/index.js +35 -33
  333. package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
  334. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +214 -0
  335. package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
  336. package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
  337. package/libs/PanoVideoPlugin/Controller.js +3 -4
  338. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  339. package/libs/PanoVideoPlugin/index.js +6 -7
  340. package/libs/base/BasePlugin.d.ts +0 -1
  341. package/libs/base/BasePlugin.js +10 -21
  342. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +38 -57
  343. package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -22
  344. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +29 -48
  345. package/libs/floorplan/ModelFloorplanPlugin/index.js +3 -22
  346. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +11 -31
  347. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +3 -23
  348. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +40 -59
  349. package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -22
  350. package/libs/floorplan/index.js +0 -6
  351. package/libs/index.js +120 -118
  352. package/libs/shared-utils/five/FiveDomEvents.d.ts +11 -0
  353. package/libs/shared-utils/five/FiveDomEvents.js +77 -0
  354. package/libs/shared-utils/index.d.ts +0 -3
  355. package/libs/shared-utils/index.js +29 -36
  356. package/libs/shared-utils/logger.d.ts +17 -0
  357. package/libs/shared-utils/logger.js +16 -0
  358. package/libs/shared-utils/math/pointIsRectangle.d.ts +2 -0
  359. package/libs/shared-utils/math/pointIsRectangle.js +10 -0
  360. package/libs/shared-utils/offscreenCanvas.d.ts +2 -0
  361. package/libs/shared-utils/offscreenCanvas.js +12 -0
  362. package/libs/shared-utils/three/PointDomHelper.js +1 -1
  363. package/libs/shared-utils/three/Quadrangle.d.ts +20 -0
  364. package/libs/shared-utils/three/Quadrangle.js +41 -0
  365. package/libs/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
  366. package/libs/shared-utils/three/getPositionsByObjectFit.js +20 -0
  367. package/libs/shared-utils/three/loadTexture.js +19 -21
  368. package/libs/shared-utils/three/loadVideoTexture.d.ts +4 -0
  369. package/libs/shared-utils/three/loadVideoTexture.js +14 -0
  370. package/package.json +2 -2
  371. package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -26
  372. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
  373. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
  374. package/dist/GuideLinePlugin/utils/index.d.ts +0 -7
  375. package/dist/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
  376. package/dist/shared-utils/five/index.d.ts +0 -1
  377. package/dist/shared-utils/five/mode.d.ts +0 -3
  378. package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
  379. package/dist/shared-utils/log.d.ts +0 -2
  380. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -169
  381. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -344
  382. package/docs/functions/Util.isAbsoluteURL.html +0 -79
  383. package/docs/functions/Util.isModelLike.html +0 -79
  384. package/docs/functions/Util.isPanoramaLike.html +0 -79
  385. package/docs/functions/Util.uuid.html +0 -76
  386. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -97
  387. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -258
  388. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -92
  389. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -87
  390. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -108
  391. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -85
  392. package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +0 -76
  393. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -71
  394. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -82
  395. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -99
  396. package/docs/interfaces/GuideLinePluginType.Route.html +0 -103
  397. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -92
  398. package/docs/modules/GuideLineItem.html +0 -53
  399. package/docs/modules/GuideLineModeItem.html +0 -53
  400. package/docs/modules/GuideLinePluginType.html +0 -99
  401. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -67
  402. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -65
  403. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -67
  404. package/docs/types/GuideLinePluginType.PathItem.html +0 -67
  405. package/docs/types/GuideLinePluginType.PluginData.html +0 -65
  406. package/libs/GuideLinePlugin/GuideLineItem/index.js +0 -35
  407. package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -26
  408. package/libs/GuideLinePlugin/GuideLineItem.js +0 -31
  409. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +0 -231
  410. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
  411. package/libs/GuideLinePlugin/GuideLineModeItem.js +0 -29
  412. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
  413. package/libs/GuideLinePlugin/utils/createLineGeometry.js +0 -35
  414. package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +0 -2
  415. package/libs/GuideLinePlugin/utils/dataFormatter.js +0 -6
  416. package/libs/GuideLinePlugin/utils/index.d.ts +0 -7
  417. package/libs/GuideLinePlugin/utils/index.js +0 -32
  418. package/libs/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
  419. package/libs/PanoTagPlugin/utils/model/imagePlane.js +0 -33
  420. package/libs/shared-utils/five/index.d.ts +0 -1
  421. package/libs/shared-utils/five/index.js +0 -1
  422. package/libs/shared-utils/five/mode.d.ts +0 -3
  423. package/libs/shared-utils/five/mode.js +0 -11
  424. package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
  425. package/libs/shared-utils/isAbsoluteURL.js +0 -6
  426. package/libs/shared-utils/log.d.ts +0 -2
  427. package/libs/shared-utils/log.js +0 -10
@@ -2,7 +2,9 @@ import { arrayPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/posit
2
2
  import * as o from "three";
3
3
  import "@realsee/five/gltf-loader";
4
4
  import "../../shared-utils/three/loadTexture.js";
5
- function w(p, h) {
5
+ import "@realsee/five";
6
+ import "../../shared-utils/threex/domevents/index.js";
7
+ function y(p, h) {
6
8
  h.forEach((t) => {
7
9
  const r = new o.SphereGeometry(0.02, 16, 16), i = [], a = [
8
10
  new o.MeshBasicMaterial({ color: 16776960 }),
@@ -25,5 +27,5 @@ function w(p, h) {
25
27
  });
26
28
  }
27
29
  export {
28
- w as addDebugPoints
30
+ y as addDebugPoints
29
31
  };
@@ -1,40 +1,42 @@
1
- import { even as p } from "../../CSS3DRenderPlugin/utils/even.js";
2
- import { random as f } from "../../CSS3DRenderPlugin/utils/random.js";
3
- import { anyPositionToVector3 as x, arrayPositionToVector3 as c, positionToVector3 as l } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
4
- import { addDebugPoints as P } from "./addDebugPoints.js";
5
- import { noTypecheck as g } from "./noTypecheck.js";
6
- import { planeNormal as V } from "./planeNormal.js";
7
- import { getTagPosition as u, tagPosition as v } from "./tagPosition.js";
8
- import { checkRange as F } from "./checkRange.js";
9
- import { actionAfterFiveModelLoad as k, waitFiveModelLoaded as M } from "./actionAfterFiveModelLoad.js";
10
- import { normalPositionToPositions as w } from "./normalPositionToPositions.js";
11
- import { debounce as A } from "./debounce.js";
12
- import { throttle as D } from "./throttle.js";
13
- import { binarySearchFirstBig as O, searchFirstValueSmallThanLastValue as R } from "./search.js";
14
- import { resizeObserver as q } from "./resizeObserver.js";
1
+ import { even as f } from "../../CSS3DRenderPlugin/utils/even.js";
2
+ import { random as x } from "../../CSS3DRenderPlugin/utils/random.js";
3
+ import { anyPositionToVector3 as l, arrayPositionToVector3 as d, positionToVector3 as P } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
4
+ import { addDebugPoints as g } from "./addDebugPoints.js";
5
+ import { noTypecheck as V } from "./noTypecheck.js";
6
+ import { planeNormal as u } from "./planeNormal.js";
7
+ import { getTagPosition as y, tagPosition as F } from "./tagPosition.js";
8
+ import { checkRange as k } from "./checkRange.js";
9
+ import { actionAfterFiveModelLoad as S, waitFiveModelLoaded as w } from "./actionAfterFiveModelLoad.js";
10
+ import { normalPositionToPositions as A } from "./normalPositionToPositions.js";
11
+ import { debounce as D } from "./debounce.js";
12
+ import { throttle as O } from "./throttle.js";
13
+ import { binarySearchFirstBig as j, searchFirstValueSmallThanLastValue as q } from "./search.js";
14
+ import { resizeObserver as E } from "./resizeObserver.js";
15
15
  import "three";
16
16
  import "@realsee/five/gltf-loader";
17
17
  import "../../shared-utils/three/loadTexture.js";
18
+ import "@realsee/five";
19
+ import "../../shared-utils/threex/domevents/index.js";
18
20
  import "../../shared-utils/three/centerPoint.js";
19
21
  import "./tag/tagCheck.js";
20
22
  export {
21
- k as actionAfterFiveModelLoad,
22
- P as addDebugPoints,
23
- x as anyPositionToVector3,
24
- c as arrayPositionToVector3,
25
- O as binarySearchFirstBig,
26
- F as checkRange,
27
- A as debounce,
28
- p as even,
29
- u as getTagPosition,
30
- g as noTypecheck,
31
- w as normalPositionToPositions,
32
- V as planeNormal,
33
- l as positionToVector3,
34
- f as random,
35
- q as resizeObserver,
36
- R as searchFirstValueSmallThanLastValue,
37
- v as tagPosition,
38
- D as throttle,
39
- M as waitFiveModelLoaded
23
+ S as actionAfterFiveModelLoad,
24
+ g as addDebugPoints,
25
+ l as anyPositionToVector3,
26
+ d as arrayPositionToVector3,
27
+ j as binarySearchFirstBig,
28
+ k as checkRange,
29
+ D as debounce,
30
+ f as even,
31
+ y as getTagPosition,
32
+ V as noTypecheck,
33
+ A as normalPositionToPositions,
34
+ u as planeNormal,
35
+ P as positionToVector3,
36
+ x as random,
37
+ E as resizeObserver,
38
+ q as searchFirstValueSmallThanLastValue,
39
+ F as tagPosition,
40
+ O as throttle,
41
+ w as waitFiveModelLoaded
40
42
  };
@@ -0,0 +1,69 @@
1
+ import * as THREE from 'three';
2
+ import { Vector3 } from 'three';
3
+ declare type Src = string;
4
+ declare type VideoTexture = Omit<THREE.VideoTexture, 'image'> & {
5
+ image: HTMLVideoElement;
6
+ };
7
+ declare type ImageTexture = Omit<THREE.Texture, 'image'> & {
8
+ image: HTMLImageElement;
9
+ };
10
+ declare class MediaPlane extends THREE.Mesh<THREE.BufferGeometry | THREE.Geometry, THREE.MeshBasicMaterial> {
11
+ name: string;
12
+ src?: string;
13
+ removeFromParent(): this;
14
+ protected setMatrixByCornerPoints(cornerPoints: Vector3[]): void;
15
+ }
16
+ declare class ImagePlane extends MediaPlane {
17
+ name: string;
18
+ constructor(imageSrc: string, cornerPoints: Vector3[]);
19
+ }
20
+ declare class VideoPlane extends MediaPlane {
21
+ readonly isVideoPlane = true;
22
+ name: string;
23
+ private objectFit;
24
+ private buttonSrc;
25
+ private videoCoverSrc?;
26
+ private domEvents?;
27
+ private disposers;
28
+ private domEventsListenerTemporaryList;
29
+ private cornerPoints;
30
+ private videoInstance?;
31
+ private videoMesh?;
32
+ private coverMesh?;
33
+ private buttonMesh?;
34
+ private videoTextureMap;
35
+ private ImageTextureMap;
36
+ constructor(videoSrc: string, cornerPoints: Vector3[], params?: {
37
+ playButton?: 'withText' | 'withoutText' | string;
38
+ videoCoverSrc?: string;
39
+ objectFit?: 'contain' | 'fill';
40
+ videoTextureMap?: Map<Src, VideoTexture>;
41
+ ImageTextureMap?: Map<Src, ImageTexture>;
42
+ });
43
+ play(): Promise<void>;
44
+ pause(): void;
45
+ initialDomEvents(five: any): void;
46
+ initialRenderHooks(five: any): void;
47
+ private render;
48
+ private addDomEventListener;
49
+ private removeDomEventListener;
50
+ private addCoverMesh;
51
+ private addVideoMesh;
52
+ private addButtonMesh;
53
+ /**
54
+ * @description: 将视频封面Mesh
55
+ */
56
+ private getCoverMesh;
57
+ /**
58
+ * @description: 获取视频Mesh
59
+ */
60
+ private getVideoMesh;
61
+ /**
62
+ * @description: 获取视频Mesh
63
+ */
64
+ private getButtonMesh;
65
+ private getButtonTexture;
66
+ private getCoverTexture;
67
+ private getVideoTexture;
68
+ }
69
+ export { ImagePlane, VideoPlane };
@@ -0,0 +1,214 @@
1
+ var S = Object.defineProperty;
2
+ var H = (p, d, e) => d in p ? S(p, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[d] = e;
3
+ var a = (p, d, e) => (H(p, typeof d != "symbol" ? d + "" : d, e), e);
4
+ var u = (p, d, e) => new Promise((t, s) => {
5
+ var h = (i) => {
6
+ try {
7
+ n(e.next(i));
8
+ } catch (o) {
9
+ s(o);
10
+ }
11
+ }, r = (i) => {
12
+ try {
13
+ n(e.throw(i));
14
+ } catch (o) {
15
+ s(o);
16
+ }
17
+ }, n = (i) => i.done ? t(i.value) : Promise.resolve(i.value).then(h, r);
18
+ n((e = e.apply(p, d)).next());
19
+ });
20
+ import * as m from "three";
21
+ import { Vector3 as f } from "three";
22
+ import { centerPoint as l } from "../../../shared-utils/three/centerPoint.js";
23
+ import { loadTexture as w } from "../../../shared-utils/three/loadTexture.js";
24
+ import { QuadrangleGeometry as y } from "../../../shared-utils/three/Quadrangle.js";
25
+ import { loadVideoTexture as F } from "../../../shared-utils/three/loadVideoTexture.js";
26
+ import { Image_Play_Icon_With_Text as R, Image_Play_Icon as P } from "../../Assets/Icon.js";
27
+ import { getPositionsByObjectFit as T } from "../../../shared-utils/three/getPositionsByObjectFit.js";
28
+ import { FiveDomEvents as D } from "../../../shared-utils/five/FiveDomEvents.js";
29
+ import "../../../shared-utils/math/pointIsRectangle.js";
30
+ import "@realsee/five";
31
+ import "../../../shared-utils/threex/domevents/index.js";
32
+ class V extends m.Mesh {
33
+ constructor() {
34
+ super(...arguments);
35
+ a(this, "name", "MediaPlane");
36
+ a(this, "src");
37
+ }
38
+ removeFromParent() {
39
+ const e = this.parent;
40
+ return e !== null && e.remove(this), this;
41
+ }
42
+ setMatrixByCornerPoints(e) {
43
+ const t = new f().subVectors(e[1], e[0]), s = new f().subVectors(e[3], e[0]), h = l(...e), r = new f().crossVectors(t, s).normalize();
44
+ this.lookAt(r);
45
+ const n = this.up.clone().applyQuaternion(this.quaternion), i = s.clone(), o = new f().crossVectors(n, i).normalize();
46
+ this.rotateOnWorldAxis(o, n.angleTo(i)), this.position.copy(h);
47
+ }
48
+ }
49
+ class J extends V {
50
+ constructor(e, t) {
51
+ super();
52
+ a(this, "name", "PanoTagPluginImagePlane");
53
+ this.src = e, w(e).then((s) => {
54
+ const h = s.image.width, r = s.image.height, n = new m.MeshBasicMaterial({ map: s, transparent: !0 }), i = new m.PlaneGeometry(h, r);
55
+ this.geometry = i, this.material = n;
56
+ const o = t[0].distanceTo(t[1]), c = t[1].distanceTo(t[2]);
57
+ this.scale.set(o / h, c / r, 1);
58
+ const M = h / r, g = o / c;
59
+ M > g ? this.scale.set(o / h, o / h, 1) : M < g ? this.scale.set(c / r, c / r, 1) : this.scale.set(o / h, c / r, 1);
60
+ }).catch((s) => {
61
+ console.error({ e: s });
62
+ }), this.setMatrixByCornerPoints(t);
63
+ }
64
+ }
65
+ class K extends V {
66
+ constructor(e, t, s) {
67
+ const { videoCoverSrc: h, objectFit: r = "contain", playButton: n = "withText", videoTextureMap: i, ImageTextureMap: o } = s != null ? s : {};
68
+ super();
69
+ a(this, "isVideoPlane", !0);
70
+ a(this, "name", "PanoTagPluginImagePlane");
71
+ a(this, "objectFit");
72
+ a(this, "buttonSrc");
73
+ a(this, "videoCoverSrc");
74
+ a(this, "domEvents");
75
+ a(this, "disposers", []);
76
+ a(this, "domEventsListenerTemporaryList", []);
77
+ a(this, "cornerPoints");
78
+ a(this, "videoInstance");
79
+ a(this, "videoMesh");
80
+ a(this, "coverMesh");
81
+ a(this, "buttonMesh");
82
+ a(this, "videoTextureMap");
83
+ a(this, "ImageTextureMap");
84
+ this.cornerPoints = t, this.src = e, this.buttonSrc = (() => n === "withText" ? R : n === "withoutText" ? P : typeof n == "string" ? n : P)(), this.videoCoverSrc = h, this.objectFit = r, this.videoTextureMap = i, this.ImageTextureMap = o, this.position.copy(l(...t)), this.videoCoverSrc ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => this.addButtonMesh()), this.addEventListener("dispose", () => {
85
+ var c;
86
+ this.domEventsListenerTemporaryList = [], (c = this.disposers) == null || c.forEach((M) => M == null ? void 0 : M());
87
+ });
88
+ }
89
+ play() {
90
+ return u(this, null, function* () {
91
+ var e;
92
+ this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), yield this.addVideoMesh(), this.videoMesh && (this.videoMesh.visible = !0), (e = this.videoInstance) == null || e.play(), this.render();
93
+ });
94
+ }
95
+ pause() {
96
+ var e;
97
+ this.coverMesh && (this.coverMesh.visible = !0), this.videoMesh && (this.videoMesh.visible = !1), this.addButtonMesh(), (e = this.videoInstance) == null || e.pause(), this.render();
98
+ }
99
+ initialDomEvents(e) {
100
+ this.domEvents || (this.domEvents = new D(e), this.domEventsListenerTemporaryList.forEach((t) => this.addDomEventListener(...t)), this.domEventsListenerTemporaryList = []);
101
+ }
102
+ initialRenderHooks(e) {
103
+ const t = () => {
104
+ this.videoMesh && this.videoInstance && (this.videoInstance.paused || (this.videoMesh.needsRender = !0));
105
+ };
106
+ e.on("renderFrame", t), this.disposers.push(() => e.off("renderFrame", t));
107
+ }
108
+ render() {
109
+ this.videoMesh && (this.videoMesh.needsRender = !0), this.coverMesh && (this.coverMesh.needsRender = !0), this.buttonMesh && (this.buttonMesh.needsRender = !0), this.videoInstance && this.videoMesh && (this.videoInstance.paused || (this.videoMesh.needsRender = !0));
110
+ }
111
+ addDomEventListener(...e) {
112
+ this.domEvents ? (this.domEvents.addEventListener(...e), this.disposers.push(() => {
113
+ var t;
114
+ return (t = this.domEvents) == null ? void 0 : t.removeEventListener(...e);
115
+ })) : this.domEventsListenerTemporaryList.push(e);
116
+ }
117
+ removeDomEventListener(...e) {
118
+ this.domEvents ? this.domEvents.removeEventListener(...e) : this.domEventsListenerTemporaryList = this.domEventsListenerTemporaryList.filter((t) => t !== e);
119
+ }
120
+ addCoverMesh() {
121
+ return u(this, null, function* () {
122
+ if (this.children.find((t) => t === this.coverMesh))
123
+ return;
124
+ const e = yield this.getCoverMesh();
125
+ this.add(e);
126
+ });
127
+ }
128
+ addVideoMesh() {
129
+ return u(this, null, function* () {
130
+ if (this.children.find((t) => t === this.videoMesh))
131
+ return;
132
+ const e = yield this.getVideoMesh();
133
+ this.add(e);
134
+ });
135
+ }
136
+ addButtonMesh() {
137
+ return u(this, null, function* () {
138
+ if (this.children.find((t) => t === this.buttonMesh))
139
+ return;
140
+ const e = yield this.getButtonMesh();
141
+ this.add(e);
142
+ });
143
+ }
144
+ getCoverMesh() {
145
+ return u(this, null, function* () {
146
+ if (this.coverMesh)
147
+ return this.coverMesh;
148
+ const e = yield this.getCoverTexture(), t = new m.MeshBasicMaterial({ transparent: !0, map: e }), s = T(this.objectFit, this.cornerPoints, e.image.width / e.image.height), h = l(...s), r = s.map((o) => o.clone().sub(h)), n = new y(r, 1), i = new m.Mesh(n, t);
149
+ return i.name = "videoCoverMesh", i.position.copy(h.clone().sub(this.position)), this.coverMesh = i, i;
150
+ });
151
+ }
152
+ getVideoMesh() {
153
+ return u(this, null, function* () {
154
+ if (this.videoMesh)
155
+ return this.videoMesh;
156
+ const e = yield this.getVideoTexture(), t = new m.MeshBasicMaterial({ transparent: !0, map: e }), s = T(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight), h = l(...s), r = s.map((c) => c.clone().sub(h)), n = new y(r, 1), i = new m.Mesh(n, t);
157
+ i.name = "videoMesh", i.position.copy(h.clone().sub(this.position)), this.addDomEventListener(i, "click", (c) => {
158
+ console.log("pause"), this.pause();
159
+ });
160
+ const o = e.image;
161
+ return this.videoMesh = i, this.videoInstance = o, i;
162
+ });
163
+ }
164
+ getButtonMesh() {
165
+ return u(this, null, function* () {
166
+ var b, E, I, L;
167
+ if (this.buttonMesh)
168
+ return this.buttonMesh;
169
+ const e = (E = (b = this.videoMesh) == null ? void 0 : b.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? E : 1 / 0, t = (L = (I = this.coverMesh) == null ? void 0 : I.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? L : 1 / 0, s = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), r = Math.min(e, t, s) / s * 0.3, n = yield this.getButtonTexture(), i = new m.MeshBasicMaterial({ transparent: !0, map: n }), o = T("contain", this.cornerPoints, n.image.width / n.image.height), c = l(...o), M = o.map((B) => B.clone().sub(c)), g = new y(M), v = new m.Mesh(g, i);
170
+ v.name = "buttonMesh", v.scale.set(r, r, r);
171
+ const x = () => {
172
+ console.log("play", v.visible, v.parent), this.play();
173
+ };
174
+ v.addEventListener("added", () => {
175
+ this.addDomEventListener(v, "click", x);
176
+ }), v.addEventListener("removed", () => {
177
+ this.removeDomEventListener(v, "click", x);
178
+ });
179
+ const C = new m.Vector3().crossVectors(new m.Vector3().subVectors(o[0], o[1]), new m.Vector3().subVectors(o[0], o[3])).normalize().multiplyScalar(1e-4);
180
+ return v.position.copy(C), this.buttonMesh = v, v;
181
+ });
182
+ }
183
+ getButtonTexture() {
184
+ return u(this, null, function* () {
185
+ var t, s;
186
+ if ((t = this.ImageTextureMap) != null && t.has(this.buttonSrc))
187
+ return this.ImageTextureMap.get(this.buttonSrc);
188
+ const e = yield w(this.buttonSrc);
189
+ return (s = this.ImageTextureMap) == null || s.set(this.buttonSrc, e), e;
190
+ });
191
+ }
192
+ getCoverTexture() {
193
+ return u(this, null, function* () {
194
+ var t, s;
195
+ if ((t = this.ImageTextureMap) != null && t.has(this.videoCoverSrc))
196
+ return this.ImageTextureMap.get(this.videoCoverSrc);
197
+ const e = yield w(this.videoCoverSrc);
198
+ return (s = this.ImageTextureMap) == null || s.set(this.videoCoverSrc, e), e;
199
+ });
200
+ }
201
+ getVideoTexture() {
202
+ return u(this, null, function* () {
203
+ var t, s;
204
+ if ((t = this.videoTextureMap) != null && t.has(this.src))
205
+ return this.videoTextureMap.get(this.src);
206
+ const e = yield F(this.src);
207
+ return (s = this.videoTextureMap) == null || s.set(this.src, e), e;
208
+ });
209
+ }
210
+ }
211
+ export {
212
+ J as ImagePlane,
213
+ K as VideoPlane
214
+ };
@@ -2,12 +2,14 @@ import { anyPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/positio
2
2
  import "three";
3
3
  import "@realsee/five/gltf-loader";
4
4
  import "../../shared-utils/three/loadTexture.js";
5
- function p(t) {
5
+ import "@realsee/five";
6
+ import "../../shared-utils/threex/domevents/index.js";
7
+ function u(t) {
6
8
  if (t.length < 3)
7
9
  return;
8
10
  const o = t.map(c), r = o[1].clone().sub(o[0]), n = o[2].clone().sub(o[1]);
9
11
  return r.cross(n);
10
12
  }
11
13
  export {
12
- p as planeNormal
14
+ u as planeNormal
13
15
  };
@@ -3,8 +3,10 @@ import { anyPositionToVector3 as i } from "../../CSS3DRenderPlugin/utils/positio
3
3
  import { centerPoint as n } from "../../shared-utils/three/centerPoint.js";
4
4
  import "@realsee/five/gltf-loader";
5
5
  import "../../shared-utils/three/loadTexture.js";
6
- import { isMediaModelTag as s } from "./tag/tagCheck.js";
7
- function p(r) {
6
+ import "@realsee/five";
7
+ import "../../shared-utils/threex/domevents/index.js";
8
+ import { isMediaModelTag as p } from "./tag/tagCheck.js";
9
+ function s(r) {
8
10
  if (!!r)
9
11
  if (Array.isArray(r) && r.length === 4) {
10
12
  const o = r.map(i);
@@ -12,14 +14,14 @@ function p(r) {
12
14
  } else
13
15
  return i(r);
14
16
  }
15
- function d(r) {
16
- if (s(r) && r.matrix) {
17
+ function A(r) {
18
+ if (p(r) && r.matrix) {
17
19
  const t = new m().fromArray(r.matrix), o = r.data.mediaPosition.map((e) => new a().fromArray(e).applyMatrix4(t));
18
20
  return n(o[0], o[2]);
19
21
  } else
20
- return p(r.position);
22
+ return s(r.position);
21
23
  }
22
24
  export {
23
- d as getTagPosition,
24
- p as tagPosition
25
+ A as getTagPosition,
26
+ s as tagPosition
25
27
  };
@@ -14,9 +14,9 @@ var u = (o, r, e) => (s(o, typeof r != "symbol" ? r + "" : r, e), e);
14
14
  import { VideoMeshController as p } from "./VideoMeshController.js";
15
15
  import { Controller as A } from "../base/BasePlugin.js";
16
16
  import "./utils/shader.js";
17
- import "@realsee/five";
18
17
  import "hammerjs";
19
18
  import "three";
19
+ import "@realsee/five";
20
20
  import "@tweenjs/tween.js";
21
21
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
22
22
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -35,8 +35,7 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
35
35
  import "../shared-utils/animationFrame/index.js";
36
36
  import "../shared-utils/animationFrame/BetterTween.js";
37
37
  import "./utils/index.js";
38
- import "../shared-utils/isAbsoluteURL.js";
39
- class O extends A {
38
+ class N extends A {
40
39
  constructor(e) {
41
40
  super(e);
42
41
  u(this, "enabled", !0);
@@ -138,5 +137,5 @@ class O extends A {
138
137
  }
139
138
  }
140
139
  export {
141
- O as PanoVideoPluginController
140
+ N as PanoVideoPluginController
142
141
  };
@@ -2,9 +2,9 @@ var g = Object.defineProperty;
2
2
  var F = (h, e, i) => e in h ? g(h, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : h[e] = i;
3
3
  var t = (h, e, i) => (F(h, typeof e != "symbol" ? e + "" : e, i), i);
4
4
  import { vertexShader as E, fragmentShader as I } from "./utils/shader.js";
5
- import "@realsee/five";
6
5
  import "hammerjs";
7
6
  import { VideoTexture as D, LinearFilter as m, ShaderMaterial as P, Vector4 as A, SphereBufferGeometry as M, Mesh as x, Vector3 as f, Quaternion as C } from "three";
7
+ import "@realsee/five";
8
8
  import "@tweenjs/tween.js";
9
9
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
10
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
@@ -1,10 +1,10 @@
1
1
  import { PanoVideoPluginController as r } from "./Controller.js";
2
- import { typings as B } from "./typings/index.js";
2
+ import { typings as A } from "./typings/index.js";
3
3
  import "./VideoMeshController.js";
4
4
  import "./utils/shader.js";
5
- import "@realsee/five";
6
5
  import "hammerjs";
7
6
  import "three";
7
+ import "@realsee/five";
8
8
  import "@tweenjs/tween.js";
9
9
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
10
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -24,10 +24,9 @@ import "../shared-utils/animationFrame/index.js";
24
24
  import "../shared-utils/animationFrame/BetterTween.js";
25
25
  import "./utils/index.js";
26
26
  import "../base/BasePlugin.js";
27
- import "../shared-utils/isAbsoluteURL.js";
28
- const v = (o) => new r(o);
27
+ const q = (o) => new r(o);
29
28
  export {
30
- v as PanoVideoPlugin,
31
- B as PanoVideoPluginType,
32
- v as default
29
+ q as PanoVideoPlugin,
30
+ A as PanoVideoPluginType,
31
+ q as default
33
32
  };
@@ -95,7 +95,6 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
95
95
  * @param options 配置项
96
96
  */
97
97
  setState?(state: Partial<PluginState>, options?: BaseOptions): void;
98
- isAbsoluteURL(url: string): string;
99
98
  /**
100
99
  * 启用插件,让插件能够响应交互
101
100
  */
@@ -1,30 +1,19 @@
1
- var e = Object.defineProperty;
2
- var o = (i, t, r) => t in i ? e(i, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[t] = r;
3
- var s = (i, t, r) => (o(i, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { Subscribe as m } from "../shared-utils/Subscribe.js";
5
- import "@realsee/five";
6
- import "hammerjs";
7
- import "three";
8
- import "@tweenjs/tween.js";
9
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
11
- import { isAbsoluteURL as a } from "../shared-utils/isAbsoluteURL.js";
12
- import "../shared-utils/animationFrame/BetterTween.js";
13
- class R {
14
- constructor(t, r) {
15
- s(this, "VERSION", "2.16.0-2");
1
+ var i = Object.defineProperty;
2
+ var a = (e, r, t) => r in e ? i(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
+ var s = (e, r, t) => (a(e, typeof r != "symbol" ? r + "" : r, t), t);
4
+ import { Subscribe as c } from "../shared-utils/Subscribe.js";
5
+ class o {
6
+ constructor(r, t) {
7
+ s(this, "VERSION", "2.16.0-alpha.0");
16
8
  s(this, "five");
17
- s(this, "hooks", new m());
9
+ s(this, "hooks", new c());
18
10
  s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
19
- this.five = t, r != null && r.staticPrefix && (this.staticPrefix = r.staticPrefix);
11
+ this.five = r, t != null && t.staticPrefix && (this.staticPrefix = t.staticPrefix);
20
12
  }
21
13
  getCurrentState() {
22
14
  return this.state;
23
15
  }
24
- isAbsoluteURL(t) {
25
- return a(t) ? t : `${this.staticPrefix}${t}`;
26
- }
27
16
  }
28
17
  export {
29
- R as Controller
18
+ o as Controller
30
19
  };