@realsee/dnalogel 2.2.6 → 2.3.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 (377) hide show
  1. package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
  2. package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
  3. package/dist/CSS3DRenderPlugin/index.d.ts +2 -1
  4. package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
  5. package/dist/CSS3DRenderPlugin/utils/even.d.ts +9 -0
  6. package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
  7. package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
  8. package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  9. package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
  10. package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
  11. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
  12. package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
  13. package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
  14. package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
  15. package/dist/Object3DHelperPlugin/Controller.d.ts +2 -0
  16. package/dist/index.cjs.js +46 -46
  17. package/dist/index.js +4987 -4817
  18. package/dist/index.umd.js +39 -39
  19. package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  20. package/docs/assets/highlight.css +7 -0
  21. package/docs/assets/main.js +1 -1
  22. package/docs/assets/search.js +1 -1
  23. package/docs/classes/CSS3DRender.html +533 -0
  24. package/docs/classes/CruisePluginController.html +24 -24
  25. package/docs/classes/Magnifier.html +16 -16
  26. package/docs/classes/ModelRoomLabelController.html +11 -11
  27. package/docs/classes/Object3DHelperController.html +24 -24
  28. package/docs/classes/PaintBrush.html +15 -15
  29. package/docs/classes/PanoTagPluginController.html +39 -39
  30. package/docs/classes/Util.BetterTween.html +8 -8
  31. package/docs/classes/Util.FivePointSelector.html +12 -12
  32. package/docs/classes/Util.Interval.html +12 -12
  33. package/docs/classes/Util.Magnifier.html +17 -17
  34. package/docs/classes/Util.PointDomHelper.html +11 -11
  35. package/docs/classes/Util.PointHelper.html +11 -11
  36. package/docs/classes/Util.Rectangle.html +13 -13
  37. package/docs/enums/CameraMovementEffect.html +7 -7
  38. package/docs/enums/ContentType.html +12 -12
  39. package/docs/enums/DIRECTION.html +9 -9
  40. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  41. package/docs/enums/DimensionType.html +7 -7
  42. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  43. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  44. package/docs/enums/LinkType.html +7 -7
  45. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  46. package/docs/enums/PointType.html +7 -7
  47. package/docs/enums/Rotation.html +8 -8
  48. package/docs/functions/CSS3DRenderPlugin.html +6 -5
  49. package/docs/functions/CameraMovementPlugin.html +6 -5
  50. package/docs/functions/CruisePlugin.html +6 -5
  51. package/docs/functions/GuideLinePlugin.html +7 -6
  52. package/docs/functions/ItemLabelPlugin.html +6 -5
  53. package/docs/functions/MapviewFloorplanPlugin.html +6 -5
  54. package/docs/functions/ModelChassisCompassPlugin.html +6 -5
  55. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
  56. package/docs/functions/ModelFloorplanPlugin.html +6 -5
  57. package/docs/functions/ModelItemLabelPlugin.html +6 -5
  58. package/docs/functions/ModelRoomLabelPlugin.html +6 -5
  59. package/docs/functions/ModelTVVideoPlugin.html +6 -5
  60. package/docs/functions/ModelViewPlugin.html +6 -5
  61. package/docs/functions/Object3DHelperPlugin.html +6 -5
  62. package/docs/functions/PanoCompassPlugin.html +6 -5
  63. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
  64. package/docs/functions/PanoDoorLabelPlugin.html +6 -5
  65. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
  66. package/docs/functions/PanoMeasurePlugin.html +6 -5
  67. package/docs/functions/PanoRulerPlugin.html +6 -5
  68. package/docs/functions/PanoRulerProPlugin.html +6 -5
  69. package/docs/functions/PanoSpatialTagPlugin.html +6 -5
  70. package/docs/functions/PanoTagPlugin.html +6 -5
  71. package/docs/functions/TopviewFloorplanPlugin.html +6 -5
  72. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  73. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  74. package/docs/functions/Util.getFrameTime.html +5 -5
  75. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  76. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  77. package/docs/functions/Util.isNil.html +5 -5
  78. package/docs/functions/Util.nextFrame.html +5 -5
  79. package/docs/functions/Util.notNil.html +5 -5
  80. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  81. package/docs/functions/Util.tweenProgress.html +5 -5
  82. package/docs/functions/pluginFlag.html +7 -6
  83. package/docs/index.html +6 -5
  84. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  85. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  86. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  87. package/docs/interfaces/ContentTypeMap.html +12 -12
  88. package/docs/interfaces/FloorplanBounding.html +8 -8
  89. package/docs/interfaces/FloorplanData.html +10 -10
  90. package/docs/interfaces/FloorplanEntrance.html +11 -11
  91. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  92. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  93. package/docs/interfaces/FloorplanFloorData.html +9 -9
  94. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  95. package/docs/interfaces/FloorplanObserver.html +9 -9
  96. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  97. package/docs/interfaces/FloorplanPosition.html +7 -7
  98. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  99. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  100. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  101. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  102. package/docs/interfaces/FloorplanServerData.html +7 -7
  103. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  104. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  105. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  106. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  107. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  108. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  109. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  110. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  111. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  112. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  113. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  114. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  115. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  116. package/docs/interfaces/LineJson.html +7 -7
  117. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  118. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  119. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  120. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  121. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  122. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  123. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  124. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  125. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  126. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  127. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  128. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  129. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  130. package/docs/interfaces/Object3DHelperState.html +8 -8
  131. package/docs/interfaces/OpenParameter.html +7 -7
  132. package/docs/interfaces/PaintBrushAction.html +12 -12
  133. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  134. package/docs/interfaces/PaintBrushState.html +10 -10
  135. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  136. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -6
  137. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  138. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  139. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  140. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  141. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  142. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  143. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  144. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  145. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -6
  146. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
  147. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  148. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  149. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  150. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  151. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  152. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  153. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  154. package/docs/interfaces/Point.html +8 -8
  155. package/docs/interfaces/PointJson.html +8 -8
  156. package/docs/interfaces/Room.html +9 -9
  157. package/docs/interfaces/RoomInfo.html +7 -7
  158. package/docs/interfaces/RoomLabel.html +14 -14
  159. package/docs/interfaces/RoomRules.html +7 -6
  160. package/docs/interfaces/Rooms.html +7 -6
  161. package/docs/interfaces/Scissor.html +9 -9
  162. package/docs/interfaces/TagConfig.html +10 -10
  163. package/docs/interfaces/Tags.html +9 -9
  164. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  165. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  166. package/docs/modules/Util.html +5 -5
  167. package/docs/modules.html +7 -5
  168. package/docs/types/ArrayPosition.html +7 -6
  169. package/docs/types/CSS3DRenderExportType.html +8 -7
  170. package/docs/types/CSS3DRenderPluginExportType.html +7 -6
  171. package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
  172. package/docs/types/Color.html +7 -6
  173. package/docs/types/ContentTypeConfigKey.html +7 -6
  174. package/docs/types/ContentTypeConfigKeyArray.html +7 -6
  175. package/docs/types/Create3DDomContainerReturnType.html +7 -6
  176. package/docs/types/Create3DElementReturnType.html +8 -7
  177. package/docs/types/CruisePluginExportType.html +7 -6
  178. package/docs/types/Direction-1.html +7 -6
  179. package/docs/types/Direction4.html +7 -6
  180. package/docs/types/FloorplanRuleLabels.html +7 -6
  181. package/docs/types/FloorplanServerRuleLabels.html +7 -6
  182. package/docs/types/GuideLinePluginExportType.html +7 -6
  183. package/docs/types/HelperEventMap.html +7 -6
  184. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
  185. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
  186. package/docs/types/MediaData.html +7 -6
  187. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
  188. package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
  189. package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
  190. package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
  191. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
  192. package/docs/types/MoveArgs.html +7 -6
  193. package/docs/types/MoveOpts.html +7 -6
  194. package/docs/types/Object3DHelperEventMap.html +7 -6
  195. package/docs/types/ObjectFit.html +7 -6
  196. package/docs/types/PaintBrushEventMap.html +7 -6
  197. package/docs/types/PanoCompassPluginData.html +7 -6
  198. package/docs/types/PanoCompassPluginExportType.html +7 -6
  199. package/docs/types/PanoCompassPluginParameterType.html +7 -6
  200. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
  201. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
  202. package/docs/types/PanoMeasurePluginEvent.html +7 -6
  203. package/docs/types/PanoMeasureReturnType.html +7 -6
  204. package/docs/types/PanoSpatialTagPluginId.html +7 -6
  205. package/docs/types/PanoTagPluginExportInterface.html +7 -6
  206. package/docs/types/PanoTagPluginParamsInterface.html +7 -6
  207. package/docs/types/PlaneTag.html +7 -6
  208. package/docs/types/PointTag.html +7 -6
  209. package/docs/types/Position.html +7 -6
  210. package/docs/types/RotateArgs.html +7 -6
  211. package/docs/types/RotateOpts.html +7 -6
  212. package/docs/types/RuleLabelsKey.html +7 -6
  213. package/docs/types/RuleLabelsValue.html +7 -6
  214. package/docs/types/Tag.html +7 -6
  215. package/docs/types/Tag2D.html +7 -6
  216. package/docs/types/Tag3D.html +7 -6
  217. package/docs/types/TagId.html +7 -6
  218. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
  219. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
  220. package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
  221. package/docs/variables/PLUGIN.html +7 -6
  222. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
  223. package/docs/variables/ROOM_TYPE_MAP.html +7 -6
  224. package/docs/variables/VERSION.html +7 -6
  225. package/docs/variables/itemLabelPluginServerParams.html +7 -6
  226. package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
  227. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
  228. package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
  229. package/libs/CSS3DRenderPlugin/CSS3DRender.js +198 -251
  230. package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
  231. package/libs/CSS3DRenderPlugin/Controller.js +63 -58
  232. package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
  233. package/libs/CSS3DRenderPlugin/index.js +21 -3
  234. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
  235. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
  236. package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
  237. package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
  238. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
  239. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +29 -0
  240. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
  241. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
  242. package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  243. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
  244. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +53 -0
  245. package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
  246. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +115 -0
  247. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
  248. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
  249. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
  250. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
  251. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
  252. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
  253. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
  254. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
  255. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
  256. package/libs/CameraMovementPlugin/index.js +13 -0
  257. package/libs/CruisePlugin/Controller.js +65 -54
  258. package/libs/CruisePlugin/index.js +26 -3
  259. package/libs/CruisePlugin/typing.js +1 -0
  260. package/libs/GuideLinePlugin/Controller.js +14 -9
  261. package/libs/GuideLinePlugin/index.js +14 -3
  262. package/libs/GuideLinePlugin/typing.js +1 -0
  263. package/libs/ItemLabelPlugin/Plugin.js +33 -23
  264. package/libs/ItemLabelPlugin/events.type.js +1 -0
  265. package/libs/ItemLabelPlugin/index.js +16 -2
  266. package/libs/ModelChassisCompassPlugin/Plugin.js +2 -1
  267. package/libs/ModelChassisCompassPlugin/index.js +8 -0
  268. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +44 -39
  269. package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
  270. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
  271. package/libs/ModelItemLabelPlugin/index.js +12 -2
  272. package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
  273. package/libs/ModelRoomLabelPlugin/index.js +10 -3
  274. package/libs/ModelRoomLabelPlugin/typings.js +1 -0
  275. package/libs/ModelTVVideoPlugin/Plugin.js +80 -62
  276. package/libs/ModelTVVideoPlugin/index.js +25 -0
  277. package/libs/ModelViewPlugin/Plugin.js +2 -1
  278. package/libs/ModelViewPlugin/index.js +6 -0
  279. package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
  280. package/libs/Object3DHelperPlugin/Controller.js +114 -73
  281. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
  282. package/libs/Object3DHelperPlugin/index.js +48 -3
  283. package/libs/Object3DHelperPlugin/typings.js +1 -0
  284. package/libs/PanoCompassPlugin/Controller.js +60 -40
  285. package/libs/PanoCompassPlugin/index.js +31 -3
  286. package/libs/PanoCompassPlugin/typings.js +1 -0
  287. package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
  288. package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
  289. package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
  290. package/libs/PanoDoorLabelPlugin/index.js +12 -2
  291. package/libs/PanoDoorLabelPlugin/typings.js +1 -0
  292. package/libs/PanoMeasurePlugin/index.js +56 -5
  293. package/libs/PanoRulerPlugin/Plugin.js +22 -17
  294. package/libs/PanoRulerPlugin/index.js +9 -0
  295. package/libs/PanoRulerPlugin/style.js +1 -1
  296. package/libs/PanoRulerPlugin/typings.js +1 -0
  297. package/libs/PanoRulerProPlugin/Controller.js +38 -27
  298. package/libs/PanoRulerProPlugin/index.js +16 -3
  299. package/libs/PanoRulerProPlugin/typings.js +1 -0
  300. package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
  301. package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
  302. package/libs/PanoSpatialTagPlugin/Plugin.js +91 -71
  303. package/libs/PanoSpatialTagPlugin/index.js +28 -0
  304. package/libs/PanoSpatialTagPlugin/store.js +1 -0
  305. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  306. package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
  307. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
  308. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
  309. package/libs/PanoTagPlugin/Components/Common/Media.js +47 -55
  310. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
  311. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
  312. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -7
  313. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +21 -23
  314. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
  315. package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
  316. package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
  317. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +19 -27
  318. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  319. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
  320. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
  321. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
  322. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
  323. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +54 -65
  324. package/libs/PanoTagPlugin/Components/Tag/index.js +74 -103
  325. package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
  326. package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
  327. package/libs/PanoTagPlugin/controller/index.js +2 -2
  328. package/libs/PanoTagPlugin/index.js +90 -3
  329. package/libs/PanoTagPlugin/tag.config.js +2 -1
  330. package/libs/floorplan/Components/BaseImage.js +7 -7
  331. package/libs/floorplan/Components/Camera.js +10 -10
  332. package/libs/floorplan/Components/Compass.js +1 -1
  333. package/libs/floorplan/Components/CurrentFloor.js +47 -56
  334. package/libs/floorplan/Components/Main.js +80 -99
  335. package/libs/floorplan/Components/Normalmage.js +5 -5
  336. package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
  337. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
  338. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -1
  339. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
  340. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
  341. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
  342. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
  343. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
  344. package/libs/floorplan/Components/RuleLabels/RuleItem.js +6 -6
  345. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +14 -14
  346. package/libs/floorplan/Components/SvgImage.js +12 -12
  347. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
  348. package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
  349. package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
  350. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
  351. package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
  352. package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
  353. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  354. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
  355. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
  356. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
  357. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
  358. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
  359. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
  360. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
  361. package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
  362. package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  363. package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
  364. package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
  365. package/libs/floorplan/typings/index.js +1 -0
  366. package/libs/index.js +123 -114
  367. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  368. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
  369. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  370. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
  371. package/libs/shared-utils/three/index.js +2 -1
  372. package/package.json +31 -30
  373. package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  374. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
  375. package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  376. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
  377. package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
@@ -1,23 +1,40 @@
1
- var F = (s, b, e) => new Promise((m, y) => {
1
+ var F = (s, b, e) => new Promise((m, x) => {
2
2
  var w = (l) => {
3
3
  try {
4
- x(e.next(l));
5
- } catch (p) {
6
- y(p);
4
+ h(e.next(l));
5
+ } catch (y) {
6
+ x(y);
7
7
  }
8
8
  }, E = (l) => {
9
9
  try {
10
- x(e.throw(l));
11
- } catch (p) {
12
- y(p);
10
+ h(e.throw(l));
11
+ } catch (y) {
12
+ x(y);
13
13
  }
14
- }, x = (l) => l.done ? m(l.value) : Promise.resolve(l.value).then(w, E);
15
- x((e = e.apply(s, b)).next());
14
+ }, h = (l) => l.done ? m(l.value) : Promise.resolve(l.value).then(w, E);
15
+ h((e = e.apply(s, b)).next());
16
16
  });
17
17
  import * as d from "three";
18
18
  import { parseModelTVVideoPoints as I } from "./utils/parseData.js";
19
19
  import { CSS3DRenderPlugin as O } from "../CSS3DRenderPlugin/index.js";
20
- const C = (s, { videoElement: b }) => {
20
+ import "./typings.js";
21
+ import "../CSS3DRenderPlugin/Controller.js";
22
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
23
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
24
+ import "three/examples/jsm/renderers/CSS3DRenderer";
25
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
26
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
27
+ import "../CSS3DRenderPlugin/utils/even.js";
28
+ import "../shared-utils/Subscribe.js";
29
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
30
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
31
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
32
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
33
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
34
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
35
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
36
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
37
+ const te = (s, { videoElement: b }) => {
21
38
  const e = {
22
39
  videoMeshes: [],
23
40
  videoTextureEnabled: !1,
@@ -25,22 +42,22 @@ const C = (s, { videoElement: b }) => {
25
42
  rectPoints: [],
26
43
  enabled: !1,
27
44
  videoElement: b
28
- }, m = O(s), y = /* @__PURE__ */ new Map(), w = (t) => {
45
+ }, m = O(s), x = /* @__PURE__ */ new Map(), w = (t) => {
29
46
  e.videoTexture && (e.videoTexture.image.muted = t);
30
- }, E = () => e.videoTexture ? e.videoTexture.image.muted : !0, x = () => {
47
+ }, E = () => e.videoTexture ? e.videoTexture.image.muted : !0, h = () => {
31
48
  if (e.enabled || !e.videoTexture)
32
49
  return;
33
- e.enabled = !0, e.videoMeshes = p(), e.videoMeshes.forEach((n) => s.scene.add(n));
50
+ e.enabled = !0, e.videoMeshes = y(), e.videoMeshes.forEach((o) => s.scene.add(o));
34
51
  const t = () => {
35
52
  if (!e.videoTexture)
36
53
  return;
37
- const n = () => {
54
+ const o = () => {
38
55
  var i;
39
- !e.videoTexture || ((i = e.videoTexture) == null || i.image.removeEventListener("timeupdate", n), e.videoTextureEnabled = !0, e.videoMeshes.forEach((o) => {
40
- o.material.map !== e.videoTexture && (o.material.map = e.videoTexture);
56
+ !e.videoTexture || ((i = e.videoTexture) == null || i.image.removeEventListener("timeupdate", o), e.videoTextureEnabled = !0, e.videoMeshes.forEach((n) => {
57
+ n.material.map !== e.videoTexture && (n.material.map = e.videoTexture);
41
58
  }), s.needsRender = !0);
42
59
  };
43
- e.videoTexture.image.addEventListener("timeupdate", n), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
60
+ e.videoTexture.image.addEventListener("timeupdate", o), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
44
61
  m.hide();
45
62
  }, e.videoTexture.image.onpause = () => {
46
63
  m.show();
@@ -56,42 +73,42 @@ const C = (s, { videoElement: b }) => {
56
73
  !e.enabled || (e.enabled = !1, e.videoMeshes.forEach((t) => {
57
74
  t.geometry.dispose(), t.material.dispose(), s.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
58
75
  }), e.videoMeshes = [], s.needsRender = !0);
59
- }, p = () => e.rectPoints.map((t, n) => {
60
- const i = new d.BufferGeometry(), o = 128, a = [];
76
+ }, y = () => e.rectPoints.map((t, o) => {
77
+ const i = new d.BufferGeometry(), n = 128, a = [];
61
78
  a.push(...t[0].toArray());
62
- for (let r = 1; r < o; r++)
79
+ for (let r = 1; r < n; r++)
63
80
  a.push(
64
- t[0].x + (t[1].x - t[0].x) * r / o,
65
- t[0].y + (t[1].y - t[0].y) * r / o,
66
- t[0].z + (t[1].z - t[0].z) * r / o
81
+ t[0].x + (t[1].x - t[0].x) * r / n,
82
+ t[0].y + (t[1].y - t[0].y) * r / n,
83
+ t[0].z + (t[1].z - t[0].z) * r / n
67
84
  );
68
85
  a.push(...t[1].toArray()), a.push(...t[2].toArray());
69
- for (let r = 1; r < o; r++)
86
+ for (let r = 1; r < n; r++)
70
87
  a.push(
71
- t[2].x + (t[3].x - t[2].x) * r / o,
72
- t[2].y + (t[3].y - t[2].y) * r / o,
73
- t[2].z + (t[3].z - t[2].z) * r / o
88
+ t[2].x + (t[3].x - t[2].x) * r / n,
89
+ t[2].y + (t[3].y - t[2].y) * r / n,
90
+ t[2].z + (t[3].z - t[2].z) * r / n
74
91
  );
75
92
  a.push(...t[3].toArray());
76
93
  const c = [];
77
94
  c.push(0, 1);
78
- for (let r = 1; r < o; r++)
79
- c.push(0, 1 - r / o);
95
+ for (let r = 1; r < n; r++)
96
+ c.push(0, 1 - r / n);
80
97
  c.push(0, 0), c.push(1, 0);
81
- for (let r = 1; r < o; r++)
82
- c.push(1, r / o);
98
+ for (let r = 1; r < n; r++)
99
+ c.push(1, r / n);
83
100
  c.push(1, 1);
84
101
  const u = [];
85
- for (let r = 0; r < o; r++)
86
- u.push(r, r + 1, o * 2 - r, r, o * 2 - r, o * 2 + 1 - r);
102
+ for (let r = 0; r < n; r++)
103
+ u.push(r, r + 1, n * 2 - r, r, n * 2 - r, n * 2 + 1 - r);
87
104
  i.setAttribute("position", new d.BufferAttribute(new Float32Array(a), 3)), i.setAttribute("uv", new d.BufferAttribute(new Float32Array(c), 2)), i.setIndex(new d.BufferAttribute(new Uint32Array(u), 1));
88
- const f = new d.AxesHelper(10);
89
- s.scene.add(f);
90
- const h = new d.MeshBasicMaterial({
105
+ const p = new d.AxesHelper(10);
106
+ s.scene.add(p);
107
+ const f = new d.MeshBasicMaterial({
91
108
  map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
92
109
  side: d.DoubleSide
93
- }), v = new d.Mesh(i, h);
94
- v.renderOrder = 1, v.name = `ModelTVVideoPlugin-${n}-${performance.now()}`;
110
+ }), v = new d.Mesh(i, f);
111
+ v.renderOrder = 1, v.name = `ModelTVVideoPlugin-${o}-${performance.now()}`;
95
112
  const z = [t[1], t[2], t[3], t[0]], T = m.create3DDomContainer(z);
96
113
  if (T != null && T.container) {
97
114
  const r = document.createElement("div");
@@ -99,32 +116,32 @@ const C = (s, { videoElement: b }) => {
99
116
  const g = document.createElement("img");
100
117
  g.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", g.style.width = "200px", g.style.pointerEvents = "auto", g.onclick = () => {
101
118
  e.videoTexture.image.muted = !1, e.videoTexture.image.play();
102
- }, r.appendChild(g), y.set(v, T);
119
+ }, r.appendChild(g), x.set(v, T);
103
120
  }
104
121
  return v;
105
122
  }), L = (t) => {
106
- const n = new d.TextureLoader().load(t);
107
- return n.minFilter = d.LinearFilter, n.magFilter = d.LinearFilter, n.format = d.RGBFormat, n;
108
- }, P = (t, n) => new Promise((i, o) => {
123
+ const o = new d.TextureLoader().load(t);
124
+ return o.minFilter = d.LinearFilter, o.magFilter = d.LinearFilter, o.format = d.RGBFormat, o;
125
+ }, P = (t, o) => new Promise((i, n) => {
109
126
  const a = new XMLHttpRequest();
110
127
  a.onreadystatechange = () => {
111
128
  if (a.readyState == 4)
112
129
  if (a.status == 200) {
113
130
  const c = window.URL || window.webkitURL;
114
- n = n || document.createElement("video"), n.crossOrigin = "anonymous", n.muted = !0, n.loop = !0, n.playsInline = !0, n.src = c.createObjectURL(a.response);
115
- const u = new d.VideoTexture(n);
131
+ o = o || document.createElement("video"), o.crossOrigin = "anonymous", o.muted = !0, o.loop = !0, o.playsInline = !0, o.src = c.createObjectURL(a.response);
132
+ const u = new d.VideoTexture(o);
116
133
  u.minFilter = d.LinearFilter, u.magFilter = d.LinearFilter, u.format = d.RGBFormat, i(Object.assign(u, { videoSource: t }));
117
134
  } else
118
- o(new Error("Video download Error: " + a.status));
119
- }, a.onerror = (c) => o(c), a.open("GET", t), a.responseType = "blob", a.send();
120
- }), V = (t, n) => F(void 0, null, function* () {
121
- const { video_src: i, video_poster_src: o, points: a } = t;
122
- e.videoSource = i, e.rectPoints = I(a).map((c) => c.map(({ x: u, y: f, z: h }) => new d.Vector3(u, f, h))), e.imageTexture = L(o), n && (e.videoElement = n), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && x();
135
+ n(new Error("Video download Error: " + a.status));
136
+ }, a.onerror = (c) => n(c), a.open("GET", t), a.responseType = "blob", a.send();
137
+ }), V = (t, o) => F(void 0, null, function* () {
138
+ const { video_src: i, video_poster_src: n, points: a } = t;
139
+ e.videoSource = i, e.rectPoints = I(a).map((c) => c.map(({ x: u, y: p, z: f }) => new d.Vector3(u, p, f))), e.imageTexture = L(n), o && (e.videoElement = o), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && h();
123
140
  }), M = (t) => {
124
141
  if (!e.enabled)
125
142
  return;
126
- const n = e.videoMeshes;
127
- if (!(!n || t.intersectObjects(n).length === 0))
143
+ const o = e.videoMeshes;
144
+ if (!(!o || t.intersectObjects(o).length === 0))
128
145
  return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
129
146
  }, A = (t) => {
130
147
  t === "Floorplan" ? m.hide() : m.show();
@@ -132,18 +149,18 @@ const C = (s, { videoElement: b }) => {
132
149
  if (!e.enabled)
133
150
  return;
134
151
  const t = s.camera.position;
135
- if (y.forEach((n, i) => {
136
- const o = n.css3DObject.position.clone(), a = o.clone().sub(t).normalize(), c = new d.Raycaster(t, a), u = s.model.intersectRaycaster(c)[0], f = o.distanceTo(t), h = 0.01;
137
- u && u.distance + h < f ? n.hide() : n.show();
152
+ if (x.forEach((o, i) => {
153
+ const n = o.css3DObject.position.clone(), a = n.clone().sub(t).normalize(), c = new d.Raycaster(t, a), u = s.model.intersectRaycaster(c)[0], p = n.distanceTo(t), f = 0.01;
154
+ u && u.distance + f < p ? o.hide() : o.show();
138
155
  }), !E()) {
139
- const n = e.rectPoints.find((i) => {
140
- const o = i[0].clone().add(i[1]).add(i[2]).add(i[3]).divideScalar(4);
141
- return i.map((a) => a.clone().add(o).divideScalar(2)).filter((a) => {
142
- const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()), f = s.model.intersectRaycaster(u)[0], h = 0.01;
143
- return !(f && f.distance + h < c);
156
+ const o = e.rectPoints.find((i) => {
157
+ const n = i[0].clone().add(i[1]).add(i[2]).add(i[3]).divideScalar(4);
158
+ return i.map((a) => a.clone().add(n).divideScalar(2)).filter((a) => {
159
+ const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()), p = s.model.intersectRaycaster(u)[0], f = 0.01;
160
+ return !(p && p.distance + f < c);
144
161
  }).length >= 2;
145
162
  });
146
- (!n || n.length === 0) && w(!0);
163
+ (!o || o.length === 0) && w(!0);
147
164
  }
148
165
  }, S = () => {
149
166
  l(), e.videoTexture = void 0, s.off("modeChange", A), s.off("wantsTapGesture", M), s.off("panoArrived", R), s.off("renderFrame", () => {
@@ -156,8 +173,9 @@ const C = (s, { videoElement: b }) => {
156
173
  e.videoMeshes.forEach((t) => {
157
174
  t && (t.needsRender = !0);
158
175
  });
159
- }), { enable: x, disable: l, load: V, dispose: S, state: e, css3DRenderPlugin: m };
176
+ }), { enable: h, disable: l, load: V, dispose: S, state: e, css3DRenderPlugin: m };
160
177
  };
161
178
  export {
162
- C as ModelTVVideoPlugin
179
+ te as ModelTVVideoPlugin,
180
+ te as default
163
181
  };
@@ -1,2 +1,27 @@
1
+ import "./Plugin.js";
2
+ import { ModelTVVideoPlugin as E, ModelTVVideoPlugin as N } from "./Plugin.js";
3
+ import { DIRECTION as R } from "./typings.js";
1
4
  import "three";
5
+ import "./utils/parseData.js";
6
+ import "../CSS3DRenderPlugin/index.js";
7
+ import "../CSS3DRenderPlugin/Controller.js";
8
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
9
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
2
10
  import "three/examples/jsm/renderers/CSS3DRenderer";
11
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
12
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
13
+ import "../CSS3DRenderPlugin/utils/even.js";
14
+ import "../shared-utils/Subscribe.js";
15
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
16
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
17
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
18
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
19
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
20
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
21
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
22
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
+ export {
24
+ R as DIRECTION,
25
+ E as ModelTVVideoPlugin,
26
+ N as default
27
+ };
@@ -102,5 +102,6 @@ const S = (o, i) => {
102
102
  return Object.assign(window, { camera: f }), o.on("modelLoaded", k), o.on("modelWillLoad", L), o.on("cameraDirectionUpdate", p), o.on("dispose", R), o.on("renderFrame", D), o.on("cameraPositionUpdate", p), { appendTo: P, refresh: b, changeConfigs: j };
103
103
  };
104
104
  export {
105
- S as ModelViewPlugin
105
+ S as ModelViewPlugin,
106
+ S as default
106
107
  };
@@ -1,2 +1,8 @@
1
+ import "./Plugin.js";
2
+ import { ModelViewPlugin as t, ModelViewPlugin as d } from "./Plugin.js";
1
3
  import "@realsee/five";
2
4
  import "three";
5
+ export {
6
+ t as ModelViewPlugin,
7
+ d as default
8
+ };
@@ -11,6 +11,8 @@ export declare class Object3DHelperController extends BasePlugin.Controller<Obje
11
11
  name: string;
12
12
  state: Object3DHelperState;
13
13
  objectHelperMap: Map<THREE.Object3D, Object3DHelper>;
14
+ private css3DObjectParentMap;
15
+ private css3DRender;
14
16
  constructor(five: Five);
15
17
  /**
16
18
  * @description Show guide line
@@ -1,61 +1,92 @@
1
- var E = Object.defineProperty;
2
- var S = Object.getOwnPropertySymbols;
3
- var M = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
4
- var b = (i, s, e) => s in i ? E(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
1
+ var O = Object.defineProperty;
2
+ var w = Object.getOwnPropertySymbols;
3
+ var M = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
+ var b = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
5
5
  for (var e in s || (s = {}))
6
6
  M.call(s, e) && b(i, e, s[e]);
7
- if (S)
8
- for (var e of S(s))
9
- O.call(s, e) && b(i, e, s[e]);
7
+ if (w)
8
+ for (var e of w(s))
9
+ E.call(s, e) && b(i, e, s[e]);
10
10
  return i;
11
11
  };
12
- var h = (i, s, e) => (b(i, typeof s != "symbol" ? s + "" : s, e), e);
13
- var u = (i, s, e) => new Promise((t, r) => {
14
- var l = (o) => {
12
+ var p = (i, s, e) => (b(i, typeof s != "symbol" ? s + "" : s, e), e);
13
+ var u = (i, s, e) => new Promise((r, t) => {
14
+ var l = (n) => {
15
15
  try {
16
- a(e.next(o));
17
- } catch (p) {
18
- r(p);
16
+ d(e.next(n));
17
+ } catch (h) {
18
+ t(h);
19
19
  }
20
- }, c = (o) => {
20
+ }, c = (n) => {
21
21
  try {
22
- a(e.throw(o));
23
- } catch (p) {
24
- r(p);
22
+ d(e.throw(n));
23
+ } catch (h) {
24
+ t(h);
25
25
  }
26
- }, a = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(l, c);
27
- a((e = e.apply(i, s)).next());
26
+ }, d = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(l, c);
27
+ d((e = e.apply(i, s)).next());
28
28
  });
29
- import { Controller as D } from "../base/BasePlugin.js";
29
+ import { Controller as R } from "../base/BasePlugin.js";
30
30
  import "three";
31
- import { MoveHelper as y } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
- import { RotateHelper as I } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
33
- import { RectangleScaleHelper as k } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
31
+ import { MoveHelper as j } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
+ import { RotateHelper as P } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
33
+ import { RectangleScaleHelper as y } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
34
34
  import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
35
35
  import { MoveController as F } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
36
- import { ControllerWrapper as m } from "./FiveControllerWrapper.js";
37
- import { Object3DHelper as P } from "../shared-utils/Object3DHelper/index.js";
38
- import { RotateController as $ } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
39
- import { CSS3DScaleController as j } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
40
- const g = "v1.0.0", v = "Object3DHelperPlugin", H = `${v}@${g}`, L = () => {
41
- console.error(`${H} is disposed`);
42
- }, _ = () => {
43
- console.warn(`${H} is disabled`);
44
- }, B = () => {
45
- console.error(`${H} is disabled`);
36
+ import { ControllerWrapper as v } from "./FiveControllerWrapper.js";
37
+ import { Object3DHelper as I } from "../shared-utils/Object3DHelper/index.js";
38
+ import { RotateController as k } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
39
+ import { CSS3DScaleController as B } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
40
+ import { CSS3DRender as L } from "../CSS3DRenderPlugin/CSS3DRender.js";
41
+ import { fiveModelLoaded as $ } from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
42
+ import { generateBehindFiveElement as W } from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
43
+ import "../shared-utils/Subscribe.js";
44
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
45
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
46
+ import "../shared-utils/Object3DHelper/utils/direction.js";
47
+ import "../shared-utils/Object3DHelper/Constants/color.js";
48
+ import "three/examples/jsm/renderers/CSS3DRenderer";
49
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
50
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
51
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
52
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
53
+ import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
54
+ import "../shared-utils/isNil.js";
55
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
56
+ import "../CSS3DRenderPlugin/utils/even.js";
57
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
58
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
59
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
60
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
61
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
62
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
63
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
64
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
65
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
66
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
67
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
68
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
69
+ const g = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${g}`, _ = () => {
70
+ console.error(`${C} is disposed`);
71
+ }, G = () => {
72
+ console.warn(`${C} is disabled`);
73
+ }, N = () => {
74
+ console.error(`${C} is disabled`);
46
75
  };
47
- class K extends D {
76
+ class je extends R {
48
77
  constructor(e) {
49
78
  super(e);
50
- h(this, "version", g);
51
- h(this, "name", v);
52
- h(this, "state", {
79
+ p(this, "version", g);
80
+ p(this, "name", H);
81
+ p(this, "state", {
53
82
  visible: !0,
54
83
  enabled: !0,
55
84
  disposed: !1
56
85
  });
57
- h(this, "objectHelperMap", /* @__PURE__ */ new Map());
58
- this.five = e, console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${v.toUpperCase()}_DEBUG__`]: this });
86
+ p(this, "objectHelperMap", /* @__PURE__ */ new Map());
87
+ p(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
88
+ p(this, "css3DRender");
89
+ this.five = e, this.css3DRender = new L(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${H.toUpperCase()}_DEBUG__`]: this });
59
90
  }
60
91
  show(e) {
61
92
  return u(this, null, function* () {
@@ -76,70 +107,80 @@ class K extends D {
76
107
  dispose() {
77
108
  this.setState({ disposed: !0 });
78
109
  }
79
- setState(e, t) {
110
+ setState(e, r) {
80
111
  if (this.state.disposed)
81
- return L();
112
+ return _();
82
113
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
83
- return B();
84
- const r = f({}, this.state);
85
- this.state = f(f({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
114
+ return N();
115
+ const t = f({}, this.state);
116
+ this.state = f(f({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
86
117
  }
87
118
  getObject3DHelper(e) {
88
119
  return this.objectHelperMap.get(e);
89
120
  }
90
- addObject3DHelper(e, t = {}) {
91
- var C;
121
+ addObject3DHelper(e, r = {}) {
122
+ var S;
92
123
  if (!e)
93
124
  return console.error("Object3D is undefined");
94
125
  if (this.objectHelperMap.has(e)) {
95
126
  console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
96
127
  return;
97
128
  }
98
- const r = new P();
99
- this.objectHelperMap.set(e, r);
100
- const l = (C = this.five.getElement()) == null ? void 0 : C.parentElement, c = this.five.camera, { moveHelper: a = !0, rotateHelper: o = !0, scaleHelper: p = !0 } = t;
101
- if (a) {
102
- const n = new y(e), d = new m(this.five, F, e, n);
103
- r.addControllers({ moveController: d.helperController });
129
+ const t = new I();
130
+ this.objectHelperMap.set(e, t);
131
+ const l = (S = this.five.getElement()) == null ? void 0 : S.parentElement, c = this.five.camera, { moveHelper: d = !0, rotateHelper: n = !0, scaleHelper: h = !0 } = r;
132
+ if (d) {
133
+ const o = new j(e), a = new v(this.five, F, e, o);
134
+ t.addControllers({ moveController: a.helperController });
104
135
  }
105
- if (o) {
106
- let n;
107
- l && c && (n = { container: l });
108
- const d = new I(e, n), w = new m(this.five, $, e, d);
109
- r.addControllers({ rotateController: w.helperController });
136
+ if (n) {
137
+ let o;
138
+ l && c && (o = { container: l });
139
+ const a = new P(e, o), m = new v(this.five, k, e, a);
140
+ t.addControllers({ rotateController: m.helperController });
110
141
  }
111
- if (p && l) {
112
- const n = new k(e, l, c, this.five.scene), d = new m(this.five, j, e, n);
113
- r.addControllers({ scaleController: d.helperController });
142
+ if (h && l) {
143
+ const o = new y(e, l, c, this.five.scene), a = new v(this.five, B, e, o);
144
+ t.addControllers({ scaleController: a.helperController });
114
145
  }
115
- e.isCSS3DObjectPlus && e.changeMode("behind", this.five.scene);
146
+ e.isCSS3DObjectPlus && $(this.five).then(() => {
147
+ var m, D;
148
+ const o = e, a = (m = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? m : W(this.five);
149
+ a && (this.css3DObjectParentMap.set(o, o.parent), o.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(a), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(o), this.css3DRender.render(this.five.camera));
150
+ });
116
151
  }
117
152
  removeObject3DHelper(e) {
118
- const t = this.objectHelperMap.get(e);
119
- !t || (e.isCSS3DObjectPlus && e.changeMode("front"), this.objectHelperMap.delete(e), t.dispose());
153
+ const r = this.objectHelperMap.get(e);
154
+ if (!!r) {
155
+ if (e.isCSS3DObjectPlus) {
156
+ const t = e, l = this.css3DObjectParentMap.get(t);
157
+ l == null || l.add(t), this.css3DRender.render(this.five.camera);
158
+ }
159
+ this.objectHelperMap.delete(e), r.dispose();
160
+ }
120
161
  }
121
- handleEnable(e, t = !0) {
122
- e ? (this.everyHelperDo((r) => r.enable()), this.hooks.emit("enable", { userAction: t })) : (this.everyHelperDo((r) => r.disable()), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
162
+ handleEnable(e, r = !0) {
163
+ e ? (this.everyHelperDo((t) => t.enable()), this.hooks.emit("enable", { userAction: r })) : (this.everyHelperDo((t) => t.disable()), this.hooks.emit("disable", { userAction: r })), this.state.enabled = e;
123
164
  }
124
- handleVisible(e, t = !0) {
125
- e ? (this.everyHelperDo((r) => r.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : (this.everyHelperDo((r) => r.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
165
+ handleVisible(e, r = !0) {
166
+ e ? (this.everyHelperDo((t) => t.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: r }))) : (this.everyHelperDo((t) => t.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: r }))), this.state.visible = e;
126
167
  }
127
168
  handleDispose() {
128
169
  this.everyHelperDo((e) => e.dispose());
129
170
  }
130
171
  everyHelperDo(e) {
131
- this.objectHelperMap.forEach((t) => {
132
- t && e(t);
172
+ this.objectHelperMap.forEach((r) => {
173
+ r && e(r);
133
174
  });
134
175
  }
135
- actionIfStateIsEnabled(e, t) {
176
+ actionIfStateIsEnabled(e, r) {
136
177
  if (this.state.enabled)
137
178
  return e();
138
- t != null && t.warnLog && _();
179
+ r != null && r.warnLog && G();
139
180
  }
140
181
  }
141
182
  export {
142
- K as Object3DHelperController,
143
- H as PLUGIN,
183
+ je as Object3DHelperController,
184
+ C as PLUGIN,
144
185
  g as VERSION
145
186
  };
@@ -1,8 +1,8 @@
1
- var p = Object.defineProperty;
2
- var c = (t, e, r) => e in t ? p(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
1
+ var h = Object.defineProperty;
2
+ var c = (t, e, r) => e in t ? h(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var n = (t, e, r) => (c(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- class G {
5
- constructor(e, r, a, i) {
4
+ class W {
5
+ constructor(e, r, i, p) {
6
6
  n(this, "helperController");
7
7
  n(this, "five");
8
8
  n(this, "onFiveWantsTapGesture", (e) => {
@@ -17,15 +17,19 @@ class G {
17
17
  const r = this.helperController.onWantsGesture(...e);
18
18
  return this.five.needsRender = !0, r;
19
19
  });
20
- const { camera: s, model: o, scene: l } = e, u = e.getElement();
21
- if (this.five = e, !s || !o || !u || !l)
20
+ const { camera: s, model: o, scene: l } = e, a = e.getElement();
21
+ if (this.five = e, !s || !o || !a || !l)
22
22
  return;
23
- const h = () => {
23
+ const u = () => {
24
24
  e.needsRender = !0;
25
25
  };
26
- this.helperController = new r(s, o, a, i, u, l, h), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsGesture", this.onFiveWantsGesture);
26
+ this.helperController = new r(s, o, i, p, a, l, u), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsGesture", this.onFiveWantsGesture);
27
27
  }
28
28
  }
29
+ const C = (...t) => new W(...t);
29
30
  export {
30
- G as ControllerWrapper
31
+ W as ControllerWrapper,
32
+ W as FiveControllerWrapper,
33
+ C as controllerWrapper,
34
+ C as fiveControllerWrapper
31
35
  };
@@ -1,5 +1,50 @@
1
- import { Object3DHelperController as r } from "./Controller.js";
2
- const t = (e) => new r(e);
1
+ import { Object3DHelperController as o } from "./Controller.js";
2
+ import { Object3DHelperController as Q, PLUGIN as T, VERSION as W } from "./Controller.js";
3
+ import "../base/BasePlugin.js";
4
+ import "../shared-utils/Subscribe.js";
5
+ import "three";
6
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
7
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
8
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
9
+ import "../shared-utils/Object3DHelper/utils/direction.js";
10
+ import "../shared-utils/Object3DHelper/Constants/color.js";
11
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
12
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
13
+ import "three/examples/jsm/renderers/CSS3DRenderer";
14
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
15
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
16
+ import "../CSS3DRenderPlugin/utils/even.js";
17
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
18
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
19
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
20
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
21
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
22
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
23
+ import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
24
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
25
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
26
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
27
+ import "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
28
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
29
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
30
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
31
+ import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
32
+ import "../shared-utils/isNil.js";
33
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
34
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
35
+ import "./FiveControllerWrapper.js";
36
+ import "../shared-utils/Object3DHelper/index.js";
37
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
38
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
39
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
40
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
41
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
42
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
43
+ const J = (r) => new o(r);
3
44
  export {
4
- t as Object3DHelperPlugin
45
+ Q as Object3DHelperController,
46
+ J as Object3DHelperPlugin,
47
+ T as PLUGIN,
48
+ W as VERSION,
49
+ J as default
5
50
  };