@realsee/dnalogel 2.16.0-1 → 2.16.0-11

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 (562) hide show
  1. package/components/index.js +688 -240
  2. package/dist/CruisePlugin/index.d.ts +2 -0
  3. package/dist/CruisePlugin/typing.d.ts +35 -40
  4. package/dist/GuideLinePlugin/Controller.d.ts +6 -3
  5. package/dist/GuideLinePlugin/GuideLineItem.d.ts +6 -0
  6. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +45 -4
  7. package/dist/GuideLinePlugin/index.d.ts +2 -1
  8. package/dist/GuideLinePlugin/typing.d.ts +36 -5
  9. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +5 -1
  10. package/dist/GuideLinePlugin/utils/index.d.ts +6 -0
  11. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  12. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
  13. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
  14. package/dist/index.cjs.js +119 -87
  15. package/dist/index.js +17164 -10135
  16. package/dist/index.umd.js +112 -80
  17. package/dist/shared-utils/animationFrame/BetterTween.d.ts +3 -2
  18. package/dist/shared-utils/animationFrame/index.d.ts +1 -1
  19. package/dist/shared-utils/animationFrame/tween.d.ts +32 -23
  20. package/dist/shared-utils/five/changeMode.d.ts +2 -4
  21. package/dist/shared-utils/svelte/resizeObserver.d.ts +2 -10
  22. package/dist/shared-utils/svelte/resizeObserverGlobal.d.ts +10 -0
  23. package/docs/assets/search.js +1 -1
  24. package/docs/classes/CSS3DRender.html +33 -31
  25. package/docs/classes/CruisePluginController.html +40 -38
  26. package/docs/classes/GuideLineItem.GuideLineItem.html +57 -23
  27. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +246 -49
  28. package/docs/classes/Magnifier.html +22 -20
  29. package/docs/classes/ModelRoomLabelController.html +13 -11
  30. package/docs/classes/Object3DHelperController.html +27 -25
  31. package/docs/classes/PaintBrush.html +17 -15
  32. package/docs/classes/PanoMeasurePluginLine.html +25 -23
  33. package/docs/classes/PanoMeasurePluginModel.html +24 -22
  34. package/docs/classes/PanoMeasurePluginPoint.html +16 -14
  35. package/docs/classes/PanoMeasurePluginPolyline.html +28 -26
  36. package/docs/classes/PanoTagPluginController.html +49 -47
  37. package/docs/classes/Util.BetterTween.html +31 -18
  38. package/docs/classes/Util.FivePointSelector.html +14 -12
  39. package/docs/classes/Util.Interval.html +14 -12
  40. package/docs/classes/Util.Magnifier.html +19 -17
  41. package/docs/classes/Util.PointDomHelper.html +13 -11
  42. package/docs/classes/Util.PointHelper.html +13 -11
  43. package/docs/classes/Util.Rectangle.html +15 -13
  44. package/docs/enums/CameraMovementEffect.html +9 -7
  45. package/docs/enums/ContentType.html +21 -19
  46. package/docs/enums/DIRECTION.html +11 -9
  47. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -9
  48. package/docs/enums/DimensionType.html +9 -7
  49. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -8
  50. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -9
  51. package/docs/enums/PaintBrushTypeEnum.html +10 -8
  52. package/docs/enums/Rotation.html +10 -8
  53. package/docs/functions/CSS3DRenderPlugin.html +6 -4
  54. package/docs/functions/CameraMovementPlugin.html +6 -4
  55. package/docs/functions/CruisePlugin.html +6 -4
  56. package/docs/functions/GuideLinePlugin.html +7 -5
  57. package/docs/functions/ItemLabelPlugin.html +6 -4
  58. package/docs/functions/MapviewFloorplanPlugin.html +6 -4
  59. package/docs/functions/ModelChassisCompassPlugin.html +6 -4
  60. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -4
  61. package/docs/functions/ModelFloorplanPlugin.html +6 -4
  62. package/docs/functions/ModelItemLabelPlugin.html +6 -4
  63. package/docs/functions/ModelRoomLabelPlugin.html +6 -4
  64. package/docs/functions/ModelTVVideoPlugin.html +6 -4
  65. package/docs/functions/ModelViewPlugin.html +6 -4
  66. package/docs/functions/Object3DHelperPlugin.html +6 -4
  67. package/docs/functions/PanoCompassPlugin.html +6 -4
  68. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -4
  69. package/docs/functions/PanoDoorLabelPlugin.html +6 -4
  70. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -4
  71. package/docs/functions/PanoMeasurePlugin.html +6 -4
  72. package/docs/functions/PanoRulerPlugin.html +6 -4
  73. package/docs/functions/PanoRulerProPlugin.html +6 -4
  74. package/docs/functions/PanoSpatialTagPlugin.html +6 -4
  75. package/docs/functions/PanoTagPlugin.html +6 -4
  76. package/docs/functions/PanoVideoPlugin.html +6 -4
  77. package/docs/functions/TopviewFloorplanPlugin.html +6 -4
  78. package/docs/functions/Util.getCoordsFromClient.html +7 -5
  79. package/docs/functions/Util.getCoordsFromElement.html +7 -5
  80. package/docs/functions/Util.getFrameTime.html +7 -5
  81. package/docs/functions/Util.getIntersectFromRelativePosition.html +7 -5
  82. package/docs/functions/Util.getRaycasterFromFivePointer.html +7 -5
  83. package/docs/functions/Util.isAbsoluteURL.html +7 -5
  84. package/docs/functions/Util.isModelLike.html +7 -5
  85. package/docs/functions/Util.isNil.html +7 -5
  86. package/docs/functions/Util.isPanoramaLike.html +7 -5
  87. package/docs/functions/Util.nextFrame.html +20 -7
  88. package/docs/functions/Util.notNil.html +7 -5
  89. package/docs/functions/Util.requestAnimationFrameInterval.html +7 -5
  90. package/docs/functions/Util.tweenProgress.html +9 -18
  91. package/docs/functions/Util.uuid.html +7 -5
  92. package/docs/functions/pluginFlag.html +7 -5
  93. package/docs/index.html +6 -4
  94. package/docs/interfaces/AddTagConfig.html +8 -6
  95. package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -11
  96. package/docs/interfaces/CSS3DRenderPluginState.html +10 -8
  97. package/docs/interfaces/CameraMovementPluginExportType.html +9 -7
  98. package/docs/interfaces/CruisePluginTypes.Config.html +107 -0
  99. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +112 -0
  100. package/docs/interfaces/CruisePluginTypes.EventMap.html +429 -0
  101. package/docs/interfaces/CruisePluginTypes.MoveAction.html +129 -0
  102. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +151 -0
  103. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +153 -0
  104. package/docs/interfaces/CruisePluginTypes.PluginData.html +102 -0
  105. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +83 -0
  106. package/docs/interfaces/CruisePluginTypes.PluginState.html +148 -0
  107. package/docs/interfaces/EventMap.html +17 -15
  108. package/docs/interfaces/FloorplanBounding.html +10 -8
  109. package/docs/interfaces/FloorplanData.html +12 -10
  110. package/docs/interfaces/FloorplanEntrance.html +13 -11
  111. package/docs/interfaces/FloorplanExtraObject.html +12 -10
  112. package/docs/interfaces/FloorplanExtraObject3D.html +10 -8
  113. package/docs/interfaces/FloorplanFloorData.html +11 -9
  114. package/docs/interfaces/FloorplanImagePosition.html +9 -7
  115. package/docs/interfaces/FloorplanObserver.html +11 -9
  116. package/docs/interfaces/FloorplanOutlineItem.html +11 -9
  117. package/docs/interfaces/FloorplanPosition.html +9 -7
  118. package/docs/interfaces/FloorplanRoomItem.html +15 -13
  119. package/docs/interfaces/FloorplanRoomLabelItem.html +9 -7
  120. package/docs/interfaces/FloorplanServerBounding.html +10 -8
  121. package/docs/interfaces/FloorplanServerComputedData.html +12 -10
  122. package/docs/interfaces/FloorplanServerData.html +9 -7
  123. package/docs/interfaces/FloorplanServerDoorItem.html +12 -10
  124. package/docs/interfaces/FloorplanServerDoorPosition.html +10 -8
  125. package/docs/interfaces/FloorplanServerEntrance.html +13 -11
  126. package/docs/interfaces/FloorplanServerFloorData.html +11 -9
  127. package/docs/interfaces/FloorplanServerImagePosition.html +9 -7
  128. package/docs/interfaces/FloorplanServerObserver.html +11 -9
  129. package/docs/interfaces/FloorplanServerOutlineItem.html +11 -9
  130. package/docs/interfaces/FloorplanServerPosition.html +9 -7
  131. package/docs/interfaces/FloorplanServerRoomItem.html +16 -14
  132. package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -7
  133. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +102 -0
  134. package/docs/interfaces/GuideLinePluginType.EventMap.html +259 -0
  135. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +93 -0
  136. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +88 -0
  137. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +127 -0
  138. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +86 -0
  139. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +179 -0
  140. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +209 -0
  141. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +293 -0
  142. package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +77 -0
  143. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +72 -0
  144. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +83 -0
  145. package/docs/interfaces/GuideLinePluginType.PluginState.html +93 -0
  146. package/docs/interfaces/GuideLinePluginType.Route.html +104 -0
  147. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +93 -0
  148. package/docs/interfaces/HelperOffset.html +10 -8
  149. package/docs/interfaces/ImagePlaneGroup.html +8 -6
  150. package/docs/interfaces/ItemLabelPluginData.html +8 -6
  151. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -11
  152. package/docs/interfaces/ItemLabelPluginParametersType.html +11 -9
  153. package/docs/interfaces/MinMax.html +9 -7
  154. package/docs/interfaces/ModelChassisCompassPluginData.html +9 -7
  155. package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -8
  156. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -7
  157. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -8
  158. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -8
  159. package/docs/interfaces/ModelItemLabelPluginData.html +8 -6
  160. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -11
  161. package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -7
  162. package/docs/interfaces/ModelRoomLabelPluginData.html +8 -6
  163. package/docs/interfaces/ModelTVVideoPluginData.html +11 -9
  164. package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -8
  165. package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -6
  166. package/docs/interfaces/ModelViewPluginExportType.html +13 -11
  167. package/docs/interfaces/Object3DHelperState.html +10 -8
  168. package/docs/interfaces/ObjectHelperControllers.html +11 -9
  169. package/docs/interfaces/PaintBrushAction.html +14 -12
  170. package/docs/interfaces/PaintBrushConfigs.html +14 -12
  171. package/docs/interfaces/PaintBrushState.html +12 -10
  172. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -10
  173. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -5
  174. package/docs/interfaces/PanoMeasureParameterType.html +16 -14
  175. package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -8
  176. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -7
  177. package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -7
  178. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -8
  179. package/docs/interfaces/PanoRulerPluginExportType.html +12 -10
  180. package/docs/interfaces/PanoRulerPluginOptions.html +9 -7
  181. package/docs/interfaces/PanoRulerPluginParameterType.html +10 -8
  182. package/docs/interfaces/PanoRulerProPluginExportType.html +11 -9
  183. package/docs/interfaces/PanoRulerProPluginOptions.html +9 -7
  184. package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -7
  185. package/docs/interfaces/PanoRulerProPluginState.html +10 -8
  186. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -5
  187. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -5
  188. package/docs/interfaces/PanoSpatialTagPluginData.html +13 -11
  189. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -10
  190. package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -13
  191. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -10
  192. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -13
  193. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -11
  194. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -10
  195. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -6
  196. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -8
  197. package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -6
  198. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +17 -15
  199. package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -6
  200. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -8
  201. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -10
  202. package/docs/interfaces/Point.html +10 -8
  203. package/docs/interfaces/Room.html +11 -9
  204. package/docs/interfaces/RoomInfo.html +9 -7
  205. package/docs/interfaces/RoomLabel.html +16 -14
  206. package/docs/interfaces/RoomRules.html +7 -5
  207. package/docs/interfaces/Rooms.html +7 -5
  208. package/docs/interfaces/Scissor.html +11 -9
  209. package/docs/interfaces/State.html +10 -8
  210. package/docs/interfaces/TagCacheInterface.html +14 -12
  211. package/docs/interfaces/TagConfig.html +13 -11
  212. package/docs/interfaces/TagGLTFObjectGroup.html +8 -6
  213. package/docs/interfaces/TagIconUrl.html +28 -17
  214. package/docs/interfaces/TagObjectGroup.html +8 -6
  215. package/docs/interfaces/TagStyle.html +8 -6
  216. package/docs/interfaces/Tags.html +11 -9
  217. package/docs/interfaces/TemporaryState.html +8 -6
  218. package/docs/interfaces/Util.MagnifierParameter.html +13 -11
  219. package/docs/interfaces/Util.MouseGroupParameter.html +10 -8
  220. package/docs/modules/CruisePluginTypes.html +88 -0
  221. package/docs/modules/GuideLineItem.html +7 -5
  222. package/docs/modules/GuideLineModeItem.html +7 -5
  223. package/docs/modules/GuideLinePluginType.html +108 -0
  224. package/docs/modules/PanoVideoPluginType.html +7 -5
  225. package/docs/modules/Util.html +7 -5
  226. package/docs/modules.html +9 -5
  227. package/docs/types/ArrayPosition.html +7 -5
  228. package/docs/types/AudioAppearance.html +7 -5
  229. package/docs/types/AudioTagTypeConfigKey.html +7 -5
  230. package/docs/types/CSS3DRenderExportType.html +7 -5
  231. package/docs/types/CSS3DRenderPluginExportType.html +7 -5
  232. package/docs/types/CSS3DRenderPluginParameterType.html +7 -5
  233. package/docs/types/ClassFunctionParameters.html +7 -5
  234. package/docs/types/Color.html +7 -5
  235. package/docs/types/ContentTypeConfigKey.html +7 -5
  236. package/docs/types/ContentTypeConfigKeySplit.html +7 -5
  237. package/docs/types/ContentTypeMap.html +7 -5
  238. package/docs/types/Create3DDomContainerReturnType.html +7 -5
  239. package/docs/types/Create3DElementReturnType.html +7 -5
  240. package/docs/types/CruisePluginExportType.html +7 -5
  241. package/docs/types/CruisePluginTypes.CruiseData.html +60 -0
  242. package/docs/types/CruisePluginTypes.MoveEffect.html +60 -0
  243. package/docs/types/Direction-1.html +7 -5
  244. package/docs/types/Direction4.html +7 -5
  245. package/docs/types/FloorplanRuleLabels.html +7 -5
  246. package/docs/types/FloorplanServerRuleLabels.html +7 -5
  247. package/docs/types/GuideLinePluginExportType.html +7 -5
  248. package/docs/types/GuideLinePluginType.GuideLineItem.html +72 -0
  249. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +105 -0
  250. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +70 -0
  251. package/docs/types/GuideLinePluginType.GuideLineStyle.html +72 -0
  252. package/docs/types/GuideLinePluginType.PathItem.html +72 -0
  253. package/docs/types/GuideLinePluginType.PluginData.html +70 -0
  254. package/docs/types/HelperEventMap.html +7 -5
  255. package/docs/types/LoadTagConfig.html +7 -5
  256. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -5
  257. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -5
  258. package/docs/types/MediaData.html +7 -5
  259. package/docs/types/MediaStore.html +7 -5
  260. package/docs/types/ModelElement.html +7 -5
  261. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -5
  262. package/docs/types/ModelFloorplanPluginParameterType.html +7 -5
  263. package/docs/types/ModelFloorplanPluginReturnType.html +7 -5
  264. package/docs/types/ModelRoomLabelPluginParameters.html +7 -5
  265. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -5
  266. package/docs/types/MoveArgs.html +7 -5
  267. package/docs/types/MoveOpts.html +7 -5
  268. package/docs/types/Object3DHelperEventMap.html +7 -5
  269. package/docs/types/ObjectFit.html +7 -5
  270. package/docs/types/PaintBrushEventMap.html +7 -5
  271. package/docs/types/PanoCompassPluginData.html +7 -5
  272. package/docs/types/PanoCompassPluginExportType.html +7 -5
  273. package/docs/types/PanoCompassPluginParameterType.html +7 -5
  274. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -5
  275. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -5
  276. package/docs/types/PanoIndex.html +7 -5
  277. package/docs/types/PanoMeasurePluginEvent.html +7 -5
  278. package/docs/types/PanoMeasureReturnType.html +7 -5
  279. package/docs/types/PanoSpatialTagPluginId.html +7 -5
  280. package/docs/types/PanoTagPluginExportInterface.html +7 -5
  281. package/docs/types/PanoTagPluginParamsInterface.html +7 -5
  282. package/docs/types/PanoVideoPluginParameterType.html +7 -5
  283. package/docs/types/PanoVideoPluginReturnType.html +7 -5
  284. package/docs/types/PlaneTag.html +7 -5
  285. package/docs/types/PlaneTagElement.html +7 -5
  286. package/docs/types/Point2DElement.html +7 -5
  287. package/docs/types/Point2DTag.html +7 -5
  288. package/docs/types/Point3DElement.html +7 -5
  289. package/docs/types/Point3DTag.html +7 -5
  290. package/docs/types/PointTag.html +7 -5
  291. package/docs/types/PointTagElement.html +7 -5
  292. package/docs/types/Position.html +7 -5
  293. package/docs/types/RotateArgs.html +7 -5
  294. package/docs/types/RotateOpts.html +7 -5
  295. package/docs/types/RuleLabelsKey.html +7 -5
  296. package/docs/types/RuleLabelsValue.html +7 -5
  297. package/docs/types/StickType.html +7 -5
  298. package/docs/types/Tag.html +7 -5
  299. package/docs/types/Tag2D.html +7 -5
  300. package/docs/types/Tag3D.html +7 -5
  301. package/docs/types/TagContentType.html +7 -5
  302. package/docs/types/TagDimensionType.html +7 -5
  303. package/docs/types/TagElement.html +7 -5
  304. package/docs/types/TagEvents.html +7 -5
  305. package/docs/types/TagGLTFObject.html +7 -5
  306. package/docs/types/TagHooks.html +7 -5
  307. package/docs/types/TagIconSize.html +7 -5
  308. package/docs/types/TagId.html +7 -5
  309. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -5
  310. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -5
  311. package/docs/types/WorkCode.html +7 -5
  312. package/docs/variables/FLOOR_TYPE_MAP.html +7 -5
  313. package/docs/variables/PLUGIN.html +7 -5
  314. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -5
  315. package/docs/variables/ROOM_TYPE_MAP.html +7 -5
  316. package/docs/variables/itemLabelPluginServerParams.html +7 -5
  317. package/docs/variables/modelItemLabelPluginServerParams.html +7 -5
  318. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -5
  319. package/libs/CSS3DRenderPlugin/Controller.js +47 -13
  320. package/libs/CSS3DRenderPlugin/index.js +6 -8
  321. package/libs/CSS3DRenderPlugin/utils/even.js +1 -1
  322. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -0
  323. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +37 -2
  324. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +1 -1
  325. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +22 -18
  326. package/libs/CameraMovementPlugin/index.js +7 -9
  327. package/libs/CruisePlugin/Controller.js +350 -135
  328. package/libs/CruisePlugin/index.d.ts +2 -0
  329. package/libs/CruisePlugin/index.js +123 -11
  330. package/libs/CruisePlugin/typing/index.js +6 -0
  331. package/libs/CruisePlugin/typing.d.ts +35 -40
  332. package/libs/CruisePlugin/utils/coordinatesToVector.js +3 -0
  333. package/libs/GuideLinePlugin/Components/Tag.js +50 -0
  334. package/libs/GuideLinePlugin/Controller.d.ts +6 -3
  335. package/libs/GuideLinePlugin/Controller.js +237 -103
  336. package/libs/GuideLinePlugin/GuideLineItem/index.js +109 -22
  337. package/libs/GuideLinePlugin/GuideLineItem.d.ts +6 -0
  338. package/libs/GuideLinePlugin/GuideLineItem.js +134 -7
  339. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +192 -69
  340. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +45 -4
  341. package/libs/GuideLinePlugin/GuideLineModeItem.js +116 -4
  342. package/libs/GuideLinePlugin/index.d.ts +2 -1
  343. package/libs/GuideLinePlugin/index.js +133 -13
  344. package/libs/GuideLinePlugin/typing.d.ts +36 -5
  345. package/libs/GuideLinePlugin/typing.js +32 -1
  346. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +5 -1
  347. package/libs/GuideLinePlugin/utils/createLineGeometry.js +40 -26
  348. package/libs/GuideLinePlugin/utils/getPoint.js +4 -0
  349. package/libs/GuideLinePlugin/utils/index.d.ts +6 -0
  350. package/libs/GuideLinePlugin/utils/index.js +30 -10
  351. package/libs/ItemLabelPlugin/ItemLabelComponent.js +83 -34
  352. package/libs/ItemLabelPlugin/ItemLabelItem.js +91 -14
  353. package/libs/ItemLabelPlugin/Plugin.js +2 -2
  354. package/libs/ItemLabelPlugin/index.js +8 -9
  355. package/libs/ModelChassisCompassPlugin/Plugin.js +25 -25
  356. package/libs/ModelChassisCompassPlugin/index.js +3 -4
  357. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +14 -14
  358. package/libs/ModelEntryDoorGuidePlugin/index.js +3 -4
  359. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +46 -10
  360. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +60 -7
  361. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +3 -3
  362. package/libs/ModelItemLabelPlugin/index.js +6 -7
  363. package/libs/ModelRoomLabelPlugin/Controller.js +18 -1
  364. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +58 -4
  365. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +50 -20
  366. package/libs/ModelTVVideoPlugin/Plugin.js +6 -8
  367. package/libs/ModelTVVideoPlugin/index.js +6 -9
  368. package/libs/ModelViewPlugin/Plugin.js +3 -3
  369. package/libs/ModelViewPlugin/index.js +3 -4
  370. package/libs/Object3DHelperPlugin/Controller.js +62 -42
  371. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +2 -1
  372. package/libs/Object3DHelperPlugin/index.js +7 -9
  373. package/libs/PanoCompassPlugin/Controller.js +54 -4
  374. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -1
  375. package/libs/PanoCompassPlugin/index.js +3 -3
  376. package/libs/PanoDoorLabelPlugin/BaseController.js +37 -12
  377. package/libs/PanoDoorLabelPlugin/Controller.js +9 -6
  378. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +39 -13
  379. package/libs/PanoDoorLabelPlugin/index.js +5 -7
  380. package/libs/PanoMeasurePlugin/Controller/EditController.js +22 -4
  381. package/libs/PanoMeasurePlugin/Controller/MixedController.js +9 -5
  382. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +2 -2
  383. package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -3
  384. package/libs/PanoMeasurePlugin/Controller/WatchController.js +5 -5
  385. package/libs/PanoMeasurePlugin/Controller/index.js +42 -12
  386. package/libs/PanoMeasurePlugin/Model/index.js +4 -4
  387. package/libs/PanoMeasurePlugin/Model/line.js +8 -8
  388. package/libs/PanoMeasurePlugin/Model/polyline.js +25 -24
  389. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +2 -2
  390. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +2 -1
  391. package/libs/PanoMeasurePlugin/Modules/GuideController.js +21 -20
  392. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +14 -10
  393. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +6 -4
  394. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -1
  395. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
  396. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +3 -3
  397. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +15 -12
  398. package/libs/PanoMeasurePlugin/index.js +14 -15
  399. package/libs/PanoMeasurePlugin/typings/index.js +1 -3
  400. package/libs/PanoRulerPlugin/Plugin.js +54 -54
  401. package/libs/PanoRulerPlugin/index.js +3 -4
  402. package/libs/PanoRulerProPlugin/Controller.js +14 -15
  403. package/libs/PanoRulerProPlugin/RulerItem.js +134 -45
  404. package/libs/PanoRulerProPlugin/RulerItems.js +49 -40
  405. package/libs/PanoRulerProPlugin/index.js +4 -5
  406. package/libs/PanoSpatialTagPlugin/Components/origins.js +47 -8
  407. package/libs/PanoSpatialTagPlugin/Components/tag.js +79 -3
  408. package/libs/PanoSpatialTagPlugin/Plugin.js +5 -7
  409. package/libs/PanoSpatialTagPlugin/index.js +4 -7
  410. package/libs/PanoTagPlugin/Components/Common/Arrow.js +45 -20
  411. package/libs/PanoTagPlugin/Components/Common/Audio.js +46 -8
  412. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +218 -54
  413. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +64 -11
  414. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +50 -27
  415. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +151 -26
  416. package/libs/PanoTagPlugin/Components/Common/Media.js +222 -89
  417. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +171 -22
  418. package/libs/PanoTagPlugin/Components/Common/Shadow.js +100 -28
  419. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +90 -11
  420. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +66 -13
  421. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +69 -27
  422. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +87 -13
  423. package/libs/PanoTagPlugin/Components/Common/TextItem.js +29 -6
  424. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +99 -14
  425. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +169 -44
  426. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +31 -6
  427. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +11 -4
  428. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +90 -35
  429. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +33 -7
  430. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +174 -35
  431. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +76 -24
  432. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +87 -14
  433. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +84 -17
  434. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +23 -6
  435. package/libs/PanoTagPlugin/Components/Tag/index.js +265 -41
  436. package/libs/PanoTagPlugin/Components/TagContainer.js +111 -58
  437. package/libs/PanoTagPlugin/Components/TagItem.js +247 -71
  438. package/libs/PanoTagPlugin/controller/TagCache.js +21 -19
  439. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  440. package/libs/PanoTagPlugin/controller/TagComputer.js +45 -18
  441. package/libs/PanoTagPlugin/controller/TagRender.js +46 -15
  442. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
  443. package/libs/PanoTagPlugin/controller/TagUtil.js +25 -9
  444. package/libs/PanoTagPlugin/controller/index.js +95 -33
  445. package/libs/PanoTagPlugin/index.js +18 -19
  446. package/libs/PanoTagPlugin/tag.config.js +4 -0
  447. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
  448. package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -0
  449. package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +7 -7
  450. package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +4 -0
  451. package/libs/PanoTagPlugin/utils/tagPosition.js +1 -1
  452. package/libs/PanoVideoPlugin/Controller.js +53 -39
  453. package/libs/PanoVideoPlugin/VideoMeshController.js +89 -43
  454. package/libs/PanoVideoPlugin/index.js +6 -7
  455. package/libs/_commonjsHelpers.js +4 -0
  456. package/libs/base/BasePlugin.js +23 -15
  457. package/libs/base/BasePluginWithData.js +2 -2
  458. package/libs/components/PaintBrush/Controller.js +15 -4
  459. package/libs/components/PaintBrush/Subscribe.js +37 -0
  460. package/libs/components/PaintBrush/index.js +17 -4
  461. package/libs/components/PaintBrush/tween.js +2 -2
  462. package/libs/components/index.js +1 -1
  463. package/libs/floorplan/Components/BaseImage.js +24 -6
  464. package/libs/floorplan/Components/Camera.js +73 -27
  465. package/libs/floorplan/Components/Compass.js +20 -3
  466. package/libs/floorplan/Components/CurrentFloor.js +189 -50
  467. package/libs/floorplan/Components/Main.js +202 -54
  468. package/libs/floorplan/Components/Normalmage.js +5 -2
  469. package/libs/floorplan/Components/RoomHighlight/Room.js +38 -5
  470. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +105 -58
  471. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +91 -18
  472. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +106 -37
  473. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +42 -13
  474. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +15 -3
  475. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +40 -3
  476. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -3
  477. package/libs/floorplan/Components/RuleLabels/RuleItem.js +125 -51
  478. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +80 -15
  479. package/libs/floorplan/Components/SvgImage.js +18 -6
  480. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +117 -75
  481. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -6
  482. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +96 -53
  483. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -6
  484. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +43 -15
  485. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +83 -22
  486. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +61 -39
  487. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +128 -33
  488. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +39 -36
  489. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -6
  490. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +83 -63
  491. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -6
  492. package/libs/floorplan/index.js +1 -3
  493. package/libs/floorplan/typings/floorplanServerData.js +80 -80
  494. package/libs/index.js +138 -127
  495. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +29 -1
  496. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +10 -1
  497. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -1
  498. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +5 -2
  499. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +9 -8
  500. package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -0
  501. package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -1
  502. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +4 -1
  503. package/libs/shared-utils/Object3DHelper/index.js +15 -0
  504. package/libs/shared-utils/Subscribe.js +38 -1
  505. package/libs/shared-utils/animationFrame/BetterTween.d.ts +3 -2
  506. package/libs/shared-utils/animationFrame/BetterTween.js +19 -12
  507. package/libs/shared-utils/animationFrame/index.d.ts +1 -1
  508. package/libs/shared-utils/animationFrame/index.js +14 -14
  509. package/libs/shared-utils/animationFrame/tween.d.ts +32 -23
  510. package/libs/shared-utils/animationFrame/tween.js +15 -15
  511. package/libs/shared-utils/audio.js +9 -9
  512. package/libs/shared-utils/changeModelCanvasOpacity.js +1 -1
  513. package/libs/shared-utils/createCanvasTextTexture.js +3 -3
  514. package/libs/shared-utils/five/changeMode.d.ts +2 -4
  515. package/libs/shared-utils/five/changeMode.js +37 -28
  516. package/libs/shared-utils/index.js +15 -15
  517. package/libs/shared-utils/log.js +2 -2
  518. package/libs/shared-utils/math/Interval.js +2 -0
  519. package/libs/shared-utils/math/Rectangle.js +2 -0
  520. package/libs/shared-utils/svelte/resizeObserver.d.ts +2 -10
  521. package/libs/shared-utils/svelte/resizeObserverGlobal.d.ts +10 -0
  522. package/libs/shared-utils/three/FivePointSelector.js +1 -1
  523. package/libs/shared-utils/three/Magnifier.js +10 -7
  524. package/libs/shared-utils/three/PointDomHelper.js +11 -10
  525. package/libs/shared-utils/three/index.js +1 -2
  526. package/libs/shared-utils/three/loadTexture.js +10 -10
  527. package/libs/shared-utils/threex/domevents/index.js +2 -2
  528. package/libs/vendor/@tweenjs/tween/dist/tween.esm.js.js +403 -0
  529. package/libs/vendor/classnames/index.js +47 -0
  530. package/libs/vendor/easy-reactive/main.js +3 -0
  531. package/libs/vendor/{simply-reactive → easy-reactive}/src/simply-reactive.js +8 -8
  532. package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/object.js +1 -1
  533. package/libs/vendor/gl-vec2/add.js +7 -0
  534. package/libs/vendor/gl-vec2/dot.js +7 -0
  535. package/libs/vendor/gl-vec2/normalize.js +8 -0
  536. package/libs/vendor/gl-vec2/set.js +7 -0
  537. package/libs/vendor/gl-vec2/subtract.js +7 -0
  538. package/libs/vendor/lodash.clonedeep/index.js +457 -0
  539. package/libs/vendor/lodash.get/index.js +236 -0
  540. package/libs/vendor/lodash.isequal/index.js +489 -0
  541. package/libs/vendor/object-assign-deep/objectAssignDeep.js +62 -0
  542. package/libs/vendor/polyline-miter-util/index.js +18 -0
  543. package/libs/vendor/polyline-normals/index.js +28 -0
  544. package/libs/vendor/resize-observer-polyfill/dist/ResizeObserver.es.js +155 -134
  545. package/libs/vendor/svelte/easing/index.js +4 -5
  546. package/libs/vendor/svelte/index.js +1 -1
  547. package/libs/vendor/svelte/internal/index.js +412 -388
  548. package/libs/vendor/svelte/store/index.js +6 -6
  549. package/libs/vendor/svelte/transition/index.js +23 -20
  550. package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +41 -3
  551. package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +338 -71
  552. package/libs/vendor/svelte-carousel/src/components/Carousel/createCarousel.js +7 -1
  553. package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +19 -3
  554. package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +30 -7
  555. package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +15 -3
  556. package/libs/vendor/svelte-carousel/src/utils/clones.js +1 -0
  557. package/libs/vendor/svelte-carousel/src/utils/lazy.js +3 -0
  558. package/package.json +11 -13
  559. package/dist/GuideLinePlugin/utils/getArrowMaterial.d.ts +0 -4
  560. package/libs/vendor/simply-reactive/main.js +0 -3
  561. /package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/subscription.js +0 -0
  562. /package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/watcher.js +0 -0
@@ -3,9 +3,13 @@ const o = [];
3
3
  function c(r = new e.Vector3(1, 1, 1), a = 0) {
4
4
  const n = new e.SphereGeometry(0.02, 16, 16), t = [
5
5
  new e.MeshBasicMaterial({ color: 16776960 }),
6
+ // 黄
6
7
  new e.MeshBasicMaterial({ color: 16711935 }),
8
+ // 粉
7
9
  new e.MeshBasicMaterial({ color: 16711680 }),
10
+ // 红
8
11
  new e.MeshBasicMaterial({ color: 65535 })
12
+ // 蓝
9
13
  ][a], s = new e.Mesh(n, t);
10
14
  return t.depthTest = !1, t.transparent = !0, t.opacity = 0.6, t.side = e.DoubleSide, s.position.copy(r), o.push(s), s;
11
15
  }
@@ -5,3 +5,9 @@ export declare function updateGuideLineModeItemByData(options: {
5
5
  data: PluginType.GuideLineItem;
6
6
  mode: PluginType.GuideLineModeItemMode;
7
7
  }): void;
8
+ /**
9
+ * 筛选出给定数组中,相邻元素不能重复的元素组成的新数组
10
+ * @param array 要筛选的数组
11
+ * @returns 筛选后的新数组
12
+ */
13
+ export declare function filterAdjacentDistinct<T>(array: T[]): T[];
@@ -1,12 +1,28 @@
1
1
  import "three";
2
- import "polyline-normals";
2
+ import "../../vendor/polyline-miter-util/index.js";
3
3
  import "@realsee/five";
4
4
  import "hammerjs";
5
- import "@tweenjs/tween.js";
5
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
6
6
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
7
7
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
8
- import "../../shared-utils/animationFrame/BetterTween.js";
9
8
  import "../../shared-utils/three/loadTexture.js";
9
+ import "../../vendor/object-assign-deep/objectAssignDeep.js";
10
+ import "@realsee/five/gltf-loader";
11
+ import "../../PanoTagPlugin/utils/device.js";
12
+ import "../../shared-utils/threex/domevents/index.js";
13
+ import "animejs";
14
+ import "../../PanoTagPlugin/utils/constants.js";
15
+ import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
16
+ import "../../vendor/lodash.get/index.js";
17
+ import "../../vendor/lodash.clonedeep/index.js";
18
+ import "../../vendor/lodash.isequal/index.js";
19
+ import "../../vendor/classnames/index.js";
20
+ import "../../shared-utils/three/GLTFLoader.js";
21
+ import "../../vendor/gl-vec2/add.js";
22
+ import "../../vendor/gl-vec2/set.js";
23
+ import "../../vendor/gl-vec2/normalize.js";
24
+ import "../../vendor/gl-vec2/subtract.js";
25
+ import "../../vendor/gl-vec2/dot.js";
10
26
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
11
27
  import "three/examples/jsm/renderers/CSS3DRenderer";
12
28
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -19,14 +35,18 @@ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
19
35
  import "../../shared-utils/three/centerPoint.js";
20
36
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
21
37
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
22
- import "../../shared-utils/animationFrame/index.js";
23
- function k(o) {
24
- const t = o.data, m = o.item, r = o.mode === "panorama" ? t.panorama_style : t.model_style;
25
- if (!r)
38
+ import "../../_commonjsHelpers.js";
39
+ function T(o) {
40
+ const t = o.data, r = o.item, i = o.mode === "panorama" ? t.panorama_style : t.model_style;
41
+ if (!i)
26
42
  return;
27
- const e = t.path, p = r, i = r;
28
- t.path ? m.setGeometryByPath(e, p) : t.pano_group && m.setGeometryByPanoGroup(t.pano_group, p), m.setMartial(i);
43
+ const p = t.path, m = i, e = i;
44
+ t.path ? r.setGeometryByPath(p, m) : t.pano_group && r.setGeometryByPanoGroup(t.pano_group, m), r.setMartial(e);
45
+ }
46
+ function U(o) {
47
+ return o.length === 0 ? [] : o.filter((t, r) => t !== o[r - 1]);
29
48
  }
30
49
  export {
31
- k as updateGuideLineModeItemByData
50
+ U as filterAdjacentDistinct,
51
+ T as updateGuideLineModeItemByData
32
52
  };
@@ -10,16 +10,16 @@ var H = (i, t, e) => t in i ? ae(i, t, { enumerable: !0, configurable: !0, writa
10
10
  me.call(t, e) && H(i, e, t[e]);
11
11
  return i;
12
12
  }, y = (i, t) => ce(i, le(t));
13
- import { SvelteComponent as fe, init as ue, safe_not_equal as pe, append_styles as he, element as _e, attr as be, add_render_callback as Ie, set_style as W, insert as v, add_resize_listener as ge, update_keyed_each as ke, check_outros as Z, transition_in as w, transition_out as z, detach as T, beforeUpdate as ye, onMount as Pe, onDestroy as we, empty as A, group_outros as G, outro_and_destroy_block as Le, create_component as Me, mount_component as ze, destroy_component as Ce } from "../vendor/svelte/internal/index.js";
13
+ import { SvelteComponent as fe, init as ue, safe_not_equal as pe, append_styles as he, element as _e, attr as be, add_render_callback as Ie, set_style as W, insert as x, add_resize_listener as ge, update_keyed_each as ke, check_outros as Z, transition_in as w, transition_out as z, detach as v, beforeUpdate as ye, onMount as Pe, onDestroy as we, empty as A, group_outros as G, outro_and_destroy_block as Le, create_component as Me, mount_component as ze, destroy_component as Ce } from "../vendor/svelte/internal/index.js";
14
14
  import { Five as P } from "@realsee/five";
15
15
  import * as Ee from "three";
16
16
  import Fe from "./ItemLabelItem.js";
17
17
  import { debounce as Oe } from "../shared-utils/debounce.js";
18
18
  import { isImpacted as B } from "./utils/isImpacted.js";
19
- import { getStrokeLength as xe } from "./utils/getStrokeLength.js";
20
- import { getLabelTransform as Ve } from "./utils/getLabelTransform.js";
19
+ import { getStrokeLength as Ve } from "./utils/getStrokeLength.js";
20
+ import { getLabelTransform as xe } from "./utils/getLabelTransform.js";
21
21
  import { transform2RenderData as N } from "./utils/transform2RenderData.js";
22
- import "classnames";
22
+ import "../vendor/classnames/index.js";
23
23
  import "./typings.js";
24
24
  function ve(i) {
25
25
  he(i, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
@@ -32,10 +32,22 @@ function X(i) {
32
32
  let t, e;
33
33
  return t = new Fe({
34
34
  props: {
35
- itemLabel: i[30],
36
- hooks: i[0],
37
- anchorEnabled: i[2],
38
- onIconClick: i[6]
35
+ itemLabel: (
36
+ /*itemLabelItem*/
37
+ i[30]
38
+ ),
39
+ hooks: (
40
+ /*hooks*/
41
+ i[0]
42
+ ),
43
+ anchorEnabled: (
44
+ /*anchorEnabled*/
45
+ i[2]
46
+ ),
47
+ onIconClick: (
48
+ /*onIconClick*/
49
+ i[6]
50
+ )
39
51
  }
40
52
  }), {
41
53
  c() {
@@ -46,7 +58,13 @@ function X(i) {
46
58
  },
47
59
  p(r, f) {
48
60
  const o = {};
49
- f[0] & 2 && (o.itemLabel = r[30]), f[0] & 1 && (o.hooks = r[0]), f[0] & 4 && (o.anchorEnabled = r[2]), t.$set(o);
61
+ f[0] & /*renderItemLabels*/
62
+ 2 && (o.itemLabel = /*itemLabelItem*/
63
+ r[30]), f[0] & /*hooks*/
64
+ 1 && (o.hooks = /*hooks*/
65
+ r[0]), f[0] & /*anchorEnabled*/
66
+ 4 && (o.anchorEnabled = /*anchorEnabled*/
67
+ r[2]), t.$set(o);
50
68
  },
51
69
  i(r) {
52
70
  e || (w(t.$$.fragment, r), e = !0);
@@ -60,7 +78,10 @@ function X(i) {
60
78
  };
61
79
  }
62
80
  function Y(i, t) {
63
- let e, r, f, o = t[30].visible && X(t);
81
+ let e, r, f, o = (
82
+ /*itemLabelItem*/
83
+ t[30].visible && X(t)
84
+ );
64
85
  return {
65
86
  key: i,
66
87
  first: null,
@@ -68,10 +89,12 @@ function Y(i, t) {
68
89
  e = A(), o && o.c(), r = A(), this.first = e;
69
90
  },
70
91
  m(d, h) {
71
- v(d, e, h), o && o.m(d, h), v(d, r, h), f = !0;
92
+ x(d, e, h), o && o.m(d, h), x(d, r, h), f = !0;
72
93
  },
73
94
  p(d, h) {
74
- t = d, t[30].visible ? o ? (o.p(t, h), h[0] & 2 && w(o, 1)) : (o = X(t), o.c(), w(o, 1), o.m(r.parentNode, r)) : o && (G(), z(o, 1, 1, () => {
95
+ t = d, /*itemLabelItem*/
96
+ t[30].visible ? o ? (o.p(t, h), h[0] & /*renderItemLabels*/
97
+ 2 && w(o, 1)) : (o = X(t), o.c(), w(o, 1), o.m(r.parentNode, r)) : o && (G(), z(o, 1, 1, () => {
75
98
  o = null;
76
99
  }), Z());
77
100
  },
@@ -82,13 +105,19 @@ function Y(i, t) {
82
105
  z(o), f = !1;
83
106
  },
84
107
  d(d) {
85
- d && T(e), o && o.d(d), d && T(r);
108
+ d && v(e), o && o.d(d), d && v(r);
86
109
  }
87
110
  };
88
111
  }
89
112
  function Te(i) {
90
- let t, e = [], r = /* @__PURE__ */ new Map(), f, o, d = i[1];
91
- const h = (c) => c[30].id;
113
+ let t, e = [], r = /* @__PURE__ */ new Map(), f, o, d = (
114
+ /*renderItemLabels*/
115
+ i[1]
116
+ );
117
+ const h = (c) => (
118
+ /*itemLabelItem*/
119
+ c[30].id
120
+ );
92
121
  for (let c = 0; c < d.length; c += 1) {
93
122
  let a = q(i, d, c), _ = h(a);
94
123
  r.set(_, e[c] = Y(_, a));
@@ -98,16 +127,36 @@ function Te(i) {
98
127
  t = _e("div");
99
128
  for (let c = 0; c < e.length; c += 1)
100
129
  e[c].c();
101
- be(t, "class", "item-labels-container svelte-gk8s47"), Ie(() => i[12].call(t)), W(t, "opacity", i[5] ? 1 : 0);
130
+ be(t, "class", "item-labels-container svelte-gk8s47"), Ie(() => (
131
+ /*div_elementresize_handler*/
132
+ i[12].call(t)
133
+ )), W(
134
+ t,
135
+ "opacity",
136
+ /*itemsVisible*/
137
+ i[5] ? 1 : 0
138
+ );
102
139
  },
103
140
  m(c, a) {
104
- v(c, t, a);
141
+ x(c, t, a);
105
142
  for (let _ = 0; _ < e.length; _ += 1)
106
- e[_].m(t, null);
107
- f = ge(t, i[12].bind(t)), o = !0;
143
+ e[_] && e[_].m(t, null);
144
+ f = ge(
145
+ t,
146
+ /*div_elementresize_handler*/
147
+ i[12].bind(t)
148
+ ), o = !0;
108
149
  },
109
150
  p(c, a) {
110
- a[0] & 71 && (d = c[1], G(), e = ke(e, a, h, 1, c, d, r, t, Le, Y, null, q), Z()), a[0] & 32 && W(t, "opacity", c[5] ? 1 : 0);
151
+ a[0] & /*renderItemLabels, hooks, anchorEnabled, onIconClick*/
152
+ 71 && (d = /*renderItemLabels*/
153
+ c[1], G(), e = ke(e, a, h, 1, c, d, r, t, Le, Y, null, q), Z()), a[0] & /*itemsVisible*/
154
+ 32 && W(
155
+ t,
156
+ "opacity",
157
+ /*itemsVisible*/
158
+ c[5] ? 1 : 0
159
+ );
111
160
  },
112
161
  i(c) {
113
162
  if (!o) {
@@ -122,7 +171,7 @@ function Te(i) {
122
171
  o = !1;
123
172
  },
124
173
  d(c) {
125
- c && T(t);
174
+ c && v(t);
126
175
  for (let a = 0; a < e.length; a += 1)
127
176
  e[a].d();
128
177
  f();
@@ -132,13 +181,13 @@ function Te(i) {
132
181
  let De = 11;
133
182
  function Ue(i, t, e) {
134
183
  const { Raycaster: r, Vector3: f } = Ee;
135
- let { five: o } = t, { modelOcclusionEnable: d } = t, { itemLabels: h } = t, { hooks: c } = t, { displayStrategyType: a } = t, { maxVisibleDistance: _ } = t, C = null, g = null, J = (o == null ? void 0 : o.currentMode) === P.Mode.Panorama, E, F, D = [], O = !0;
184
+ let { five: o } = t, { modelOcclusionEnable: d } = t, { itemLabels: h } = t, { hooks: c } = t, { displayStrategyType: a } = t, { maxVisibleDistance: _ } = t, C = null, g = null, J = (o == null ? void 0 : o.currentMode) === P.Mode.Panorama, E, F, T = [], O = !0;
136
185
  const K = (s, u) => {
137
186
  const p = s.camera.position.clone(), m = new f(u.modelPosition[0], u.modelPosition[1], u.modelPosition[2]), n = m.distanceTo(p);
138
187
  return _ !== void 0 && s.state.mode === P.Mode.Panorama && n > _ ? !1 : B(s, m.clone().sub(p).normalize(), p, n);
139
188
  }, Q = (s) => {
140
- const { camera: u, model: p } = o, { x: m, y: n, z: l } = s.clone().project(u), I = (m + 1) / 2, b = (2 - (n + 1)) / 2, V = Math.abs(l) < 1 && [I, b].every((S) => S < 1 && S >= 0);
141
- return Boolean(V);
189
+ const { camera: u, model: p } = o, { x: m, y: n, z: l } = s.clone().project(u), I = (m + 1) / 2, b = (2 - (n + 1)) / 2;
190
+ return !!(Math.abs(l) < 1 && [I, b].every((S) => S < 1 && S >= 0));
142
191
  }, $ = (s, u) => {
143
192
  const p = new f(u.modelPosition[0], u.modelPosition[1], u.modelPosition[2]), m = s.project2d(p), n = m == null ? void 0 : m.x, l = m == null ? void 0 : m.y;
144
193
  return [n, l];
@@ -148,14 +197,14 @@ function Ue(i, t, e) {
148
197
  return y(k({}, n), { visible: !1 });
149
198
  const l = $(s, n);
150
199
  n.name.length * De;
151
- const I = xe(n.modelPosition[1], a), b = s.currentMode === P.Mode.Panorama ? Q(new f(n.position[0], n.position[1], n.position[2])) : !0, x = d ? K(s, n) : !1, M = b && !x;
200
+ const I = Ve(n.modelPosition[1], a), b = s.currentMode === P.Mode.Panorama ? Q(new f(n.position[0], n.position[1], n.position[2])) : !0, V = d ? K(s, n) : !1, M = b && !V;
152
201
  if (!M)
153
202
  return y(k({}, n), { visible: M });
154
- D.push(l);
155
- const V = Ve(l);
203
+ T.push(l);
204
+ const R = xe(l);
156
205
  return y(k({}, n), {
157
206
  visible: M,
158
- transform: V,
207
+ transform: R,
159
208
  strokeLength: I
160
209
  });
161
210
  }), m = p.filter(({ visible: n }) => n).map((n) => ({
@@ -167,18 +216,18 @@ function Ue(i, t, e) {
167
216
  return l !== void 0 ? y(k({}, n), { zIndex: l * 10 }) : n;
168
217
  });
169
218
  }, L = () => {
170
- D = [], e(1, g = ee(o, g));
171
- }, U = () => {
219
+ T = [], e(1, g = ee(o, g));
220
+ }, D = () => {
172
221
  e(5, O = !1), te();
173
222
  }, te = Oe(
174
223
  () => {
175
224
  e(5, O = !0), L();
176
225
  },
177
226
  300
178
- ), R = () => {
227
+ ), U = () => {
179
228
  o.once("renderFrame", L);
180
229
  }, oe = () => {
181
- window.addEventListener("resize", R, !1);
230
+ window.addEventListener("resize", U, !1);
182
231
  }, ne = () => {
183
232
  C !== h && (e(1, g = N(h)), C = h, L());
184
233
  }, se = (s, u) => {
@@ -221,9 +270,9 @@ function Ue(i, t, e) {
221
270
  ye(() => {
222
271
  ne();
223
272
  }), Pe(() => {
224
- e(1, g = N(h)), C = h, L(), oe(), o.on("cameraUpdate", U);
273
+ e(1, g = N(h)), C = h, L(), oe(), o.on("cameraUpdate", D);
225
274
  }), we(() => {
226
- o.off("cameraUpdate", U), window.removeEventListener("resize", R, !1);
275
+ o.off("cameraUpdate", D), window.removeEventListener("resize", U, !1);
227
276
  });
228
277
  function re() {
229
278
  E = this.clientWidth, F = this.clientHeight, e(3, E), e(4, F);
@@ -1,12 +1,22 @@
1
1
  import { SvelteComponent as B, init as x, safe_not_equal as F, append_styles as N, element as w, space as z, attr as c, null_to_empty as p, set_style as _, insert as q, append as v, listen as j, noop as I, detach as y, binding_callbacks as S, text as L, set_data as C } from "../vendor/svelte/internal/index.js";
2
- import k from "classnames";
2
+ import { classnames as k } from "../vendor/classnames/index.js";
3
3
  function A(l) {
4
4
  N(l, "svelte-gduhqw", `.item-label-item.svelte-gduhqw.svelte-gduhqw{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-gduhqw-fadeIn .3s ease-in}.item-label-item.fold.svelte-gduhqw>.item-label-item__text-wrap.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw:after{visibility:visible}.item-label-item__text-wrap.svelte-gduhqw.svelte-gduhqw{height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-gduhqw.svelte-gduhqw{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-gduhqw.svelte-gduhqw{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-gduhqw.svelte-gduhqw{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-gduhqw.svelte-gduhqw{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-gduhqw.svelte-gduhqw{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-gduhqw.svelte-gduhqw:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;background-image:url("//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ");background-position:center;background-size:contain;transform:translate(-0.65625rem, 50%)}@keyframes svelte-gduhqw-fadeIn{from{opacity:0
5
5
  }to{opacity:1
6
6
  }}`);
7
7
  }
8
8
  function D(l) {
9
- let e, t, n, s = (l[0].code || l[0].id) + "", h, o, m, r = l[0].name + "", g, a = l[0].icon && E(l);
9
+ let e, t, n, s = (
10
+ /*itemLabel*/
11
+ (l[0].code || /*itemLabel*/
12
+ l[0].id) + ""
13
+ ), h, o, m, r = (
14
+ /*itemLabel*/
15
+ l[0].name + ""
16
+ ), g, a = (
17
+ /*itemLabel*/
18
+ l[0].icon && E(l)
19
+ );
10
20
  return {
11
21
  c() {
12
22
  a && a.c(), e = z(), t = w("div"), n = w("span"), h = L(s), o = z(), m = w("span"), g = L(r), c(n, "class", "item-model svelte-gduhqw"), c(m, "class", "item-name svelte-gduhqw"), c(t, "class", "item-label-text svelte-gduhqw");
@@ -15,7 +25,13 @@ function D(l) {
15
25
  a && a.m(i, b), q(i, e, b), q(i, t, b), v(t, n), v(n, h), v(t, o), v(t, m), v(m, g);
16
26
  },
17
27
  p(i, b) {
18
- i[0].icon ? a ? a.p(i, b) : (a = E(i), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), b & 1 && s !== (s = (i[0].code || i[0].id) + "") && C(h, s), b & 1 && r !== (r = i[0].name + "") && C(g, r);
28
+ /*itemLabel*/
29
+ i[0].icon ? a ? a.p(i, b) : (a = E(i), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), b & /*itemLabel*/
30
+ 1 && s !== (s = /*itemLabel*/
31
+ (i[0].code || /*itemLabel*/
32
+ i[0].id) + "") && C(h, s), b & /*itemLabel*/
33
+ 1 && r !== (r = /*itemLabel*/
34
+ i[0].name + "") && C(g, r);
19
35
  },
20
36
  d(i) {
21
37
  a && a.d(i), i && y(e), i && y(t);
@@ -41,13 +57,21 @@ function E(l) {
41
57
  let e, t, n, s, h;
42
58
  return {
43
59
  c() {
44
- e = w("div"), t = w("div"), c(t, "class", "icon svelte-gduhqw"), c(t, "style", n = `background-image: url(${l[0].icon})`), c(e, "class", "icon-wrap svelte-gduhqw");
60
+ e = w("div"), t = w("div"), c(t, "class", "icon svelte-gduhqw"), c(t, "style", n = `background-image: url(${/*itemLabel*/
61
+ l[0].icon})`), c(e, "class", "icon-wrap svelte-gduhqw");
45
62
  },
46
63
  m(o, m) {
47
- q(o, e, m), v(e, t), s || (h = j(e, "click", l[7]), s = !0);
64
+ q(o, e, m), v(e, t), s || (h = j(
65
+ e,
66
+ "click",
67
+ /*click_handler*/
68
+ l[7]
69
+ ), s = !0);
48
70
  },
49
71
  p(o, m) {
50
- m & 1 && n !== (n = `background-image: url(${o[0].icon})`) && c(t, "style", n);
72
+ m & /*itemLabel*/
73
+ 1 && n !== (n = `background-image: url(${/*itemLabel*/
74
+ o[0].icon})`) && c(t, "style", n);
51
75
  },
52
76
  d(o) {
53
77
  o && y(e), s = !1, h();
@@ -57,22 +81,74 @@ function E(l) {
57
81
  function H(l) {
58
82
  let e, t, n, s, h, o, m, r, g, a;
59
83
  function i(d, u) {
60
- return u & 1 && (n = null), n == null && (n = !!Boolean(typeof d[0].render == "function")), n ? G : D;
84
+ return u & /*itemLabel*/
85
+ 1 && (n = null), n == null && (n = typeof /*itemLabel*/
86
+ d[0].render == "function"), n ? G : D;
61
87
  }
62
88
  let b = i(l, -1), f = b(l);
63
89
  return {
64
90
  c() {
65
91
  e = w("div"), t = w("div"), f.c(), h = z(), o = w("div"), c(t, "class", s = p(k("item-label-item__text-wrap", {
66
- "item-label-item__custom": Boolean(typeof l[0].render == "function")
67
- })) + " svelte-gduhqw"), _(t, "bottom", `${l[0].strokeLength}px`), c(o, "class", m = p(k("item-label-item__bar", { anchor: l[1] })) + " svelte-gduhqw"), _(o, "height", `${l[0].strokeLength}px`), c(e, "class", r = p(k("item-label-item", { fold: l[0].isFold })) + " svelte-gduhqw"), _(e, "z-index", l[0].zIndex), _(e, "transform", l[0].transform);
92
+ "item-label-item__custom": typeof /*itemLabel*/
93
+ l[0].render == "function"
94
+ })) + " svelte-gduhqw"), _(t, "bottom", `${/*itemLabel*/
95
+ l[0].strokeLength}px`), c(o, "class", m = p(k("item-label-item__bar", { anchor: (
96
+ /*anchorEnabled*/
97
+ l[1]
98
+ ) })) + " svelte-gduhqw"), _(o, "height", `${/*itemLabel*/
99
+ l[0].strokeLength}px`), c(e, "class", r = p(k("item-label-item", { fold: (
100
+ /*itemLabel*/
101
+ l[0].isFold
102
+ ) })) + " svelte-gduhqw"), _(
103
+ e,
104
+ "z-index",
105
+ /*itemLabel*/
106
+ l[0].zIndex
107
+ ), _(
108
+ e,
109
+ "transform",
110
+ /*itemLabel*/
111
+ l[0].transform
112
+ );
68
113
  },
69
114
  m(d, u) {
70
- q(d, e, u), v(e, t), f.m(t, null), v(e, h), v(e, o), g || (a = j(t, "click", l[4]), g = !0);
115
+ q(d, e, u), v(e, t), f.m(t, null), v(e, h), v(e, o), g || (a = j(
116
+ t,
117
+ "click",
118
+ /*onClick*/
119
+ l[4]
120
+ ), g = !0);
71
121
  },
72
122
  p(d, [u]) {
73
- b === (b = i(d, u)) && f ? f.p(d, u) : (f.d(1), f = b(d), f && (f.c(), f.m(t, null))), u & 1 && s !== (s = p(k("item-label-item__text-wrap", {
74
- "item-label-item__custom": Boolean(typeof d[0].render == "function")
75
- })) + " svelte-gduhqw") && c(t, "class", s), u & 1 && _(t, "bottom", `${d[0].strokeLength}px`), u & 2 && m !== (m = p(k("item-label-item__bar", { anchor: d[1] })) + " svelte-gduhqw") && c(o, "class", m), u & 1 && _(o, "height", `${d[0].strokeLength}px`), u & 1 && r !== (r = p(k("item-label-item", { fold: d[0].isFold })) + " svelte-gduhqw") && c(e, "class", r), u & 1 && _(e, "z-index", d[0].zIndex), u & 1 && _(e, "transform", d[0].transform);
123
+ b === (b = i(d, u)) && f ? f.p(d, u) : (f.d(1), f = b(d), f && (f.c(), f.m(t, null))), u & /*itemLabel*/
124
+ 1 && s !== (s = p(k("item-label-item__text-wrap", {
125
+ "item-label-item__custom": typeof /*itemLabel*/
126
+ d[0].render == "function"
127
+ })) + " svelte-gduhqw") && c(t, "class", s), u & /*itemLabel*/
128
+ 1 && _(t, "bottom", `${/*itemLabel*/
129
+ d[0].strokeLength}px`), u & /*anchorEnabled*/
130
+ 2 && m !== (m = p(k("item-label-item__bar", { anchor: (
131
+ /*anchorEnabled*/
132
+ d[1]
133
+ ) })) + " svelte-gduhqw") && c(o, "class", m), u & /*itemLabel*/
134
+ 1 && _(o, "height", `${/*itemLabel*/
135
+ d[0].strokeLength}px`), u & /*itemLabel*/
136
+ 1 && r !== (r = p(k("item-label-item", { fold: (
137
+ /*itemLabel*/
138
+ d[0].isFold
139
+ ) })) + " svelte-gduhqw") && c(e, "class", r), u & /*itemLabel*/
140
+ 1 && _(
141
+ e,
142
+ "z-index",
143
+ /*itemLabel*/
144
+ d[0].zIndex
145
+ ), u & /*itemLabel*/
146
+ 1 && _(
147
+ e,
148
+ "transform",
149
+ /*itemLabel*/
150
+ d[0].transform
151
+ );
76
152
  },
77
153
  i: I,
78
154
  o: I,
@@ -96,7 +172,8 @@ function J(l, e, t) {
96
172
  return l.$$set = (i) => {
97
173
  "itemLabel" in i && t(0, n = i.itemLabel), "hooks" in i && t(5, s = i.hooks), "anchorEnabled" in i && t(1, h = i.anchorEnabled), "onIconClick" in i && t(2, o = i.onIconClick);
98
174
  }, l.$$.update = () => {
99
- if (l.$$.dirty & 9 && typeof n.render == "function" && r && r.children.length === 0) {
175
+ if (l.$$.dirty & /*itemLabel, customElement*/
176
+ 9 && typeof n.render == "function" && r && r.children.length === 0) {
100
177
  const i = n.render(n);
101
178
  i && r.appendChild(i);
102
179
  }
@@ -5,7 +5,7 @@ import { parseItemLabelPluginData as v } from "./utils/parseData.js";
5
5
  import "../vendor/svelte/internal/index.js";
6
6
  import "three";
7
7
  import "./ItemLabelItem.js";
8
- import "classnames";
8
+ import "../vendor/classnames/index.js";
9
9
  import "../shared-utils/debounce.js";
10
10
  import "./utils/isImpacted.js";
11
11
  import "./utils/getStrokeLength.js";
@@ -41,7 +41,7 @@ const P = void 0, O = (o, t) => {
41
41
  f(), e.container.remove();
42
42
  }, i = () => {
43
43
  var n;
44
- if (!!e.wrapper) {
44
+ if (e.wrapper) {
45
45
  if (!e.enabled || !e.fiveModeEnabled) {
46
46
  (n = e.app) == null || n.$destroy(), e.app = void 0;
47
47
  return;
@@ -1,25 +1,24 @@
1
- import "./Plugin.js";
2
- import { Plugin as f, Plugin as E } from "./Plugin.js";
3
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as b } from "./typings.js";
1
+ import { Plugin as m } from "./Plugin.js";
2
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as E } from "./typings.js";
4
3
  import "@realsee/five";
5
4
  import "./ItemLabelComponent.js";
6
5
  import "../vendor/svelte/internal/index.js";
7
6
  import "three";
8
7
  import "./ItemLabelItem.js";
9
- import "classnames";
8
+ import "../vendor/classnames/index.js";
10
9
  import "../shared-utils/debounce.js";
11
10
  import "./utils/isImpacted.js";
12
11
  import "./utils/getStrokeLength.js";
13
12
  import "./utils/getLabelTransform.js";
14
13
  import "./utils/transform2RenderData.js";
15
14
  import "./utils/parseData.js";
16
- const s = {
15
+ const I = {
17
16
  name: "ItemLabelPlugin",
18
17
  version: 0
19
18
  };
20
19
  export {
21
- b as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
22
- f as ItemLabelPlugin,
23
- E as default,
24
- s as itemLabelPluginServerParams
20
+ E as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
21
+ m as ItemLabelPlugin,
22
+ m as default,
23
+ I as itemLabelPluginServerParams
25
24
  };
@@ -1,47 +1,47 @@
1
- var M = (t, a, s) => new Promise((l, o) => {
2
- var m = (n) => {
1
+ var M = (t, a, s) => new Promise((m, o) => {
2
+ var f = (n) => {
3
3
  try {
4
4
  c(s.next(n));
5
- } catch (u) {
6
- o(u);
5
+ } catch (d) {
6
+ o(d);
7
7
  }
8
8
  }, i = (n) => {
9
9
  try {
10
10
  c(s.throw(n));
11
- } catch (u) {
12
- o(u);
11
+ } catch (d) {
12
+ o(d);
13
13
  }
14
- }, c = (n) => n.done ? l(n.value) : Promise.resolve(n.value).then(m, i);
14
+ }, c = (n) => n.done ? m(n.value) : Promise.resolve(n.value).then(f, i);
15
15
  c((s = s.apply(t, a)).next());
16
16
  });
17
17
  import * as h from "three";
18
- import { FBXLoader as E } from "three/examples/jsm/loaders/FBXLoader";
19
- import { bject3d2LocalMatrix as U } from "../shared-utils/object3d2LocalMatrix.js";
20
- import { transfromToMeshBasicMaterial as C } from "../shared-utils/three/transformToMeshBasicMaterial.js";
18
+ import { FBXLoader as C } from "three/examples/jsm/loaders/FBXLoader";
19
+ import { bject3d2LocalMatrix as D } from "../shared-utils/object3d2LocalMatrix.js";
20
+ import { transfromToMeshBasicMaterial as E } from "../shared-utils/three/transformToMeshBasicMaterial.js";
21
21
  const X = (t, a) => {
22
22
  var x;
23
- const s = a.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", l = (x = a.north_rad) != null ? x : void 0, o = {}, m = (e) => M(void 0, null, function* () {
23
+ const s = a.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", m = (x = a.north_rad) != null ? x : void 0, o = {}, f = (e) => M(void 0, null, function* () {
24
24
  var y;
25
- const r = (e == null ? void 0 : e.fbx_url) || s, d = (y = e == null ? void 0 : e.north_rad) != null ? y : l;
26
- if (typeof d != "number")
27
- throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
28
- const b = t.model.bounding, j = b.max.x - b.min.x, F = b.max.z - b.min.z, g = Math.max(j, F), f = yield new E().loadAsync(r);
29
- C(f, {
25
+ const r = (e == null ? void 0 : e.fbx_url) || s, b = (y = e == null ? void 0 : e.north_rad) != null ? y : m;
26
+ if (typeof b != "number")
27
+ throw new Error('"northRad"配置参数缺失:未配置指南针指向!');
28
+ const l = t.model.bounding, j = l.max.x - l.min.x, g = l.max.z - l.min.z, z = Math.max(j, g), u = yield new C().loadAsync(r);
29
+ E(u, {
30
30
  transparent: !0,
31
31
  side: h.DoubleSide,
32
32
  blending: h.AdditiveBlending
33
33
  });
34
- const z = [0, d - Math.PI / 2, 0], {
34
+ const B = [0, b - Math.PI / 2, 0], {
35
35
  model: {
36
36
  bounding: {
37
- max: { x: B, z: P },
38
- min: { x: R, y: p, z: w }
37
+ max: { x: P, z: R },
38
+ min: { x: w, y: p, z: U }
39
39
  }
40
40
  }
41
41
  } = t;
42
42
  o.yBase = p;
43
- const A = { x: (B + R) / 2, y: p - 1.6, z: (P + w) / 2 }, D = 45e-4 * g;
44
- return U(f, { position: A, rotation: z, scale: D }), o.object = f, !0;
43
+ const L = { x: (P + w) / 2, y: p - 1.6, z: (R + U) / 2 }, _ = 45e-4 * z;
44
+ return D(u, { position: L, rotation: B, scale: _ }), o.object = u, !0;
45
45
  }), i = ({ latitude: e }) => {
46
46
  if (!o.object)
47
47
  return;
@@ -53,11 +53,11 @@ const X = (t, a) => {
53
53
  const r = 0.6;
54
54
  if (e >= Math.PI / 4)
55
55
  return o.yBase - (r + 1.6);
56
- const d = e * (4 / Math.PI);
57
- return o.yBase - (r * d + 1.6);
56
+ const b = e * (4 / Math.PI);
57
+ return o.yBase - (r * b + 1.6);
58
58
  };
59
- return { load: m, disable: () => {
60
- !o.object || (t.scene.remove(o.object), t.needsRender = !0, t.off("cameraDirectionUpdate", i));
59
+ return { load: f, disable: () => {
60
+ o.object && (t.scene.remove(o.object), t.needsRender = !0, t.off("cameraDirectionUpdate", i));
61
61
  }, enable: () => {
62
62
  if (!o.object)
63
63
  return;
@@ -1,10 +1,9 @@
1
- import "./Plugin.js";
2
- import { ModelChassisCompassPlugin as t, ModelChassisCompassPlugin as C } from "./Plugin.js";
1
+ import { ModelChassisCompassPlugin as i } from "./Plugin.js";
3
2
  import "three";
4
3
  import "three/examples/jsm/loaders/FBXLoader";
5
4
  import "../shared-utils/object3d2LocalMatrix.js";
6
5
  import "../shared-utils/three/transformToMeshBasicMaterial.js";
7
6
  export {
8
- t as ModelChassisCompassPlugin,
9
- C as default
7
+ i as ModelChassisCompassPlugin,
8
+ i as default
10
9
  };