@realsee/dnalogel 2.24.0 → 2.24.2

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 (328) hide show
  1. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +1 -0
  2. package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -1
  3. package/dist/PanoMeasurePlugin/typings/index.d.ts +4 -0
  4. package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +1 -0
  5. package/dist/index.cjs.js +23 -23
  6. package/dist/index.js +366 -343
  7. package/dist/index.umd.js +29 -29
  8. package/docs/assets/search.js +1 -1
  9. package/docs/classes/CSS3DRender.html +30 -30
  10. package/docs/classes/CruisePluginController.html +25 -25
  11. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  12. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
  13. package/docs/classes/Magnifier.html +19 -19
  14. package/docs/classes/ModelRoomLabelController.html +10 -10
  15. package/docs/classes/Object3DHelperController.html +24 -24
  16. package/docs/classes/PaintBrush.html +14 -14
  17. package/docs/classes/PanoMeasurePluginLine.html +26 -26
  18. package/docs/classes/PanoMeasurePluginModel.html +26 -26
  19. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  20. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  21. package/docs/classes/PanoTagPluginController.html +46 -46
  22. package/docs/classes/Util.BetterTween.html +8 -8
  23. package/docs/classes/Util.Interval.html +11 -11
  24. package/docs/classes/Util.Magnifier.html +19 -19
  25. package/docs/classes/Util.PointDomHelper.html +10 -10
  26. package/docs/classes/Util.PointHelper.html +10 -10
  27. package/docs/classes/Util.PointSelectorHelper.html +15 -15
  28. package/docs/classes/Util.Rectangle.html +12 -12
  29. package/docs/enums/CameraMovementEffect.html +6 -6
  30. package/docs/enums/ContentType.html +19 -19
  31. package/docs/enums/DIRECTION.html +8 -8
  32. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  33. package/docs/enums/DimensionType.html +6 -6
  34. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  35. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  36. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  37. package/docs/enums/PointType.html +6 -6
  38. package/docs/enums/Rotation.html +7 -7
  39. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  40. package/docs/functions/CameraMovementPlugin.html +3 -3
  41. package/docs/functions/CruisePlugin.html +3 -3
  42. package/docs/functions/GuideLinePlugin.html +4 -4
  43. package/docs/functions/ItemLabelPlugin.html +3 -3
  44. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  45. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  46. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  47. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  48. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  49. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  50. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  51. package/docs/functions/ModelViewPlugin.html +3 -3
  52. package/docs/functions/Object3DHelperPlugin.html +3 -3
  53. package/docs/functions/PanoCompassPlugin.html +3 -3
  54. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  55. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  56. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  57. package/docs/functions/PanoMeasurePlugin.html +3 -3
  58. package/docs/functions/PanoRulerPlugin.html +3 -3
  59. package/docs/functions/PanoRulerProPlugin.html +3 -3
  60. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  61. package/docs/functions/PanoTagPlugin.html +3 -3
  62. package/docs/functions/PanoVideoPlugin.html +3 -3
  63. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  64. package/docs/functions/Util.absoluteUrl.html +4 -4
  65. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  66. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  67. package/docs/functions/Util.getFrameTime.html +4 -4
  68. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  69. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  70. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  71. package/docs/functions/Util.isModelLike.html +4 -4
  72. package/docs/functions/Util.isNil.html +4 -4
  73. package/docs/functions/Util.isPanoramaLike.html +4 -4
  74. package/docs/functions/Util.nextFrame.html +4 -4
  75. package/docs/functions/Util.notNil.html +4 -4
  76. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  77. package/docs/functions/Util.tweenProgress.html +4 -4
  78. package/docs/functions/Util.uuid.html +4 -4
  79. package/docs/functions/pluginFlag.html +4 -4
  80. package/docs/index.html +4 -4
  81. package/docs/interfaces/AddTagConfig.html +5 -5
  82. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  83. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  84. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  85. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  86. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  87. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  88. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  89. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  90. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  91. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  92. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  93. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  94. package/docs/interfaces/EventMap.html +14 -14
  95. package/docs/interfaces/FloorplanBounding.html +7 -7
  96. package/docs/interfaces/FloorplanData.html +9 -9
  97. package/docs/interfaces/FloorplanEntrance.html +10 -10
  98. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  99. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  100. package/docs/interfaces/FloorplanFloorData.html +8 -8
  101. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  102. package/docs/interfaces/FloorplanObserver.html +8 -8
  103. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  104. package/docs/interfaces/FloorplanPosition.html +6 -6
  105. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  106. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  107. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  108. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  109. package/docs/interfaces/FloorplanServerData.html +6 -6
  110. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  111. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  112. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  113. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  114. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  115. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  116. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  117. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  118. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  119. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  120. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  121. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  122. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  123. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  124. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  125. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  126. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  127. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  128. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  129. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  130. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  131. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  132. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  133. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  134. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  135. package/docs/interfaces/HelperOffset.html +7 -7
  136. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  137. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  138. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  139. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  140. package/docs/interfaces/MinMax.html +6 -6
  141. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  142. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  143. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  144. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  145. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  146. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  147. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  148. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  149. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  150. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  151. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  152. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  153. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  154. package/docs/interfaces/Object3DHelperState.html +7 -7
  155. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  156. package/docs/interfaces/PaintBrushAction.html +11 -11
  157. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  158. package/docs/interfaces/PaintBrushState.html +9 -9
  159. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  160. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  161. package/docs/interfaces/PanoMeasureParameterType.html +42 -17
  162. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  163. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  164. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  165. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  166. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  167. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  168. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  169. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  170. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  171. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  172. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  173. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  174. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  175. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  176. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  177. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  178. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  179. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  180. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  181. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  182. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  183. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  184. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  185. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  186. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  187. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  188. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  189. package/docs/interfaces/Point.html +7 -7
  190. package/docs/interfaces/Room.html +8 -8
  191. package/docs/interfaces/RoomInfo.html +6 -6
  192. package/docs/interfaces/RoomLabel.html +13 -13
  193. package/docs/interfaces/RoomRules.html +4 -4
  194. package/docs/interfaces/Rooms.html +4 -4
  195. package/docs/interfaces/Scissor.html +8 -8
  196. package/docs/interfaces/State.html +7 -7
  197. package/docs/interfaces/TagCacheInterface.html +11 -11
  198. package/docs/interfaces/TagConfig.html +12 -12
  199. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  200. package/docs/interfaces/TagIconUrl.html +11 -11
  201. package/docs/interfaces/TagObjectGroup.html +5 -5
  202. package/docs/interfaces/TagStyle.html +5 -5
  203. package/docs/interfaces/Tags.html +8 -8
  204. package/docs/interfaces/TemporaryState.html +5 -5
  205. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  206. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  207. package/docs/interfaces/Util.PointIntersection.html +7 -7
  208. package/docs/modules/CruisePluginTypes.html +4 -4
  209. package/docs/modules/GuideLineItem.html +4 -4
  210. package/docs/modules/GuideLineModeItem.html +4 -4
  211. package/docs/modules/GuideLinePluginType.html +4 -4
  212. package/docs/modules/PanoVideoPluginType.html +4 -4
  213. package/docs/modules/Util.html +4 -4
  214. package/docs/modules.html +4 -4
  215. package/docs/types/ArrayPosition.html +4 -4
  216. package/docs/types/AudioAppearance.html +4 -4
  217. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  218. package/docs/types/CSS3DRenderExportType.html +4 -4
  219. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  220. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  221. package/docs/types/ClassFunctionParameters.html +4 -4
  222. package/docs/types/Color.html +4 -4
  223. package/docs/types/ContentTypeConfigKey.html +4 -4
  224. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  225. package/docs/types/ContentTypeMap.html +4 -4
  226. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  227. package/docs/types/Create3DElementReturnType.html +4 -4
  228. package/docs/types/CruisePluginExportType.html +4 -4
  229. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  230. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  231. package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
  232. package/docs/types/DeprecatedTagProperty.html +4 -4
  233. package/docs/types/Direction-1.html +4 -4
  234. package/docs/types/Direction4.html +4 -4
  235. package/docs/types/ElementRenderer.html +4 -4
  236. package/docs/types/FloorplanRuleLabels.html +4 -4
  237. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  238. package/docs/types/GuideLinePluginExportType.html +4 -4
  239. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  240. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  241. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  242. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  243. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  244. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  245. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  246. package/docs/types/HelperEventMap.html +4 -4
  247. package/docs/types/LoadTagConfig.html +4 -4
  248. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  249. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  250. package/docs/types/MediaData.html +4 -4
  251. package/docs/types/MediaStore.html +4 -4
  252. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  253. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  254. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  255. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  256. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  257. package/docs/types/MoveArgs.html +4 -4
  258. package/docs/types/MoveOpts.html +4 -4
  259. package/docs/types/Object3DHelperEventMap.html +4 -4
  260. package/docs/types/ObjectFit.html +4 -4
  261. package/docs/types/PaintBrushEventMap.html +4 -4
  262. package/docs/types/PanoCompassPluginData.html +4 -4
  263. package/docs/types/PanoCompassPluginExportType.html +4 -4
  264. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  265. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  266. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  267. package/docs/types/PanoIndex.html +4 -4
  268. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  269. package/docs/types/PanoMeasureReturnType.html +4 -4
  270. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  271. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  272. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  273. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  274. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  275. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  276. package/docs/types/PlaneTag.html +4 -4
  277. package/docs/types/Point2DTag.html +4 -4
  278. package/docs/types/Point3DTag.html +4 -4
  279. package/docs/types/PointTag.html +4 -4
  280. package/docs/types/PointTagInstance.html +4 -4
  281. package/docs/types/Position.html +4 -4
  282. package/docs/types/RotateArgs.html +4 -4
  283. package/docs/types/RotateOpts.html +4 -4
  284. package/docs/types/RuleLabelsKey.html +4 -4
  285. package/docs/types/RuleLabelsValue.html +4 -4
  286. package/docs/types/StickType.html +4 -4
  287. package/docs/types/Tag.html +4 -4
  288. package/docs/types/Tag2D.html +4 -4
  289. package/docs/types/Tag3D.html +4 -4
  290. package/docs/types/TagContentType.html +4 -4
  291. package/docs/types/TagDimensionType.html +4 -4
  292. package/docs/types/TagElement.html +4 -4
  293. package/docs/types/TagEvents.html +4 -4
  294. package/docs/types/TagGLTFObject.html +4 -4
  295. package/docs/types/TagHooks.html +4 -4
  296. package/docs/types/TagId.html +4 -4
  297. package/docs/types/TagInstance.html +4 -4
  298. package/docs/types/TagPointType.html +4 -4
  299. package/docs/types/TagRendererMap.html +4 -4
  300. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  301. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  302. package/docs/types/WorkCode.html +4 -4
  303. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  304. package/docs/variables/PLUGIN.html +4 -4
  305. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  306. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  307. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  308. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  309. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  310. package/libs/PanoMeasurePlugin/Components/Controller0.js +32 -31
  311. package/libs/PanoMeasurePlugin/Components/Controller1.js +14 -13
  312. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +1 -0
  313. package/libs/PanoMeasurePlugin/Controller/BaseController.js +14 -7
  314. package/libs/PanoMeasurePlugin/Controller/EditController.js +12 -11
  315. package/libs/PanoMeasurePlugin/Controller/WatchController.js +74 -59
  316. package/libs/PanoMeasurePlugin/Controller/index.js +18 -17
  317. package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -1
  318. package/libs/PanoMeasurePlugin/Model/area.js +51 -35
  319. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +14 -13
  320. package/libs/PanoMeasurePlugin/index.js +25 -24
  321. package/libs/PanoMeasurePlugin/typings/index.d.ts +4 -0
  322. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +47 -29
  323. package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +1 -0
  324. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +83 -68
  325. package/libs/base/BasePlugin.js +1 -1
  326. package/libs/index.js +1 -1
  327. package/libs/shared-utils/logger.js +1 -1
  328. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import t from "./Controller/index.js";
2
- import { default as er } from "./Modules/Magnifier.js";
3
- import { Model as nr } from "./Model/index.js";
4
- import { default as lr } from "./Model/point.js";
5
- import { default as sr } from "./Model/line.js";
6
- import { Polyline as Mr } from "./Model/polyline.js";
2
+ import { default as ar } from "./Modules/Magnifier.js";
3
+ import { Model as ur } from "./Model/index.js";
4
+ import { default as Pr } from "./Model/point.js";
5
+ import { default as fr } from "./Model/line.js";
6
+ import { Polyline as gr } from "./Model/polyline.js";
7
7
  import "./Controller/EditController.js";
8
8
  import "../shared-utils/throttle.js";
9
9
  import "./Controller/BaseController.js";
@@ -26,18 +26,8 @@ import "./utils/generatePolygonGeometry.js";
26
26
  import "earcut";
27
27
  import "./utils/dom/areaDom.js";
28
28
  import "./utils/geometryUtil.js";
29
- import "./utils/isIntersecting.js";
30
- import "../shared-utils/three/PointSelector.js";
31
- import "../shared-utils/three/PointSelectorHelper.js";
32
- import "../shared-utils/three/Magnifier.js";
33
29
  import "hammerjs";
34
- import "../shared-utils/three/PointHelper.js";
35
- import "../shared-utils/three/Assets/index.js";
36
- import "../shared-utils/three/PointDomHelper.js";
37
30
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
38
- import "./Modules/rangePiece/html.js";
39
- import "../CSS3DRenderPlugin/index.js";
40
- import "../CSS3DRenderPlugin/Controller.js";
41
31
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
42
32
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
43
33
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -50,8 +40,19 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
50
40
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
51
41
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
52
42
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
53
- import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
54
43
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
44
+ import "../shared-utils/isNil.js";
45
+ import "./utils/isIntersecting.js";
46
+ import "../shared-utils/three/PointSelector.js";
47
+ import "../shared-utils/three/PointSelectorHelper.js";
48
+ import "../shared-utils/three/Magnifier.js";
49
+ import "../shared-utils/three/PointHelper.js";
50
+ import "../shared-utils/three/Assets/index.js";
51
+ import "../shared-utils/three/PointDomHelper.js";
52
+ import "./Modules/rangePiece/html.js";
53
+ import "../CSS3DRenderPlugin/index.js";
54
+ import "../CSS3DRenderPlugin/Controller.js";
55
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
55
56
  import "../shared-utils/absoluteUrl.js";
56
57
  import "../shared-utils/animationFrame/BetterTween.js";
57
58
  import "../shared-utils/animationFrame/index.js";
@@ -109,15 +110,15 @@ import "../vendor/object-assign-deep/objectAssignDeep.js";
109
110
  import "./Components/Tip.js";
110
111
  import "./Controller/ShortcutKeyController.js";
111
112
  import "../shared-utils/safeObj.js";
112
- const ir = function(o, r) {
113
+ const mr = function(o, r) {
113
114
  return new t(o, r);
114
115
  };
115
116
  export {
116
- er as Magnifier,
117
- ir as PanoMeasurePlugin,
118
- sr as PanoMeasurePluginLine,
119
- nr as PanoMeasurePluginModel,
120
- lr as PanoMeasurePluginPoint,
121
- Mr as PanoMeasurePluginPolyline,
122
- ir as default
117
+ ar as Magnifier,
118
+ mr as PanoMeasurePlugin,
119
+ fr as PanoMeasurePluginLine,
120
+ ur as PanoMeasurePluginModel,
121
+ Pr as PanoMeasurePluginPoint,
122
+ gr as PanoMeasurePluginPolyline,
123
+ mr as default
123
124
  };
@@ -6,6 +6,10 @@ export interface Config extends BaseConfig {
6
6
  * @param distance 单位是 m
7
7
  */
8
8
  getDistanceText?: (distance: number) => string;
9
+ /** 展示 面积 DOM 时,使用的转换函数
10
+ * @param area 单位是 ㎡
11
+ */
12
+ getAreaText?: (area: number) => string;
9
13
  /** 默认的 distance DOM 文本 */
10
14
  defaultText?: string | null;
11
15
  }
@@ -1,50 +1,68 @@
1
- var p = Object.defineProperty, l = Object.defineProperties;
2
- var x = Object.getOwnPropertyDescriptors;
3
- var c = Object.getOwnPropertySymbols;
4
- var D = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
5
- var s = (o, e, t) => e in o ? p(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, a = (o, e) => {
6
- for (var t in e || (e = {}))
7
- D.call(e, t) && s(o, t, e[t]);
8
- if (c)
9
- for (var t of c(e))
10
- y.call(e, t) && s(o, t, e[t]);
11
- return o;
12
- }, d = (o, e) => l(o, x(e));
13
- var u = (o, e, t) => (s(o, typeof e != "symbol" ? e + "" : e, t), t);
14
- import { ItemDom as I } from "./base.js";
15
- import { getGeometryInfo as A } from "../geometryUtil.js";
16
- import "../isNDCPointInScreen.js";
1
+ var u = Object.defineProperty, D = Object.defineProperties;
2
+ var f = Object.getOwnPropertyDescriptors;
3
+ var h = Object.getOwnPropertySymbols;
4
+ var A = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
5
+ var m = (e, o, t) => o in e ? u(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, p = (e, o) => {
6
+ for (var t in o || (o = {}))
7
+ A.call(o, t) && m(e, t, o[t]);
8
+ if (h)
9
+ for (var t of h(o))
10
+ T.call(o, t) && m(e, t, o[t]);
11
+ return e;
12
+ }, s = (e, o) => D(e, f(o));
13
+ var l = (e, o, t) => (m(e, typeof o != "symbol" ? o + "" : o, t), t);
14
+ import { ItemDom as y } from "./base.js";
15
+ import { getGeometryInfo as I } from "../geometryUtil.js";
16
+ import "hammerjs";
17
17
  import "three";
18
+ import "@realsee/five";
19
+ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
20
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
21
+ import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
22
+ import { isNil as P } from "../../../shared-utils/isNil.js";
23
+ import "../isNDCPointInScreen.js";
18
24
  import "../../../shared-utils/three/centerPoint.js";
19
- class f extends I {
25
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
26
+ import "three/examples/jsm/renderers/CSS3DRenderer";
27
+ import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
28
+ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
29
+ import "../../../CSS3DRenderPlugin/utils/even.js";
30
+ import "../../../shared-utils/Subscribe.js";
31
+ import "../../../CSS3DRenderPlugin/utils/positionToVector3.js";
32
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
33
+ import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
34
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
35
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
36
+ class U extends y {
20
37
  constructor(t) {
21
- t.containerStyle = d(a({}, t.containerStyle), {
38
+ t.containerStyle = s(p({}, t.containerStyle), {
22
39
  zIndex: "1"
23
- }), t.contentStyle = d(a({}, t.contentStyle), {
40
+ }), t.contentStyle = s(p({}, t.contentStyle), {
24
41
  background: "#6386FF",
25
42
  borderRadius: "2px"
26
43
  });
27
44
  super(t);
28
- u(this, "area");
45
+ l(this, "area");
29
46
  this.area = t.area, this.containerDom.appendChild(this.contentDom);
30
47
  }
31
48
  /**
32
49
  * @description: dom 依赖的多边形的顶点的位置更新时,更新 dom 的位置和面积
33
50
  */
34
- updateArea(t, n) {
35
- const r = n != null ? n : this.area.polygon.geometry, i = A(r);
36
- if (!i) {
51
+ updateArea(t, i) {
52
+ var c, d;
53
+ const n = i != null ? i : this.area.polygon.geometry, r = I(n);
54
+ if (!r) {
37
55
  this.ndcPosition = null, this.updateDomPosition(t);
38
56
  return;
39
57
  }
40
- const { area: h, center: m } = i;
41
- this.ndcPosition = m, this.updateDomPosition(t), this.updateAreaText(h);
58
+ const { area: a, center: x } = r;
59
+ this.ndcPosition = x, this.updateDomPosition(t), (d = (c = this.area.model) == null ? void 0 : c.config) != null && d.getAreaText ? this.contentDom.innerText = this.area.model.config.getAreaText(a) : this.updateAreaText(a, { fix: 2 });
42
60
  }
43
- updateAreaText(t, n) {
44
- const { unit: r = "m²", fix: i = 2 } = n != null ? n : {};
45
- this.contentDom.innerText = `${t.toFixed(i)}${r}`;
61
+ updateAreaText(t, i) {
62
+ const { unit: n = "m²", fix: r } = i != null ? i : {};
63
+ this.contentDom.innerText = `${P(r) ? t : t.toFixed(r)}${n}`;
46
64
  }
47
65
  }
48
66
  export {
49
- f as AreaItem
67
+ U as AreaItem
50
68
  };
@@ -21,6 +21,7 @@ declare class ImagePlane extends MediaPlane {
21
21
  name: string;
22
22
  constructor(imageSrc: string, cornerPoints: Vector3[], params?: {
23
23
  objectFit?: ObjectFit;
24
+ resolveZFighting?: boolean;
24
25
  });
25
26
  }
26
27
  declare class VideoPlane extends MediaPlane {
@@ -1,38 +1,38 @@
1
1
  var E = Object.defineProperty;
2
- var V = (c, a, e) => a in c ? E(c, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[a] = e;
3
- var n = (c, a, e) => (V(c, typeof a != "symbol" ? a + "" : a, e), e);
4
- var v = (c, a, e) => new Promise((t, s) => {
5
- var i = (o) => {
2
+ var C = (c, d, e) => d in c ? E(c, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[d] = e;
3
+ var r = (c, d, e) => (C(c, typeof d != "symbol" ? d + "" : d, e), e);
4
+ var v = (c, d, e) => new Promise((t, s) => {
5
+ var o = (i) => {
6
6
  try {
7
- r(e.next(o));
7
+ n(e.next(i));
8
8
  } catch (h) {
9
9
  s(h);
10
10
  }
11
- }, d = (o) => {
11
+ }, a = (i) => {
12
12
  try {
13
- r(e.throw(o));
13
+ n(e.throw(i));
14
14
  } catch (h) {
15
15
  s(h);
16
16
  }
17
- }, r = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(i, d);
18
- r((e = e.apply(c, a)).next());
17
+ }, n = (i) => i.done ? t(i.value) : Promise.resolve(i.value).then(o, a);
18
+ n((e = e.apply(c, d)).next());
19
19
  });
20
- import * as M from "three";
21
- import { Vector3 as g } from "three";
22
- import { centerPoint as b } from "../../../shared-utils/three/centerPoint.js";
23
- import { loadTexture as x } from "../../../shared-utils/three/loadTexture.js";
24
- import { QuadrangleGeometry as C, QuadrangleMesh as y } from "../../../shared-utils/three/Quadrangle.js";
20
+ import * as l from "three";
21
+ import { Vector3 as w } from "three";
22
+ import { centerPoint as x } from "../../../shared-utils/three/centerPoint.js";
23
+ import { loadTexture as T } from "../../../shared-utils/three/loadTexture.js";
24
+ import { QuadrangleGeometry as F, QuadrangleMesh as I } from "../../../shared-utils/three/Quadrangle.js";
25
25
  import { getVideoTexture as B } from "../../../shared-utils/three/loadVideoTexture.js";
26
- import { Image_Play_Icon_With_Text as F, Image_Play_Icon as P } from "../../Assets/Icon.js";
26
+ import { Image_Play_Icon_With_Text as L, Image_Play_Icon as b } from "../../Assets/Icon.js";
27
27
  import { getPositionsByObjectFit as f } from "../../../shared-utils/three/getPositionsByObjectFit.js";
28
- import { FragmentTransparencyMaterial as L } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
28
+ import { FragmentTransparencyMaterial as H } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
29
29
  import "../../../shared-utils/math/pointIsRectangle.js";
30
30
  import "../../../shared-utils/device.js";
31
- class T extends M.Mesh {
31
+ class P extends l.Mesh {
32
32
  constructor() {
33
33
  super(...arguments);
34
- n(this, "name", "MediaPlane");
35
- n(this, "src");
34
+ r(this, "name", "MediaPlane");
35
+ r(this, "src");
36
36
  }
37
37
  removeFromParent() {
38
38
  const e = this.parent;
@@ -42,61 +42,76 @@ class T extends M.Mesh {
42
42
  this.traverse((e) => {
43
43
  if (e.isMesh) {
44
44
  const t = e;
45
- t.geometry.dispose(), (t.material instanceof Array ? t.material : [t.material]).forEach((i) => {
46
- i.dispose();
45
+ t.geometry.dispose(), (t.material instanceof Array ? t.material : [t.material]).forEach((o) => {
46
+ o.dispose();
47
47
  });
48
48
  }
49
49
  });
50
50
  }
51
51
  }
52
- class G extends T {
52
+ class G extends P {
53
53
  constructor(e, t, s) {
54
+ var n;
54
55
  super();
55
- n(this, "name", "PanoTagPluginImagePlane");
56
- this.src = e, x(e).then((i) => {
57
- var m;
58
- const d = new URL(e, location.href).pathname.endsWith(".png"), r = new M.MeshBasicMaterial({ map: i, transparent: d }), o = f((m = s == null ? void 0 : s.objectFit) != null ? m : "contain", t, i.image.width / i.image.height), h = b(...o), u = o.map((l) => l.clone().sub(h)), p = new C(u);
59
- this.position.copy(h), this.geometry = p, this.material = r;
56
+ r(this, "name", "PanoTagPluginImagePlane");
57
+ this.src = e;
58
+ const o = (n = s == null ? void 0 : s.resolveZFighting) != null ? n : !0;
59
+ let a = t;
60
+ if (o) {
61
+ const i = new l.Vector3().crossVectors(
62
+ new l.Vector3().subVectors(t[0], t[1]),
63
+ new l.Vector3().subVectors(t[0], t[3])
64
+ ).normalize().multiplyScalar(5e-4);
65
+ a = t.map((h) => h.clone().add(i));
66
+ }
67
+ T(e).then((i) => {
68
+ var g;
69
+ const h = new URL(e, location.href).pathname.endsWith(".png"), u = new l.MeshBasicMaterial({ map: i, transparent: h }), p = f(
70
+ (g = s == null ? void 0 : s.objectFit) != null ? g : "contain",
71
+ a,
72
+ i.image.width / i.image.height
73
+ ), m = x(...p), M = p.map((V) => V.clone().sub(m)), y = new F(M);
74
+ this.position.copy(m), this.geometry = y, this.material = u;
60
75
  }).catch((i) => {
61
76
  console.error(`Imageplane error ${i}`);
62
77
  });
63
78
  }
64
79
  }
65
- class O extends T {
80
+ class O extends P {
66
81
  // eslint-disable-next-line max-params
67
82
  constructor(e, t, s) {
68
83
  const {
69
- videoCoverSrc: i,
70
- objectFit: d = "contain",
71
- playButton: r = "withText",
72
- paused: o = !0,
84
+ videoCoverSrc: o,
85
+ objectFit: a = "contain",
86
+ playButton: n = "withText",
87
+ paused: i = !0,
73
88
  videoTextureMap: h,
74
89
  ImageTextureMap: u,
75
90
  domEvents: p
76
91
  } = s != null ? s : {};
77
92
  super();
78
- n(this, "isVideoPlane", !0);
79
- n(this, "name", "PanoTagPluginImagePlane");
80
- n(this, "videoInstance");
81
- n(this, "onVideoReady");
82
- n(this, "objectFit");
83
- n(this, "buttonSrc");
84
- n(this, "videoCoverSrc");
85
- n(this, "domEvents");
86
- n(this, "disposers", []);
87
- n(this, "cornerPoints");
88
- n(this, "videoMesh");
89
- n(this, "coverMesh");
90
- n(this, "buttonMesh");
91
- n(this, "videoTextureMap");
92
- n(this, "ImageTextureMap");
93
- this.cornerPoints = t, this.src = e, this.buttonSrc = (() => r === "withText" ? F : r === "withoutText" ? P : typeof r == "string" ? r : P)(), this.videoCoverSrc = i, this.objectFit = d, this.videoTextureMap = h, this.ImageTextureMap = u, this.domEvents = p, this.position.copy(b(...t)), this.videoCoverSrc && o ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
94
- o ? this.addButtonMesh() : this.play(!0);
93
+ r(this, "isVideoPlane", !0);
94
+ r(this, "name", "PanoTagPluginImagePlane");
95
+ r(this, "videoInstance");
96
+ r(this, "onVideoReady");
97
+ r(this, "objectFit");
98
+ r(this, "buttonSrc");
99
+ r(this, "videoCoverSrc");
100
+ r(this, "domEvents");
101
+ r(this, "disposers", []);
102
+ r(this, "cornerPoints");
103
+ r(this, "videoMesh");
104
+ r(this, "coverMesh");
105
+ r(this, "buttonMesh");
106
+ r(this, "videoTextureMap");
107
+ r(this, "ImageTextureMap");
108
+ this.cornerPoints = t, this.src = e, this.buttonSrc = (() => n === "withText" ? L : n === "withoutText" ? b : typeof n == "string" ? n : b)(), this.videoCoverSrc = o, this.objectFit = a, this.videoTextureMap = h, this.ImageTextureMap = u, this.domEvents = p, this.position.copy(x(...t)), this.videoCoverSrc && i ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
109
+ i ? this.addButtonMesh() : this.play(!0);
95
110
  }), this.addEventListener("removed", () => {
96
111
  this.remove(...this.children);
97
112
  }), this.addEventListener("dispose", () => {
98
113
  var m;
99
- (m = this.disposers) == null || m.forEach((l) => l == null ? void 0 : l());
114
+ (m = this.disposers) == null || m.forEach((M) => M == null ? void 0 : M());
100
115
  });
101
116
  }
102
117
  play(e = !1) {
@@ -111,8 +126,8 @@ class O extends T {
111
126
  }
112
127
  initialRenderHooks(e) {
113
128
  const s = e(() => {
114
- var i;
115
- this.videoMesh && ((i = this.videoInstance) == null ? void 0 : i.paused) === !1 && (this.videoMesh.needsRender = !0);
129
+ var o;
130
+ this.videoMesh && ((o = this.videoInstance) == null ? void 0 : o.paused) === !1 && (this.videoMesh.needsRender = !0);
116
131
  });
117
132
  this.disposers.push(() => s);
118
133
  }
@@ -140,8 +155,8 @@ class O extends T {
140
155
  const t = yield this.getImageTexture(this.videoCoverSrc);
141
156
  if (!t)
142
157
  return;
143
- const s = new M.MeshBasicMaterial({ transparent: !1, map: t }), i = f(this.objectFit, this.cornerPoints, t.image.width / t.image.height), d = new y(i, s);
144
- return d.position.copy(new g(0, 0, 0)), d.name = "videoCoverMesh", d;
158
+ const s = new l.MeshBasicMaterial({ transparent: !1, map: t }), o = f(this.objectFit, this.cornerPoints, t.image.width / t.image.height), a = new I(o, s);
159
+ return a.position.copy(new w(0, 0, 0)), a.name = "videoCoverMesh", a;
145
160
  }))();
146
161
  return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
147
162
  });
@@ -155,13 +170,13 @@ class O extends T {
155
170
  return this.videoMesh;
156
171
  if (!this.src)
157
172
  return;
158
- const s = this.getVideoTexture(this.src), i = new M.MeshBasicMaterial({ transparent: !1, map: s }), d = yield new Promise((o) => {
159
- s.metadataLoaded ? o(f(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
173
+ const s = this.getVideoTexture(this.src), o = new l.MeshBasicMaterial({ transparent: !1, map: s }), a = yield new Promise((i) => {
174
+ s.metadataLoaded ? i(f(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
160
175
  "videoLoaded",
161
- () => o(f(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
176
+ () => i(f(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
162
177
  );
163
- }), r = new y(d, i);
164
- return r.name = "videoMesh", r.position.copy(new g(0, 0, 0)), r;
178
+ }), n = new I(a, o);
179
+ return n.name = "videoMesh", n.position.copy(new w(0, 0, 0)), n;
165
180
  }))();
166
181
  if (!e)
167
182
  return;
@@ -181,12 +196,12 @@ class O extends T {
181
196
  if (this.children.includes(this.buttonMesh))
182
197
  return;
183
198
  const e = yield (() => v(this, null, function* () {
184
- var m, l, w, I;
199
+ var m, M, y, g;
185
200
  if (this.buttonMesh)
186
201
  return this.buttonMesh;
187
- const t = (l = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? l : 1 / 0, s = (I = (w = this.coverMesh) == null ? void 0 : w.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? I : 1 / 0, i = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), r = Math.min(t, s, i) / i * 0.3, o = yield this.getImageTexture(this.buttonSrc), h = f("contain", this.cornerPoints, o.image.width / o.image.height), u = new y(h, new L(o));
188
- u.position.copy(new g(0, 0, 0)), u.name = "buttonMesh", u.scale.set(r, r, r), this.domEvents.addAutoBindEventListener(u, "click", () => this.play());
189
- const p = new M.Vector3().crossVectors(new M.Vector3().subVectors(h[0], h[1]), new M.Vector3().subVectors(h[0], h[3])).normalize().multiplyScalar(1e-4);
202
+ const t = (M = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? M : 1 / 0, s = (g = (y = this.coverMesh) == null ? void 0 : y.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? g : 1 / 0, o = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), n = Math.min(t, s, o) / o * 0.3, i = yield this.getImageTexture(this.buttonSrc), h = f("contain", this.cornerPoints, i.image.width / i.image.height), u = new I(h, new H(i));
203
+ u.position.copy(new w(0, 0, 0)), u.name = "buttonMesh", u.scale.set(n, n, n), this.domEvents.addAutoBindEventListener(u, "click", () => this.play());
204
+ const p = new l.Vector3().crossVectors(new l.Vector3().subVectors(h[0], h[1]), new l.Vector3().subVectors(h[0], h[3])).normalize().multiplyScalar(1e-4);
190
205
  return u.position.add(p), u;
191
206
  }))();
192
207
  return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
@@ -194,19 +209,19 @@ class O extends T {
194
209
  }
195
210
  getImageTexture(e) {
196
211
  return v(this, null, function* () {
197
- var s, i;
212
+ var s, o;
198
213
  if ((s = this.ImageTextureMap) != null && s.has(e))
199
214
  return this.ImageTextureMap.get(e);
200
- const t = yield x(e);
201
- return (i = this.ImageTextureMap) == null || i.set(e, t), t;
215
+ const t = yield T(e);
216
+ return (o = this.ImageTextureMap) == null || o.set(e, t), t;
202
217
  });
203
218
  }
204
219
  getVideoTexture(e) {
205
- var s, i;
220
+ var s, o;
206
221
  if ((s = this.videoTextureMap) != null && s.has(e))
207
222
  return this.videoTextureMap.get(e);
208
223
  const t = B(e);
209
- return (i = this.videoTextureMap) == null || i.set(e, t), t;
224
+ return (o = this.videoTextureMap) == null || o.set(e, t), t;
210
225
  }
211
226
  }
212
227
  export {
@@ -14,7 +14,7 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "2.24.0");
17
+ i(this, "VERSION", "2.24.2");
18
18
  i(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
package/libs/index.js CHANGED
@@ -184,6 +184,7 @@ import "./PanoMeasurePlugin/utils/generatePolygonGeometry.js";
184
184
  import "earcut";
185
185
  import "./PanoMeasurePlugin/utils/dom/areaDom.js";
186
186
  import "./PanoMeasurePlugin/utils/geometryUtil.js";
187
+ import "./shared-utils/isNil.js";
187
188
  import "./PanoMeasurePlugin/utils/isIntersecting.js";
188
189
  import "./shared-utils/three/PointSelector.js";
189
190
  import "./shared-utils/three/PointSelectorHelper.js";
@@ -276,7 +277,6 @@ import "./PanoTagPlugin/controller/TagRender.js";
276
277
  import "./PanoTagPlugin/controller/TagComputer.js";
277
278
  import "./PanoTagPlugin/utils/tagPosition.js";
278
279
  import "./PanoTagPlugin/utils/checkRange.js";
279
- import "./shared-utils/isNil.js";
280
280
  import "./PanoTagPlugin/controller/TagUtil.js";
281
281
  import "./PanoTagPlugin/tag.config.js";
282
282
  import "./PanoTagPlugin/utils/planeNormal.js";
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv2.24.0",
3
+ "%c %c@realsee/dnalogel %cv2.24.2",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.24.0",
10
+ "version": "2.24.2",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",