@realsee/dnalogel 2.2.5 → 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 (337) hide show
  1. package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
  2. package/dist/index.cjs.js +17 -17
  3. package/dist/index.js +849 -887
  4. package/dist/index.umd.js +17 -17
  5. package/dist/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
  6. package/docs/assets/main.js +1 -1
  7. package/docs/classes/CruisePluginController.html +24 -24
  8. package/docs/classes/Magnifier.html +16 -16
  9. package/docs/classes/ModelRoomLabelController.html +11 -11
  10. package/docs/classes/Object3DHelperController.html +24 -24
  11. package/docs/classes/PaintBrush.html +15 -15
  12. package/docs/classes/PanoTagPluginController.html +39 -39
  13. package/docs/classes/Util.BetterTween.html +8 -8
  14. package/docs/classes/Util.FivePointSelector.html +12 -12
  15. package/docs/classes/Util.Interval.html +12 -12
  16. package/docs/classes/Util.Magnifier.html +17 -17
  17. package/docs/classes/Util.PointDomHelper.html +11 -11
  18. package/docs/classes/Util.PointHelper.html +11 -11
  19. package/docs/classes/Util.Rectangle.html +13 -13
  20. package/docs/enums/CameraMovementEffect.html +7 -7
  21. package/docs/enums/ContentType.html +12 -12
  22. package/docs/enums/DIRECTION.html +9 -9
  23. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  24. package/docs/enums/DimensionType.html +7 -7
  25. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  26. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  27. package/docs/enums/LinkType.html +7 -7
  28. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  29. package/docs/enums/PointType.html +7 -7
  30. package/docs/enums/Rotation.html +8 -8
  31. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  32. package/docs/functions/CameraMovementPlugin.html +4 -4
  33. package/docs/functions/CruisePlugin.html +4 -4
  34. package/docs/functions/GuideLinePlugin.html +5 -5
  35. package/docs/functions/ItemLabelPlugin.html +4 -4
  36. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  37. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  38. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  39. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  40. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  41. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  42. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  43. package/docs/functions/ModelViewPlugin.html +4 -4
  44. package/docs/functions/Object3DHelperPlugin.html +4 -4
  45. package/docs/functions/PanoCompassPlugin.html +4 -4
  46. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  47. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  48. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  49. package/docs/functions/PanoMeasurePlugin.html +4 -4
  50. package/docs/functions/PanoRulerPlugin.html +4 -4
  51. package/docs/functions/PanoRulerProPlugin.html +4 -4
  52. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  53. package/docs/functions/PanoTagPlugin.html +4 -4
  54. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  55. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  56. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  57. package/docs/functions/Util.getFrameTime.html +5 -5
  58. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  59. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  60. package/docs/functions/Util.isNil.html +5 -5
  61. package/docs/functions/Util.nextFrame.html +5 -5
  62. package/docs/functions/Util.notNil.html +5 -5
  63. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  64. package/docs/functions/Util.tweenProgress.html +5 -5
  65. package/docs/functions/pluginFlag.html +5 -5
  66. package/docs/index.html +4 -4
  67. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  68. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  69. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  70. package/docs/interfaces/ContentTypeMap.html +12 -12
  71. package/docs/interfaces/FloorplanBounding.html +8 -8
  72. package/docs/interfaces/FloorplanData.html +10 -10
  73. package/docs/interfaces/FloorplanEntrance.html +11 -11
  74. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  75. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  76. package/docs/interfaces/FloorplanFloorData.html +9 -9
  77. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  78. package/docs/interfaces/FloorplanObserver.html +9 -9
  79. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  80. package/docs/interfaces/FloorplanPosition.html +7 -7
  81. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  82. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  83. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  84. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  85. package/docs/interfaces/FloorplanServerData.html +7 -7
  86. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  87. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  88. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  89. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  90. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  91. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  92. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  93. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  94. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  95. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  96. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  97. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  98. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  99. package/docs/interfaces/LineJson.html +7 -7
  100. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  101. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  102. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  103. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  104. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  105. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  106. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  107. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  108. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  109. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  110. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  111. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  112. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  113. package/docs/interfaces/Object3DHelperState.html +8 -8
  114. package/docs/interfaces/OpenParameter.html +7 -7
  115. package/docs/interfaces/PaintBrushAction.html +12 -12
  116. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  117. package/docs/interfaces/PaintBrushState.html +10 -10
  118. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  119. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  120. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  121. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  122. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  123. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  124. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  125. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  126. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  127. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  128. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  129. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  130. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  131. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  132. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  133. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  134. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  135. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  136. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  137. package/docs/interfaces/Point.html +8 -8
  138. package/docs/interfaces/PointJson.html +8 -8
  139. package/docs/interfaces/Room.html +9 -9
  140. package/docs/interfaces/RoomInfo.html +7 -7
  141. package/docs/interfaces/RoomLabel.html +14 -14
  142. package/docs/interfaces/RoomRules.html +5 -5
  143. package/docs/interfaces/Rooms.html +5 -5
  144. package/docs/interfaces/Scissor.html +9 -9
  145. package/docs/interfaces/TagConfig.html +10 -10
  146. package/docs/interfaces/Tags.html +9 -9
  147. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  148. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  149. package/docs/modules/Util.html +5 -5
  150. package/docs/modules.html +4 -4
  151. package/docs/types/ArrayPosition.html +5 -5
  152. package/docs/types/CSS3DRenderExportType.html +5 -5
  153. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  154. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  155. package/docs/types/Color.html +5 -5
  156. package/docs/types/ContentTypeConfigKey.html +5 -5
  157. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  158. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  159. package/docs/types/Create3DElementReturnType.html +5 -5
  160. package/docs/types/CruisePluginExportType.html +5 -5
  161. package/docs/types/Direction-1.html +5 -5
  162. package/docs/types/Direction4.html +5 -5
  163. package/docs/types/FloorplanRuleLabels.html +5 -5
  164. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  165. package/docs/types/GuideLinePluginExportType.html +5 -5
  166. package/docs/types/HelperEventMap.html +5 -5
  167. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  168. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  169. package/docs/types/MediaData.html +5 -5
  170. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -6
  171. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  172. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  173. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  174. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  175. package/docs/types/MoveArgs.html +5 -5
  176. package/docs/types/MoveOpts.html +5 -5
  177. package/docs/types/Object3DHelperEventMap.html +5 -5
  178. package/docs/types/ObjectFit.html +5 -5
  179. package/docs/types/PaintBrushEventMap.html +5 -5
  180. package/docs/types/PanoCompassPluginData.html +5 -5
  181. package/docs/types/PanoCompassPluginExportType.html +5 -5
  182. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  183. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  184. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  185. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  186. package/docs/types/PanoMeasureReturnType.html +5 -5
  187. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  188. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  189. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  190. package/docs/types/PlaneTag.html +5 -5
  191. package/docs/types/PointTag.html +5 -5
  192. package/docs/types/Position.html +5 -5
  193. package/docs/types/RotateArgs.html +5 -5
  194. package/docs/types/RotateOpts.html +5 -5
  195. package/docs/types/RuleLabelsKey.html +5 -5
  196. package/docs/types/RuleLabelsValue.html +5 -5
  197. package/docs/types/Tag.html +5 -5
  198. package/docs/types/Tag2D.html +5 -5
  199. package/docs/types/Tag3D.html +5 -5
  200. package/docs/types/TagId.html +5 -5
  201. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  202. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  203. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  204. package/docs/variables/PLUGIN.html +5 -5
  205. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  206. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  207. package/docs/variables/VERSION.html +5 -5
  208. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  209. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  210. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  211. package/libs/CSS3DRenderPlugin/CSS3DRender.js +39 -33
  212. package/libs/CSS3DRenderPlugin/Controller.js +30 -22
  213. package/libs/CSS3DRenderPlugin/index.js +12 -3
  214. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +2 -1
  215. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
  216. package/libs/CameraMovementPlugin/index.js +13 -0
  217. package/libs/CruisePlugin/Controller.js +52 -41
  218. package/libs/CruisePlugin/index.js +26 -3
  219. package/libs/CruisePlugin/typing.js +1 -0
  220. package/libs/GuideLinePlugin/Controller.js +14 -9
  221. package/libs/GuideLinePlugin/index.js +14 -3
  222. package/libs/GuideLinePlugin/typing.js +1 -0
  223. package/libs/ItemLabelPlugin/ItemLabelComponent.js +2 -2
  224. package/libs/ItemLabelPlugin/ItemLabelItem.js +11 -11
  225. package/libs/ItemLabelPlugin/Plugin.js +33 -23
  226. package/libs/ItemLabelPlugin/events.type.js +1 -0
  227. package/libs/ItemLabelPlugin/index.js +16 -2
  228. package/libs/ModelChassisCompassPlugin/Plugin.js +3 -2
  229. package/libs/ModelChassisCompassPlugin/index.js +8 -0
  230. package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
  231. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +52 -44
  232. package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
  233. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +2 -2
  234. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +12 -12
  235. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
  236. package/libs/ModelItemLabelPlugin/index.js +12 -2
  237. package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
  238. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +13 -13
  239. package/libs/ModelRoomLabelPlugin/index.js +10 -3
  240. package/libs/ModelRoomLabelPlugin/typings.js +1 -0
  241. package/libs/ModelTVVideoPlugin/Plugin.js +35 -25
  242. package/libs/ModelTVVideoPlugin/index.js +17 -0
  243. package/libs/ModelViewPlugin/Plugin.js +2 -1
  244. package/libs/ModelViewPlugin/index.js +6 -0
  245. package/libs/Object3DHelperPlugin/Controller.js +48 -27
  246. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
  247. package/libs/Object3DHelperPlugin/index.js +40 -3
  248. package/libs/Object3DHelperPlugin/typings.js +1 -0
  249. package/libs/PanoCompassPlugin/Controller.js +25 -13
  250. package/libs/PanoCompassPlugin/index.js +23 -3
  251. package/libs/PanoCompassPlugin/typings.js +1 -0
  252. package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
  253. package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
  254. package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
  255. package/libs/PanoDoorLabelPlugin/index.js +12 -2
  256. package/libs/PanoDoorLabelPlugin/typings.js +1 -0
  257. package/libs/PanoMeasurePlugin/index.js +56 -5
  258. package/libs/PanoRulerPlugin/Plugin.js +22 -17
  259. package/libs/PanoRulerPlugin/index.js +9 -0
  260. package/libs/PanoRulerPlugin/style.js +1 -1
  261. package/libs/PanoRulerPlugin/typings.js +1 -0
  262. package/libs/PanoRulerProPlugin/Controller.js +38 -27
  263. package/libs/PanoRulerProPlugin/RulerItem.js +59 -69
  264. package/libs/PanoRulerProPlugin/index.js +16 -3
  265. package/libs/PanoRulerProPlugin/typings.js +1 -0
  266. package/libs/PanoSpatialTagPlugin/Components/origins.js +41 -42
  267. package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
  268. package/libs/PanoSpatialTagPlugin/Plugin.js +74 -62
  269. package/libs/PanoSpatialTagPlugin/index.js +20 -0
  270. package/libs/PanoSpatialTagPlugin/store.js +1 -0
  271. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  272. package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
  273. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
  274. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
  275. package/libs/PanoTagPlugin/Components/Common/Media.js +92 -100
  276. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
  277. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
  278. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +13 -15
  279. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +26 -28
  280. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
  281. package/libs/PanoTagPlugin/Components/Common/Shadow.js +12 -13
  282. package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
  283. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +24 -32
  284. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  285. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
  286. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
  287. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +51 -83
  288. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
  289. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +48 -59
  290. package/libs/PanoTagPlugin/Components/Tag/index.js +75 -104
  291. package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
  292. package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
  293. package/libs/PanoTagPlugin/controller/index.js +2 -2
  294. package/libs/PanoTagPlugin/index.js +82 -3
  295. package/libs/PanoTagPlugin/tag.config.js +2 -1
  296. package/libs/floorplan/Components/BaseImage.js +7 -7
  297. package/libs/floorplan/Components/Camera.js +24 -24
  298. package/libs/floorplan/Components/Compass.js +3 -3
  299. package/libs/floorplan/Components/CurrentFloor.js +47 -56
  300. package/libs/floorplan/Components/Main.js +80 -99
  301. package/libs/floorplan/Components/Normalmage.js +5 -5
  302. package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
  303. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
  304. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +32 -32
  305. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
  306. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
  307. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
  308. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
  309. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
  310. package/libs/floorplan/Components/RuleLabels/RuleItem.js +54 -54
  311. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +15 -15
  312. package/libs/floorplan/Components/SvgImage.js +12 -12
  313. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
  314. package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
  315. package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
  316. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
  317. package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
  318. package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
  319. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +3 -3
  320. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
  321. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +38 -38
  322. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +71 -80
  323. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
  324. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
  325. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
  326. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
  327. package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
  328. package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  329. package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
  330. package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
  331. package/libs/floorplan/typings/index.js +1 -0
  332. package/libs/index.js +34 -34
  333. package/libs/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
  334. package/libs/shared-utils/three/{transfromToMeshBasicMaterial.js → transformToMeshBasicMaterial.js} +0 -0
  335. package/libs/vendor/svelte/internal/index.js +151 -152
  336. package/package.json +17 -18
  337. package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
@@ -1,77 +1,85 @@
1
- var R = (t, s, e) => new Promise((x, M) => {
2
- var y = (r) => {
1
+ var C = (t, s, e) => new Promise((P, E) => {
2
+ var h = (r) => {
3
3
  try {
4
- c(e.next(r));
4
+ l(e.next(r));
5
5
  } catch (m) {
6
- M(m);
6
+ E(m);
7
7
  }
8
- }, P = (r) => {
8
+ }, x = (r) => {
9
9
  try {
10
- c(e.throw(r));
10
+ l(e.throw(r));
11
11
  } catch (m) {
12
- M(m);
12
+ E(m);
13
13
  }
14
- }, c = (r) => r.done ? x(r.value) : Promise.resolve(r.value).then(y, P);
15
- c((e = e.apply(t, s)).next());
14
+ }, l = (r) => r.done ? P(r.value) : Promise.resolve(r.value).then(h, x);
15
+ l((e = e.apply(t, s)).next());
16
16
  });
17
- import * as C from "three";
17
+ import * as S from "three";
18
18
  import { MeshBasicMaterial as z, AnimationMixer as B } from "three";
19
- import { FBXLoader as S } from "three/examples/jsm/loaders/FBXLoader";
20
- import { createCanvasTextTexture as _ } from "../shared-utils/createCanvasTextTexture.js";
19
+ import { FBXLoader as _ } from "three/examples/jsm/loaders/FBXLoader";
20
+ import { createCanvasTextTexture as v } from "../shared-utils/createCanvasTextTexture.js";
21
21
  import { transformPositionToVector3 as H } from "../shared-utils/three/transformPositionToVector3.js";
22
- import { transfromToMeshBasicMaterial as L } from "../shared-utils/three/transfromToMeshBasicMaterial.js";
23
- const J = (t, s) => {
24
- var g, w, G;
25
- const e = {}, x = (g = s.animationEnabled) != null ? g : !0, M = (w = s.position) != null ? w : void 0, y = (G = s.rad) != null ? G : void 0, P = s.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", c = [], r = (o) => R(void 0, null, function* () {
26
- var E, u, b, h, p, f, j;
27
- const l = (E = o == null ? void 0 : o.position) != null ? E : M;
28
- if (!l)
29
- return Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined");
30
- const i = H(l), n = (u = o == null ? void 0 : o.rad) != null ? u : y, D = (b = o == null ? void 0 : o.fbx_url) != null ? b : P;
22
+ import { transfromToMeshBasicMaterial as L } from "../shared-utils/three/transformToMeshBasicMaterial.js";
23
+ const K = (t, s) => {
24
+ var G, T, R;
25
+ const e = {}, P = (G = s.animationEnabled) != null ? G : !0, E = (T = s.position) != null ? T : void 0, h = (R = s.rad) != null ? R : void 0, x = s.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", l = [], r = (o) => C(void 0, null, function* () {
26
+ var u, b, M, f, p, j, y, q;
27
+ const c = (u = o == null ? void 0 : o.position) != null ? u : E;
28
+ if (!c)
29
+ return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
30
+ const i = H(c), n = (b = o == null ? void 0 : o.rad) != null ? b : h, A = (M = o == null ? void 0 : o.fbx_url) != null ? M : x;
31
31
  if (e.rad = n, n === void 0)
32
- return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${n}`);
33
- const a = yield new S().loadAsync(D);
34
- a.position.copy(i), a.rotation.z = n, a.scale.set(0.8, 0.8, 0.8), L(a, { transparent: !0, side: C.DoubleSide });
35
- const d = (j = (f = (p = (h = a.children) == null ? void 0 : h[0]) == null ? void 0 : p.children) == null ? void 0 : f[3]) == null ? void 0 : j.clone();
36
- return d ? (d.material = new z({ transparent: !0, map: _("\u5165\u6237\u95E8") }), d.renderOrder = 3, a.children[0].add(d), e.object = a, !0) : Promise.reject(`ModelEntryDoorGuidePlugin.load(): textMesh is ${d}`);
32
+ return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${n}`));
33
+ const a = yield new _().loadAsync(A);
34
+ a.position.copy(i), a.rotation.z = n, a.scale.set(0.8, 0.8, 0.8), L(a, { transparent: !0, side: S.DoubleSide });
35
+ const d = (y = (j = (p = (f = a.children) == null ? void 0 : f[0]) == null ? void 0 : p.children) == null ? void 0 : j[3]) == null ? void 0 : y.clone();
36
+ if (!d)
37
+ return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${d}`));
38
+ const w = (q = s.name) != null ? q : "\u5165\u6237\u95E8";
39
+ return d.material = new z({ transparent: !0, map: v(w) }), d.renderOrder = 3, a.children[0].add(d), e.object = a, !0;
37
40
  }), m = () => {
38
41
  if (e.animation)
39
42
  return;
40
43
  if (!e.object)
41
44
  return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
42
- const o = 1, l = new B(e.object);
43
- c.push(l);
44
- const i = l.clipAction(e.object.animations[0]);
45
+ const o = 1, c = new B(e.object);
46
+ l.push(c);
47
+ const i = c.clipAction(e.object.animations[0]);
45
48
  i.timeScale = o;
46
49
  let n;
47
- const D = () => {
50
+ const A = () => {
48
51
  let u = 0, b = 0;
49
- const h = 1e3 / 30, p = (f) => {
50
- u = requestAnimationFrame(p);
51
- const j = f - b;
52
- j < h || (b = f, c.forEach((q) => q.update(j / 1e3)), t.needsRender = !0);
52
+ const M = 1e3 / 30, f = (p) => {
53
+ u = requestAnimationFrame(f);
54
+ const j = p - b;
55
+ j < M || (b = p, l.forEach((y) => y.update(j / 1e3)), t.needsRender = !0);
53
56
  };
54
- return u = requestAnimationFrame(p), () => {
57
+ return u = requestAnimationFrame(f), () => {
55
58
  cancelAnimationFrame(u);
56
59
  };
57
- }, E = { play: () => {
58
- n || (i.play(), n = D(), requestAnimationFrame(() => {
60
+ }, w = { play: () => {
61
+ n || (i.play(), n = A(), requestAnimationFrame(() => {
59
62
  e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
60
63
  }));
61
64
  }, stop: () => {
62
65
  i.stop(), n == null || n(), n = void 0;
63
66
  } };
64
- e.animation = E;
65
- }, F = (o) => {
67
+ e.animation = w;
68
+ }, g = (o) => {
66
69
  var i;
67
70
  if (!e.object)
68
71
  return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
69
- ((i = o == null ? void 0 : o.animationEnable) != null ? i : x) && (e.animation || m(), e.animation.play()), t.scene.add(e.object), t.needsRender = !0;
70
- }, T = () => {
72
+ ((i = o == null ? void 0 : o.animationEnable) != null ? i : P) && (e.animation || m(), e.animation.play()), t.scene.add(e.object), t.needsRender = !0;
73
+ }, F = () => {
71
74
  !e.object || (e.animation && e.animation.stop(), t.scene.remove(e.object), t.needsRender = !0);
72
- }, A = (o) => o === "Floorplan" ? F() : T();
73
- return { load: r, enable: (o) => (e.enabled || (e.enabled = !0, A(t.currentMode), t.on("modeChange", A), F(o)), !0), disable: () => (e.enabled && (e.enabled = !1, T(), t.off("modeChange", A)), !0) };
75
+ }, D = (o) => o === "Floorplan" ? g() : F();
76
+ return { load: r, enable: (o) => (e.enabled || (e.enabled = !0, D(t.currentMode), t.on("modeChange", D), g(o)), !0), disable: () => (e.enabled && (e.enabled = !1, F(), t.off("modeChange", D)), !0) };
77
+ }, N = {
78
+ name: "ModelEntryDoorGuidePlugin",
79
+ version: 0
74
80
  };
75
81
  export {
76
- J as ModelEntryDoorGuidePlugin
82
+ K as ModelEntryDoorGuidePlugin,
83
+ K as default,
84
+ N as modelEntryDoorGuidePluginServerParams
77
85
  };
@@ -1,2 +1,11 @@
1
+ import "./Plugin.js";
2
+ import { ModelEntryDoorGuidePlugin as u, ModelEntryDoorGuidePlugin as n } from "./Plugin.js";
1
3
  import "three";
2
4
  import "three/examples/jsm/loaders/FBXLoader";
5
+ import "../shared-utils/createCanvasTextTexture.js";
6
+ import "../shared-utils/three/transformPositionToVector3.js";
7
+ import "../shared-utils/three/transformToMeshBasicMaterial.js";
8
+ export {
9
+ u as ModelEntryDoorGuidePlugin,
10
+ n as default
11
+ };
@@ -67,7 +67,7 @@ function Te(o) {
67
67
  t = le("div");
68
68
  for (let l = 0; l < e.length; l += 1)
69
69
  e[l].c();
70
- ae(t, "class", "item-labels-container svelte-gk8s47"), ce(() => o[9].call(t)), U(t, "opacity", o[4] ? 1 : 0, !1);
70
+ ae(t, "class", "item-labels-container svelte-gk8s47"), ce(() => o[9].call(t)), U(t, "opacity", o[4] ? 1 : 0);
71
71
  },
72
72
  m(l, s) {
73
73
  V(l, t, s);
@@ -76,7 +76,7 @@ function Te(o) {
76
76
  h = me(t, o[9].bind(t)), r = !0;
77
77
  },
78
78
  p(l, [s]) {
79
- s & 3 && (m = l[1], pe(), e = de(e, s, d, 1, l, m, c, t, ke, S, null, C), ue()), s & 16 && U(t, "opacity", l[4] ? 1 : 0, !1);
79
+ s & 3 && (m = l[1], pe(), e = de(e, s, d, 1, l, m, c, t, ke, S, null, C), ue()), s & 16 && U(t, "opacity", l[4] ? 1 : 0);
80
80
  },
81
81
  i(l) {
82
82
  if (!r) {
@@ -1,4 +1,4 @@
1
- import { SvelteComponent as y, init as k, safe_not_equal as L, append_styles as w, element as g, text as z, space as I, attr as b, set_style as r, null_to_empty as v, insert as x, append as c, listen as C, set_data as F, noop as h, detach as j } from "../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as y, init as k, safe_not_equal as L, append_styles as w, element as f, text as z, space as I, attr as b, set_style as r, null_to_empty as v, insert as x, append as c, listen as C, set_data as F, noop as h, detach as j } from "../vendor/svelte/internal/index.js";
2
2
  import u from "classnames";
3
3
  function q(t) {
4
4
  w(t, "svelte-1ir3cyd", `.item-label-item.svelte-1ir3cyd{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1ir3cyd{opacity:1;animation:svelte-1ir3cyd-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1ir3cyd::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-1ir3cyd{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1ir3cyd{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1ir3cyd{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1ir3cyd-fadeIn{from{opacity:0
@@ -6,16 +6,16 @@ function q(t) {
6
6
  }}`);
7
7
  }
8
8
  function A(t) {
9
- let e, a, l, o = (t[0].name.length > 6 ? `${t[0].name.slice(0, 6)}...` : t[0].name) + "", m, s, d, f, p, _;
9
+ let e, o, l, n = (t[0].name.length > 6 ? `${t[0].name.slice(0, 6)}...` : t[0].name) + "", m, s, d, g, p, _;
10
10
  return {
11
11
  c() {
12
- e = g("div"), a = g("div"), l = g("span"), m = z(o), s = I(), d = g("div"), b(l, "class", "item-label-item__text svelte-1ir3cyd"), b(a, "class", "item-label-item__text-wrap svelte-1ir3cyd"), r(a, "top", `-${t[0].strokeLength + 26}px`), b(d, "class", "item-label-item__bar svelte-1ir3cyd"), r(d, "height", `${t[0].strokeLength}px`), b(e, "class", f = v(u("item-label-item", { visible: t[0].visible })) + " svelte-1ir3cyd"), r(e, "z-index", t[0].zIndex, !1), r(e, "transform", t[0].transform, !1);
12
+ e = f("div"), o = f("div"), l = f("span"), m = z(n), s = I(), d = f("div"), b(l, "class", "item-label-item__text svelte-1ir3cyd"), b(o, "class", "item-label-item__text-wrap svelte-1ir3cyd"), r(o, "top", `-${t[0].strokeLength + 26}px`), b(d, "class", "item-label-item__bar svelte-1ir3cyd"), r(d, "height", `${t[0].strokeLength}px`), b(e, "class", g = v(u("item-label-item", { visible: t[0].visible })) + " svelte-1ir3cyd"), r(e, "z-index", t[0].zIndex), r(e, "transform", t[0].transform);
13
13
  },
14
- m(i, n) {
15
- x(i, e, n), c(e, a), c(a, l), c(l, m), c(e, s), c(e, d), p || (_ = C(l, "click", t[1]), p = !0);
14
+ m(i, a) {
15
+ x(i, e, a), c(e, o), c(o, l), c(l, m), c(e, s), c(e, d), p || (_ = C(l, "click", t[1]), p = !0);
16
16
  },
17
- p(i, [n]) {
18
- n & 1 && o !== (o = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "") && F(m, o), n & 1 && r(a, "top", `-${i[0].strokeLength + 26}px`), n & 1 && r(d, "height", `${i[0].strokeLength}px`), n & 1 && f !== (f = v(u("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd") && b(e, "class", f), n & 1 && r(e, "z-index", i[0].zIndex, !1), n & 1 && r(e, "transform", i[0].transform, !1);
17
+ p(i, [a]) {
18
+ a & 1 && n !== (n = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "") && F(m, n), a & 1 && r(o, "top", `-${i[0].strokeLength + 26}px`), a & 1 && r(d, "height", `${i[0].strokeLength}px`), a & 1 && g !== (g = v(u("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd") && b(e, "class", g), a & 1 && r(e, "z-index", i[0].zIndex), a & 1 && r(e, "transform", i[0].transform);
19
19
  },
20
20
  i: h,
21
21
  o: h,
@@ -24,14 +24,14 @@ function A(t) {
24
24
  }
25
25
  };
26
26
  }
27
- function E(t, e, a) {
28
- let { itemLabel: l } = e, { hooks: o } = e;
27
+ function E(t, e, o) {
28
+ let { itemLabel: l } = e, { hooks: n } = e;
29
29
  function m() {
30
- console.log("__onclick___: ", l), o.emit("onLabelClick", l);
30
+ console.log("__onclick___: ", l), n.emit("onLabelClick", l);
31
31
  }
32
32
  return t.$$set = (s) => {
33
- "itemLabel" in s && a(0, l = s.itemLabel), "hooks" in s && a(2, o = s.hooks);
34
- }, [l, m, o];
33
+ "itemLabel" in s && o(0, l = s.itemLabel), "hooks" in s && o(2, n = s.hooks);
34
+ }, [l, m, n];
35
35
  }
36
36
  class B extends y {
37
37
  constructor(e) {
@@ -1,8 +1,13 @@
1
- import { Subscribe as f, Five as s } from "@realsee/five";
1
+ import { Subscribe as y, Five as s } from "@realsee/five";
2
2
  import L from "./ItemLabelComponent.js";
3
3
  import { DISPLAY_STRATEGY_TYPE as g } from "./typings.js";
4
4
  import { parseModelItemLabelPluginData as E } from "./utils/parseData.js";
5
- const T = (t, o) => {
5
+ import "../vendor/svelte/internal/index.js";
6
+ import "three";
7
+ import "./ItemLabelItem.js";
8
+ import "classnames";
9
+ import "../shared-utils/debounce.js";
10
+ const C = (n, o) => {
6
11
  var a, d;
7
12
  const e = {
8
13
  container: document.createElement("div"),
@@ -12,7 +17,7 @@ const T = (t, o) => {
12
17
  itemLabels: [],
13
18
  wrapper: null,
14
19
  app: void 0,
15
- hooks: new f(),
20
+ hooks: new y(),
16
21
  modelOcclusionEnable: (a = o == null ? void 0 : o.modelOcclusionEnable) != null ? a : !0,
17
22
  displayStrategyType: (d = o == null ? void 0 : o.displayStrategyType) != null ? d : g.SMALL
18
23
  };
@@ -24,24 +29,24 @@ const T = (t, o) => {
24
29
  height: 100%;
25
30
  z-index: 5;
26
31
  `, e.container.style.pointerEvents = "none";
27
- const p = (n) => (e.wrapper = n, n.appendChild(e.container), l(), !0), c = (n) => {
28
- e.itemLabels = E(n), l();
29
- }, u = () => (e.enabled || (e.enabled = !0, l()), !0), b = () => (e.enabled && (e.enabled = !1, l()), !0), r = () => {
30
- y(), e.container.remove();
31
- }, l = () => {
32
- var n;
32
+ const p = (t) => (e.wrapper = t, t.appendChild(e.container), r(), !0), c = (t) => {
33
+ e.itemLabels = E(t), r();
34
+ }, u = () => (e.enabled || (e.enabled = !0, r()), !0), b = () => (e.enabled && (e.enabled = !1, r()), !0), i = () => {
35
+ f(), e.container.remove();
36
+ }, r = () => {
37
+ var t;
33
38
  if (!!e.wrapper) {
34
39
  if (!e.enabled || !e.fiveModeEnabled) {
35
- (n = e.app) == null || n.$destroy(), e.app = void 0;
40
+ (t = e.app) == null || t.$destroy(), e.app = void 0;
36
41
  return;
37
42
  }
38
43
  e.app ? e.app.$set({
39
- five: t,
44
+ five: n,
40
45
  itemLabels: e.itemLabels
41
46
  }) : e.app = new L({
42
47
  target: e.container,
43
48
  props: {
44
- five: t,
49
+ five: n,
45
50
  modelOcclusionEnable: e.modelOcclusionEnable,
46
51
  itemLabels: e.itemLabels,
47
52
  wrapper: e.wrapper,
@@ -51,17 +56,17 @@ const T = (t, o) => {
51
56
  });
52
57
  }
53
58
  }, m = () => {
54
- t.on("modeChange", i), t.once("dispose", r);
55
- }, y = () => {
56
- t.off("modeChange", i);
57
- }, i = (n) => {
59
+ n.on("modeChange", l), n.once("dispose", i);
60
+ }, f = () => {
61
+ n.off("modeChange", l);
62
+ }, l = (t) => {
58
63
  if (!!e.enabled) {
59
- if (n !== s.Mode.Floorplan) {
60
- e.fiveModeEnabled = !1, l();
64
+ if (t !== s.Mode.Floorplan) {
65
+ e.fiveModeEnabled = !1, r();
61
66
  return;
62
67
  }
63
- t.once("initAnimationEnded", () => {
64
- e.fiveModeEnabled = t.currentMode === s.Mode.Floorplan, l();
68
+ n.once("initAnimationEnded", () => {
69
+ e.fiveModeEnabled = n.currentMode === s.Mode.Floorplan, r();
65
70
  });
66
71
  }
67
72
  };
@@ -70,10 +75,11 @@ const T = (t, o) => {
70
75
  load: c,
71
76
  enable: u,
72
77
  disable: b,
73
- dispose: r,
78
+ dispose: i,
74
79
  hooks: e.hooks
75
80
  };
76
81
  };
77
82
  export {
78
- T as ModelItemLabelPlugin
83
+ C as ModelItemLabelPlugin,
84
+ C as default
79
85
  };
@@ -1,11 +1,21 @@
1
+ import "./ModelItemLabelPlugin.js";
2
+ import { ModelItemLabelPlugin as I, ModelItemLabelPlugin as L } from "./ModelItemLabelPlugin.js";
3
+ import { DISPLAY_STRATEGY_TYPE as g } from "./typings.js";
1
4
  import "@realsee/five";
5
+ import "./ItemLabelComponent.js";
2
6
  import "../vendor/svelte/internal/index.js";
3
7
  import "three";
8
+ import "./ItemLabelItem.js";
4
9
  import "classnames";
5
- const t = {
10
+ import "../shared-utils/debounce.js";
11
+ import "./utils/parseData.js";
12
+ const P = {
6
13
  name: "ModelItemLabelPlugin",
7
14
  version: 0
8
15
  };
9
16
  export {
10
- t as modelItemLabelPluginServerParams
17
+ g as DISPLAY_STRATEGY_TYPE,
18
+ I as ModelItemLabelPlugin,
19
+ L as default,
20
+ P as modelItemLabelPluginServerParams
11
21
  };
@@ -3,7 +3,11 @@ var n = (t, e, o) => e in t ? s(t, e, { enumerable: !0, configurable: !0, writab
3
3
  var i = (t, e, o) => (n(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import r from "./RoomLabelItems.js";
5
5
  import { parseModelRoomLabelPluginData as a } from "./utils/parseData.js";
6
- class p {
6
+ import "../vendor/svelte/internal/index.js";
7
+ import "three";
8
+ import "./RoomLabelItem.js";
9
+ import "./Assets/roomLabelBg.js";
10
+ class c {
7
11
  constructor(e) {
8
12
  i(this, "five");
9
13
  i(this, "enabled", !0);
@@ -56,5 +60,5 @@ class p {
56
60
  }
57
61
  }
58
62
  export {
59
- p as ModelRoomLabelController
63
+ c as ModelRoomLabelController
60
64
  };
@@ -1,39 +1,39 @@
1
- import { SvelteComponent as g, init as h, safe_not_equal as _, append_styles as z, element as u, text as w, space as k, attr as b, set_style as r, toggle_class as p, insert as L, append as d, listen as I, set_data as x, noop as v, detach as y } from "../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as g, init as h, safe_not_equal as _, append_styles as z, element as f, text as w, space as k, attr as b, set_style as r, toggle_class as p, insert as L, append as d, listen as I, set_data as x, noop as v, detach as y } from "../vendor/svelte/internal/index.js";
2
2
  import { ROOM_LABEL_BG as B } from "./Assets/roomLabelBg.js";
3
3
  function C(t) {
4
4
  z(t, "svelte-1d7uzh5", ".room-label-item.svelte-1d7uzh5{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-1d7uzh5{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1d7uzh5{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1d7uzh5{font-size:0.625rem}");
5
5
  }
6
6
  function O(t) {
7
- let e, n, a = t[0].name + "", l, m, i, f, c;
7
+ let e, n, i = t[0].name + "", a, m, l, u, c;
8
8
  return {
9
9
  c() {
10
- e = u("div"), n = u("span"), l = w(a), m = k(), i = u("div"), b(n, "class", "room-label-item__text svelte-1d7uzh5"), r(n, "background-image", "url(" + B + ")"), p(n, "wide", t[0].name.length > 3), b(i, "class", "room-label-item__bar svelte-1d7uzh5"), b(e, "class", "room-label-item svelte-1d7uzh5"), r(e, "z-index", t[0].zIndex, !1), r(e, "transform", t[0].transform, !1), r(e, "opacity", t[0].visible ? 1 : 0, !1);
10
+ e = f("div"), n = f("span"), a = w(i), m = k(), l = f("div"), b(n, "class", "room-label-item__text svelte-1d7uzh5"), r(n, "background-image", "url(" + B + ")"), p(n, "wide", t[0].name.length > 3), b(l, "class", "room-label-item__bar svelte-1d7uzh5"), b(e, "class", "room-label-item svelte-1d7uzh5"), r(e, "z-index", t[0].zIndex), r(e, "transform", t[0].transform), r(e, "opacity", t[0].visible ? 1 : 0);
11
11
  },
12
12
  m(o, s) {
13
- L(o, e, s), d(e, n), d(n, l), d(e, m), d(e, i), f || (c = I(n, "click", t[1]), f = !0);
13
+ L(o, e, s), d(e, n), d(n, a), d(e, m), d(e, l), u || (c = I(n, "click", t[1]), u = !0);
14
14
  },
15
15
  p(o, [s]) {
16
- s & 1 && a !== (a = o[0].name + "") && x(l, a), s & 1 && p(n, "wide", o[0].name.length > 3), s & 1 && r(e, "z-index", o[0].zIndex, !1), s & 1 && r(e, "transform", o[0].transform, !1), s & 1 && r(e, "opacity", o[0].visible ? 1 : 0, !1);
16
+ s & 1 && i !== (i = o[0].name + "") && x(a, i), s & 1 && p(n, "wide", o[0].name.length > 3), s & 1 && r(e, "z-index", o[0].zIndex), s & 1 && r(e, "transform", o[0].transform), s & 1 && r(e, "opacity", o[0].visible ? 1 : 0);
17
17
  },
18
18
  i: v,
19
19
  o: v,
20
20
  d(o) {
21
- o && y(e), f = !1, c();
21
+ o && y(e), u = !1, c();
22
22
  }
23
23
  };
24
24
  }
25
25
  function R(t, e, n) {
26
- let { five: a } = e, { roomLabel: l } = e;
26
+ let { five: i } = e, { roomLabel: a } = e;
27
27
  function m() {
28
- a.setState({
29
- panoIndex: l.panoIndex,
28
+ i.setState({
29
+ panoIndex: a.panoIndex,
30
30
  mode: "Panorama",
31
- longitude: l.longitude
31
+ longitude: a.longitude
32
32
  });
33
33
  }
34
- return t.$$set = (i) => {
35
- "five" in i && n(2, a = i.five), "roomLabel" in i && n(0, l = i.roomLabel);
36
- }, [l, m, a];
34
+ return t.$$set = (l) => {
35
+ "five" in l && n(2, i = l.five), "roomLabel" in l && n(0, a = l.roomLabel);
36
+ }, [a, m, i];
37
37
  }
38
38
  class q extends g {
39
39
  constructor(e) {
@@ -1,9 +1,16 @@
1
1
  import { ModelRoomLabelController as e } from "./Controller.js";
2
- const r = (o) => new e(o), n = {
2
+ import "./RoomLabelItems.js";
3
+ import "../vendor/svelte/internal/index.js";
4
+ import "three";
5
+ import "./RoomLabelItem.js";
6
+ import "./Assets/roomLabelBg.js";
7
+ import "./utils/parseData.js";
8
+ const p = (o) => new e(o), d = {
3
9
  name: "ModelRoomLabelPlugin",
4
10
  version: 0
5
11
  };
6
12
  export {
7
- r as ModelRoomLabelPlugin,
8
- n as modelRoomLabelPluginServerParams
13
+ p as ModelRoomLabelPlugin,
14
+ p as default,
15
+ d as modelRoomLabelPluginServerParams
9
16
  };
@@ -1,23 +1,32 @@
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 "three/examples/jsm/renderers/CSS3DRenderer";
24
+ import "../shared-utils/Subscribe.js";
25
+ import "../CSS3DRenderPlugin/utils/evenNumber.js";
26
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
27
+ import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
28
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
29
+ const X = (s, { videoElement: b }) => {
21
30
  const e = {
22
31
  videoMeshes: [],
23
32
  videoTextureEnabled: !1,
@@ -25,12 +34,12 @@ const C = (s, { videoElement: b }) => {
25
34
  rectPoints: [],
26
35
  enabled: !1,
27
36
  videoElement: b
28
- }, m = O(s), y = /* @__PURE__ */ new Map(), w = (t) => {
37
+ }, m = O(s), x = /* @__PURE__ */ new Map(), w = (t) => {
29
38
  e.videoTexture && (e.videoTexture.image.muted = t);
30
- }, E = () => e.videoTexture ? e.videoTexture.image.muted : !0, x = () => {
39
+ }, E = () => e.videoTexture ? e.videoTexture.image.muted : !0, h = () => {
31
40
  if (e.enabled || !e.videoTexture)
32
41
  return;
33
- e.enabled = !0, e.videoMeshes = p(), e.videoMeshes.forEach((n) => s.scene.add(n));
42
+ e.enabled = !0, e.videoMeshes = y(), e.videoMeshes.forEach((n) => s.scene.add(n));
34
43
  const t = () => {
35
44
  if (!e.videoTexture)
36
45
  return;
@@ -56,7 +65,7 @@ const C = (s, { videoElement: b }) => {
56
65
  !e.enabled || (e.enabled = !1, e.videoMeshes.forEach((t) => {
57
66
  t.geometry.dispose(), t.material.dispose(), s.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
58
67
  }), e.videoMeshes = [], s.needsRender = !0);
59
- }, p = () => e.rectPoints.map((t, n) => {
68
+ }, y = () => e.rectPoints.map((t, n) => {
60
69
  const i = new d.BufferGeometry(), o = 128, a = [];
61
70
  a.push(...t[0].toArray());
62
71
  for (let r = 1; r < o; r++)
@@ -87,10 +96,10 @@ const C = (s, { videoElement: b }) => {
87
96
  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
97
  const f = new d.AxesHelper(10);
89
98
  s.scene.add(f);
90
- const h = new d.MeshBasicMaterial({
99
+ const p = new d.MeshBasicMaterial({
91
100
  map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
92
101
  side: d.DoubleSide
93
- }), v = new d.Mesh(i, h);
102
+ }), v = new d.Mesh(i, p);
94
103
  v.renderOrder = 1, v.name = `ModelTVVideoPlugin-${n}-${performance.now()}`;
95
104
  const z = [t[1], t[2], t[3], t[0]], T = m.create3DDomContainer(z);
96
105
  if (T != null && T.container) {
@@ -99,7 +108,7 @@ const C = (s, { videoElement: b }) => {
99
108
  const g = document.createElement("img");
100
109
  g.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", g.style.width = "200px", g.style.pointerEvents = "auto", g.onclick = () => {
101
110
  e.videoTexture.image.muted = !1, e.videoTexture.image.play();
102
- }, r.appendChild(g), y.set(v, T);
111
+ }, r.appendChild(g), x.set(v, T);
103
112
  }
104
113
  return v;
105
114
  }), L = (t) => {
@@ -119,7 +128,7 @@ const C = (s, { videoElement: b }) => {
119
128
  }, a.onerror = (c) => o(c), a.open("GET", t), a.responseType = "blob", a.send();
120
129
  }), V = (t, n) => F(void 0, null, function* () {
121
130
  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();
131
+ e.videoSource = i, e.rectPoints = I(a).map((c) => c.map(({ x: u, y: f, z: p }) => new d.Vector3(u, f, p))), e.imageTexture = L(o), n && (e.videoElement = n), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && h();
123
132
  }), M = (t) => {
124
133
  if (!e.enabled)
125
134
  return;
@@ -132,15 +141,15 @@ const C = (s, { videoElement: b }) => {
132
141
  if (!e.enabled)
133
142
  return;
134
143
  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();
144
+ if (x.forEach((n, i) => {
145
+ 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), p = 0.01;
146
+ u && u.distance + p < f ? n.hide() : n.show();
138
147
  }), !E()) {
139
148
  const n = e.rectPoints.find((i) => {
140
149
  const o = i[0].clone().add(i[1]).add(i[2]).add(i[3]).divideScalar(4);
141
150
  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);
151
+ const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()), f = s.model.intersectRaycaster(u)[0], p = 0.01;
152
+ return !(f && f.distance + p < c);
144
153
  }).length >= 2;
145
154
  });
146
155
  (!n || n.length === 0) && w(!0);
@@ -156,8 +165,9 @@ const C = (s, { videoElement: b }) => {
156
165
  e.videoMeshes.forEach((t) => {
157
166
  t && (t.needsRender = !0);
158
167
  });
159
- }), { enable: x, disable: l, load: V, dispose: S, state: e, css3DRenderPlugin: m };
168
+ }), { enable: h, disable: l, load: V, dispose: S, state: e, css3DRenderPlugin: m };
160
169
  };
161
170
  export {
162
- C as ModelTVVideoPlugin
171
+ X as ModelTVVideoPlugin,
172
+ X as default
163
173
  };
@@ -1,2 +1,19 @@
1
+ import "./Plugin.js";
2
+ import { ModelTVVideoPlugin as M, ModelTVVideoPlugin as P } from "./Plugin.js";
3
+ import { DIRECTION as x } 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";
2
9
  import "three/examples/jsm/renderers/CSS3DRenderer";
10
+ import "../shared-utils/Subscribe.js";
11
+ import "../CSS3DRenderPlugin/utils/evenNumber.js";
12
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
13
+ import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
14
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
15
+ export {
16
+ x as DIRECTION,
17
+ M as ModelTVVideoPlugin,
18
+ P as default
19
+ };
@@ -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
+ };