@realsee/dnalogel 2.2.6 → 2.2.7

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 (322) hide show
  1. package/docs/assets/main.js +1 -1
  2. package/docs/classes/CruisePluginController.html +24 -24
  3. package/docs/classes/Magnifier.html +16 -16
  4. package/docs/classes/ModelRoomLabelController.html +11 -11
  5. package/docs/classes/Object3DHelperController.html +24 -24
  6. package/docs/classes/PaintBrush.html +15 -15
  7. package/docs/classes/PanoTagPluginController.html +39 -39
  8. package/docs/classes/Util.BetterTween.html +8 -8
  9. package/docs/classes/Util.FivePointSelector.html +12 -12
  10. package/docs/classes/Util.Interval.html +12 -12
  11. package/docs/classes/Util.Magnifier.html +17 -17
  12. package/docs/classes/Util.PointDomHelper.html +11 -11
  13. package/docs/classes/Util.PointHelper.html +11 -11
  14. package/docs/classes/Util.Rectangle.html +13 -13
  15. package/docs/enums/CameraMovementEffect.html +7 -7
  16. package/docs/enums/ContentType.html +12 -12
  17. package/docs/enums/DIRECTION.html +9 -9
  18. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  19. package/docs/enums/DimensionType.html +7 -7
  20. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  21. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  22. package/docs/enums/LinkType.html +7 -7
  23. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  24. package/docs/enums/PointType.html +7 -7
  25. package/docs/enums/Rotation.html +8 -8
  26. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  27. package/docs/functions/CameraMovementPlugin.html +4 -4
  28. package/docs/functions/CruisePlugin.html +4 -4
  29. package/docs/functions/GuideLinePlugin.html +5 -5
  30. package/docs/functions/ItemLabelPlugin.html +4 -4
  31. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  32. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  33. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  34. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  35. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  36. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  37. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  38. package/docs/functions/ModelViewPlugin.html +4 -4
  39. package/docs/functions/Object3DHelperPlugin.html +4 -4
  40. package/docs/functions/PanoCompassPlugin.html +4 -4
  41. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  42. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  43. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  44. package/docs/functions/PanoMeasurePlugin.html +4 -4
  45. package/docs/functions/PanoRulerPlugin.html +4 -4
  46. package/docs/functions/PanoRulerProPlugin.html +4 -4
  47. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  48. package/docs/functions/PanoTagPlugin.html +4 -4
  49. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  50. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  51. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  52. package/docs/functions/Util.getFrameTime.html +5 -5
  53. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  54. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  55. package/docs/functions/Util.isNil.html +5 -5
  56. package/docs/functions/Util.nextFrame.html +5 -5
  57. package/docs/functions/Util.notNil.html +5 -5
  58. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  59. package/docs/functions/Util.tweenProgress.html +5 -5
  60. package/docs/functions/pluginFlag.html +5 -5
  61. package/docs/index.html +4 -4
  62. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  63. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  64. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  65. package/docs/interfaces/ContentTypeMap.html +12 -12
  66. package/docs/interfaces/FloorplanBounding.html +8 -8
  67. package/docs/interfaces/FloorplanData.html +10 -10
  68. package/docs/interfaces/FloorplanEntrance.html +11 -11
  69. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  70. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  71. package/docs/interfaces/FloorplanFloorData.html +9 -9
  72. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  73. package/docs/interfaces/FloorplanObserver.html +9 -9
  74. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  75. package/docs/interfaces/FloorplanPosition.html +7 -7
  76. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  77. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  78. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  79. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  80. package/docs/interfaces/FloorplanServerData.html +7 -7
  81. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  82. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  83. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  84. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  85. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  86. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  87. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  88. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  89. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  90. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  91. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  92. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  93. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  94. package/docs/interfaces/LineJson.html +7 -7
  95. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  96. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  97. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  98. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  99. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  100. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  101. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  102. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  103. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  104. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  105. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  106. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  107. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  108. package/docs/interfaces/Object3DHelperState.html +8 -8
  109. package/docs/interfaces/OpenParameter.html +7 -7
  110. package/docs/interfaces/PaintBrushAction.html +12 -12
  111. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  112. package/docs/interfaces/PaintBrushState.html +10 -10
  113. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  114. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  115. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  116. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  117. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  118. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  119. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  120. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  121. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  122. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  123. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  124. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  125. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  126. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  127. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  128. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  129. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  130. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  131. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  132. package/docs/interfaces/Point.html +8 -8
  133. package/docs/interfaces/PointJson.html +8 -8
  134. package/docs/interfaces/Room.html +9 -9
  135. package/docs/interfaces/RoomInfo.html +7 -7
  136. package/docs/interfaces/RoomLabel.html +14 -14
  137. package/docs/interfaces/RoomRules.html +5 -5
  138. package/docs/interfaces/Rooms.html +5 -5
  139. package/docs/interfaces/Scissor.html +9 -9
  140. package/docs/interfaces/TagConfig.html +10 -10
  141. package/docs/interfaces/Tags.html +9 -9
  142. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  143. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  144. package/docs/modules/Util.html +5 -5
  145. package/docs/modules.html +4 -4
  146. package/docs/types/ArrayPosition.html +5 -5
  147. package/docs/types/CSS3DRenderExportType.html +5 -5
  148. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  149. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  150. package/docs/types/Color.html +5 -5
  151. package/docs/types/ContentTypeConfigKey.html +5 -5
  152. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  153. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  154. package/docs/types/Create3DElementReturnType.html +5 -5
  155. package/docs/types/CruisePluginExportType.html +5 -5
  156. package/docs/types/Direction-1.html +5 -5
  157. package/docs/types/Direction4.html +5 -5
  158. package/docs/types/FloorplanRuleLabels.html +5 -5
  159. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  160. package/docs/types/GuideLinePluginExportType.html +5 -5
  161. package/docs/types/HelperEventMap.html +5 -5
  162. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  163. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  164. package/docs/types/MediaData.html +5 -5
  165. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  166. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  167. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  168. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  169. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  170. package/docs/types/MoveArgs.html +5 -5
  171. package/docs/types/MoveOpts.html +5 -5
  172. package/docs/types/Object3DHelperEventMap.html +5 -5
  173. package/docs/types/ObjectFit.html +5 -5
  174. package/docs/types/PaintBrushEventMap.html +5 -5
  175. package/docs/types/PanoCompassPluginData.html +5 -5
  176. package/docs/types/PanoCompassPluginExportType.html +5 -5
  177. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  178. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  179. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  180. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  181. package/docs/types/PanoMeasureReturnType.html +5 -5
  182. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  183. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  184. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  185. package/docs/types/PlaneTag.html +5 -5
  186. package/docs/types/PointTag.html +5 -5
  187. package/docs/types/Position.html +5 -5
  188. package/docs/types/RotateArgs.html +5 -5
  189. package/docs/types/RotateOpts.html +5 -5
  190. package/docs/types/RuleLabelsKey.html +5 -5
  191. package/docs/types/RuleLabelsValue.html +5 -5
  192. package/docs/types/Tag.html +5 -5
  193. package/docs/types/Tag2D.html +5 -5
  194. package/docs/types/Tag3D.html +5 -5
  195. package/docs/types/TagId.html +5 -5
  196. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  197. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  198. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  199. package/docs/variables/PLUGIN.html +5 -5
  200. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  201. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  202. package/docs/variables/VERSION.html +5 -5
  203. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  204. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  205. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  206. package/libs/CSS3DRenderPlugin/CSS3DRender.js +39 -33
  207. package/libs/CSS3DRenderPlugin/Controller.js +30 -22
  208. package/libs/CSS3DRenderPlugin/index.js +12 -3
  209. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +2 -1
  210. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
  211. package/libs/CameraMovementPlugin/index.js +13 -0
  212. package/libs/CruisePlugin/Controller.js +52 -41
  213. package/libs/CruisePlugin/index.js +26 -3
  214. package/libs/CruisePlugin/typing.js +1 -0
  215. package/libs/GuideLinePlugin/Controller.js +14 -9
  216. package/libs/GuideLinePlugin/index.js +14 -3
  217. package/libs/GuideLinePlugin/typing.js +1 -0
  218. package/libs/ItemLabelPlugin/Plugin.js +33 -23
  219. package/libs/ItemLabelPlugin/events.type.js +1 -0
  220. package/libs/ItemLabelPlugin/index.js +16 -2
  221. package/libs/ModelChassisCompassPlugin/Plugin.js +2 -1
  222. package/libs/ModelChassisCompassPlugin/index.js +8 -0
  223. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +44 -39
  224. package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
  225. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
  226. package/libs/ModelItemLabelPlugin/index.js +12 -2
  227. package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
  228. package/libs/ModelRoomLabelPlugin/index.js +10 -3
  229. package/libs/ModelRoomLabelPlugin/typings.js +1 -0
  230. package/libs/ModelTVVideoPlugin/Plugin.js +35 -25
  231. package/libs/ModelTVVideoPlugin/index.js +17 -0
  232. package/libs/ModelViewPlugin/Plugin.js +2 -1
  233. package/libs/ModelViewPlugin/index.js +6 -0
  234. package/libs/Object3DHelperPlugin/Controller.js +48 -27
  235. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
  236. package/libs/Object3DHelperPlugin/index.js +40 -3
  237. package/libs/Object3DHelperPlugin/typings.js +1 -0
  238. package/libs/PanoCompassPlugin/Controller.js +25 -13
  239. package/libs/PanoCompassPlugin/index.js +23 -3
  240. package/libs/PanoCompassPlugin/typings.js +1 -0
  241. package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
  242. package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
  243. package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
  244. package/libs/PanoDoorLabelPlugin/index.js +12 -2
  245. package/libs/PanoDoorLabelPlugin/typings.js +1 -0
  246. package/libs/PanoMeasurePlugin/index.js +56 -5
  247. package/libs/PanoRulerPlugin/Plugin.js +22 -17
  248. package/libs/PanoRulerPlugin/index.js +9 -0
  249. package/libs/PanoRulerPlugin/style.js +1 -1
  250. package/libs/PanoRulerPlugin/typings.js +1 -0
  251. package/libs/PanoRulerProPlugin/Controller.js +38 -27
  252. package/libs/PanoRulerProPlugin/index.js +16 -3
  253. package/libs/PanoRulerProPlugin/typings.js +1 -0
  254. package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
  255. package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
  256. package/libs/PanoSpatialTagPlugin/Plugin.js +74 -62
  257. package/libs/PanoSpatialTagPlugin/index.js +20 -0
  258. package/libs/PanoSpatialTagPlugin/store.js +1 -0
  259. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  260. package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
  261. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
  262. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
  263. package/libs/PanoTagPlugin/Components/Common/Media.js +47 -55
  264. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
  265. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
  266. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -7
  267. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +21 -23
  268. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
  269. package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
  270. package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
  271. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +19 -27
  272. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  273. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
  274. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
  275. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
  276. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
  277. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +54 -65
  278. package/libs/PanoTagPlugin/Components/Tag/index.js +74 -103
  279. package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
  280. package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
  281. package/libs/PanoTagPlugin/controller/index.js +2 -2
  282. package/libs/PanoTagPlugin/index.js +82 -3
  283. package/libs/PanoTagPlugin/tag.config.js +2 -1
  284. package/libs/floorplan/Components/BaseImage.js +7 -7
  285. package/libs/floorplan/Components/Camera.js +10 -10
  286. package/libs/floorplan/Components/Compass.js +1 -1
  287. package/libs/floorplan/Components/CurrentFloor.js +47 -56
  288. package/libs/floorplan/Components/Main.js +80 -99
  289. package/libs/floorplan/Components/Normalmage.js +5 -5
  290. package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
  291. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
  292. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -1
  293. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
  294. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
  295. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
  296. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
  297. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
  298. package/libs/floorplan/Components/RuleLabels/RuleItem.js +6 -6
  299. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +14 -14
  300. package/libs/floorplan/Components/SvgImage.js +12 -12
  301. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
  302. package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
  303. package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
  304. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
  305. package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
  306. package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
  307. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  308. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
  309. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
  310. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
  311. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
  312. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
  313. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
  314. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
  315. package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
  316. package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  317. package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
  318. package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
  319. package/libs/floorplan/typings/index.js +1 -0
  320. package/libs/index.js +33 -33
  321. package/package.json +17 -17
  322. package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.2.6</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.2.6"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.2.7</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.2.7"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,13 +6,13 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.2.6</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.2.7</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-8 col-content">
13
13
  <div class="tsd-page-title">
14
14
  <ul class="tsd-breadcrumb">
15
- <li><a href="../modules.html">如视看房插件合集 - v2.2.6</a></li>
15
+ <li><a href="../modules.html">如视看房插件合集 - v2.2.7</a></li>
16
16
  <li><a href="modelRoomLabelPluginServerParams.html">modelRoomLabelPluginServerParams</a></li></ul>
17
17
  <h1>Variable modelRoomLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
18
18
  <div class="tsd-signature">model<wbr/>Room<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
@@ -24,7 +24,7 @@
24
24
  <li class="tsd-parameter">
25
25
  <h5>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
26
26
  <ul>
27
- <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/f314091/plugins/src/ModelRoomLabelPlugin/index.ts#L12">plugins/src/ModelRoomLabelPlugin/index.ts:12</a></li></ul></aside></div>
27
+ <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/d148805/plugins/src/ModelRoomLabelPlugin/index.ts#L12">plugins/src/ModelRoomLabelPlugin/index.ts:12</a></li></ul></aside></div>
28
28
  <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
29
29
  <div class="tsd-navigation settings">
30
30
  <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
@@ -41,7 +41,7 @@
41
41
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
42
42
  <div class="tsd-accordion-details">
43
43
  <ul>
44
- <li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.2.6</a>
44
+ <li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.2.7</a>
45
45
  <ul>
46
46
  <li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
47
47
  <nav class="tsd-navigation secondary menu-sticky">
@@ -1,16 +1,16 @@
1
1
  var Z = Object.defineProperty;
2
- var x = Object.getOwnPropertySymbols;
2
+ var P = Object.getOwnPropertySymbols;
3
3
  var ee = Object.prototype.hasOwnProperty, te = Object.prototype.propertyIsEnumerable;
4
- var F = (b, e, t) => e in b ? Z(b, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[e] = t, U = (b, e) => {
4
+ var F = (b, e, t) => e in b ? Z(b, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[e] = t, x = (b, e) => {
5
5
  for (var t in e || (e = {}))
6
6
  ee.call(e, t) && F(b, t, e[t]);
7
- if (x)
8
- for (var t of x(e))
7
+ if (P)
8
+ for (var t of P(e))
9
9
  te.call(e, t) && F(b, t, e[t]);
10
10
  return b;
11
11
  };
12
12
  var l = (b, e, t) => (F(b, typeof e != "symbol" ? e + "" : e, t), t);
13
- var C = (b, e, t) => new Promise((s, n) => {
13
+ var E = (b, e, t) => new Promise((s, n) => {
14
14
  var d = (i) => {
15
15
  try {
16
16
  a(t.next(i));
@@ -26,14 +26,16 @@ var C = (b, e, t) => new Promise((s, n) => {
26
26
  }, a = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(d, c);
27
27
  a((t = t.apply(b, e)).next());
28
28
  });
29
- import * as y from "three";
30
- import { CSS3DRenderer as H } from "three/examples/jsm/renderers/CSS3DRenderer";
29
+ import * as C from "three";
30
+ import { CSS3DRenderer as N } from "three/examples/jsm/renderers/CSS3DRenderer";
31
31
  import { Subscribe as se } from "../shared-utils/Subscribe.js";
32
- import { evenNumber as N } from "./utils/evenNumber.js";
32
+ import { evenNumber as U } from "./utils/evenNumber.js";
33
33
  import { anyPositionToVector3 as oe } from "./utils/positionToVector3.js";
34
34
  import { CSS3DObjectPlus as ne } from "./utils/CSS3DObjectPlus.js";
35
- const re = "v2.0.1", _ = "CSS3DRenderer", m = `${_}@${re}`, V = (b) => `${m}--${b}`, o = {};
36
- class fe {
35
+ import { MinRatio as Me } from "./utils/CSS3DObjectPlus.js";
36
+ import "./utils/centerPoint.js";
37
+ const re = "v2.0.1", V = "CSS3DRenderer", le = "__CSS3DOBJECT_CSS3DRENDER_CONTAINER__", m = `${V}@${re}`, H = (b) => `${m}--${b}`, o = {};
38
+ class ue {
37
39
  constructor() {
38
40
  l(this, "hooks", new se());
39
41
  l(this, "state", {
@@ -67,7 +69,7 @@ class fe {
67
69
  u.id = `container--${h.uuid}`;
68
70
  const Q = i === "front" && !o.frontModeStore, W = i === "behind" && !o.behindModeStore;
69
71
  i === "front" && this.initGlobalModeStore("front"), i === "behind" && this.initGlobalModeStore("behind", n.scene), h.hooks.on("changeMode", (r, D, M) => {
70
- var B, L, P;
72
+ var $, _, B;
71
73
  if (r === D)
72
74
  return;
73
75
  r === "front" && this.initGlobalModeStore("front"), r === "behind" && this.initGlobalModeStore("behind", M);
@@ -78,12 +80,12 @@ class fe {
78
80
  if (!j)
79
81
  return console.error(`${m}: changeMode error: prevObject is undefined`);
80
82
  if (r === "behind") {
81
- const T = (B = j.opacityMesh) != null ? B : this.createOpacityMesh(j.css3DObject);
82
- S == null || S.css3DScene.remove(j.css3DObject), w[h.uuid] = { css3DObject: h, opacityMesh: T, visible: !0, enabled: !0, mode: r, scene: M }, p == null || p.css3DScene.add(h), M == null || M.add(T);
83
+ const L = ($ = j.opacityMesh) != null ? $ : this.createOpacityMesh(j.css3DObject);
84
+ S == null || S.css3DScene.remove(j.css3DObject), w[h.uuid] = { css3DObject: h, opacityMesh: L, visible: !0, enabled: !0, mode: r, scene: M }, p == null || p.css3DScene.add(h), M == null || M.add(L);
83
85
  }
84
- r === "front" && (S == null || S.css3DScene.remove(j.css3DObject), (P = (L = I[h.uuid]) == null ? void 0 : L.scene) == null || P.remove(j.opacityMesh), w[h.uuid] = { css3DObject: h, visible: !0, enabled: !0, mode: r }, p == null || p.css3DScene.add(h)), r === "behind" && this.appendToElement(o.behindModeContainer, "behind"), r === "front" && this.appendToElement(o.frontModeContainer, "front"), this.render(e), console.log("change success");
86
+ r === "front" && (S == null || S.css3DScene.remove(j.css3DObject), (B = (_ = I[h.uuid]) == null ? void 0 : _.scene) == null || B.remove(j.opacityMesh), w[h.uuid] = { css3DObject: h, visible: !0, enabled: !0, mode: r }, p == null || p.css3DScene.add(h)), r === "behind" && this.appendToElement(o.behindModeContainer, "behind"), r === "front" && this.appendToElement(o.frontModeContainer, "front"), this.render(e), console.log("change success");
85
87
  });
86
- const g = i === "front" ? o.frontModeStore : o.behindModeStore, { css3DScene: E, css3DRenderer: v } = g, q = (() => {
88
+ const g = i === "front" ? o.frontModeStore : o.behindModeStore, { css3DScene: y, css3DRenderer: v } = g, q = (() => {
87
89
  const r = () => {
88
90
  var M, S;
89
91
  const D = h.mode;
@@ -106,12 +108,12 @@ class fe {
106
108
  scene: n.scene
107
109
  };
108
110
  }
109
- E.getObjectById(h.id) || E.add(h), D === "behind" && O && ((M = n.scene) != null && M.getObjectById(O.id) || (S = n.scene) == null || S.add(O), z.push(() => {
111
+ y.getObjectById(h.id) || y.add(h), D === "behind" && O && ((M = n.scene) != null && M.getObjectById(O.id) || (S = n.scene) == null || S.add(O), z.push(() => {
110
112
  var p;
111
113
  return O && ((p = n.scene) == null ? void 0 : p.remove(O));
112
114
  }));
113
115
  };
114
- return Q || W ? (v.domElement.style.position = "absolute", v.domElement.style.top = "0", v.domElement.style.userSelect = "none", v.domElement.style.pointerEvents = "none", v.domElement.classList.add(V(i)), () => {
116
+ return Q || W ? (v.domElement.style.position = "absolute", v.domElement.style.top = "0", v.domElement.style.userSelect = "none", v.domElement.style.pointerEvents = "none", v.domElement.classList.add(H(i)), () => {
115
117
  r(), this.render(e);
116
118
  }) : (this.store.rendered = !0, () => r());
117
119
  })(), k = i === "front" ? o.frontModeContainer : o.behindModeContainer;
@@ -120,11 +122,11 @@ class fe {
120
122
  const r = i === "front" ? o.frontModeStore : o.behindModeStore;
121
123
  r && (r.appendedToPage = !0);
122
124
  }
123
- const R = (r) => this.setVisibleById(h.uuid, r), A = (r) => this.setEnabledById(h.uuid, r), J = () => R(!0), K = () => R(!1), X = () => A(!0), Y = () => A(!1), $ = () => (delete this.store.frontModeCSS3DObjects[h.uuid], delete this.store.behindModeCSS3DObjects[h.uuid], z.forEach((r) => r == null ? void 0 : r()), E.remove(h), E.children.length === 0 && (typeof g.requestAnimationFrameId == "number" && cancelAnimationFrame(g.requestAnimationFrameId), v.domElement.remove(), i === "front" && (o.frontModeStore = void 0), i === "behind" && (o.behindModeStore = void 0), o.frontModeResizeObserver = void 0, o.behindModeResizeObserver = void 0), !0);
124
- return this.store.disposers.push($), f && q(), {
125
+ const R = (r) => this.setVisibleById(h.uuid, r), A = (r) => this.setEnabledById(h.uuid, r), J = () => R(!0), K = () => R(!1), X = () => A(!0), Y = () => A(!1), T = () => (delete this.store.frontModeCSS3DObjects[h.uuid], delete this.store.behindModeCSS3DObjects[h.uuid], z.forEach((r) => r == null ? void 0 : r()), y.remove(h), y.children.length === 0 && (typeof g.requestAnimationFrameId == "number" && cancelAnimationFrame(g.requestAnimationFrameId), v.domElement.remove(), i === "front" && (o.frontModeStore = void 0), i === "behind" && (o.behindModeStore = void 0), o.frontModeResizeObserver = void 0, o.behindModeResizeObserver = void 0), !0);
126
+ return this.store.disposers.push(T), f && q(), {
125
127
  id: h.uuid,
126
128
  container: u,
127
- dispose: $,
129
+ dispose: T,
128
130
  css3DObject: h,
129
131
  render: f ? void 0 : q,
130
132
  show: J,
@@ -153,18 +155,18 @@ class fe {
153
155
  });
154
156
  l(this, "createObject", (e, t) => {
155
157
  const { ratio: s, dpr: n, container: d, mode: c, pointerEvents: a } = t, i = new ne(d, e, s, n, c);
156
- d.style.pointerEvents = a, d.classList.add(`${_}__container`);
158
+ d.style.pointerEvents = a, d.classList.add(`${V}__container`);
157
159
  const f = c === "behind" ? this.createOpacityMesh(i) : void 0;
158
160
  return { css3DObject: i, opacityMesh: f };
159
161
  });
160
162
  l(this, "createOpacityMesh", (e) => {
161
- const { domWidthPx: t, domHeightPx: s } = e, n = new y.MeshBasicMaterial({
163
+ const { domWidthPx: t, domHeightPx: s } = e, n = new C.MeshBasicMaterial({
162
164
  opacity: 0,
163
165
  color: 0,
164
166
  transparent: !1,
165
- side: y.DoubleSide
166
- }), d = new y.PlaneGeometry(t, s), c = new y.Mesh(d, n);
167
- return c.name = V("mesh"), c.position.copy(e.position), c.rotation.copy(e.rotation), c.scale.copy(e.scale), e.hooks.on("applyMatrix4", (a) => c.applyMatrix4(a)), e.hooks.on("applyQuaternion", (a) => c.applyQuaternion(a)), e.hooks.on("applyScaleMatrix4", (a) => c.scale.applyMatrix4(a)), c;
167
+ side: C.DoubleSide
168
+ }), d = new C.PlaneGeometry(t, s), c = new C.Mesh(d, n);
169
+ return c.name = H("mesh"), c.position.copy(e.position), c.rotation.copy(e.rotation), c.scale.copy(e.scale), e.hooks.on("applyMatrix4", (a) => c.applyMatrix4(a)), e.hooks.on("applyQuaternion", (a) => c.applyQuaternion(a)), e.hooks.on("applyScaleMatrix4", (a) => c.scale.applyMatrix4(a)), c;
168
170
  });
169
171
  l(this, "createResizeObserver", (e, t, s = !0) => {
170
172
  if (!e)
@@ -172,7 +174,7 @@ class fe {
172
174
  }, unobserve: () => {
173
175
  } };
174
176
  const n = () => {
175
- const c = N(e.clientWidth, { smaller: !0 }), a = N(e.clientHeight, { smaller: !0 });
177
+ const c = U(e.clientWidth, { smaller: !0 }), a = U(e.clientHeight, { smaller: !0 });
176
178
  t(c, a);
177
179
  };
178
180
  if (typeof ResizeObserver == "undefined" || !ResizeObserver)
@@ -194,21 +196,21 @@ class fe {
194
196
  setState(e, t = { userAction: !0 }) {
195
197
  if (this.state.disposed)
196
198
  return this.disposedErrorLog();
197
- const s = U({}, this.state);
199
+ const s = x({}, this.state);
198
200
  this.state = Object.assign(this.state, e), s.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), s.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: t.userAction });
199
201
  }
200
202
  dispose() {
201
203
  this.store.disposers.forEach((e) => e == null ? void 0 : e()), this.store.disposers = [], this.hooks.emit("dispose"), this.state.disposed = !0;
202
204
  }
203
205
  show() {
204
- return C(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
206
+ return E(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
205
207
  if (this.state.disposed)
206
208
  return this.disposedErrorLog();
207
209
  this.setState({ visible: !0 }, { userAction: e }), this.hooks.emit("show", { userAction: e });
208
210
  });
209
211
  }
210
212
  hide() {
211
- return C(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
213
+ return E(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
212
214
  if (this.state.disposed)
213
215
  return this.disposedErrorLog();
214
216
  this.setState({ visible: !1 }, { userAction: e }), this.hooks.emit("hide", { userAction: e });
@@ -283,10 +285,10 @@ class fe {
283
285
  }
284
286
  initGlobalModeStore(e, t) {
285
287
  const s = e === "front" && !o.frontModeStore;
286
- e === "behind" && !o.behindModeStore && (o.behindModeStore = { scene: t, css3DScene: new y.Scene(), css3DRenderer: new H() }), s && (o.frontModeStore = { css3DScene: new y.Scene(), css3DRenderer: new H() });
288
+ e === "behind" && !o.behindModeStore && (o.behindModeStore = { scene: t, css3DScene: new C.Scene(), css3DRenderer: new N() }), s && (o.frontModeStore = { css3DScene: new C.Scene(), css3DRenderer: new N() });
287
289
  }
288
290
  handleShow() {
289
- return C(this, null, function* () {
291
+ return E(this, null, function* () {
290
292
  Object.values(this.store.frontModeCSS3DObjects).forEach((e) => {
291
293
  e.css3DObject.visible = e.visible;
292
294
  }), Object.values(this.store.behindModeCSS3DObjects).forEach((e) => {
@@ -295,7 +297,7 @@ class fe {
295
297
  });
296
298
  }
297
299
  handleHide() {
298
- return C(this, null, function* () {
300
+ return E(this, null, function* () {
299
301
  Object.values(this.store.frontModeCSS3DObjects).forEach((e) => {
300
302
  e.css3DObject.visible = !1;
301
303
  }), Object.values(this.store.behindModeCSS3DObjects).forEach((e) => {
@@ -323,5 +325,9 @@ class fe {
323
325
  }
324
326
  }
325
327
  export {
326
- fe as CSS3DRender
328
+ ue as CSS3DRender,
329
+ Me as MinRatio,
330
+ m as PLUGIN,
331
+ le as __ELEMENT__,
332
+ o as globalStore
327
333
  };
@@ -2,18 +2,25 @@ var y = Object.defineProperty, F = Object.defineProperties;
2
2
  var P = Object.getOwnPropertyDescriptors;
3
3
  var R = Object.getOwnPropertySymbols;
4
4
  var S = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
- var h = (s, n, e) => n in s ? y(s, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[n] = e, v = (s, n) => {
6
- for (var e in n || (n = {}))
7
- S.call(n, e) && h(s, e, n[e]);
5
+ var c = (s, i, e) => i in s ? y(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e, p = (s, i) => {
6
+ for (var e in i || (i = {}))
7
+ S.call(i, e) && c(s, e, i[e]);
8
8
  if (R)
9
- for (var e of R(n))
10
- D.call(n, e) && h(s, e, n[e]);
9
+ for (var e of R(i))
10
+ D.call(i, e) && c(s, e, i[e]);
11
11
  return s;
12
- }, m = (s, n) => F(s, P(n));
13
- var l = (s, n, e) => (h(s, typeof n != "symbol" ? n + "" : n, e), e);
12
+ }, h = (s, i) => F(s, P(i));
13
+ var l = (s, i, e) => (c(s, typeof i != "symbol" ? i + "" : i, e), e);
14
14
  import { CSS3DRender as w } from "./CSS3DRender.js";
15
+ import "three";
16
+ import "three/examples/jsm/renderers/CSS3DRenderer";
17
+ import "../shared-utils/Subscribe.js";
18
+ import "./utils/evenNumber.js";
19
+ import "./utils/positionToVector3.js";
20
+ import "./utils/CSS3DObjectPlus.js";
21
+ import "./utils/centerPoint.js";
15
22
  const x = "v2.0.1", C = `CSS3DRenderPlugin@${x}`;
16
- class N extends w {
23
+ class M extends w {
17
24
  constructor(e) {
18
25
  super();
19
26
  l(this, "five");
@@ -22,7 +29,7 @@ class N extends w {
22
29
  l(this, "create3DDomContainer", (e, t) => {
23
30
  if (this.state.disposed)
24
31
  return;
25
- const i = (() => {
32
+ const n = (() => {
26
33
  var E;
27
34
  (t == null ? void 0 : t.dpr) !== void 0 && console.warn(`${C}: please use "config.devicePixelRatio" replace "config.dpr"`);
28
35
  const a = {
@@ -37,18 +44,18 @@ class N extends w {
37
44
  console.error(`${C}: five.getElement() is ${o}`);
38
45
  return;
39
46
  }
40
- const { autoRender: d, mode: r } = i, p = r === "front" ? o.parentElement : i.behindFiveContainer;
41
- this.setContainer(p || document.body, "front");
47
+ const { autoRender: d, mode: r } = n, v = r === "front" ? o.parentElement : n.behindFiveContainer;
48
+ this.setContainer(v || document.body, "front");
42
49
  const f = this.getBehindFiveElement();
43
- f && this.setContainer(f, "behind"), this.appendToElement(p || document.body, r);
44
- const c = this.create3DElement(this.five.camera, e, m(v({}, i), { autoRender: !1 }));
45
- if (!c)
50
+ f && this.setContainer(f, "behind"), this.appendToElement(v || document.body, r);
51
+ const m = this.create3DElement(this.five.camera, e, h(p({}, n), { autoRender: !1 }));
52
+ if (!m)
46
53
  return;
47
- const u = c.render, b = () => {
54
+ const u = m.render, b = () => {
48
55
  var a;
49
56
  r === "front" && u(), r === "behind" && ((a = this.five.model) != null && a.loaded ? u() : this.five.once("modelLoaded", () => u()));
50
57
  };
51
- return d && b(), m(v({}, c), { render: d ? void 0 : b });
58
+ return d && b(), h(p({}, m), { render: d ? void 0 : b });
52
59
  });
53
60
  this.five = e;
54
61
  }
@@ -66,18 +73,19 @@ class N extends w {
66
73
  return e;
67
74
  const t = document.createElement("div");
68
75
  t.style.position = "absolute", t.style.pointerEvents = "none", t.style.top = "0", t.style.left = "0", t.style.width = "100%", t.style.height = "100%", this.behindFiveContainer = t;
69
- const i = this.five.getElement();
70
- if (!i)
76
+ const n = this.five.getElement();
77
+ if (!n)
71
78
  return;
72
- const o = (r = i == null ? void 0 : i.style.position) != null ? r : getComputedStyle(i);
79
+ const o = (r = n == null ? void 0 : n.style.position) != null ? r : getComputedStyle(n);
73
80
  (!o || o === "static") && console.warn(
74
81
  "if you want to use css3DRenderPlugin behind mode, five element position is static, please set position to relative or absolute"
75
82
  );
76
- const d = i == null ? void 0 : i.parentElement;
83
+ const d = n == null ? void 0 : n.parentElement;
77
84
  if (d)
78
- return d.insertBefore(t, i), t;
85
+ return d.insertBefore(t, n), t;
79
86
  }
80
87
  }
81
88
  export {
82
- N as Controller
89
+ C as PLUGIN_NAME,
90
+ M as default
83
91
  };
@@ -1,5 +1,14 @@
1
- import { Controller as r } from "./Controller.js";
2
- const n = (o) => new r(o);
1
+ import r from "./Controller.js";
2
+ import "./CSS3DRender.js";
3
+ import "three";
4
+ import "three/examples/jsm/renderers/CSS3DRenderer";
5
+ import "../shared-utils/Subscribe.js";
6
+ import "./utils/evenNumber.js";
7
+ import "./utils/positionToVector3.js";
8
+ import "./utils/CSS3DObjectPlus.js";
9
+ import "./utils/centerPoint.js";
10
+ const f = (o) => new r(o);
3
11
  export {
4
- n as CSS3DRenderPlugin
12
+ f as CSS3DRenderPlugin,
13
+ f as default
5
14
  };
@@ -61,5 +61,6 @@ class z extends D {
61
61
  }
62
62
  }
63
63
  export {
64
- z as CSS3DObjectPlus
64
+ z as CSS3DObjectPlus,
65
+ C as MinRatio
65
66
  };
@@ -1,38 +1,40 @@
1
- var b = (e, o, a) => new Promise((m, p) => {
1
+ var b = (e, o, n) => new Promise((m, p) => {
2
2
  var t = (d) => {
3
3
  try {
4
- n(a.next(d));
4
+ a(n.next(d));
5
5
  } catch (f) {
6
6
  p(f);
7
7
  }
8
8
  }, i = (d) => {
9
9
  try {
10
- n(a.throw(d));
10
+ a(n.throw(d));
11
11
  } catch (f) {
12
12
  p(f);
13
13
  }
14
- }, n = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(t, i);
15
- n((a = a.apply(e, o)).next());
14
+ }, a = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(t, i);
15
+ a((n = n.apply(e, o)).next());
16
16
  });
17
17
  import { Five as y } from "@realsee/five";
18
18
  import * as h from "@tweenjs/tween.js";
19
19
  import { tweenProgress as T } from "../shared-utils/animationFrame/tween.js";
20
- import { Rotation as r } from "./typing.js";
20
+ import { Rotation as u } from "./typing.js";
21
21
  import { formatLatitude as P, formatLongitude as v } from "../shared-utils/animationFrame/formatRad.js";
22
22
  import { progressNumber as I } from "../shared-utils/animationFrame/calculateProgress.js";
23
- const w = (e, o, a) => {
23
+ import "../shared-utils/animationFrame/index.js";
24
+ import "../shared-utils/animationFrame/BetterTween.js";
25
+ const w = (e, o, n) => {
24
26
  const m = Math.PI, p = m * 2;
25
- return e = v(e), o = v(o), a === r.Anticlockwise && e < o && (e += p), a === r.Clockwise && o < e && (o += p), a === r.Loop && o - e > m ? w(e, o, r.Anticlockwise) : a === r.Loop && e - o > m ? w(e, o, r.Clockwise) : { from: e, to: o };
26
- }, R = (e) => {
27
- const o = {}, a = (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, n = { preload: !0 }) {
28
- return o.interruptCallback && o.interruptCallback(!1), n.asyncStartCallback && (yield n.asyncStartCallback()), t.mode && t.mode !== e.currentMode && (yield e.changeMode(t.mode)), n.preload && t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (yield e.preloadPano(t.panoIndex)), n.asyncEndCallback && (yield n.asyncEndCallback()), t.panoIndex === void 0 && t.fov === void 0 && t.latitude === void 0 && t.longitude === void 0 ? !0 : yield new Promise((u, l) => {
27
+ return e = v(e), o = v(o), n === u.Anticlockwise && e < o && (e += p), n === u.Clockwise && o < e && (o += p), n === u.Loop && o - e > m ? w(e, o, u.Anticlockwise) : n === u.Loop && e - o > m ? w(e, o, u.Clockwise) : { from: e, to: o };
28
+ }, _ = (e) => {
29
+ const o = {}, n = (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, a = { preload: !0 }) {
30
+ return o.interruptCallback && o.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), t.mode && t.mode !== e.currentMode && (yield e.changeMode(t.mode)), a.preload && t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (yield e.preloadPano(t.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), t.panoIndex === void 0 && t.fov === void 0 && t.latitude === void 0 && t.longitude === void 0 ? !0 : yield new Promise((r, l) => {
29
31
  const c = t.panoIndex !== void 0 ? t.panoIndex : e.panoIndex;
30
32
  c !== void 0 ? e.moveToPano(
31
33
  c,
32
34
  Object.assign(
33
35
  {
34
36
  duration: i,
35
- moveEndCallback: () => u(!0),
37
+ moveEndCallback: () => r(!0),
36
38
  moveCancelCallback: () => l(!1)
37
39
  },
38
40
  t
@@ -40,20 +42,20 @@ const w = (e, o, a) => {
40
42
  ) : l(!1);
41
43
  });
42
44
  }), m = (t) => {
43
- const i = e.state, n = P(i.latitude), d = P(t.latitude), { from: f, to: L } = w(
45
+ const i = e.state, a = P(i.latitude), d = P(t.latitude), { from: f, to: L } = w(
44
46
  i.longitude,
45
47
  t.longitude,
46
- t.rotation || r.Loop
47
- ), u = i.fov, l = t.fov;
48
+ t.rotation || u.Loop
49
+ ), r = i.fov, l = t.fov;
48
50
  return {
49
- from: { latitude: n, longitude: f, fov: u },
51
+ from: { latitude: a, longitude: f, fov: r },
50
52
  to: { latitude: d, longitude: L, fov: l }
51
53
  };
52
54
  };
53
55
  return {
54
- move: a,
55
- rotate: (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, n = {}) {
56
- o.interruptCallback && o.interruptCallback(!1), n.asyncStartCallback && (yield n.asyncStartCallback()), e.currentMode !== y.Mode.Panorama && (yield e.changeMode(y.Mode.Panorama)), t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (n.preload && (yield e.preloadPano(t.panoIndex)), yield new Promise((c, k) => {
56
+ move: n,
57
+ rotate: (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, a = {}) {
58
+ o.interruptCallback && o.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), e.currentMode !== y.Mode.Panorama && (yield e.changeMode(y.Mode.Panorama)), t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (a.preload && (yield e.preloadPano(t.panoIndex)), yield new Promise((c, k) => {
57
59
  if (!t.panoIndex) {
58
60
  c(!0);
59
61
  return;
@@ -62,18 +64,18 @@ const w = (e, o, a) => {
62
64
  moveEndCallback: () => c(!0),
63
65
  moveCancelCallback: () => k(!1)
64
66
  });
65
- })), n.asyncEndCallback && (yield n.asyncEndCallback());
66
- const { from: u, to: l } = m(t);
67
+ })), a.asyncEndCallback && (yield a.asyncEndCallback());
68
+ const { from: r, to: l } = m(t);
67
69
  return yield new Promise((c) => {
68
70
  const k = ({ progress: s }) => {
69
71
  const C = {};
70
- C.longitude = I(u.longitude, l.longitude, s), C.latitude = I(u.latitude, l.latitude, s), C.fov = I(u.fov, l.fov, s), e.setState(C, !0);
72
+ C.longitude = I(r.longitude, l.longitude, s), C.latitude = I(r.latitude, l.latitude, s), C.fov = I(r.fov, l.fov, s), e.setState(C, !0);
71
73
  }, M = () => {
72
74
  c(!0);
73
75
  }, E = () => {
74
76
  c(!1);
75
- }, S = t.rotateSpeed ? Math.ceil(Math.abs(l.longitude - u.longitude) / t.rotateSpeed * 1e3) : i, x = T(S, h.Easing.Linear.None).onUpdate(k).onComplete(M).onDestroy(E);
76
- t.rotation === r.Loop && x.repeat(1 / 0).yoyo(!0), o.interruptCallback = (s = !0) => {
77
+ }, S = t.rotateSpeed ? Math.ceil(Math.abs(l.longitude - r.longitude) / t.rotateSpeed * 1e3) : i, x = T(S, h.Easing.Linear.None).onUpdate(k).onComplete(M).onDestroy(E);
78
+ t.rotation === u.Loop && x.repeat(1 / 0).yoyo(!0), o.interruptCallback = (s = !0) => {
77
79
  x.destroy(), o.interruptCallback = void 0, o.timeoutId && (clearTimeout(o.timeoutId), o.timeoutId = void 0), c(s);
78
80
  }, o.timeoutId = setTimeout(() => {
79
81
  o.interruptCallback && o.interruptCallback(!0);
@@ -83,5 +85,6 @@ const w = (e, o, a) => {
83
85
  };
84
86
  };
85
87
  export {
86
- R as CameraMovementPlugin
88
+ _ as CameraMovementPlugin,
89
+ _ as default
87
90
  };
@@ -1,3 +1,16 @@
1
+ import "./CameraMovementPlugin.js";
2
+ import { CameraMovementPlugin as u, CameraMovementPlugin as v } from "./CameraMovementPlugin.js";
3
+ import { CameraMovementEffect as M, Rotation as g } from "./typing.js";
1
4
  import "@realsee/five";
2
5
  import "@tweenjs/tween.js";
6
+ import "../shared-utils/animationFrame/tween.js";
7
+ import "../shared-utils/animationFrame/index.js";
3
8
  import "../shared-utils/animationFrame/BetterTween.js";
9
+ import "../shared-utils/animationFrame/formatRad.js";
10
+ import "../shared-utils/animationFrame/calculateProgress.js";
11
+ export {
12
+ M as CameraMovementEffect,
13
+ u as CameraMovementPlugin,
14
+ g as Rotation,
15
+ v as default
16
+ };