@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
@@ -0,0 +1,77 @@
1
+ var a = Object.defineProperty;
2
+ var l = (m, s, e) => s in m ? a(m, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[s] = e;
3
+ var h = (m, s, e) => (l(m, typeof s != "symbol" ? s + "" : s, e), e);
4
+ import "@realsee/five";
5
+ import { DomEvents as c } from "../threex/domevents/index.js";
6
+ import "three";
7
+ class I extends c {
8
+ constructor(e) {
9
+ super(e.camera, e.getElement());
10
+ h(this, "mouseInfo");
11
+ h(this, "clickHandlerMap", /* @__PURE__ */ new Map());
12
+ const t = () => this.preventWhenMouseDown();
13
+ e.on("wantsMoveToPano", t), e.on("wantsTapGesture", t);
14
+ }
15
+ addEventListener(e, t, i, n) {
16
+ const r = (u) => {
17
+ if (e.visible === !1) {
18
+ this.mouseInfo = void 0;
19
+ return;
20
+ }
21
+ const o = u.origDomEvent;
22
+ this.mouseInfo = {
23
+ x: o.clientX,
24
+ y: o.clientY,
25
+ isDown: !0,
26
+ mouseDownTimestamp: Date.now()
27
+ };
28
+ }, d = (u) => {
29
+ if (e.visible === !1) {
30
+ this.mouseInfo = void 0;
31
+ return;
32
+ }
33
+ const o = u.origDomEvent;
34
+ !this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === o.clientX && this.mouseInfo.y === o.clientY && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && i(o), this.mouseInfo = void 0);
35
+ }, f = (u) => {
36
+ if (e.visible === !1) {
37
+ this.mouseInfo = void 0;
38
+ return;
39
+ }
40
+ const o = u.origDomEvent;
41
+ this.mouseInfo = {
42
+ x: Math.floor(o.touches[0].clientX),
43
+ y: Math.floor(o.touches[0].clientY),
44
+ isDown: !0,
45
+ mouseDownTimestamp: Date.now()
46
+ };
47
+ }, v = (u) => {
48
+ if (e.visible === !1) {
49
+ this.mouseInfo = void 0;
50
+ return;
51
+ }
52
+ const o = u.origDomEvent;
53
+ !this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(o.changedTouches[o.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(o.changedTouches[o.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && i(o), this.mouseInfo = void 0);
54
+ };
55
+ t === "click" ? (super.addEventListener(e, "mousedown", r, n), super.addEventListener(e, "mouseup", d, n), super.addEventListener(e, "touchstart", f, n), super.addEventListener(e, "touchend", v, n), this.clickHandlerMap.set(i, {
56
+ mousedown: r,
57
+ mouseup: d,
58
+ touchstart: f,
59
+ touchend: v
60
+ })) : super.addEventListener(e, t, i, n);
61
+ }
62
+ removeEventListener(e, t, i, n) {
63
+ if (t === "click") {
64
+ const r = this.clickHandlerMap.get(i);
65
+ r && (super.removeEventListener(e, "mousedown", r.mousedown, n), super.removeEventListener(e, "mouseup", r.mouseup, n), super.removeEventListener(e, "touchstart", r.touchstart, n), super.removeEventListener(e, "touchend", r.touchend, n), this.clickHandlerMap.delete(i));
66
+ } else
67
+ super.removeEventListener(e, t, i, n);
68
+ }
69
+ preventWhenMouseDown() {
70
+ var e;
71
+ if ((e = this.mouseInfo) != null && e.isDown)
72
+ return !1;
73
+ }
74
+ }
75
+ export {
76
+ I as FiveDomEvents
77
+ };
@@ -1,7 +1,4 @@
1
1
  export * from './math';
2
- export * from './five';
3
2
  export * from './three';
4
3
  export * from './isNil';
5
- export * from './uuid';
6
- export * from './isAbsoluteURL';
7
4
  export * from './animationFrame';
@@ -1,42 +1,35 @@
1
- import { Interval as o } from "./math/Interval.js";
1
+ import { Interval as e } from "./math/Interval.js";
2
2
  import { Rectangle as r } from "./math/Rectangle.js";
3
- import { isPanoramaLike as e, isModelLike as t } from "./five/mode.js";
4
- import { Magnifier as m } from "./three/Magnifier.js";
5
- import { getCoordsFromClient as i, getCoordsFromElement as n } from "./three/getCoords.js";
6
- import { getRaycasterFromFivePointer as p } from "./three/getRaycaster.js";
7
- import { getIntersectFromRelativePosition as f } from "./three/getIntersect.js";
8
- import { PointHelper as l } from "./three/PointHelper.js";
9
- import { PointDomHelper as a } from "./three/PointDomHelper.js";
10
- import { FivePointSelector as s } from "./three/FivePointSelector.js";
11
- import { isNil as g, notNil as F } from "./isNil.js";
12
- import { uuid as P } from "./uuid.js";
13
- import { isAbsoluteURL as c } from "./isAbsoluteURL.js";
14
- import { nextFrame as d, requestAnimationFrameInterval as u, getFrameTime as v } from "./animationFrame/index.js";
15
- import { BetterTween as b, tweenProgress as R } from "./animationFrame/BetterTween.js";
16
- const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
+ import { Magnifier as o } from "./three/Magnifier.js";
4
+ import { getCoordsFromClient as t, getCoordsFromElement as m } from "./three/getCoords.js";
5
+ import { getRaycasterFromFivePointer as i } from "./three/getRaycaster.js";
6
+ import { getIntersectFromRelativePosition as n } from "./three/getIntersect.js";
7
+ import { PointHelper as p } from "./three/PointHelper.js";
8
+ import { PointDomHelper as l } from "./three/PointDomHelper.js";
9
+ import { FivePointSelector as f } from "./three/FivePointSelector.js";
10
+ import { isNil as a, notNil as g } from "./isNil.js";
11
+ import { nextFrame as s, requestAnimationFrameInterval as F, getFrameTime as c } from "./animationFrame/index.js";
12
+ import { BetterTween as P, tweenProgress as v } from "./animationFrame/BetterTween.js";
13
+ const w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17
14
  __proto__: null,
18
- Interval: o,
15
+ Interval: e,
19
16
  Rectangle: r,
20
- isPanoramaLike: e,
21
- isModelLike: t,
22
- Magnifier: m,
23
- getCoordsFromClient: i,
24
- getCoordsFromElement: n,
25
- getRaycasterFromFivePointer: p,
26
- getIntersectFromRelativePosition: f,
27
- PointHelper: l,
28
- PointDomHelper: a,
29
- FivePointSelector: s,
30
- isNil: g,
31
- notNil: F,
32
- uuid: P,
33
- isAbsoluteURL: c,
34
- BetterTween: b,
35
- tweenProgress: R,
36
- nextFrame: d,
37
- requestAnimationFrameInterval: u,
38
- getFrameTime: v
17
+ Magnifier: o,
18
+ getCoordsFromClient: t,
19
+ getCoordsFromElement: m,
20
+ getRaycasterFromFivePointer: i,
21
+ getIntersectFromRelativePosition: n,
22
+ PointHelper: p,
23
+ PointDomHelper: l,
24
+ FivePointSelector: f,
25
+ isNil: a,
26
+ notNil: g,
27
+ BetterTween: P,
28
+ tweenProgress: v,
29
+ nextFrame: s,
30
+ requestAnimationFrameInterval: F,
31
+ getFrameTime: c
39
32
  }, Symbol.toStringTag, { value: "Module" }));
40
33
  export {
41
- O as index
34
+ w as index
42
35
  };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 输出格式化日志
3
+ */
4
+ export declare enum LOG_LEVEL {
5
+ info = "INFO",
6
+ log = "LOG",
7
+ error = "ERROR",
8
+ warn = "WARN"
9
+ }
10
+ export declare function consoleVersion(): void;
11
+ export declare const logger: {
12
+ log: (...args: any[]) => void;
13
+ info: (...args: any[]) => void;
14
+ error: (...args: any[]) => void;
15
+ warn: (...args: any[]) => void;
16
+ };
17
+ export default logger;
@@ -0,0 +1,16 @@
1
+ function A() {
2
+ console.info(
3
+ "%c %c@realsee/dnalogel %cv2.16.0-alpha.0",
4
+ [
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
+ "background-repeat: no-repeat",
7
+ "background-position: 0 center",
8
+ "padding-left: 8px"
9
+ ].join(";"),
10
+ "",
11
+ "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px"
12
+ );
13
+ }
14
+ export {
15
+ A as consoleVersion
16
+ };
@@ -0,0 +1,2 @@
1
+ import * as THREE from 'three';
2
+ export default function pointIsRectangle(points: THREE.Vector3[]): boolean;
@@ -0,0 +1,10 @@
1
+ import "three";
2
+ function f(c) {
3
+ if (c.length !== 4)
4
+ return !1;
5
+ const [t, n, p, o] = c, s = t.distanceTo(n), e = n.distanceTo(p), i = p.distanceTo(o), a = o.distanceTo(t), d = t.distanceTo(p), r = n.distanceTo(o);
6
+ return s === i && e === a && d === r;
7
+ }
8
+ export {
9
+ f as pointIsRectangle
10
+ };
@@ -0,0 +1,2 @@
1
+ /** 修复 OffscreenCanvas 在 iOS 上无法渲染的问题 */
2
+ export declare function autoFixOffscreenCanvas(): void;
@@ -0,0 +1,12 @@
1
+ function c() {
2
+ const e = typeof OffscreenCanvas != "undefined", a = e && new OffscreenCanvas(1, 1).getContext("webgl") !== null;
3
+ e && !a && Object.assign(window, {
4
+ OffscreenCanvas: function(s, t) {
5
+ const n = document.createElement("canvas");
6
+ return n.width = s, n.height = t, n;
7
+ }
8
+ });
9
+ }
10
+ export {
11
+ c as autoFixOffscreenCanvas
12
+ };
@@ -3,8 +3,8 @@ var m = (o, e, t) => e in o ? l(o, e, { enumerable: !0, configurable: !0, writab
3
3
  var n = (o, e, t) => (m(o, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import * as a from "three";
5
5
  import * as p from "@tweenjs/tween.js";
6
- import "@realsee/five";
7
6
  import "hammerjs";
7
+ import "@realsee/five";
8
8
  import { rangePieceImg as h } from "../../PanoMeasurePlugin/Modules/rangePiece/html.js";
9
9
  import { CSS3DRenderPlugin as b } from "../../CSS3DRenderPlugin/index.js";
10
10
  import { BetterTween as u } from "../animationFrame/BetterTween.js";
@@ -0,0 +1,20 @@
1
+ import * as THREE from 'three';
2
+ declare class QuadrangleMesh extends THREE.Mesh {
3
+ name: string;
4
+ /**
5
+ * @description 生成一个四边形的Mesh
6
+ * @param {Vector3Position[]} points: 四个顶点的坐标, [左下,右下,右上,左上]
7
+ */
8
+ constructor(points: THREE.Vector3[], segments?: number);
9
+ removeFromParent(): this;
10
+ }
11
+ declare class QuadrangleGeometry extends THREE.BufferGeometry {
12
+ name: string;
13
+ points: THREE.Vector3[];
14
+ /**
15
+ * @description 生成一个四边形的BufferGeometry,原点取 points[0],即左下角
16
+ * @param {Vector3Position[]} points: 四个顶点的坐标, [左下,右下,右上,左上]
17
+ */
18
+ constructor(points: THREE.Vector3[], paramsSegments?: number);
19
+ }
20
+ export { QuadrangleMesh, QuadrangleGeometry };
@@ -0,0 +1,41 @@
1
+ var d = Object.defineProperty;
2
+ var b = (a, o, e) => o in a ? d(a, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[o] = e;
3
+ var w = (a, o, e) => (b(a, typeof o != "symbol" ? o + "" : o, e), e);
4
+ import * as u from "three";
5
+ import { pointIsRectangle as z } from "../math/pointIsRectangle.js";
6
+ class G extends u.BufferGeometry {
7
+ constructor(e, f) {
8
+ super();
9
+ w(this, "name", "QuadrangleGeometry");
10
+ w(this, "points");
11
+ this.points = e;
12
+ const t = f != null ? f : z(e) ? 64 : 1;
13
+ if (e.length !== 4) {
14
+ console.error("Invalid number of points, it's not a quadrangle");
15
+ return;
16
+ }
17
+ const [s, h, n, c] = e, [p, x, A, l] = [new u.Vector2(0, 0), new u.Vector2(1, 0), new u.Vector2(1, 1), new u.Vector2(0, 1)], y = [], i = [];
18
+ y.push(...s.toArray()), i.push(...p.toArray());
19
+ for (let r = 1; r < t; r++)
20
+ y.push(
21
+ s.x + (h.x - s.x) * r / t,
22
+ s.y + (h.y - s.y) * r / t,
23
+ s.z + (h.z - s.z) * r / t
24
+ ), i.push(p.x + (x.x - p.x) * r / t, p.y + (x.y - p.y) * r / t);
25
+ y.push(...h.toArray()), i.push(...x.toArray()), y.push(...n.toArray()), i.push(...A.toArray());
26
+ for (let r = 1; r < t; r++)
27
+ y.push(
28
+ n.x + (c.x - n.x) * r / t,
29
+ n.y + (c.y - n.y) * r / t,
30
+ n.z + (c.z - n.z) * r / t
31
+ ), i.push(A.x + (l.x - A.x) * r / t, A.y + (l.y - A.y) * r / t);
32
+ y.push(...c.toArray()), i.push(...l.toArray());
33
+ const v = [];
34
+ for (let r = 0; r < t; r++)
35
+ v.push(r, r + 1, t * 2 - r, r, t * 2 - r, t * 2 + 1 - r);
36
+ this.setAttribute("position", new u.BufferAttribute(new Float32Array(y), 3)), this.setAttribute("uv", new u.BufferAttribute(new Float32Array(i), 2)), this.setIndex(new u.BufferAttribute(new Uint32Array(v), 1));
37
+ }
38
+ }
39
+ export {
40
+ G as QuadrangleGeometry
41
+ };
@@ -0,0 +1,2 @@
1
+ import * as THREE from 'three';
2
+ export default function getPositionsByObjectFit(objectFit: 'contain' | 'fill', originPositions: THREE.Vector3[], originRatio: number): THREE.Vector3[];
@@ -0,0 +1,20 @@
1
+ import * as d from "three";
2
+ function H(f, r, a) {
3
+ if (f === "fill")
4
+ return r;
5
+ if (f === "contain") {
6
+ const [t, e, c, n] = r, p = t.distanceTo(e), i = c.distanceTo(n), u = t.distanceTo(n), h = e.distanceTo(c), w = p, b = u, m = w / b;
7
+ if (m > a) {
8
+ const o = b * a, s = new d.Vector3().subVectors(e, t).multiplyScalar((p - o) / 2 / p), l = new d.Vector3().subVectors(c, n).multiplyScalar((i - o) / 2 / i);
9
+ return [t.clone().add(s), e.clone().sub(s), c.clone().sub(l), n.clone().add(l)];
10
+ } else if (m < a) {
11
+ const o = w / a, s = new d.Vector3().subVectors(n, t).multiplyScalar((u - o) / 2 / u), l = new d.Vector3().subVectors(c, e).multiplyScalar((h - o) / 2 / h);
12
+ return [t.clone().add(s), e.clone().add(l), c.clone().sub(l), n.clone().sub(s)];
13
+ } else
14
+ return r;
15
+ } else
16
+ return r;
17
+ }
18
+ export {
19
+ H as getPositionsByObjectFit
20
+ };
@@ -1,30 +1,28 @@
1
- var u = (e, n, r) => new Promise((g, d) => {
2
- var E = (o) => {
1
+ var i = (r, n, o) => new Promise((s, a) => {
2
+ var u = (e) => {
3
3
  try {
4
- i(r.next(o));
5
- } catch (p) {
6
- d(p);
4
+ t(o.next(e));
5
+ } catch (d) {
6
+ a(d);
7
7
  }
8
- }, l = (o) => {
8
+ }, m = (e) => {
9
9
  try {
10
- i(r.throw(o));
11
- } catch (p) {
12
- d(p);
10
+ t(o.throw(e));
11
+ } catch (d) {
12
+ a(d);
13
13
  }
14
- }, i = (o) => o.done ? g(o.value) : Promise.resolve(o.value).then(E, l);
15
- i((r = r.apply(e, n)).next());
14
+ }, t = (e) => e.done ? s(e.value) : Promise.resolve(e.value).then(u, m);
15
+ t((o = o.apply(r, n)).next());
16
16
  });
17
- import * as a from "three";
18
- const m = new a.TextureLoader();
19
- function s(e) {
20
- return u(this, null, function* () {
21
- return new Promise((n, r) => {
22
- m.load(e, n, void 0, r);
23
- }).then((n) => (n.encoding = a.sRGBEncoding, n.minFilter = a.LinearFilter, n.wrapS = a.ClampToEdgeWrapping, n.wrapT = a.ClampToEdgeWrapping, setTimeout(() => {
24
- n.wrapS !== a.ClampToEdgeWrapping && console.warn("ios 16.4 texture \u4E0D\u652F\u6301 ClampToEdgeWrapping \u4EE5\u5916\u7684\u65B9\u5F0F");
25
- }), n));
17
+ import * as c from "three";
18
+ const x = new c.TextureLoader();
19
+ function T(r) {
20
+ return i(this, null, function* () {
21
+ return new Promise((n, o) => {
22
+ x.load(r, n, void 0, o);
23
+ }).then((n) => (n.encoding = c.sRGBEncoding, n));
26
24
  });
27
25
  }
28
26
  export {
29
- s as loadTexture
27
+ T as loadTexture
30
28
  };
@@ -0,0 +1,4 @@
1
+ import * as THREE from 'three';
2
+ export default function loadVideoTexture(src: string): Promise<Omit<THREE.VideoTexture, 'image'> & {
3
+ image: HTMLVideoElement;
4
+ }>;
@@ -0,0 +1,14 @@
1
+ import * as r from "three";
2
+ function i(o) {
3
+ return new Promise((a, n) => {
4
+ const e = document.createElement("video");
5
+ e.preload = "metadata", e.crossOrigin = "anonymous", e.muted = !0, e.loop = !0, e.playsInline = !0, e.autoplay = !0, e.src = o;
6
+ const t = new r.VideoTexture(e);
7
+ t.minFilter = r.LinearFilter, t.magFilter = r.LinearFilter, t.format = r.RGBFormat, e.onloadedmetadata = () => {
8
+ a(t);
9
+ };
10
+ });
11
+ }
12
+ export {
13
+ i as loadVideoTexture
14
+ };
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.16.0-2",
10
+ "version": "2.16.0-alpha.0",
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*",
@@ -68,7 +68,7 @@
68
68
  "svelte-carousel": "1.0.22",
69
69
  "svelte-preprocess": "^4.10.7",
70
70
  "three": "0.117.1",
71
- "type-fest": "3.8.0",
71
+ "type-fest": "3.2.0",
72
72
  "typedoc": "^0.23.21",
73
73
  "typescript": "^4.9.3",
74
74
  "vite": "3.2.3",
@@ -1,26 +0,0 @@
1
- import type { Five } from '@realsee/five';
2
- import type GuideLinePlugin from './Controller';
3
- import type * as PluginType from './typing';
4
- import { GuideLineModeItem } from './GuideLineModeItem';
5
- /** 路线引导实例。
6
- * - 路线包括两个部分:全景路线和模型路线。
7
- * - Five 切换模态时,路线会自动切换。
8
- * - GuideLineItem P
9
- */
10
- declare class GuideLineItem {
11
- readonly id: string | number;
12
- readonly renderID?: string;
13
- readonly isGuideLine = true;
14
- readonly panoramaItem: GuideLineModeItem;
15
- readonly modelItem: GuideLineModeItem;
16
- private plugin;
17
- private five;
18
- constructor(options: {
19
- five: Five;
20
- id: string | number;
21
- plugin: GuideLinePlugin;
22
- });
23
- setData(data: PluginType.GuideLineItem): void;
24
- setDataByMode(mode: PluginType.GuideLineModeItemMode, data: PluginType.GuideLineItem): void;
25
- }
26
- export { GuideLineItem };
@@ -1,64 +0,0 @@
1
- import type GuideLinePlugin from './Controller';
2
- import type { Five } from '@realsee/five';
3
- import type * as PluginType from './typing';
4
- import * as THREE from 'three';
5
- /** @link https://threejs.org/docs/index.html#api/en/extras/curves/CatmullRomCurve3 */
6
- declare type CatmullRomCurve3RestParams = Omit<PluginType.CatmullRomCurve3, 'type' | 'points'>;
7
- /** 在不同模态下的 GuideLine */
8
- declare class GuideLineModeItem {
9
- readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
10
- private five;
11
- private mode;
12
- private path;
13
- private skippedPositions;
14
- private textureUrl;
15
- private scale;
16
- private width;
17
- private unitLength;
18
- private visible;
19
- /** 在当前模态下,是否展示 */
20
- private modeVisible;
21
- private customVisible;
22
- private plugin;
23
- private textureHasLoaded;
24
- private disposed;
25
- constructor(five: Five, options: {
26
- mode: PluginType.GuideLineModeItemMode;
27
- plugin: GuideLinePlugin;
28
- });
29
- /** 自定义展示 */
30
- setCustomVisible(visible: boolean | null): void;
31
- /** 设置模型态展示 */
32
- setModeVisible(visible: boolean): void;
33
- dispose(): void;
34
- /** 基础宽、长 */
35
- setUnitSize(width: number, length: number): void;
36
- /** 设置缩放 */
37
- setScale(scale: number): void;
38
- /** 通过点位设置线条形状 */
39
- setGeometryByPanoGroup(panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle): void;
40
- /** 通过路径设置线条形状 */
41
- setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle): void;
42
- setSkippedPanoGroup(panoGroup: null | number[]): void;
43
- /** 设置线条材质 */
44
- setMartial(options?: PluginType.GuideLineMaterialStyle): void;
45
- setColor(color: null | number[]): void;
46
- setBackgroundColor(color: number[]): void;
47
- setOpacity(opacity: number): void;
48
- setBackgroundOpacity(opacity: number): void;
49
- setMapOpacity(opacity: number): void;
50
- setTextureUrl(url: string): void;
51
- private onPluginShow;
52
- private onPluginHide;
53
- private onPluginEnable;
54
- private onPluginDisable;
55
- /** 模型状态变更 */
56
- private onFiveModeChange;
57
- private updateVisible;
58
- private doShow;
59
- private doHide;
60
- private getPathFromPanoGroup;
61
- private logWarning;
62
- private logError;
63
- }
64
- export { GuideLineModeItem };
@@ -1,19 +0,0 @@
1
- import * as THREE from 'three';
2
- import type * as PluginType from '../typing';
3
- /** 生成曲线参数 */
4
- interface LineGeometryOption {
5
- /** 路径 */
6
- path: PluginType.PathItem[];
7
- /** 线宽,默认是 0.5 */
8
- width: number;
9
- /** 每一段的长度,默认是 0.5 */
10
- unitLength: number;
11
- }
12
- /** 创建路线的几何体
13
- * @param curvePoints 三维点位
14
- * @param unitWidth 线段宽度
15
- * @param unitLength 每一段的长度
16
- * @returns THREE BufferGeometry
17
- */
18
- export declare function createLineGeometry(options: LineGeometryOption): THREE.BufferGeometry;
19
- export {};
@@ -1,7 +0,0 @@
1
- import { GuideLineModeItem } from '../GuideLineModeItem';
2
- import type * as PluginType from '../typing';
3
- export declare function updateGuideLineModeItemByData(options: {
4
- item: GuideLineModeItem;
5
- data: PluginType.GuideLineItem;
6
- mode: PluginType.GuideLineModeItemMode;
7
- }): void;
@@ -1,9 +0,0 @@
1
- import * as THREE from 'three';
2
- import { Vector3 } from 'three';
3
- declare class ImagePlane extends THREE.Mesh {
4
- name: string;
5
- imageSrc?: string;
6
- constructor(imageSrc: string, cornerPoints: Vector3[]);
7
- setMatrixByCornerPoints(cornerPoints: Vector3[]): void;
8
- }
9
- export default ImagePlane;
@@ -1 +0,0 @@
1
- export * from './mode';
@@ -1,3 +0,0 @@
1
- import { Mode } from '@realsee/five';
2
- export declare function isPanoramaLike(mode: Mode): boolean;
3
- export declare function isModelLike(mode: Mode): boolean;
@@ -1 +0,0 @@
1
- export declare function isAbsoluteURL(url: string): boolean;
@@ -1,2 +0,0 @@
1
- export declare function logWarning(name: string, msg: string): void;
2
- export declare function logError(name: string, msg: string): void;