@realsee/dnalogel 2.1.2-alpha.0 → 2.1.2-alpha.10

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 (494) hide show
  1. package/README.md +3 -12
  2. package/dist/CSS3DRenderPlugin/index..js +88 -0
  3. package/dist/CSS3DRenderPlugin/index.cjs.js +1 -0
  4. package/dist/CameraMovementPlugin/index..js +11 -0
  5. package/dist/CameraMovementPlugin/index.cjs.js +1 -0
  6. package/dist/CruisePlugin/index..js +527 -0
  7. package/dist/CruisePlugin/index.cjs.js +1 -0
  8. package/dist/GuideLinePlugin/index..js +214 -0
  9. package/dist/GuideLinePlugin/index.cjs.js +1 -0
  10. package/dist/ItemLabelPlugin/index..js +508 -0
  11. package/dist/ItemLabelPlugin/index.cjs.js +10 -0
  12. package/dist/ModelChassisCompassPlugin/index..js +9 -0
  13. package/dist/ModelChassisCompassPlugin/index.cjs.js +1 -0
  14. package/dist/ModelEntryDoorGuidePlugin/index..js +9 -0
  15. package/dist/ModelEntryDoorGuidePlugin/index.cjs.js +1 -0
  16. package/dist/ModelItemLabelPlugin/index..js +334 -0
  17. package/dist/ModelItemLabelPlugin/index.cjs.js +10 -0
  18. package/dist/ModelRoomLabelPlugin/index..js +274 -0
  19. package/dist/ModelRoomLabelPlugin/index.cjs.js +1 -0
  20. package/dist/ModelTVVideoPlugin/index..js +12 -0
  21. package/dist/ModelTVVideoPlugin/index.cjs.js +1 -0
  22. package/dist/ModelViewPlugin/index..js +8 -0
  23. package/dist/ModelViewPlugin/index.cjs.js +1 -0
  24. package/dist/Object3DHelperPlugin/index..js +1414 -0
  25. package/dist/Object3DHelperPlugin/index.cjs.js +1 -0
  26. package/dist/PanoCompassPlugin/index..js +258 -0
  27. package/dist/PanoCompassPlugin/index.cjs.js +1 -0
  28. package/dist/PanoCursorRaycasterPlugin/index..js +63 -0
  29. package/dist/PanoCursorRaycasterPlugin/index.cjs.js +1 -0
  30. package/dist/PanoDoorLabelPlugin/index..js +340 -0
  31. package/dist/PanoDoorLabelPlugin/index.cjs.js +1 -0
  32. package/dist/PanoMeasurePlugin/index..js +15 -0
  33. package/dist/PanoMeasurePlugin/index.cjs.js +1 -0
  34. package/dist/PanoRulerPlugin/index..js +9 -0
  35. package/dist/PanoRulerPlugin/index.cjs.js +1 -0
  36. package/dist/PanoRulerProPlugin/index..js +395 -0
  37. package/dist/PanoRulerProPlugin/index.cjs.js +1 -0
  38. package/dist/PanoSpatialTagPlugin/index..js +15 -0
  39. package/dist/PanoSpatialTagPlugin/index.cjs.js +1 -0
  40. package/dist/PanoTagPlugin/index..js +4522 -0
  41. package/dist/PanoTagPlugin/index.cjs.js +17 -0
  42. package/dist/chunks/cjs/BasePlugin.57e5204f.cjs.js +1 -0
  43. package/dist/chunks/cjs/BasePluginWithData.0a28882d.cjs.js +1 -0
  44. package/dist/chunks/cjs/CSS3DRender.15349564.cjs.js +1 -0
  45. package/dist/chunks/cjs/CameraMovementPlugin.2b342576.cjs.js +1 -0
  46. package/dist/chunks/cjs/Plugin.5f616fb3.cjs.js +1 -0
  47. package/dist/chunks/cjs/Plugin.609da4aa.cjs.js +94 -0
  48. package/dist/chunks/cjs/Plugin.67936d0e.cjs.js +16 -0
  49. package/dist/chunks/cjs/Plugin.8a110c53.cjs.js +1 -0
  50. package/dist/chunks/cjs/Plugin.9971108a.cjs.js +1 -0
  51. package/dist/chunks/cjs/Plugin.fd42bf8a.cjs.js +1 -0
  52. package/dist/chunks/cjs/Subscribe.5398d5c6.cjs.js +1 -0
  53. package/dist/chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js +1 -0
  54. package/dist/chunks/cjs/correctFiveState.4c8472bd.cjs.js +1 -0
  55. package/dist/chunks/cjs/debounce.93dfb637.cjs.js +1 -0
  56. package/dist/chunks/cjs/equal.e9fcbd4e.cjs.js +1 -0
  57. package/dist/chunks/cjs/filter.cf9ebbb3.cjs.js +1 -0
  58. package/dist/chunks/cjs/formatData.81e95011.cjs.js +10 -0
  59. package/dist/chunks/cjs/index.30b7baeb.cjs.js +101 -0
  60. package/dist/chunks/cjs/index.686e84d1.cjs.js +290 -0
  61. package/dist/chunks/cjs/index.7d2010ce.cjs.js +1 -0
  62. package/dist/chunks/cjs/isNil.b3a58990.cjs.js +1 -0
  63. package/dist/chunks/cjs/planimetry.7fce816a.cjs.js +1 -0
  64. package/dist/chunks/cjs/throttle.86c209eb.cjs.js +1 -0
  65. package/dist/chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js +1 -0
  66. package/dist/chunks/cjs/uuid.29ed9c88.cjs.js +1 -0
  67. package/dist/chunks/es/BasePlugin.813e25f7.es.js +18 -0
  68. package/dist/chunks/es/BasePluginWithData.4bf4e649.es.js +6 -0
  69. package/dist/chunks/es/CSS3DRender.5652510e.es.js +393 -0
  70. package/dist/chunks/es/CameraMovementPlugin.4a7c3e46.es.js +120 -0
  71. package/dist/chunks/es/Plugin.26c2df05.es.js +106 -0
  72. package/dist/chunks/es/Plugin.435485ed.es.js +584 -0
  73. package/dist/chunks/es/Plugin.a98418f0.es.js +82 -0
  74. package/dist/chunks/es/Plugin.ae4ee6f8.es.js +82 -0
  75. package/dist/chunks/es/Plugin.dd11e0ad.es.js +180 -0
  76. package/dist/chunks/es/Plugin.f4cf895f.es.js +355 -0
  77. package/dist/chunks/es/Subscribe.c73e0f91.es.js +50 -0
  78. package/dist/chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js +1551 -0
  79. package/dist/chunks/es/correctFiveState.e7feab9f.es.js +66 -0
  80. package/dist/chunks/es/debounce.ef83f417.es.js +11 -0
  81. package/dist/chunks/es/equal.7db4a6f7.es.js +56 -0
  82. package/dist/chunks/es/filter.97ec06c4.es.js +12 -0
  83. package/dist/chunks/es/formatData.a2b39ef9.es.js +483 -0
  84. package/dist/chunks/es/index.a273f06e.es.js +532 -0
  85. package/dist/chunks/es/index.b8fdb59b.es.js +50 -0
  86. package/dist/chunks/es/index.f74f4851.es.js +1787 -0
  87. package/dist/chunks/es/isNil.212842d9.es.js +10 -0
  88. package/dist/chunks/es/planimetry.b0b4a28d.es.js +43 -0
  89. package/dist/chunks/es/throttle.db66bac3.es.js +11 -0
  90. package/dist/chunks/es/transfromToMeshBasicMaterial.849ee069.es.js +24 -0
  91. package/dist/chunks/es/uuid.676cb2c8.es.js +9 -0
  92. package/dist/components/PaintBrush/index..js +6 -0
  93. package/dist/components/PaintBrush/index.cjs.js +1 -0
  94. package/dist/components/index..js +7 -0
  95. package/dist/components/index.cjs.js +1 -0
  96. package/dist/floorplan/MapviewFloorplanPlugin/index..js +324 -0
  97. package/dist/floorplan/MapviewFloorplanPlugin/index.cjs.js +1 -0
  98. package/dist/floorplan/ModelFloorplanPlugin/index..js +320 -0
  99. package/dist/floorplan/ModelFloorplanPlugin/index.cjs.js +1 -0
  100. package/dist/floorplan/PanoFloorplanRadarPlugin/index..js +613 -0
  101. package/dist/floorplan/PanoFloorplanRadarPlugin/index.cjs.js +1 -0
  102. package/dist/floorplan/TopviewFloorplanPlugin/index..js +277 -0
  103. package/dist/floorplan/TopviewFloorplanPlugin/index.cjs.js +1 -0
  104. package/dist/index..js +530 -0
  105. package/dist/index.cjs.js +3 -543
  106. package/docs/classes/CruisePluginController.html +24 -24
  107. package/docs/classes/Magnifier.html +16 -16
  108. package/docs/classes/ModelRoomLabelController.html +11 -11
  109. package/docs/classes/Object3DHelperController.html +24 -24
  110. package/docs/classes/PaintBrush.html +15 -15
  111. package/docs/classes/PanoTagPluginController.html +39 -39
  112. package/docs/classes/Util.BetterTween.html +8 -8
  113. package/docs/classes/Util.FivePointSelector.html +12 -12
  114. package/docs/classes/Util.Interval.html +12 -12
  115. package/docs/classes/Util.Magnifier.html +17 -17
  116. package/docs/classes/Util.PointDomHelper.html +11 -11
  117. package/docs/classes/Util.PointHelper.html +11 -11
  118. package/docs/classes/Util.Rectangle.html +13 -13
  119. package/docs/enums/CameraMovementEffect.html +7 -7
  120. package/docs/enums/ContentType.html +12 -12
  121. package/docs/enums/DIRECTION.html +9 -9
  122. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  123. package/docs/enums/DimensionType.html +7 -7
  124. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  125. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  126. package/docs/enums/LinkType.html +7 -7
  127. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  128. package/docs/enums/PointType.html +7 -7
  129. package/docs/enums/Rotation.html +8 -8
  130. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  131. package/docs/functions/CameraMovementPlugin.html +4 -4
  132. package/docs/functions/CruisePlugin.html +4 -4
  133. package/docs/functions/GuideLinePlugin.html +5 -5
  134. package/docs/functions/ItemLabelPlugin.html +4 -4
  135. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  136. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  137. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  138. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  139. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  140. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  141. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  142. package/docs/functions/ModelViewPlugin.html +4 -4
  143. package/docs/functions/Object3DHelperPlugin.html +4 -4
  144. package/docs/functions/PanoCompassPlugin.html +4 -4
  145. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  146. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  147. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  148. package/docs/functions/PanoMeasurePlugin.html +4 -4
  149. package/docs/functions/PanoRulerPlugin.html +4 -4
  150. package/docs/functions/PanoRulerProPlugin.html +4 -4
  151. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  152. package/docs/functions/PanoTagPlugin.html +4 -4
  153. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  154. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  155. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  156. package/docs/functions/Util.getFrameTime.html +5 -5
  157. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  158. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  159. package/docs/functions/Util.isNil.html +5 -5
  160. package/docs/functions/Util.nextFrame.html +5 -5
  161. package/docs/functions/Util.notNil.html +5 -5
  162. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  163. package/docs/functions/Util.tweenProgress.html +5 -5
  164. package/docs/functions/pluginFlag.html +5 -5
  165. package/docs/index.html +6 -11
  166. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  167. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  168. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  169. package/docs/interfaces/ContentTypeMap.html +12 -12
  170. package/docs/interfaces/FloorplanBounding.html +8 -8
  171. package/docs/interfaces/FloorplanData.html +10 -10
  172. package/docs/interfaces/FloorplanEntrance.html +11 -11
  173. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  174. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  175. package/docs/interfaces/FloorplanFloorData.html +9 -9
  176. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  177. package/docs/interfaces/FloorplanObserver.html +9 -9
  178. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  179. package/docs/interfaces/FloorplanPosition.html +7 -7
  180. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  181. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  182. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  183. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  184. package/docs/interfaces/FloorplanServerData.html +7 -7
  185. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  186. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  187. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  188. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  189. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  190. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  191. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  192. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  193. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  194. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  195. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  196. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  197. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  198. package/docs/interfaces/LineJson.html +7 -7
  199. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  200. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  201. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  202. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  203. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  204. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  205. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  206. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  207. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  208. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  209. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  210. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  211. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  212. package/docs/interfaces/Object3DHelperState.html +8 -8
  213. package/docs/interfaces/OpenParameter.html +7 -7
  214. package/docs/interfaces/PaintBrushAction.html +12 -12
  215. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  216. package/docs/interfaces/PaintBrushState.html +10 -10
  217. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  218. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  219. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  220. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  221. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  222. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  223. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  224. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  225. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  226. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  227. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  228. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  229. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  230. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  231. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  232. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  233. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  234. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  235. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  236. package/docs/interfaces/Point.html +8 -8
  237. package/docs/interfaces/PointJson.html +8 -8
  238. package/docs/interfaces/Room.html +9 -9
  239. package/docs/interfaces/RoomInfo.html +7 -7
  240. package/docs/interfaces/RoomLabel.html +14 -14
  241. package/docs/interfaces/RoomRules.html +5 -5
  242. package/docs/interfaces/Rooms.html +5 -5
  243. package/docs/interfaces/Scissor.html +9 -9
  244. package/docs/interfaces/TagConfig.html +10 -10
  245. package/docs/interfaces/Tags.html +9 -9
  246. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  247. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  248. package/docs/modules/Util.html +5 -5
  249. package/docs/modules.html +4 -4
  250. package/docs/types/ArrayPosition.html +5 -5
  251. package/docs/types/CSS3DRenderExportType.html +5 -5
  252. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  253. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  254. package/docs/types/Color.html +5 -5
  255. package/docs/types/ContentTypeConfigKey.html +5 -5
  256. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  257. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  258. package/docs/types/Create3DElementReturnType.html +5 -5
  259. package/docs/types/CruisePluginExportType.html +5 -5
  260. package/docs/types/Direction-1.html +5 -5
  261. package/docs/types/Direction4.html +5 -5
  262. package/docs/types/FloorplanRuleLabels.html +5 -5
  263. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  264. package/docs/types/GuideLinePluginExportType.html +5 -5
  265. package/docs/types/HelperEventMap.html +5 -5
  266. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  267. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  268. package/docs/types/MediaData.html +5 -5
  269. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  270. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  271. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  272. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  273. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  274. package/docs/types/MoveArgs.html +5 -5
  275. package/docs/types/MoveOpts.html +5 -5
  276. package/docs/types/Object3DHelperEventMap.html +5 -5
  277. package/docs/types/ObjectFit.html +5 -5
  278. package/docs/types/PaintBrushEventMap.html +5 -5
  279. package/docs/types/PanoCompassPluginData.html +5 -5
  280. package/docs/types/PanoCompassPluginExportType.html +5 -5
  281. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  282. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  283. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  284. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  285. package/docs/types/PanoMeasureReturnType.html +5 -5
  286. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  287. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  288. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  289. package/docs/types/PlaneTag.html +5 -5
  290. package/docs/types/PointTag.html +5 -5
  291. package/docs/types/Position.html +5 -5
  292. package/docs/types/RotateArgs.html +5 -5
  293. package/docs/types/RotateOpts.html +5 -5
  294. package/docs/types/RuleLabelsKey.html +5 -5
  295. package/docs/types/RuleLabelsValue.html +5 -5
  296. package/docs/types/Tag.html +5 -5
  297. package/docs/types/Tag2D.html +5 -5
  298. package/docs/types/Tag3D.html +5 -5
  299. package/docs/types/TagId.html +5 -5
  300. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  301. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  302. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  303. package/docs/variables/PLUGIN.html +5 -5
  304. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  305. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  306. package/docs/variables/VERSION.html +5 -5
  307. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  308. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  309. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  310. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -5
  311. package/libs/CSS3DRenderPlugin/Controller.js +6 -7
  312. package/libs/CSS3DRenderPlugin/index.js +3 -4
  313. package/libs/CSS3DRenderPlugin/typing.js +1 -0
  314. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -3
  315. package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
  316. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -2
  317. package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
  318. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +16 -17
  319. package/libs/CameraMovementPlugin/index.js +3 -0
  320. package/libs/CruisePlugin/Controller.js +4 -4
  321. package/libs/CruisePlugin/index.js +3 -6
  322. package/libs/CruisePlugin/utils/linerValue.js +4 -4
  323. package/libs/GuideLinePlugin/Controller.js +3 -4
  324. package/libs/GuideLinePlugin/index.js +3 -4
  325. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
  326. package/libs/ItemLabelPlugin/ItemLabelComponent.js +34 -32
  327. package/libs/ItemLabelPlugin/Plugin.js +5 -6
  328. package/libs/ModelChassisCompassPlugin/Plugin.js +3 -4
  329. package/libs/ModelChassisCompassPlugin/index.js +2 -0
  330. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +22 -23
  331. package/libs/ModelEntryDoorGuidePlugin/index.js +2 -0
  332. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +4 -3
  333. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +5 -6
  334. package/libs/ModelItemLabelPlugin/events.type.js +1 -0
  335. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +11 -10
  336. package/libs/ModelRoomLabelPlugin/index.js +0 -1
  337. package/libs/ModelTVVideoPlugin/Plugin.js +1 -2
  338. package/libs/ModelTVVideoPlugin/index.js +2 -0
  339. package/libs/ModelViewPlugin/Plugin.js +1 -2
  340. package/libs/ModelViewPlugin/index.js +2 -0
  341. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +6 -7
  342. package/libs/Object3DHelperPlugin/index.js +1 -6
  343. package/libs/PanoCompassPlugin/index.js +3 -4
  344. package/libs/PanoCursorRaycasterPlugin/index.js +7 -8
  345. package/libs/PanoDoorLabelPlugin/index.js +1 -2
  346. package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -3
  347. package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
  348. package/libs/PanoMeasurePlugin/Controller/MixedController.js +17 -17
  349. package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -3
  350. package/libs/PanoMeasurePlugin/Controller/WatchController.js +9 -9
  351. package/libs/PanoMeasurePlugin/Controller/index.js +8 -8
  352. package/libs/PanoMeasurePlugin/Model/index.js +3 -3
  353. package/libs/PanoMeasurePlugin/Model/line.js +11 -11
  354. package/libs/PanoMeasurePlugin/Model/point.js +7 -7
  355. package/libs/PanoMeasurePlugin/Model/polyline.js +1 -1
  356. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
  357. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
  358. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
  359. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
  360. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
  361. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
  362. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
  363. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
  364. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
  365. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
  366. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +3 -4
  367. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +5 -5
  368. package/libs/PanoMeasurePlugin/index.js +3 -4
  369. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
  370. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
  371. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +2 -2
  372. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
  373. package/libs/PanoMeasurePlugin/utils/line.js +0 -1
  374. package/libs/PanoMeasurePlugin/utils/math.js +1 -2
  375. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
  376. package/libs/PanoRulerPlugin/Plugin.js +2 -3
  377. package/libs/PanoRulerPlugin/index.js +2 -0
  378. package/libs/PanoRulerPlugin/style.js +1 -1
  379. package/libs/PanoRulerProPlugin/Controller.js +15 -15
  380. package/libs/PanoRulerProPlugin/RulerItems.js +7 -4
  381. package/libs/PanoRulerProPlugin/index.js +3 -4
  382. package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
  383. package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
  384. package/libs/PanoSpatialTagPlugin/Plugin.js +2 -3
  385. package/libs/PanoSpatialTagPlugin/index.js +6 -0
  386. package/libs/PanoSpatialTagPlugin/typings.js +1 -0
  387. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -1
  388. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -1
  389. package/libs/PanoTagPlugin/Components/Common/Media.js +43 -36
  390. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +88 -78
  391. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -4
  392. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +3 -2
  393. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +30 -27
  394. package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
  395. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +20 -14
  396. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +114 -92
  397. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +3 -2
  398. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  399. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +71 -52
  400. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +62 -50
  401. package/libs/PanoTagPlugin/Components/Tag/index.js +92 -63
  402. package/libs/PanoTagPlugin/Components/TagContainer.js +108 -64
  403. package/libs/PanoTagPlugin/Components/TagWrapper.js +113 -75
  404. package/libs/PanoTagPlugin/controller/index.js +0 -1
  405. package/libs/PanoTagPlugin/index.js +3 -7
  406. package/libs/PanoTagPlugin/tag.config.js +1 -2
  407. package/libs/PanoTagPlugin/typings/controller.js +1 -0
  408. package/libs/PanoTagPlugin/typings/index.js +1 -0
  409. package/libs/PanoTagPlugin/utils/constants.js +1 -2
  410. package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
  411. package/libs/PanoTagPlugin/utils/index.js +1 -0
  412. package/libs/components/PaintBrush/Controller.js +3 -3
  413. package/libs/components/PaintBrush/style.js +1 -1
  414. package/libs/components/PaintBrush/tween.js +4 -4
  415. package/libs/components/index.js +2 -0
  416. package/libs/floorplan/Components/Camera.js +1 -1
  417. package/libs/floorplan/Components/CurrentFloor.js +51 -41
  418. package/libs/floorplan/Components/Main.js +41 -22
  419. package/libs/floorplan/Components/RoomHighlight/Room.js +3 -3
  420. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +3 -2
  421. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +37 -36
  422. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -1
  423. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +7 -7
  424. package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -4
  425. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +7 -7
  426. package/libs/floorplan/ModelFloorplanPlugin/index.js +2 -3
  427. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  428. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +6 -2
  429. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -65
  430. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +2 -2
  431. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +2 -3
  432. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -5
  433. package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -4
  434. package/libs/floorplan/index.js +6 -0
  435. package/libs/floorplan/typings/floorplanData.js +1 -0
  436. package/libs/floorplan/utils/correctFiveState.js +19 -19
  437. package/libs/floorplan/utils/formatData.js +16 -16
  438. package/libs/floorplan/utils/formatPosition.js +7 -7
  439. package/libs/index.js +344 -90
  440. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +2 -3
  441. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -3
  442. package/libs/shared-utils/Object3DHelper/Constants/color.js +0 -1
  443. package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -2
  444. package/libs/shared-utils/Object3DHelper/Helper/index.js +3 -0
  445. package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
  446. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
  447. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
  448. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
  449. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
  450. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
  451. package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
  452. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
  453. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
  454. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -1
  455. package/libs/shared-utils/animationFrame/index.js +13 -16
  456. package/libs/shared-utils/animationFrame/tween.js +0 -2
  457. package/libs/shared-utils/changeModelCanvasOpacity.js +1 -1
  458. package/libs/shared-utils/createCanvasTextTexture.js +6 -6
  459. package/libs/shared-utils/createLine/index.js +3 -3
  460. package/libs/shared-utils/debounce.js +5 -5
  461. package/libs/shared-utils/equal.js +16 -16
  462. package/libs/shared-utils/filter.js +1 -1
  463. package/libs/shared-utils/five/changeMode.js +14 -14
  464. package/libs/shared-utils/getPxmm.js +7 -8
  465. package/libs/shared-utils/index.js +33 -29
  466. package/libs/shared-utils/isTruelyObject.js +1 -1
  467. package/libs/shared-utils/math/index.js +1 -0
  468. package/libs/shared-utils/math/planimetry.js +1 -6
  469. package/libs/shared-utils/math/rad2Deg.js +3 -3
  470. package/libs/shared-utils/nearlyEqual.js +3 -3
  471. package/libs/shared-utils/noop.js +1 -1
  472. package/libs/shared-utils/object3d2LocalMatrix.js +6 -7
  473. package/libs/shared-utils/removeArrayItem.js +5 -5
  474. package/libs/shared-utils/tap.js +3 -3
  475. package/libs/shared-utils/three/index.js +6 -0
  476. package/libs/shared-utils/three/transformPositionToVector3.js +2 -2
  477. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +12 -12
  478. package/libs/shared-utils/throttle.js +2 -2
  479. package/libs/shared-utils/tinyEJSrender.js +7 -7
  480. package/libs/shared-utils/to.js +14 -15
  481. package/libs/shared-utils/uuid.js +0 -1
  482. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-changed-params.js +0 -0
  483. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-params.js +0 -0
  484. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/mount-swiper.js +0 -0
  485. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/params-list.js +0 -0
  486. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/update-swiper.js +0 -0
  487. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/utils.js +0 -0
  488. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper-slide.js +1 -1
  489. package/libs/vendor/swiper/svelte/swiper-svelte.js +3 -0
  490. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper.js +1 -1
  491. package/package.json +19 -17
  492. package/dist/index.es.js +0 -16650
  493. package/dist/index.js +0 -16650
  494. package/dist/index.umd.js +0 -556
@@ -0,0 +1,395 @@
1
+ var pe = Object.defineProperty;
2
+ var oe = Object.getOwnPropertySymbols;
3
+ var ge = Object.prototype.hasOwnProperty, ve = Object.prototype.propertyIsEnumerable;
4
+ var $ = (i, e, l) => e in i ? pe(i, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[e] = l, ee = (i, e) => {
5
+ for (var l in e || (e = {}))
6
+ ge.call(e, l) && $(i, l, e[l]);
7
+ if (oe)
8
+ for (var l of oe(e))
9
+ ve.call(e, l) && $(i, l, e[l]);
10
+ return i;
11
+ };
12
+ var B = (i, e, l) => ($(i, typeof e != "symbol" ? e + "" : e, l), l);
13
+ var L = (i, e, l) => new Promise((t, n) => {
14
+ var r = (s) => {
15
+ try {
16
+ a(l.next(s));
17
+ } catch (h) {
18
+ n(h);
19
+ }
20
+ }, o = (s) => {
21
+ try {
22
+ a(l.throw(s));
23
+ } catch (h) {
24
+ n(h);
25
+ }
26
+ }, a = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(r, o);
27
+ a((l = l.apply(i, e)).next());
28
+ });
29
+ import { SvelteComponent as de, init as fe, safe_not_equal as he, append_styles as be, element as S, space as Ie, text as Pe, attr as w, add_render_callback as ke, set_style as v, insert as C, append as Y, add_resize_listener as we, set_data as Ze, noop as ie, detach as J, destroy_each as ue, null_to_empty as O, transition_in as Q, group_outros as ye, check_outros as _e, transition_out as te, create_component as Me, mount_component as Ge, destroy_component as Re } from "svelte/internal";
30
+ import { Five as xe } from "@realsee/five";
31
+ import { nextFrame as De } from "../chunks/es/index.b8fdb59b.es.js";
32
+ import { equal as U } from "../chunks/es/equal.7db4a6f7.es.js";
33
+ import { intersectionOfLine as We } from "../chunks/es/planimetry.b0b4a28d.es.js";
34
+ import { throttle as Xe } from "../chunks/es/throttle.db66bac3.es.js";
35
+ import { onMount as He, onDestroy as ze } from "svelte";
36
+ import { Vector3 as R } from "three";
37
+ import "@tweenjs/tween.js";
38
+ function Ne(i) {
39
+ be(i, "svelte-1h27ktp", ".PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp{position:absolute;transform-origin:left 0.0625rem;width:0;height:0.125rem;pointer-events:none}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::after{content:'';position:absolute;left:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::before{content:'';position:absolute;right:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1.5s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp em.svelte-1h27ktp{display:block;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;box-shadow:0 0 0.25rem rgb(0 0 0 / 40%);position:relative}.rule-mixed-line.svelte-1h27ktp.svelte-1h27ktp{display:flex;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;align-items:center}.em-solid.svelte-1h27ktp.svelte-1h27ktp{height:100%;background:#ffffff}.em-dotted.svelte-1h27ktp.svelte-1h27ktp{height:0.125rem;background:var(--background-image);background-position:center;background-repeat:repeat}.PanoRulerPlugin-rule-label.svelte-1h27ktp.svelte-1h27ktp{position:absolute;width:0;height:0;top:0.0625rem;pointer-events:none}.PanoRulerPlugin-rule-label-name.svelte-1h27ktp.svelte-1h27ktp{position:absolute;padding:0.1875rem 0.375rem;background:rgba(195, 195, 195, 0.3);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);border-radius:6.25rem;border:0.0625rem solid rgba(255, 255, 255, 0.6);white-space:nowrap;overflow:hidden;color:#ffffff;font-weight:500;font-size:0.75rem;line-height:1;animation:svelte-1h27ktp-viewport-rule-label 0.25s ease 1s;animation-fill-mode:both;box-shadow:inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3)}@keyframes svelte-1h27ktp-viewport-rule-line{0%{width:0%}100%{width:100%}}@keyframes svelte-1h27ktp-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@keyframes svelte-1h27ktp-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}");
40
+ }
41
+ function se(i, e, l) {
42
+ const t = i.slice();
43
+ return t[6] = e[l], t;
44
+ }
45
+ function Se(i) {
46
+ let e, l = i[0].children, t = [];
47
+ for (let n = 0; n < l.length; n += 1)
48
+ t[n] = re(se(i, l, n));
49
+ return {
50
+ c() {
51
+ e = S("div");
52
+ for (let n = 0; n < t.length; n += 1)
53
+ t[n].c();
54
+ w(e, "class", "rule-mixed-line svelte-1h27ktp");
55
+ },
56
+ m(n, r) {
57
+ C(n, e, r);
58
+ for (let o = 0; o < t.length; o += 1)
59
+ t[o].m(e, null);
60
+ },
61
+ p(n, r) {
62
+ if (r & 9) {
63
+ l = n[0].children;
64
+ let o;
65
+ for (o = 0; o < l.length; o += 1) {
66
+ const a = se(n, l, o);
67
+ t[o] ? t[o].p(a, r) : (t[o] = re(a), t[o].c(), t[o].m(e, null));
68
+ }
69
+ for (; o < t.length; o += 1)
70
+ t[o].d(1);
71
+ t.length = l.length;
72
+ }
73
+ },
74
+ d(n) {
75
+ n && J(e), ue(t, n);
76
+ }
77
+ };
78
+ }
79
+ function Te(i) {
80
+ let e, l;
81
+ return {
82
+ c() {
83
+ e = S("em"), w(e, "class", l = O(i[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), w(e, "style", i[3]);
84
+ },
85
+ m(t, n) {
86
+ C(t, e, n);
87
+ },
88
+ p(t, n) {
89
+ n & 1 && l !== (l = O(t[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && w(e, "class", l), n & 8 && w(e, "style", t[3]);
90
+ },
91
+ d(t) {
92
+ t && J(e);
93
+ }
94
+ };
95
+ }
96
+ function re(i) {
97
+ let e, l, t = `${i[6].width}px`;
98
+ return {
99
+ c() {
100
+ e = S("div"), w(e, "class", l = O(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), w(e, "style", i[3]), v(e, "width", t, !1);
101
+ },
102
+ m(n, r) {
103
+ C(n, e, r);
104
+ },
105
+ p(n, r) {
106
+ r & 1 && l !== (l = O(n[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && w(e, "class", l), r & 8 && w(e, "style", n[3]), r & 1 && t !== (t = `${n[6].width}px`) && v(e, "width", t, !1);
107
+ },
108
+ d(n) {
109
+ n && J(e);
110
+ }
111
+ };
112
+ }
113
+ function je(i) {
114
+ let e, l, t, n, r = i[0].labelElement + "", o, a, s = `${i[0].labelOffset}%`, h = `${i[0].width}px`, D = `${i[0].left}px`, T = `${i[0].top}px`, P = `rotate(${i[0].rotateDeg}deg)`;
115
+ function W(d, g) {
116
+ return d[0].children.length === 0 ? Te : Se;
117
+ }
118
+ let y = W(i), b = y(i);
119
+ return {
120
+ c() {
121
+ e = S("div"), b.c(), l = Ie(), t = S("div"), n = S("div"), o = Pe(r), w(n, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), ke(() => i[4].call(n)), w(t, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), v(t, "left", s, !1), w(e, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), v(e, "width", h, !1), v(e, "left", D, !1), v(e, "top", T, !1), v(e, "transform", P, !1), v(
122
+ e,
123
+ "display",
124
+ i[0].visible && i[2] ? "block" : "none",
125
+ !1
126
+ );
127
+ },
128
+ m(d, g) {
129
+ C(d, e, g), b.m(e, null), Y(e, l), Y(e, t), Y(t, n), Y(n, o), a = we(n, i[4].bind(n));
130
+ },
131
+ p(d, [g]) {
132
+ y === (y = W(d)) && b ? b.p(d, g) : (b.d(1), b = y(d), b && (b.c(), b.m(e, l))), g & 1 && r !== (r = d[0].labelElement + "") && Ze(o, r), g & 1 && s !== (s = `${d[0].labelOffset}%`) && v(t, "left", s, !1), g & 1 && h !== (h = `${d[0].width}px`) && v(e, "width", h, !1), g & 1 && D !== (D = `${d[0].left}px`) && v(e, "left", D, !1), g & 1 && T !== (T = `${d[0].top}px`) && v(e, "top", T, !1), g & 1 && P !== (P = `rotate(${d[0].rotateDeg}deg)`) && v(e, "transform", P, !1), g & 5 && v(
133
+ e,
134
+ "display",
135
+ d[0].visible && d[2] ? "block" : "none",
136
+ !1
137
+ );
138
+ },
139
+ i: ie,
140
+ o: ie,
141
+ d(d) {
142
+ d && J(e), b.d(), a();
143
+ }
144
+ };
145
+ }
146
+ function Ae(i, e, l) {
147
+ let t, { rulerItemProp: n } = e, r = !0, o, a = "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PGZpbHRlciBpZD0icHJlZml4X19hIiBoZWlnaHQ9IjQwMCUiIHdpZHRoPSIxMzcuNCUiIHg9Ii0xOC43JSIgeT0iLTE1MCUiPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iZGlsYXRlIiByYWRpdXM9Ii41IiByZXN1bHQ9InNoYWRvd1NwcmVhZE91dGVyMSIvPjxmZU9mZnNldCBpbj0ic2hhZG93U3ByZWFkT3V0ZXIxIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiByYWRpdXM9IjEiIHJlc3VsdD0ic2hhZG93SW5uZXIiLz48ZmVPZmZzZXQgaW49InNoYWRvd0lubmVyIiByZXN1bHQ9InNoYWRvd0lubmVyIi8+PGZlQ29tcG9zaXRlIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIGluMj0ic2hhZG93SW5uZXIiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIgc3RkRGV2aWF0aW9uPSIuNSIvPjxmZUNvbG9yTWF0cml4IGluPSJzaGFkb3dCbHVyT3V0ZXIxIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMiAwIi8+PC9maWx0ZXI+PHBhdGggaWQ9InByZWZpeF9fYiIgZD0iTS44ODkgMkgxMS41OCIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1kYXNoYXJyYXk9IjUgNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBzdHJva2U9IiNmZmYiIHN0cm9rZS1vcGFjaXR5PSIuNCIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjwvZz48L3N2Zz4=";
148
+ function s() {
149
+ o = this.offsetWidth, l(1, o);
150
+ }
151
+ return i.$$set = (h) => {
152
+ "rulerItemProp" in h && l(0, n = h.rulerItemProp);
153
+ }, i.$$.update = () => {
154
+ i.$$.dirty & 3 && (o >= n.width || o / 2 >= n.labelOffset / 100 * n.width || o / 2 >= (1 - n.labelOffset / 100) * n.width ? l(2, r = !1) : l(2, r = !0));
155
+ }, l(3, t = `--background-image: url(${a})`), [n, o, r, t, s];
156
+ }
157
+ class Be extends de {
158
+ constructor(e) {
159
+ super(), fe(this, e, Ae, je, he, { rulerItemProp: 0 }, Ne);
160
+ }
161
+ }
162
+ function ae(i, e, l) {
163
+ const t = i.slice();
164
+ return t[12] = e[l], t;
165
+ }
166
+ function ce(i) {
167
+ let e, l;
168
+ return e = new Be({
169
+ props: { rulerItemProp: i[12] }
170
+ }), {
171
+ c() {
172
+ Me(e.$$.fragment);
173
+ },
174
+ m(t, n) {
175
+ Ge(e, t, n), l = !0;
176
+ },
177
+ p(t, n) {
178
+ const r = {};
179
+ n & 1 && (r.rulerItemProp = t[12]), e.$set(r);
180
+ },
181
+ i(t) {
182
+ l || (Q(e.$$.fragment, t), l = !0);
183
+ },
184
+ o(t) {
185
+ te(e.$$.fragment, t), l = !1;
186
+ },
187
+ d(t) {
188
+ Re(e, t);
189
+ }
190
+ };
191
+ }
192
+ function Ve(i) {
193
+ let e, l, t = i[0], n = [];
194
+ for (let o = 0; o < t.length; o += 1)
195
+ n[o] = ce(ae(i, t, o));
196
+ const r = (o) => te(n[o], 1, 1, () => {
197
+ n[o] = null;
198
+ });
199
+ return {
200
+ c() {
201
+ e = S("div");
202
+ for (let o = 0; o < n.length; o += 1)
203
+ n[o].c();
204
+ },
205
+ m(o, a) {
206
+ C(o, e, a);
207
+ for (let s = 0; s < n.length; s += 1)
208
+ n[s].m(e, null);
209
+ l = !0;
210
+ },
211
+ p(o, [a]) {
212
+ if (a & 1) {
213
+ t = o[0];
214
+ let s;
215
+ for (s = 0; s < t.length; s += 1) {
216
+ const h = ae(o, t, s);
217
+ n[s] ? (n[s].p(h, a), Q(n[s], 1)) : (n[s] = ce(h), n[s].c(), Q(n[s], 1), n[s].m(e, null));
218
+ }
219
+ for (ye(), s = t.length; s < n.length; s += 1)
220
+ r(s);
221
+ _e();
222
+ }
223
+ },
224
+ i(o) {
225
+ if (!l) {
226
+ for (let a = 0; a < t.length; a += 1)
227
+ Q(n[a]);
228
+ l = !0;
229
+ }
230
+ },
231
+ o(o) {
232
+ n = n.filter(Boolean);
233
+ for (let a = 0; a < n.length; a += 1)
234
+ te(n[a]);
235
+ l = !1;
236
+ },
237
+ d(o) {
238
+ o && J(e), ue(n, o);
239
+ }
240
+ };
241
+ }
242
+ function Fe(i, e, l) {
243
+ var b, d, g, ne;
244
+ let { five: t } = e, { rulerDatas: n } = e, { options: r } = e, o = [];
245
+ const a = ((d = (b = t.getElement()) == null ? void 0 : b.parentElement) == null ? void 0 : d.clientWidth) || 0, s = ((ne = (g = t.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : ne.clientHeight) || 0, h = (f, u) => {
246
+ const m = [
247
+ [{ x: 0, y: 0 }, { x: a, y: 0 }],
248
+ [{ x: 0, y: 0 }, { x: 0, y: s }],
249
+ [{ x: a, y: 0 }, { x: a, y: s }],
250
+ [{ x: 0, y: s }, { x: a, y: s }]
251
+ ], I = [];
252
+ for (let k = 0; k < m.length; k++) {
253
+ const _ = We([f, u], [m[k][0], m[k][1]], !0);
254
+ _ && I.push(_);
255
+ }
256
+ return I.length === 0 ? !1 : I;
257
+ }, D = (f, u) => {
258
+ const m = f.clone().project(t.camera), I = (m.x + 1) / 2 * a, k = (-m.y + 1) / 2 * s, _ = u.clone().project(t.camera), j = (_.x + 1) / 2 * a, x = (-_.y + 1) / 2 * s, c = Math.sqrt(Math.pow(j - I, 2) + Math.pow(x - k, 2));
259
+ return {
260
+ startLeft: I,
261
+ startTop: k,
262
+ endLeft: j,
263
+ endTop: x,
264
+ distance: c
265
+ };
266
+ }, T = (f, u, m) => {
267
+ const I = t.camera.position, k = t.camera.getWorldDirection(new R()), _ = f.clone().sub(I).normalize().angleTo(k), j = u.clone().sub(I).normalize().angleTo(k), x = f.distanceTo(u), X = u.clone().sub(u.clone().sub(f).divide(new R(2, 2, 2))).distanceTo(I), { startLeft: Z, startTop: M, endLeft: V, endTop: F, distance: H } = D(f, u), q = -((Math.PI / 2 - Math.atan2(V - Z, M - F)) / Math.PI) * 180;
268
+ let G = !0;
269
+ m || (G = !1), !U(f, m) && !U(u, m) && (G = !1), x < 0.3 && (G = !1), _ > Math.PI / 2 && (G = !1), j > Math.PI / 2 && (G = !1), X / x > 8 && (G = !1);
270
+ let z = 50, N = H;
271
+ const p = h({ x: ~~Z, y: ~~M }, { x: ~~V, y: ~~F });
272
+ if (p && p.length === 1 && (U(f, m) ? (N = Math.sqrt(Math.pow(p[0].x - Z, 2) + Math.pow(p[0].y - M, 2)), z = N / H * 50) : U(u, m) && (N = Math.sqrt(Math.pow(p[0].x - V, 2) + Math.pow(p[0].y - F, 2)), z = 100 - N / H * 50)), p && p.length === 2) {
273
+ const A = {
274
+ x: (p[0].x + p[1].x) / 2,
275
+ y: (p[0].y + p[1].y) / 2
276
+ };
277
+ z = Math.sqrt(Math.pow(A.x - Z, 2) + Math.pow(A.y - M, 2)) / H * 100;
278
+ }
279
+ return {
280
+ startLeft: Z,
281
+ startTop: M,
282
+ distance: H,
283
+ deg: q,
284
+ visible: G,
285
+ labelOffset: z,
286
+ ruleLength: x
287
+ };
288
+ }, P = () => {
289
+ const f = t.panoIndex, u = n.find((c) => c.panoIndex === f);
290
+ if (!u)
291
+ return l(0, o = []);
292
+ if (t.currentMode !== xe.Mode.Panorama)
293
+ return l(0, o = []);
294
+ const m = t.camera.position, I = t.camera.getWorldDirection(new R()), k = u.lines.map((c) => new R(c.start[0], -c.start[1], -c.start[2])), _ = u.lines.map((c) => new R(c.end[0], -c.end[1], -c.end[2])), [j] = k.concat(_).sort((c, X) => {
295
+ const Z = c.clone().setY(0).sub(m).normalize().angleTo(I.clone().setY(0)), M = X.clone().setY(0).sub(m).normalize().angleTo(I.clone().setY(0));
296
+ return Z - M;
297
+ }), x = u.lines.map((c) => {
298
+ var N, p;
299
+ const X = c.start, Z = c.end, { startLeft: M, startTop: V, distance: F, deg: H, visible: le, labelOffset: q, ruleLength: G } = T(new R(X[0], -X[1], -X[2]), new R(Z[0], -Z[1], -Z[2]), j), z = [];
300
+ return c.children && ((N = c.children) == null ? void 0 : N.length) > 0 && ((p = c.children) == null || p.forEach((A) => {
301
+ const E = A.start, K = A.end, { distance: me } = D(new R(E[0], -E[1], -E[2]), new R(K[0], -K[1], -K[2]));
302
+ z.push({ width: me, state: A.state });
303
+ })), {
304
+ width: F,
305
+ left: M,
306
+ top: V,
307
+ rotateDeg: H,
308
+ state: c.state,
309
+ children: z,
310
+ labelOffset: q,
311
+ visible: le,
312
+ labelElement: r.distanceText(G)
313
+ };
314
+ });
315
+ l(0, o = x);
316
+ }, W = () => De(P), y = Xe(P, 80);
317
+ return He(() => {
318
+ P(), t.on("panoArrived", P), t.on("modeChange", P), t.on("cameraDirectionUpdate", W), t.on("movingToPano", W), t.on("mouseWheel", () => y()), t.on("pinchGesture", () => y());
319
+ }), ze(() => {
320
+ t.off("panoArrived", P), t.off("modeChange", P), t.off("cameraDirectionUpdate", W), t.off("movingToPano", W), t.off("mouseWheel", () => y()), t.off("pinchGesture", () => y());
321
+ }), i.$$set = (f) => {
322
+ "five" in f && l(1, t = f.five), "rulerDatas" in f && l(2, n = f.rulerDatas), "options" in f && l(3, r = f.options);
323
+ }, [o, t, n, r];
324
+ }
325
+ class Ce extends de {
326
+ constructor(e) {
327
+ super(), fe(this, e, Fe, Ve, he, { five: 1, rulerDatas: 2, options: 3 });
328
+ }
329
+ }
330
+ class Je {
331
+ constructor(e, l) {
332
+ B(this, "five");
333
+ B(this, "container", document.createElement("div"));
334
+ B(this, "panoRulerProData");
335
+ B(this, "rulerItems");
336
+ B(this, "state", {
337
+ enabled: !1,
338
+ loaded: !1,
339
+ options: {
340
+ className: "",
341
+ distanceText: (e) => `${e.toFixed(1)}m`
342
+ }
343
+ });
344
+ var t, n;
345
+ this.five = e, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
346
+ "style",
347
+ "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
348
+ ), l && (l.data && this.load(l.data), this.state.options = ee(ee({}, this.state.options), l.options || {}), (t = l.options) != null && t.className && this.container.classList.add((n = l.options) == null ? void 0 : n.className)), this.five.once("modelLoaded", () => L(this, null, function* () {
349
+ var r, o;
350
+ (o = (r = this.five.getElement()) == null ? void 0 : r.parentNode) == null || o.append(this.container);
351
+ })), this.five.once("dispose", () => this.dispose());
352
+ }
353
+ load(e) {
354
+ return L(this, null, function* () {
355
+ if (!this.five.work)
356
+ return;
357
+ const l = e.data;
358
+ if (!l)
359
+ throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
360
+ this.panoRulerProData = l, this.state.loaded = !0;
361
+ });
362
+ }
363
+ enable() {
364
+ return this.state.loaded ? (this.state.enabled || (this.state.enabled = !0, this.render()), !0) : !1;
365
+ }
366
+ disable() {
367
+ return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
368
+ }
369
+ render() {
370
+ return L(this, null, function* () {
371
+ var e;
372
+ if (this.state.enabled) {
373
+ if (!this.panoRulerProData || !this.container)
374
+ return;
375
+ this.rulerItems = new Ce({
376
+ target: this.container,
377
+ props: {
378
+ five: this.five,
379
+ rulerDatas: this.panoRulerProData,
380
+ options: this.state.options
381
+ }
382
+ });
383
+ } else
384
+ (e = this.rulerItems) == null || e.$destroy(), this.rulerItems = void 0;
385
+ });
386
+ }
387
+ dispose() {
388
+ this.container && (this.rulerItems.$destroy(), this.rulerItems = void 0), this.container.remove();
389
+ }
390
+ }
391
+ const tt = (i, e) => new Je(i, e);
392
+ export {
393
+ tt as PanoRulerProPlugin,
394
+ tt as default
395
+ };
@@ -0,0 +1 @@
1
+ "use strict";var se=Object.defineProperty;var Q=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var q=(o,e,s)=>e in o?se(o,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[e]=s,L=(o,e)=>{for(var s in e||(e={}))ie.call(e,s)&&q(o,s,e[s]);if(Q)for(var s of Q(e))oe.call(e,s)&&q(o,s,e[s]);return o};var S=(o,e,s)=>(q(o,typeof e!="symbol"?e+"":e,s),s);var F=(o,e,s)=>new Promise((t,n)=>{var a=r=>{try{c(s.next(r))}catch(f){n(f)}},i=r=>{try{c(s.throw(r))}catch(f){n(f)}},c=r=>r.done?t(r.value):Promise.resolve(r.value).then(a,i);c((s=s.apply(o,e)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("svelte/internal"),re=require("@realsee/five"),ae=require("../chunks/cjs/index.7d2010ce.cjs.js"),C=require("../chunks/cjs/equal.e9fcbd4e.cjs.js"),ce=require("../chunks/cjs/planimetry.7fce816a.cjs.js"),ue=require("../chunks/cjs/throttle.86c209eb.cjs.js"),O=require("svelte"),R=require("three");require("@tweenjs/tween.js");function de(o){l.append_styles(o,"svelte-1h27ktp",".PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp{position:absolute;transform-origin:left 0.0625rem;width:0;height:0.125rem;pointer-events:none}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::after{content:'';position:absolute;left:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::before{content:'';position:absolute;right:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1.5s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp em.svelte-1h27ktp{display:block;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;box-shadow:0 0 0.25rem rgb(0 0 0 / 40%);position:relative}.rule-mixed-line.svelte-1h27ktp.svelte-1h27ktp{display:flex;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;align-items:center}.em-solid.svelte-1h27ktp.svelte-1h27ktp{height:100%;background:#ffffff}.em-dotted.svelte-1h27ktp.svelte-1h27ktp{height:0.125rem;background:var(--background-image);background-position:center;background-repeat:repeat}.PanoRulerPlugin-rule-label.svelte-1h27ktp.svelte-1h27ktp{position:absolute;width:0;height:0;top:0.0625rem;pointer-events:none}.PanoRulerPlugin-rule-label-name.svelte-1h27ktp.svelte-1h27ktp{position:absolute;padding:0.1875rem 0.375rem;background:rgba(195, 195, 195, 0.3);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);border-radius:6.25rem;border:0.0625rem solid rgba(255, 255, 255, 0.6);white-space:nowrap;overflow:hidden;color:#ffffff;font-weight:500;font-size:0.75rem;line-height:1;animation:svelte-1h27ktp-viewport-rule-label 0.25s ease 1s;animation-fill-mode:both;box-shadow:inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3)}@keyframes svelte-1h27ktp-viewport-rule-line{0%{width:0%}100%{width:100%}}@keyframes svelte-1h27ktp-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@keyframes svelte-1h27ktp-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}")}function K(o,e,s){const t=o.slice();return t[6]=e[s],t}function he(o){let e,s=o[0].children,t=[];for(let n=0;n<s.length;n+=1)t[n]=$(K(o,s,n));return{c(){e=l.element("div");for(let n=0;n<t.length;n+=1)t[n].c();l.attr(e,"class","rule-mixed-line svelte-1h27ktp")},m(n,a){l.insert(n,e,a);for(let i=0;i<t.length;i+=1)t[i].m(e,null)},p(n,a){if(a&9){s=n[0].children;let i;for(i=0;i<s.length;i+=1){const c=K(n,s,i);t[i]?t[i].p(c,a):(t[i]=$(c),t[i].c(),t[i].m(e,null))}for(;i<t.length;i+=1)t[i].d(1);t.length=s.length}},d(n){n&&l.detach(e),l.destroy_each(t,n)}}}function fe(o){let e,s;return{c(){e=l.element("em"),l.attr(e,"class",s=l.null_to_empty(o[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),l.attr(e,"style",o[3])},m(t,n){l.insert(t,e,n)},p(t,n){n&1&&s!==(s=l.null_to_empty(t[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&l.attr(e,"class",s),n&8&&l.attr(e,"style",t[3])},d(t){t&&l.detach(e)}}}function $(o){let e,s,t=`${o[6].width}px`;return{c(){e=l.element("div"),l.attr(e,"class",s=l.null_to_empty(o[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),l.attr(e,"style",o[3]),l.set_style(e,"width",t,!1)},m(n,a){l.insert(n,e,a)},p(n,a){a&1&&s!==(s=l.null_to_empty(n[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&l.attr(e,"class",s),a&8&&l.attr(e,"style",n[3]),a&1&&t!==(t=`${n[6].width}px`)&&l.set_style(e,"width",t,!1)},d(n){n&&l.detach(e)}}}function me(o){let e,s,t,n,a=o[0].labelElement+"",i,c,r=`${o[0].labelOffset}%`,f=`${o[0].width}px`,x=`${o[0].left}px`,H=`${o[0].top}px`,_=`rotate(${o[0].rotateDeg}deg)`;function j(d,g){return d[0].children.length===0?fe:he}let k=j(o),b=k(o);return{c(){e=l.element("div"),b.c(),s=l.space(),t=l.element("div"),n=l.element("div"),i=l.text(a),l.attr(n,"class","PanoRulerPlugin-rule-label-name svelte-1h27ktp"),l.add_render_callback(()=>o[4].call(n)),l.attr(t,"class","PanoRulerPlugin-rule-label svelte-1h27ktp"),l.set_style(t,"left",r,!1),l.attr(e,"class","PanoRulerPlugin-rule-line svelte-1h27ktp"),l.set_style(e,"width",f,!1),l.set_style(e,"left",x,!1),l.set_style(e,"top",H,!1),l.set_style(e,"transform",_,!1),l.set_style(e,"display",o[0].visible&&o[2]?"block":"none",!1)},m(d,g){l.insert(d,e,g),b.m(e,null),l.append(e,s),l.append(e,t),l.append(t,n),l.append(n,i),c=l.add_resize_listener(n,o[4].bind(n))},p(d,[g]){k===(k=j(d))&&b?b.p(d,g):(b.d(1),b=k(d),b&&(b.c(),b.m(e,s))),g&1&&a!==(a=d[0].labelElement+"")&&l.set_data(i,a),g&1&&r!==(r=`${d[0].labelOffset}%`)&&l.set_style(t,"left",r,!1),g&1&&f!==(f=`${d[0].width}px`)&&l.set_style(e,"width",f,!1),g&1&&x!==(x=`${d[0].left}px`)&&l.set_style(e,"left",x,!1),g&1&&H!==(H=`${d[0].top}px`)&&l.set_style(e,"top",H,!1),g&1&&_!==(_=`rotate(${d[0].rotateDeg}deg)`)&&l.set_style(e,"transform",_,!1),g&5&&l.set_style(e,"display",d[0].visible&&d[2]?"block":"none",!1)},i:l.noop,o:l.noop,d(d){d&&l.detach(e),b.d(),c()}}}function pe(o,e,s){let t,{rulerItemProp:n}=e,a=!0,i,c="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PGZpbHRlciBpZD0icHJlZml4X19hIiBoZWlnaHQ9IjQwMCUiIHdpZHRoPSIxMzcuNCUiIHg9Ii0xOC43JSIgeT0iLTE1MCUiPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iZGlsYXRlIiByYWRpdXM9Ii41IiByZXN1bHQ9InNoYWRvd1NwcmVhZE91dGVyMSIvPjxmZU9mZnNldCBpbj0ic2hhZG93U3ByZWFkT3V0ZXIxIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiByYWRpdXM9IjEiIHJlc3VsdD0ic2hhZG93SW5uZXIiLz48ZmVPZmZzZXQgaW49InNoYWRvd0lubmVyIiByZXN1bHQ9InNoYWRvd0lubmVyIi8+PGZlQ29tcG9zaXRlIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIGluMj0ic2hhZG93SW5uZXIiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIgc3RkRGV2aWF0aW9uPSIuNSIvPjxmZUNvbG9yTWF0cml4IGluPSJzaGFkb3dCbHVyT3V0ZXIxIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMiAwIi8+PC9maWx0ZXI+PHBhdGggaWQ9InByZWZpeF9fYiIgZD0iTS44ODkgMkgxMS41OCIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1kYXNoYXJyYXk9IjUgNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBzdHJva2U9IiNmZmYiIHN0cm9rZS1vcGFjaXR5PSIuNCIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjwvZz48L3N2Zz4=";function r(){i=this.offsetWidth,s(1,i)}return o.$$set=f=>{"rulerItemProp"in f&&s(0,n=f.rulerItemProp)},o.$$.update=()=>{o.$$.dirty&3&&(i>=n.width||i/2>=n.labelOffset/100*n.width||i/2>=(1-n.labelOffset/100)*n.width?s(2,a=!1):s(2,a=!0))},s(3,t=`--background-image: url(${c})`),[n,i,a,t,r]}class ve extends l.SvelteComponent{constructor(e){super(),l.init(this,e,pe,me,l.safe_not_equal,{rulerItemProp:0},de)}}function ee(o,e,s){const t=o.slice();return t[12]=e[s],t}function te(o){let e,s;return e=new ve({props:{rulerItemProp:o[12]}}),{c(){l.create_component(e.$$.fragment)},m(t,n){l.mount_component(e,t,n),s=!0},p(t,n){const a={};n&1&&(a.rulerItemProp=t[12]),e.$set(a)},i(t){s||(l.transition_in(e.$$.fragment,t),s=!0)},o(t){l.transition_out(e.$$.fragment,t),s=!1},d(t){l.destroy_component(e,t)}}}function ge(o){let e,s,t=o[0],n=[];for(let i=0;i<t.length;i+=1)n[i]=te(ee(o,t,i));const a=i=>l.transition_out(n[i],1,1,()=>{n[i]=null});return{c(){e=l.element("div");for(let i=0;i<n.length;i+=1)n[i].c()},m(i,c){l.insert(i,e,c);for(let r=0;r<n.length;r+=1)n[r].m(e,null);s=!0},p(i,[c]){if(c&1){t=i[0];let r;for(r=0;r<t.length;r+=1){const f=ee(i,t,r);n[r]?(n[r].p(f,c),l.transition_in(n[r],1)):(n[r]=te(f),n[r].c(),l.transition_in(n[r],1),n[r].m(e,null))}for(l.group_outros(),r=t.length;r<n.length;r+=1)a(r);l.check_outros()}},i(i){if(!s){for(let c=0;c<t.length;c+=1)l.transition_in(n[c]);s=!0}},o(i){n=n.filter(Boolean);for(let c=0;c<n.length;c+=1)l.transition_out(n[c]);s=!1},d(i){i&&l.detach(e),l.destroy_each(n,i)}}}function be(o,e,s){var b,d,g,Y;let{five:t}=e,{rulerDatas:n}=e,{options:a}=e,i=[];const c=((d=(b=t.getElement())==null?void 0:b.parentElement)==null?void 0:d.clientWidth)||0,r=((Y=(g=t.getElement())==null?void 0:g.parentElement)==null?void 0:Y.clientHeight)||0,f=(h,m)=>{const p=[[{x:0,y:0},{x:c,y:0}],[{x:0,y:0},{x:0,y:r}],[{x:c,y:0},{x:c,y:r}],[{x:0,y:r},{x:c,y:r}]],I=[];for(let y=0;y<p.length;y++){const w=ce.intersectionOfLine([h,m],[p[y][0],p[y][1]],!0);w&&I.push(w)}return I.length===0?!1:I},x=(h,m)=>{const p=h.clone().project(t.camera),I=(p.x+1)/2*c,y=(-p.y+1)/2*r,w=m.clone().project(t.camera),z=(w.x+1)/2*c,G=(-w.y+1)/2*r,u=Math.sqrt(Math.pow(z-I,2)+Math.pow(G-y,2));return{startLeft:I,startTop:y,endLeft:z,endTop:G,distance:u}},H=(h,m,p)=>{const I=t.camera.position,y=t.camera.getWorldDirection(new R.Vector3),w=h.clone().sub(I).normalize().angleTo(y),z=m.clone().sub(I).normalize().angleTo(y),G=h.distanceTo(m),D=m.clone().sub(m.clone().sub(h).divide(new R.Vector3(2,2,2))).distanceTo(I),{startLeft:P,startTop:Z,endLeft:T,endTop:A,distance:W}=x(h,m),E=-((Math.PI/2-Math.atan2(T-P,Z-A))/Math.PI)*180;let M=!0;p||(M=!1),!C.equal(h,p)&&!C.equal(m,p)&&(M=!1),G<.3&&(M=!1),w>Math.PI/2&&(M=!1),z>Math.PI/2&&(M=!1),D/G>8&&(M=!1);let X=50,V=W;const v=f({x:~~P,y:~~Z},{x:~~T,y:~~A});if(v&&v.length===1&&(C.equal(h,p)?(V=Math.sqrt(Math.pow(v[0].x-P,2)+Math.pow(v[0].y-Z,2)),X=V/W*50):C.equal(m,p)&&(V=Math.sqrt(Math.pow(v[0].x-T,2)+Math.pow(v[0].y-A,2)),X=100-V/W*50)),v&&v.length===2){const N={x:(v[0].x+v[1].x)/2,y:(v[0].y+v[1].y)/2};X=Math.sqrt(Math.pow(N.x-P,2)+Math.pow(N.y-Z,2))/W*100}return{startLeft:P,startTop:Z,distance:W,deg:E,visible:M,labelOffset:X,ruleLength:G}},_=()=>{const h=t.panoIndex,m=n.find(u=>u.panoIndex===h);if(!m)return s(0,i=[]);if(t.currentMode!==re.Five.Mode.Panorama)return s(0,i=[]);const p=t.camera.position,I=t.camera.getWorldDirection(new R.Vector3),y=m.lines.map(u=>new R.Vector3(u.start[0],-u.start[1],-u.start[2])),w=m.lines.map(u=>new R.Vector3(u.end[0],-u.end[1],-u.end[2])),[z]=y.concat(w).sort((u,D)=>{const P=u.clone().setY(0).sub(p).normalize().angleTo(I.clone().setY(0)),Z=D.clone().setY(0).sub(p).normalize().angleTo(I.clone().setY(0));return P-Z}),G=m.lines.map(u=>{var V,v;const D=u.start,P=u.end,{startLeft:Z,startTop:T,distance:A,deg:W,visible:U,labelOffset:E,ruleLength:M}=H(new R.Vector3(D[0],-D[1],-D[2]),new R.Vector3(P[0],-P[1],-P[2]),z),X=[];return u.children&&((V=u.children)==null?void 0:V.length)>0&&((v=u.children)==null||v.forEach(N=>{const B=N.start,J=N.end,{distance:le}=x(new R.Vector3(B[0],-B[1],-B[2]),new R.Vector3(J[0],-J[1],-J[2]));X.push({width:le,state:N.state})})),{width:A,left:Z,top:T,rotateDeg:W,state:u.state,children:X,labelOffset:E,visible:U,labelElement:a.distanceText(M)}});s(0,i=G)},j=()=>ae.nextFrame(_),k=ue.throttle(_,80);return O.onMount(()=>{_(),t.on("panoArrived",_),t.on("modeChange",_),t.on("cameraDirectionUpdate",j),t.on("movingToPano",j),t.on("mouseWheel",()=>k()),t.on("pinchGesture",()=>k())}),O.onDestroy(()=>{t.off("panoArrived",_),t.off("modeChange",_),t.off("cameraDirectionUpdate",j),t.off("movingToPano",j),t.off("mouseWheel",()=>k()),t.off("pinchGesture",()=>k())}),o.$$set=h=>{"five"in h&&s(1,t=h.five),"rulerDatas"in h&&s(2,n=h.rulerDatas),"options"in h&&s(3,a=h.options)},[i,t,n,a]}class Ie extends l.SvelteComponent{constructor(e){super(),l.init(this,e,be,ge,l.safe_not_equal,{five:1,rulerDatas:2,options:3})}}class _e{constructor(e,s){S(this,"five");S(this,"container",document.createElement("div"));S(this,"panoRulerProData");S(this,"rulerItems");S(this,"state",{enabled:!1,loaded:!1,options:{className:"",distanceText:e=>`${e.toFixed(1)}m`}});var t,n;this.five=e,this.container.classList.add("panoRulerProPlugin-container"),this.container.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"),s&&(s.data&&this.load(s.data),this.state.options=L(L({},this.state.options),s.options||{}),(t=s.options)!=null&&t.className&&this.container.classList.add((n=s.options)==null?void 0:n.className)),this.five.once("modelLoaded",()=>F(this,null,function*(){var a,i;(i=(a=this.five.getElement())==null?void 0:a.parentNode)==null||i.append(this.container)})),this.five.once("dispose",()=>this.dispose())}load(e){return F(this,null,function*(){if(!this.five.work)return;const s=e.data;if(!s)throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");this.panoRulerProData=s,this.state.loaded=!0})}enable(){return this.state.loaded?(this.state.enabled||(this.state.enabled=!0,this.render()),!0):!1}disable(){return this.state.enabled&&(this.state.enabled=!1,this.render()),!0}render(){return F(this,null,function*(){var e;if(this.state.enabled){if(!this.panoRulerProData||!this.container)return;this.rulerItems=new Ie({target:this.container,props:{five:this.five,rulerDatas:this.panoRulerProData,options:this.state.options}})}else(e=this.rulerItems)==null||e.$destroy(),this.rulerItems=void 0})}dispose(){this.container&&(this.rulerItems.$destroy(),this.rulerItems=void 0),this.container.remove()}}const ne=(o,e)=>new _e(o,e);exports.PanoRulerProPlugin=ne;exports.default=ne;
@@ -0,0 +1,15 @@
1
+ import "../chunks/es/Plugin.435485ed.es.js";
2
+ import { PanoSpatialTagPlugin as S, PanoSpatialTagPlugin as T } from "../chunks/es/Plugin.435485ed.es.js";
3
+ import "three";
4
+ import "@realsee/five";
5
+ import "../CSS3DRenderPlugin/index..js";
6
+ import "../chunks/es/CSS3DRender.5652510e.es.js";
7
+ import "three/examples/jsm/renderers/CSS3DRenderer";
8
+ import "../chunks/es/Subscribe.c73e0f91.es.js";
9
+ import "svelte/internal";
10
+ import "svelte/store";
11
+ import "svelte";
12
+ export {
13
+ S as PanoSpatialTagPlugin,
14
+ T as default
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/cjs/Plugin.67936d0e.cjs.js");require("three");require("@realsee/five");require("../CSS3DRenderPlugin/index.cjs.js");require("../chunks/cjs/CSS3DRender.15349564.cjs.js");require("three/examples/jsm/renderers/CSS3DRenderer");require("../chunks/cjs/Subscribe.5398d5c6.cjs.js");require("svelte/internal");require("svelte/store");require("svelte");exports.PanoSpatialTagPlugin=e.PanoSpatialTagPlugin;exports.default=e.PanoSpatialTagPlugin;