@realsee/dnalogel 3.73.0 → 3.73.1-alpha.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 (510) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
  3. package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
  4. package/dist/index.cjs.js +49 -49
  5. package/dist/index.js +4840 -4722
  6. package/dist/index.umd.js +70 -70
  7. package/dist/shared-utils/five/getFloorMesh.d.ts +3 -0
  8. package/libs/CruisePlugin/Move.js +3 -2
  9. package/libs/CruisePlugin/Work.js +3 -2
  10. package/libs/CruisePlugin/index.js +7 -6
  11. package/libs/GuideLinePlugin/Controller.js +5 -4
  12. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  13. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  14. package/libs/GuideLinePlugin/index.js +7 -6
  15. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +230 -230
  16. package/libs/PanoTagPlugin/Components/TagItem.js +231 -219
  17. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
  18. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +190 -131
  19. package/libs/PanoTagPlugin/controller/index.js +6 -5
  20. package/libs/PanoTagPlugin/index.js +12 -11
  21. package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
  22. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +167 -136
  23. package/libs/base/BasePlugin.js +1 -1
  24. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +44 -44
  25. package/libs/index.js +149 -148
  26. package/libs/shared-utils/five/getFloorMesh.d.ts +3 -0
  27. package/libs/shared-utils/five/getFloorMesh.js +11 -0
  28. package/libs/shared-utils/logger.js +1 -1
  29. package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +151 -139
  30. package/package.json +2 -2
  31. package/docs/.nojekyll +0 -1
  32. package/docs/assets/custom.css +0 -0
  33. package/docs/assets/highlight.css +0 -127
  34. package/docs/assets/icons.js +0 -18
  35. package/docs/assets/icons.svg +0 -1
  36. package/docs/assets/main.js +0 -60
  37. package/docs/assets/navigation.js +0 -1
  38. package/docs/assets/search.js +0 -1
  39. package/docs/assets/style.css +0 -1493
  40. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -59
  41. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -71
  42. package/docs/classes/CSS3DRender.html +0 -100
  43. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -21
  44. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -70
  45. package/docs/classes/ModelMakerPluginInstance.html +0 -116
  46. package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +0 -52
  47. package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +0 -52
  48. package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +0 -53
  49. package/docs/classes/ModelRoomLabelController.html +0 -19
  50. package/docs/classes/MoveController.html +0 -45
  51. package/docs/classes/Object3DHelperController.html +0 -45
  52. package/docs/classes/PaintBrush.html +0 -15
  53. package/docs/classes/PanoMeasurePluginLine.html +0 -24
  54. package/docs/classes/PanoMeasurePluginModel.html +0 -23
  55. package/docs/classes/PanoMeasurePluginPoint.html +0 -7
  56. package/docs/classes/PanoMeasurePluginPolyline.html +0 -27
  57. package/docs/classes/PanoTagPluginController.html +0 -111
  58. package/docs/classes/Sculpt.html +0 -77
  59. package/docs/classes/Util.BetterTween.html +0 -6
  60. package/docs/classes/Util.FiveDomEvents.html +0 -13
  61. package/docs/classes/Util.FivePuppet.html +0 -20
  62. package/docs/classes/Util.Interval.html +0 -11
  63. package/docs/classes/Util.LegacyPointHelper.html +0 -7
  64. package/docs/classes/Util.LightTag.html +0 -47
  65. package/docs/classes/Util.LineSegments.html +0 -4
  66. package/docs/classes/Util.Magnifier.html +0 -26
  67. package/docs/classes/Util.Object3D.html +0 -8
  68. package/docs/classes/Util.PointDomHelper.html +0 -8
  69. package/docs/classes/Util.PointHelper.html +0 -10
  70. package/docs/classes/Util.PointSelector.html +0 -66
  71. package/docs/classes/Util.PointSelectorHelper.html +0 -14
  72. package/docs/classes/Util.Rectangle.html +0 -12
  73. package/docs/classes/Util.sculpt.BaseEditor.html +0 -17
  74. package/docs/classes/Util.sculpt.BoxMesh.html +0 -48
  75. package/docs/classes/Util.sculpt.BoxMeshEditor.html +0 -18
  76. package/docs/classes/Util.sculpt.CircleMesh.html +0 -26
  77. package/docs/classes/Util.sculpt.CircleMeshEditor.html +0 -18
  78. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +0 -26
  79. package/docs/classes/Util.sculpt.CylinderMesh.html +0 -25
  80. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +0 -18
  81. package/docs/classes/Util.sculpt.LineMesh.html +0 -34
  82. package/docs/classes/Util.sculpt.PointMesh.html +0 -24
  83. package/docs/classes/Util.sculpt.PolygonMesh.html +0 -40
  84. package/docs/classes/Util.sculpt.PrismMesh.html +0 -48
  85. package/docs/classes/Util.sculpt.PrismMeshEditor.html +0 -18
  86. package/docs/classes/Util.sculpt.RectangleMesh.html +0 -41
  87. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +0 -18
  88. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +0 -44
  89. package/docs/classes/WalkController.html +0 -42
  90. package/docs/enums/CameraMovementEffect.html +0 -4
  91. package/docs/enums/ContentType.html +0 -34
  92. package/docs/enums/DIRECTION.html +0 -5
  93. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -5
  94. package/docs/enums/DimensionType.html +0 -4
  95. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -4
  96. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -5
  97. package/docs/enums/PaintBrushTypeEnum.html +0 -4
  98. package/docs/enums/PointType.html +0 -4
  99. package/docs/enums/Rotation.html +0 -5
  100. package/docs/functions/AreaMakerPlugin.html +0 -1
  101. package/docs/functions/CSS3DRenderPlugin.html +0 -1
  102. package/docs/functions/CameraMovementPlugin.html +0 -2
  103. package/docs/functions/CruisePlugin.html +0 -1
  104. package/docs/functions/CurrentPanoImagePlugin.html +0 -1
  105. package/docs/functions/FloorplanGuidePlugin.html +0 -1
  106. package/docs/functions/GuideLinePlugin.html +0 -1
  107. package/docs/functions/ItemLabelPlugin.html +0 -1
  108. package/docs/functions/MapviewFloorplanPlugin.html +0 -1
  109. package/docs/functions/MeasurePlugin.html +0 -1
  110. package/docs/functions/ModelChassisCompassPlugin.html +0 -2
  111. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -2
  112. package/docs/functions/ModelFloorplanPlugin.html +0 -1
  113. package/docs/functions/ModelItemLabelPlugin.html +0 -1
  114. package/docs/functions/ModelMakerPlugin.html +0 -1
  115. package/docs/functions/ModelRoomLabelPlugin.html +0 -1
  116. package/docs/functions/ModelTVVideoPlugin.html +0 -1
  117. package/docs/functions/ModelViewPlugin.html +0 -2
  118. package/docs/functions/MovePlugin.html +0 -1
  119. package/docs/functions/Object3DHelperPlugin.html +0 -1
  120. package/docs/functions/PanoCompassPlugin.html +0 -1
  121. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -2
  122. package/docs/functions/PanoDoorLabelPlugin.html +0 -1
  123. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -1
  124. package/docs/functions/PanoMeasurePlugin.html +0 -1
  125. package/docs/functions/PanoRulerPlugin.html +0 -2
  126. package/docs/functions/PanoRulerProPlugin.html +0 -2
  127. package/docs/functions/PanoSpatialTagPlugin.html +0 -2
  128. package/docs/functions/PanoTagPlugin.html +0 -1
  129. package/docs/functions/PanoVideoPlugin.html +0 -10
  130. package/docs/functions/PipelinePlugin.html +0 -1
  131. package/docs/functions/SculptPlugin.html +0 -2
  132. package/docs/functions/SculptPluginForFive.html +0 -2
  133. package/docs/functions/TopviewFloorplanPlugin.html +0 -1
  134. package/docs/functions/Util.awaitNextFrame.html +0 -1
  135. package/docs/functions/Util.blink.html +0 -13
  136. package/docs/functions/Util.blinkWithPreset.html +0 -6
  137. package/docs/functions/Util.bounding.html +0 -1
  138. package/docs/functions/Util.boundingBox.html +0 -1
  139. package/docs/functions/Util.boundingSphere.html +0 -1
  140. package/docs/functions/Util.boxVertex.html +0 -7
  141. package/docs/functions/Util.boxVertexes.html +0 -1
  142. package/docs/functions/Util.checkFiveModelLoaded.html +0 -2
  143. package/docs/functions/Util.cleanup.html +0 -3
  144. package/docs/functions/Util.convexHull.html +0 -2
  145. package/docs/functions/Util.equal.html +0 -5
  146. package/docs/functions/Util.fiveModelIsLoaded.html +0 -2
  147. package/docs/functions/Util.getCoordsFromClient.html +0 -1
  148. package/docs/functions/Util.getCoordsFromElement.html +0 -1
  149. package/docs/functions/Util.getFrameTime.html +0 -3
  150. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -1
  151. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -1
  152. package/docs/functions/Util.initialCSS3DRender.html +0 -1
  153. package/docs/functions/Util.inside.html +0 -1
  154. package/docs/functions/Util.isModelLike.html +0 -1
  155. package/docs/functions/Util.isNil.html +0 -2
  156. package/docs/functions/Util.isPanoramaLike.html +0 -1
  157. package/docs/functions/Util.lookObject.html +0 -7
  158. package/docs/functions/Util.lookPoint.html +0 -5
  159. package/docs/functions/Util.nextFrame.html +0 -1
  160. package/docs/functions/Util.notNil.html +0 -2
  161. package/docs/functions/Util.reblink.html +0 -13
  162. package/docs/functions/Util.replaceStaticPrefix.html +0 -8
  163. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -5
  164. package/docs/functions/Util.sculpt.createBox.html +0 -1
  165. package/docs/functions/Util.sculpt.createCircle.html +0 -1
  166. package/docs/functions/Util.sculpt.createCylinder.html +0 -1
  167. package/docs/functions/Util.sculpt.createLine.html +0 -2
  168. package/docs/functions/Util.sculpt.createPoint.html +0 -1
  169. package/docs/functions/Util.sculpt.createPolygon.html +0 -1
  170. package/docs/functions/Util.sculpt.createPrism.html +0 -1
  171. package/docs/functions/Util.sculpt.createRectangle.html +0 -2
  172. package/docs/functions/Util.tag.html +0 -1
  173. package/docs/functions/Util.tweenProgress.html +0 -1
  174. package/docs/functions/Util.uuid.html +0 -2
  175. package/docs/functions/Util.waitFiveModelLoaded.html +0 -2
  176. package/docs/functions/Util.worldBounding.html +0 -1
  177. package/docs/functions/Util.worldBoundingBox.html +0 -1
  178. package/docs/functions/Util.worldBoundingSphere.html +0 -1
  179. package/docs/functions/createPolyline.html +0 -2
  180. package/docs/functions/pluginFlag.html +0 -1
  181. package/docs/hierarchy.html +0 -1
  182. package/docs/index.html +0 -70
  183. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -4
  184. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -8
  185. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -25
  186. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -4
  187. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -20
  188. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -13
  189. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -9
  190. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -3
  191. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -3
  192. package/docs/interfaces/AreaMakerPluginType.State.html +0 -8
  193. package/docs/interfaces/BoxAnimationConfig.html +0 -6
  194. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -9
  195. package/docs/interfaces/CSS3DRenderPluginState.html +0 -7
  196. package/docs/interfaces/CameraMovementPluginExportType.html +0 -11
  197. package/docs/interfaces/ContentTypeMapInterface.html +0 -73
  198. package/docs/interfaces/CruisePluginTypes.Config.html +0 -7
  199. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -8
  200. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -33
  201. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +0 -6
  202. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -16
  203. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -19
  204. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -20
  205. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -8
  206. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -2
  207. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -15
  208. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -13
  209. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -15
  210. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -4
  211. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -3
  212. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -7
  213. package/docs/interfaces/FloorplanBounding.html +0 -9
  214. package/docs/interfaces/FloorplanData.html +0 -7
  215. package/docs/interfaces/FloorplanEntrance.html +0 -14
  216. package/docs/interfaces/FloorplanExtraObject.html +0 -9
  217. package/docs/interfaces/FloorplanExtraObject3D.html +0 -5
  218. package/docs/interfaces/FloorplanFloorData.html +0 -9
  219. package/docs/interfaces/FloorplanImagePosition.html +0 -4
  220. package/docs/interfaces/FloorplanObserver.html +0 -8
  221. package/docs/interfaces/FloorplanOutlineItem.html +0 -6
  222. package/docs/interfaces/FloorplanPosition.html +0 -4
  223. package/docs/interfaces/FloorplanRoomItem.html +0 -24
  224. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -6
  225. package/docs/interfaces/FloorplanServerBounding.html +0 -9
  226. package/docs/interfaces/FloorplanServerComputedData.html +0 -6
  227. package/docs/interfaces/FloorplanServerData.html +0 -4
  228. package/docs/interfaces/FloorplanServerDoorItem.html +0 -6
  229. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -4
  230. package/docs/interfaces/FloorplanServerEntrance.html +0 -14
  231. package/docs/interfaces/FloorplanServerFloorData.html +0 -8
  232. package/docs/interfaces/FloorplanServerImagePosition.html +0 -4
  233. package/docs/interfaces/FloorplanServerObserver.html +0 -8
  234. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -6
  235. package/docs/interfaces/FloorplanServerPosition.html +0 -4
  236. package/docs/interfaces/FloorplanServerRoomItem.html +0 -27
  237. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -6
  238. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -4
  239. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -7
  240. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -13
  241. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +0 -5
  242. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -8
  243. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -2
  244. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -32
  245. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -4
  246. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -5
  247. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -42
  248. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -3
  249. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -57
  250. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -1
  251. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -2
  252. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -7
  253. package/docs/interfaces/GuideLinePluginType.Route.html +0 -13
  254. package/docs/interfaces/HelperOffset.html +0 -4
  255. package/docs/interfaces/ImagePlaneGroup.html +0 -3
  256. package/docs/interfaces/ItemLabelPluginData.html +0 -2
  257. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -7
  258. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -5
  259. package/docs/interfaces/MinMax.html +0 -3
  260. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -3
  261. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -4
  262. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -3
  263. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -4
  264. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -4
  265. package/docs/interfaces/ModelItemLabelPluginData.html +0 -2
  266. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -7
  267. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -3
  268. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +0 -17
  269. package/docs/interfaces/ModelMakerPluginType.EventMap.html +0 -18
  270. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +0 -23
  271. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +0 -11
  272. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +0 -10
  273. package/docs/interfaces/ModelMakerPluginType.ServerData.html +0 -3
  274. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +0 -10
  275. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +0 -10
  276. package/docs/interfaces/ModelMakerPluginType.State.html +0 -8
  277. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +0 -11
  278. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -2
  279. package/docs/interfaces/ModelTVVideoPluginData.html +0 -5
  280. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -4
  281. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -2
  282. package/docs/interfaces/ModelViewPluginExportType.html +0 -8
  283. package/docs/interfaces/Object3DHelperState.html +0 -4
  284. package/docs/interfaces/ObjectHelperControllers.html +0 -5
  285. package/docs/interfaces/PaintBrushAction.html +0 -14
  286. package/docs/interfaces/PaintBrushConfigs.html +0 -8
  287. package/docs/interfaces/PaintBrushState.html +0 -6
  288. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -16
  289. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -1
  290. package/docs/interfaces/PanoMeasureParameterType.html +0 -20
  291. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -4
  292. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -4
  293. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -3
  294. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -7
  295. package/docs/interfaces/PanoRulerPluginExportType.html +0 -6
  296. package/docs/interfaces/PanoRulerPluginOptions.html +0 -3
  297. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -4
  298. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -5
  299. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -3
  300. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -3
  301. package/docs/interfaces/PanoRulerProPluginState.html +0 -4
  302. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -1
  303. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -1
  304. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -7
  305. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -6
  306. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -9
  307. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -6
  308. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -9
  309. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -7
  310. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -6
  311. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -3
  312. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -8
  313. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -2
  314. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -15
  315. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -2
  316. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -14
  317. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -13
  318. package/docs/interfaces/PluginEventMap.html +0 -16
  319. package/docs/interfaces/Point.html +0 -4
  320. package/docs/interfaces/Room.html +0 -5
  321. package/docs/interfaces/RoomInfo.html +0 -3
  322. package/docs/interfaces/RoomLabel.html +0 -16
  323. package/docs/interfaces/RoomRules.html +0 -1
  324. package/docs/interfaces/Rooms.html +0 -1
  325. package/docs/interfaces/Scissor.html +0 -13
  326. package/docs/interfaces/SculptConfig.html +0 -14
  327. package/docs/interfaces/State.html +0 -7
  328. package/docs/interfaces/TagCacheInterface.html +0 -9
  329. package/docs/interfaces/TagConfig.html +0 -164
  330. package/docs/interfaces/TagGLTFObjectGroup.html +0 -3
  331. package/docs/interfaces/TagIconAnimationConfig.html +0 -7
  332. package/docs/interfaces/TagIconUrl.html +0 -20
  333. package/docs/interfaces/TagObjectGroup.html +0 -3
  334. package/docs/interfaces/TagState.html +0 -3
  335. package/docs/interfaces/TagStyle.html +0 -5
  336. package/docs/interfaces/Tags.html +0 -8
  337. package/docs/interfaces/TemporaryState.html +0 -2
  338. package/docs/interfaces/Util.AnimeInstance.html +0 -14
  339. package/docs/interfaces/Util.BlinkAnimeOptions.html +0 -21
  340. package/docs/interfaces/Util.EventHandlerConfig.html +0 -21
  341. package/docs/interfaces/Util.FiveDomEvent.html +0 -7
  342. package/docs/interfaces/Util.FiveDomEventMap.html +0 -20
  343. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +0 -4
  344. package/docs/interfaces/Util.MagnifierParameter.html +0 -13
  345. package/docs/interfaces/Util.MouseGroupParameter.html +0 -4
  346. package/docs/interfaces/Util.ObjectInitialState.html +0 -9
  347. package/docs/interfaces/Util.PointIntersection.html +0 -21
  348. package/docs/interfaces/Util.PointSelectorHelperConfig.html +0 -6
  349. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +0 -27
  350. package/docs/modules/AreaMakerPluginType.html +0 -17
  351. package/docs/modules/CruisePluginTypes.html +0 -14
  352. package/docs/modules/CurrentPanoImagePluginType.html +0 -6
  353. package/docs/modules/GuideLineItem.html +0 -2
  354. package/docs/modules/GuideLineModeItem.html +0 -3
  355. package/docs/modules/GuideLinePluginType.html +0 -25
  356. package/docs/modules/ModelMakerPluginType.html +0 -19
  357. package/docs/modules/PanoVideoPluginType.html +0 -8
  358. package/docs/modules/SculptData.html +0 -9
  359. package/docs/modules/SculptType.html +0 -2
  360. package/docs/modules/Util.html +0 -86
  361. package/docs/modules/Util.sculpt.html +0 -25
  362. package/docs/modules.html +0 -279
  363. package/docs/types/AddObject3DHelperConfig.html +0 -19
  364. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -7
  365. package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -1
  366. package/docs/types/AreaMakerPluginType.PluginData.html +0 -2
  367. package/docs/types/AreaMakerPluginType.ServerData.html +0 -2
  368. package/docs/types/ArrayPosition.html +0 -1
  369. package/docs/types/AudioAppearance.html +0 -1
  370. package/docs/types/CSS3DRenderExportType.html +0 -1
  371. package/docs/types/CSS3DRenderPluginExportType.html +0 -1
  372. package/docs/types/CSS3DRenderPluginParameterType.html +0 -1
  373. package/docs/types/ClassFunctionParameters.html +0 -1
  374. package/docs/types/Color.html +0 -1
  375. package/docs/types/ContentTypeConfigKey.html +0 -1
  376. package/docs/types/ContentTypeConfigKeySplit.html +0 -1
  377. package/docs/types/ContentTypeMap.html +0 -1
  378. package/docs/types/Create3DDomContainerReturnType.html +0 -1
  379. package/docs/types/Create3DElementReturnType.html +0 -1
  380. package/docs/types/CruisePluginExportType.html +0 -1
  381. package/docs/types/CruisePluginTypes.CruiseData.html +0 -5
  382. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -1
  383. package/docs/types/CurrentPanoImagePluginExportType.html +0 -1
  384. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -3
  385. package/docs/types/DeprecatedTagProperty.html +0 -3
  386. package/docs/types/Direction-1.html +0 -1
  387. package/docs/types/Direction4.html +0 -1
  388. package/docs/types/ElementRenderer.html +0 -2
  389. package/docs/types/FloorplanGuidePluginParameterType.html +0 -1
  390. package/docs/types/FloorplanGuidePluginReturnType.html +0 -1
  391. package/docs/types/FloorplanRuleLabels.html +0 -2
  392. package/docs/types/FloorplanServerRuleLabels.html +0 -1
  393. package/docs/types/GuideLinePluginExportType.html +0 -1
  394. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -2
  395. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -1
  396. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -1
  397. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -2
  398. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -2
  399. package/docs/types/GuideLinePluginType.PathItem.html +0 -2
  400. package/docs/types/GuideLinePluginType.PluginData.html +0 -2
  401. package/docs/types/GuideLinePluginType.RouteConfig.html +0 -4
  402. package/docs/types/HelperEventMap.html +0 -1
  403. package/docs/types/InternalHelperEventMap.html +0 -1
  404. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -1
  405. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -1
  406. package/docs/types/MeasureEndReason.html +0 -1
  407. package/docs/types/MeasurePluginConfig.html +0 -5
  408. package/docs/types/MediaData.html +0 -2
  409. package/docs/types/MediaStore.html +0 -1
  410. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -1
  411. package/docs/types/ModelFloorplanPluginParameterType.html +0 -1
  412. package/docs/types/ModelFloorplanPluginReturnType.html +0 -1
  413. package/docs/types/ModelId.html +0 -1
  414. package/docs/types/ModelMakerPluginType.ElementRenderer.html +0 -1
  415. package/docs/types/ModelMakerPluginType.ItemType.html +0 -2
  416. package/docs/types/ModelMakerPluginType.MarkerItem.html +0 -1
  417. package/docs/types/ModelMakerPluginType.ServerItem.html +0 -2
  418. package/docs/types/ModelRoomLabelPluginParameters.html +0 -1
  419. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -1
  420. package/docs/types/MoveArgs.html +0 -2
  421. package/docs/types/MoveOpts.html +0 -2
  422. package/docs/types/Object3DHelperEventMap.html +0 -1
  423. package/docs/types/ObjectFit.html +0 -1
  424. package/docs/types/PaintBrushEventMap.html +0 -1
  425. package/docs/types/PanoCompassPluginData.html +0 -1
  426. package/docs/types/PanoCompassPluginExportType.html +0 -1
  427. package/docs/types/PanoCompassPluginParameterType.html +0 -1
  428. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -1
  429. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -1
  430. package/docs/types/PanoIndex.html +0 -1
  431. package/docs/types/PanoMeasurePluginEvent.html +0 -1
  432. package/docs/types/PanoMeasureReturnType.html +0 -1
  433. package/docs/types/PanoSpatialTagPluginId.html +0 -1
  434. package/docs/types/PanoTagPluginExportInterface.html +0 -1
  435. package/docs/types/PanoTagPluginParamsInterface.html +0 -1
  436. package/docs/types/PanoVideoPluginParameterType.html +0 -1
  437. package/docs/types/PanoVideoPluginReturnType.html +0 -1
  438. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -2
  439. package/docs/types/PipelinePluginParameterType.html +0 -1
  440. package/docs/types/PipelinePluginReturnType.html +0 -1
  441. package/docs/types/PlaneTag.html +0 -2
  442. package/docs/types/Point2DTag.html +0 -2
  443. package/docs/types/Point3DTag.html +0 -2
  444. package/docs/types/PointTagInstance.html +0 -1
  445. package/docs/types/Position.html +0 -1
  446. package/docs/types/PositionFrom.html +0 -1
  447. package/docs/types/RotateArgs.html +0 -2
  448. package/docs/types/RotateOpts.html +0 -2
  449. package/docs/types/RuleLabelsKey.html +0 -1
  450. package/docs/types/RuleLabelsValue.html +0 -1
  451. package/docs/types/ScaleCallback.html +0 -1
  452. package/docs/types/ScalePosition.html +0 -3
  453. package/docs/types/SculptData.BoxData.html +0 -1
  454. package/docs/types/SculptData.CircleData.html +0 -1
  455. package/docs/types/SculptData.CylinderData.html +0 -1
  456. package/docs/types/SculptData.PointData.html +0 -1
  457. package/docs/types/SculptData.PolygonData.html +0 -1
  458. package/docs/types/SculptData.PolylineData.html +0 -1
  459. package/docs/types/SculptData.PrismData.html +0 -1
  460. package/docs/types/SculptData.RectangleData.html +0 -1
  461. package/docs/types/SculptType.Theme.html +0 -10
  462. package/docs/types/StickType.html +0 -1
  463. package/docs/types/Tag.html +0 -17
  464. package/docs/types/Tag2D.html +0 -2
  465. package/docs/types/Tag3D.html +0 -2
  466. package/docs/types/TagClickParams.html +0 -1
  467. package/docs/types/TagConfigByKey.html +0 -1
  468. package/docs/types/TagContentType.html +0 -1
  469. package/docs/types/TagContentTypeMapping.html +0 -1
  470. package/docs/types/TagDimensionType.html +0 -1
  471. package/docs/types/TagElement.html +0 -2
  472. package/docs/types/TagEvents.html +0 -1
  473. package/docs/types/TagGLTFObject.html +0 -1
  474. package/docs/types/TagHooks.html +0 -1
  475. package/docs/types/TagId.html +0 -1
  476. package/docs/types/TagInstance.html +0 -1
  477. package/docs/types/TagPlacement.html +0 -5
  478. package/docs/types/TagPointType.html +0 -2
  479. package/docs/types/TagRendererMap.html +0 -1
  480. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -1
  481. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -1
  482. package/docs/types/Util.ActionIfNoIntersection.html +0 -1
  483. package/docs/types/Util.AdherePoint.html +0 -2
  484. package/docs/types/Util.PointSelectorConfig.html +0 -1
  485. package/docs/types/Util.SupportedTarget.html +0 -2
  486. package/docs/types/Util.Target.html +0 -2
  487. package/docs/types/Util.ThreeObject.html +0 -2
  488. package/docs/types/WorkCode.html +0 -1
  489. package/docs/variables/FLOOR_TYPE_MAP.html +0 -2
  490. package/docs/variables/PLUGIN.html +0 -1
  491. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -2
  492. package/docs/variables/ROOM_TYPE_MAP.html +0 -2
  493. package/docs/variables/Util.ANIME_PRESETS.html +0 -2
  494. package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +0 -2
  495. package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +0 -2
  496. package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +0 -2
  497. package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +0 -2
  498. package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +0 -2
  499. package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +0 -2
  500. package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +0 -2
  501. package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +0 -2
  502. package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +0 -2
  503. package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +0 -2
  504. package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +0 -2
  505. package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +0 -2
  506. package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +0 -2
  507. package/docs/variables/defaultGlobalConfig.html +0 -1
  508. package/docs/variables/itemLabelPluginServerParams.html +0 -1
  509. package/docs/variables/modelItemLabelPluginServerParams.html +0 -1
  510. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -1
@@ -1,41 +1,55 @@
1
- var _ = Object.defineProperty;
2
- var G = (p, l, e) => l in p ? _(p, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[l] = e;
3
- var r = (p, l, e) => (G(p, typeof l != "symbol" ? l + "" : l, e), e);
4
- var d = (p, l, e) => new Promise((t, s) => {
5
- var i = (o) => {
1
+ var G = Object.defineProperty;
2
+ var O = (M, l, e) => l in M ? G(M, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : M[l] = e;
3
+ var a = (M, l, e) => (O(M, typeof l != "symbol" ? l + "" : l, e), e);
4
+ var m = (M, l, e) => new Promise((t, i) => {
5
+ var s = (o) => {
6
6
  try {
7
7
  n(e.next(o));
8
- } catch (a) {
9
- s(a);
8
+ } catch (d) {
9
+ i(d);
10
10
  }
11
- }, h = (o) => {
11
+ }, r = (o) => {
12
12
  try {
13
13
  n(e.throw(o));
14
- } catch (a) {
15
- s(a);
14
+ } catch (d) {
15
+ i(d);
16
16
  }
17
- }, n = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(i, h);
18
- n((e = e.apply(p, l)).next());
17
+ }, n = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, r);
18
+ n((e = e.apply(M, l)).next());
19
19
  });
20
20
  import * as y from "three";
21
- import { Vector3 as T } from "three";
21
+ import { Vector3 as b } from "three";
22
22
  import { centerPoint as I } from "../../../shared-utils/three/centerPoint.js";
23
- import { loadPicture as E } from "../../../shared-utils/three/loadTexture.js";
24
- import { QuadrangleGeometry as F, QuadrangleMesh as x } from "../../../shared-utils/three/Quadrangle.js";
25
- import { getVideoTexture as j } from "../../../shared-utils/three/loadVideoTexture.js";
26
- import { Image_Play_Icon_With_Text as V, Image_Play_Icon as S } from "../../Assets/Icon.js";
27
- import { getPositionsByObjectFit as M } from "../../../shared-utils/three/getPositionsByObjectFit.js";
28
- import { FragmentTransparencyMaterial as B } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
23
+ import { loadPicture as H } from "../../../shared-utils/three/loadTexture.js";
24
+ import { QuadrangleGeometry as F, QuadrangleMesh as S } from "../../../shared-utils/three/Quadrangle.js";
25
+ import { getVideoTexture as V } from "../../../shared-utils/three/loadVideoTexture.js";
26
+ import { Image_Play_Icon_With_Text as B, Image_Play_Icon as E } from "../../Assets/Icon.js";
27
+ import { getPositionsByObjectFit as g } from "../../../shared-utils/three/getPositionsByObjectFit.js";
28
+ import { FragmentTransparencyMaterial as j } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
29
29
  import { getNormal as P } from "../../../shared-utils/three/getNormal.js";
30
- import { CONST as b } from "../../../shared-utils/constants.js";
30
+ import { CONST as T } from "../../../shared-utils/constants.js";
31
31
  import "../../../shared-utils/math/pointsIsRectangle.js";
32
32
  import "../../../shared-utils/device.js";
33
- class H extends y.Mesh {
33
+ class C extends y.Mesh {
34
34
  constructor() {
35
35
  super(...arguments);
36
- r(this, "name", "MediaPlane");
37
- r(this, "src");
38
- r(this, "objectFit");
36
+ a(this, "name", "MediaPlane");
37
+ a(this, "src");
38
+ a(this, "objectFit");
39
+ }
40
+ /** 获取透明度 */
41
+ get opacity() {
42
+ var e, t;
43
+ return (t = (e = this.material) == null ? void 0 : e.opacity) != null ? t : 1;
44
+ }
45
+ /** 设置透明度 (0-1) */
46
+ set opacity(e) {
47
+ this.material && (this.material.opacity = e, this.material.transparent = e < 1, this.material.needsUpdate = !0), this.traverse((t) => {
48
+ if (t.isMesh && t !== this) {
49
+ const i = t;
50
+ i.material && (i.material.opacity = e, i.material.transparent = e < 1, i.material.needsUpdate = !0);
51
+ }
52
+ });
39
53
  }
40
54
  removeFromParent() {
41
55
  const e = this.parent;
@@ -45,86 +59,93 @@ class H extends y.Mesh {
45
59
  this.traverse((e) => {
46
60
  if (e.isMesh) {
47
61
  const t = e;
48
- t.geometry.dispose(), (t.material instanceof Array ? t.material : [t.material]).forEach((i) => {
49
- i.dispose();
62
+ t.geometry.dispose(), (t.material instanceof Array ? t.material : [t.material]).forEach((s) => {
63
+ s.dispose();
50
64
  });
51
65
  }
52
66
  });
53
67
  }
54
68
  }
55
- class z extends H {
56
- constructor(e, t, s) {
57
- var n;
69
+ class J extends C {
70
+ constructor(e, t, i) {
71
+ var o, d;
58
72
  super();
59
- r(this, "name", "PanoTagPluginImagePlane");
60
- r(this, "originRatio");
73
+ a(this, "name", "PanoTagPluginImagePlane");
74
+ a(this, "originRatio");
61
75
  this.src = e;
62
- const i = (n = s == null ? void 0 : s.resolveZFighting) != null ? n : !0;
63
- let h = t;
64
- if (i) {
65
- const o = P(t).multiplyScalar(b.Z_FIGHTING_OFFSET);
66
- h = t.map((a) => a.clone().add(o));
76
+ const s = (o = i == null ? void 0 : i.resolveZFighting) != null ? o : !0, r = (d = i == null ? void 0 : i.opacity) != null ? d : 1;
77
+ let n = t;
78
+ if (s) {
79
+ const h = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
80
+ n = t.map((c) => c.clone().add(h));
67
81
  }
68
- E(e).then(({ texture: o, transparent: a }) => {
69
- var g;
70
- const v = new y.MeshBasicMaterial({ map: o, transparent: a, side: y.DoubleSide });
71
- this.originRatio = o.image.width / o.image.height, this.objectFit = (g = s == null ? void 0 : s.objectFit) != null ? g : "contain";
72
- const c = M(this.objectFit, h, o.image.width / o.image.height), u = I(...c), m = c.map((w) => w.clone().sub(u)), f = new F(m);
73
- this.position.copy(u), this.geometry = f, this.material = v;
74
- }).catch((o) => {
75
- console.error(`Imageplane error: ${o == null ? void 0 : o.message}`);
82
+ H(e).then(({ texture: h, transparent: c }) => {
83
+ var x;
84
+ const v = new y.MeshBasicMaterial({
85
+ map: h,
86
+ transparent: c || r < 1,
87
+ opacity: r,
88
+ side: y.DoubleSide
89
+ });
90
+ this.originRatio = h.image.width / h.image.height, this.objectFit = (x = i == null ? void 0 : i.objectFit) != null ? x : "contain";
91
+ const u = g(this.objectFit, n, h.image.width / h.image.height), p = I(...u), f = u.map((_) => _.clone().sub(p)), w = new F(f);
92
+ this.position.copy(p), this.geometry = w, this.material = v;
93
+ }).catch((h) => {
94
+ console.error(`Imageplane error: ${h == null ? void 0 : h.message}`);
76
95
  });
77
96
  }
78
97
  changePointsOrParams(e) {
79
- const { cornerPoints: t, params: s = {} } = e, { objectFit: i = this.objectFit } = s;
80
- let h = t;
81
- const { resolveZFighting: n } = s != null ? s : {};
98
+ const { cornerPoints: t, params: i = {} } = e, { objectFit: s = this.objectFit } = i;
99
+ let r = t;
100
+ const { resolveZFighting: n } = i != null ? i : {};
82
101
  if (n) {
83
- const u = P(t).multiplyScalar(b.Z_FIGHTING_OFFSET);
84
- h = t.map((m) => m.clone().add(u));
102
+ const v = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
103
+ r = t.map((u) => u.clone().add(v));
85
104
  }
86
- const o = M(i != null ? i : "contain", h, this.originRatio), a = I(...o), v = o.map((u) => u.clone().sub(a)), c = new F(v);
87
- this.objectFit = i != null ? i : "contain", this.position.copy(a), this.geometry = c;
105
+ const o = g(s != null ? s : "contain", r, this.originRatio), d = I(...o), h = o.map((v) => v.clone().sub(d)), c = new F(h);
106
+ this.objectFit = s != null ? s : "contain", this.position.copy(d), this.geometry = c;
88
107
  }
89
108
  }
90
- class J extends H {
109
+ class K extends C {
91
110
  // eslint-disable-next-line max-params
92
- constructor(e, t, s) {
111
+ constructor(e, t, i) {
93
112
  const {
94
- videoCoverSrc: i,
95
- objectFit: h = "contain",
113
+ videoCoverSrc: s,
114
+ objectFit: r = "contain",
96
115
  playButton: n = "withText",
97
116
  paused: o = !0,
98
- videoTextureMap: a,
99
- ImageTextureMap: v,
100
- domEvents: c
101
- } = s != null ? s : {};
117
+ videoTextureMap: d,
118
+ ImageTextureMap: h,
119
+ domEvents: c,
120
+ opacity: v = 1
121
+ } = i != null ? i : {};
102
122
  super();
103
- r(this, "isVideoPlane", !0);
104
- r(this, "name", "PanoTagPluginImagePlane");
105
- r(this, "videoInstance");
106
- r(this, "onVideoReady");
107
- r(this, "buttonSrc");
108
- r(this, "videoCoverSrc");
109
- r(this, "domEvents");
110
- r(this, "disposers", []);
111
- r(this, "cornerPoints");
112
- r(this, "videoMesh");
113
- r(this, "coverMesh");
114
- r(this, "buttonMesh");
115
- r(this, "videoTextureMap");
116
- r(this, "ImageTextureMap");
117
- this.cornerPoints = t, this.src = e, this.buttonSrc = (() => n === "withText" ? V : n === "withoutText" ? S : typeof n == "string" ? n : S)(), this.videoCoverSrc = i, this.objectFit = h, this.videoTextureMap = a, this.ImageTextureMap = v, this.domEvents = c, this.position.copy(I(...t)), this.videoCoverSrc && o ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
123
+ a(this, "isVideoPlane", !0);
124
+ a(this, "name", "PanoTagPluginImagePlane");
125
+ a(this, "videoInstance");
126
+ a(this, "onVideoReady");
127
+ a(this, "buttonSrc");
128
+ a(this, "videoCoverSrc");
129
+ a(this, "domEvents");
130
+ a(this, "disposers", []);
131
+ a(this, "cornerPoints");
132
+ a(this, "videoMesh");
133
+ a(this, "coverMesh");
134
+ a(this, "buttonMesh");
135
+ a(this, "videoTextureMap");
136
+ a(this, "ImageTextureMap");
137
+ a(this, "initialOpacity");
138
+ this.cornerPoints = t, this.src = e, this.initialOpacity = v, this.buttonSrc = (() => n === "withText" ? B : n === "withoutText" ? E : typeof n == "string" ? n : E)(), this.videoCoverSrc = s, this.objectFit = r, this.videoTextureMap = d, this.ImageTextureMap = h, this.domEvents = c, this.position.copy(I(...t)), this.videoCoverSrc && o ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
118
139
  o ? this.addButtonMesh() : this.play(!0);
119
140
  }), this.addEventListener("removed", () => {
120
141
  this.remove(...this.children);
121
142
  }), this.addEventListener("dispose", () => {
122
143
  var u;
123
- (u = this.disposers) == null || u.forEach((m) => m == null ? void 0 : m());
144
+ (u = this.disposers) == null || u.forEach((p) => p == null ? void 0 : p());
124
145
  });
125
146
  }
126
147
  play(e = !1) {
127
- return d(this, null, function* () {
148
+ return m(this, null, function* () {
128
149
  this.videoMesh || (yield this.addVideoMesh()), this.showPlayUI(), this.videoInstance.paused && this.videoInstance.play().then(() => this.showPlayUI()).catch((t) => {
129
150
  this.pause(), console.error("play error", t);
130
151
  }), this.videoInstance.muted = e, this.render();
@@ -134,17 +155,17 @@ class J extends H {
134
155
  this.videoInstance && (this.videoInstance.pause(), this.showPauseUI().then(() => this.render()));
135
156
  }
136
157
  initialRenderHooks(e) {
137
- const s = e(() => {
138
- var i;
139
- this.videoMesh && ((i = this.videoInstance) == null ? void 0 : i.paused) === !1 && (this.videoMesh.needsRender = !0);
158
+ const i = e(() => {
159
+ var s;
160
+ this.videoMesh && ((s = this.videoInstance) == null ? void 0 : s.paused) === !1 && (this.videoMesh.needsRender = !0);
140
161
  });
141
- this.disposers.push(() => s);
162
+ this.disposers.push(() => i);
142
163
  }
143
164
  showPlayUI() {
144
165
  this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), this.videoMesh.visible = !0;
145
166
  }
146
167
  showPauseUI() {
147
- return d(this, null, function* () {
168
+ return m(this, null, function* () {
148
169
  this.coverMesh ? (this.coverMesh.visible = !0, this.videoMesh && (this.videoMesh.visible = !1)) : (yield this.addCoverMesh(), this.coverMesh && (this.videoMesh.visible = !1)), this.addButtonMesh().then(() => this.render());
149
170
  });
150
171
  }
@@ -153,41 +174,51 @@ class J extends H {
153
174
  this.videoMesh && (this.videoMesh.needsRender = !0), this.coverMesh && (this.coverMesh.needsRender = !0), this.buttonMesh && (this.buttonMesh.needsRender = !0), this.videoMesh && ((e = this.videoInstance) == null ? void 0 : e.paused) === !1 && (this.videoMesh.needsRender = !0);
154
175
  }
155
176
  addCoverMesh() {
156
- return d(this, null, function* () {
177
+ return m(this, null, function* () {
157
178
  if (this.children.includes(this.coverMesh))
158
179
  return;
159
- const e = yield (() => d(this, null, function* () {
180
+ const e = yield (() => m(this, null, function* () {
160
181
  if (this.coverMesh)
161
182
  return this.coverMesh;
162
183
  if (!this.videoCoverSrc)
163
184
  return;
164
- const { texture: t, transparent: s } = yield this.getImageTexture(this.videoCoverSrc), i = new y.MeshBasicMaterial({ transparent: !1, map: t, side: y.DoubleSide }), h = M(this.objectFit, this.cornerPoints, t.image.width / t.image.height), n = new x(h, i);
165
- n.position.copy(new T(0, 0, 0)), n.name = "videoCoverMesh";
166
- const o = P(h).multiplyScalar(b.Z_FIGHTING_OFFSET);
185
+ const { texture: t, transparent: i } = yield this.getImageTexture(this.videoCoverSrc), s = new y.MeshBasicMaterial({
186
+ transparent: i || this.initialOpacity < 1,
187
+ opacity: this.initialOpacity,
188
+ map: t,
189
+ side: y.DoubleSide
190
+ }), r = g(this.objectFit, this.cornerPoints, t.image.width / t.image.height), n = new S(r, s);
191
+ n.position.copy(new b(0, 0, 0)), n.name = "videoCoverMesh";
192
+ const o = P(r).multiplyScalar(T.Z_FIGHTING_OFFSET);
167
193
  return n.position.add(o), n;
168
194
  }))();
169
195
  return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
170
196
  });
171
197
  }
172
198
  addVideoMesh() {
173
- return d(this, null, function* () {
174
- var s;
199
+ return m(this, null, function* () {
200
+ var i;
175
201
  if (this.children.includes(this.videoMesh))
176
202
  return;
177
- const e = yield (() => d(this, null, function* () {
203
+ const e = yield (() => m(this, null, function* () {
178
204
  if (this.videoMesh)
179
205
  return this.videoMesh;
180
206
  if (!this.src)
181
207
  return;
182
- const i = this.getVideoTexture(this.src), h = new y.MeshBasicMaterial({ transparent: !1, map: i, side: y.DoubleSide }), n = yield new Promise((v) => {
183
- i.metadataLoaded ? v(M(this.objectFit, this.cornerPoints, i.image.videoWidth / i.image.videoHeight)) : i.addEventListener(
208
+ const s = this.getVideoTexture(this.src), r = new y.MeshBasicMaterial({
209
+ transparent: this.initialOpacity < 1,
210
+ opacity: this.initialOpacity,
211
+ map: s,
212
+ side: y.DoubleSide
213
+ }), n = yield new Promise((h) => {
214
+ s.metadataLoaded ? h(g(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
184
215
  "videoLoaded",
185
- () => v(M(this.objectFit, this.cornerPoints, i.image.videoWidth / i.image.videoHeight))
216
+ () => h(g(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
186
217
  );
187
- }), o = new x(n, h);
188
- o.name = "videoMesh", o.position.copy(new T(0, 0, 0));
189
- const a = P(n).multiplyScalar(b.Z_FIGHTING_OFFSET);
190
- return o.position.add(a), o;
218
+ }), o = new S(n, r);
219
+ o.name = "videoMesh", o.position.copy(new b(0, 0, 0));
220
+ const d = P(n).multiplyScalar(T.Z_FIGHTING_OFFSET);
221
+ return o.position.add(d), o;
191
222
  }))();
192
223
  if (!e)
193
224
  return;
@@ -195,13 +226,13 @@ class J extends H {
195
226
  e,
196
227
  "click",
197
228
  () => {
198
- var i;
199
- !this.videoInstance.paused && ((i = this.videoInstance) != null && i.muted) ? this.videoInstance.muted = !1 : this.pause();
229
+ var s;
230
+ !this.videoInstance.paused && ((s = this.videoInstance) != null && s.muted) ? this.videoInstance.muted = !1 : this.pause();
200
231
  },
201
232
  { noEmitWhenHide: !0 }
202
233
  );
203
234
  const t = e.material.map.image;
204
- return (s = this.onVideoReady) == null || s.call(this, t), t.addEventListener("playing", () => {
235
+ return (i = this.onVideoReady) == null || i.call(this, t), t.addEventListener("playing", () => {
205
236
  this.coverMesh || this.remove(this.buttonMesh), this.render();
206
237
  }), t.addEventListener("pause", () => {
207
238
  this.videoInstance.paused && (this.showPauseUI(), this.render());
@@ -209,15 +240,15 @@ class J extends H {
209
240
  });
210
241
  }
211
242
  addButtonMesh() {
212
- return d(this, null, function* () {
243
+ return m(this, null, function* () {
213
244
  if (this.children.includes(this.buttonMesh))
214
245
  return;
215
- const e = yield (() => d(this, null, function* () {
216
- var m, f, g, w;
246
+ const e = yield (() => m(this, null, function* () {
247
+ var u, p, f, w;
217
248
  if (this.buttonMesh)
218
249
  return this.buttonMesh;
219
- const t = (f = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, s = (w = (g = this.coverMesh) == null ? void 0 : g.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, i = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), n = Math.min(t, s, i) / i * 0.3, { texture: o, transparent: a } = yield this.getImageTexture(this.buttonSrc), v = M("contain", this.cornerPoints, o.image.width / o.image.height), c = new x(v, new B(o));
220
- c.position.copy(new T(0, 0, 0)), c.name = "buttonMesh", c.scale.set(n, n, n), c.material.side = y.DoubleSide, this.domEvents.addAutoBindEventListener(
250
+ const t = (p = (u = this.videoMesh) == null ? void 0 : u.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? p : 1 / 0, i = (w = (f = this.coverMesh) == null ? void 0 : f.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, s = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), n = Math.min(t, i, s) / s * 0.3, { texture: o, transparent: d } = yield this.getImageTexture(this.buttonSrc), h = g("contain", this.cornerPoints, o.image.width / o.image.height), c = new S(h, new j(o));
251
+ c.position.copy(new b(0, 0, 0)), c.name = "buttonMesh", c.scale.set(n, n, n), c.material.side = y.DoubleSide, this.domEvents.addAutoBindEventListener(
221
252
  c,
222
253
  "click",
223
254
  () => {
@@ -225,75 +256,75 @@ class J extends H {
225
256
  },
226
257
  { noEmitWhenHide: !0 }
227
258
  );
228
- const u = P(v).multiplyScalar(b.Z_FIGHTING_OFFSET * 2);
229
- return c.position.add(u), c;
259
+ const v = P(h).multiplyScalar(T.Z_FIGHTING_OFFSET * 2);
260
+ return c.position.add(v), c;
230
261
  }))();
231
262
  return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
232
263
  });
233
264
  }
234
265
  getImageTexture(e) {
235
- return d(this, null, function* () {
236
- var s, i;
237
- if ((s = this.ImageTextureMap) != null && s.has(e))
266
+ return m(this, null, function* () {
267
+ var i, s;
268
+ if ((i = this.ImageTextureMap) != null && i.has(e))
238
269
  return this.ImageTextureMap.get(e);
239
- const t = yield E(e);
240
- return (i = this.ImageTextureMap) == null || i.set(e, t), t;
270
+ const t = yield H(e);
271
+ return (s = this.ImageTextureMap) == null || s.set(e, t), t;
241
272
  });
242
273
  }
243
274
  getVideoTexture(e) {
244
- var s, i;
245
- if ((s = this.videoTextureMap) != null && s.has(e))
275
+ var i, s;
276
+ if ((i = this.videoTextureMap) != null && i.has(e))
246
277
  return this.videoTextureMap.get(e);
247
- const t = j(e);
248
- return (i = this.videoTextureMap) == null || i.set(e, t), t;
278
+ const t = V(e);
279
+ return (s = this.videoTextureMap) == null || s.set(e, t), t;
249
280
  }
250
281
  changePointsOrParams(e) {
251
- return d(this, null, function* () {
252
- const { cornerPoints: t, params: s } = e;
253
- t && (this.cornerPoints = t, this.position.copy(I(...t))), s != null && s.objectFit && (this.objectFit = s.objectFit), yield this.updateAllMeshes();
282
+ return m(this, null, function* () {
283
+ const { cornerPoints: t, params: i } = e;
284
+ t && (this.cornerPoints = t, this.position.copy(I(...t))), i != null && i.objectFit && (this.objectFit = i.objectFit), yield this.updateAllMeshes();
254
285
  });
255
286
  }
256
287
  updateAllMeshes() {
257
- return d(this, null, function* () {
288
+ return m(this, null, function* () {
258
289
  this.videoMesh && (yield this.updateVideoMesh()), this.coverMesh && (yield this.updateCoverMesh()), this.buttonMesh && (yield this.updateButtonMesh()), this.render();
259
290
  });
260
291
  }
261
292
  updateVideoMesh() {
262
- return d(this, null, function* () {
293
+ return m(this, null, function* () {
263
294
  if (!this.videoMesh || !this.src)
264
295
  return;
265
296
  const e = this.getVideoTexture(this.src), t = yield new Promise((o) => {
266
- e.metadataLoaded ? o(M(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight)) : e.addEventListener(
297
+ e.metadataLoaded ? o(g(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight)) : e.addEventListener(
267
298
  "videoLoaded",
268
- () => o(M(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight))
299
+ () => o(g(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight))
269
300
  );
270
- }), s = I(...t), i = t.map((o) => o.clone().sub(s)), h = new F(i);
271
- this.videoMesh.geometry.dispose(), this.videoMesh.geometry = h, this.videoMesh.position.copy(new T(0, 0, 0));
272
- const n = P(t).multiplyScalar(b.Z_FIGHTING_OFFSET);
301
+ }), i = I(...t), s = t.map((o) => o.clone().sub(i)), r = new F(s);
302
+ this.videoMesh.geometry.dispose(), this.videoMesh.geometry = r, this.videoMesh.position.copy(new b(0, 0, 0));
303
+ const n = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
273
304
  this.videoMesh.position.add(n);
274
305
  });
275
306
  }
276
307
  updateCoverMesh() {
277
- return d(this, null, function* () {
308
+ return m(this, null, function* () {
278
309
  if (!this.coverMesh || !this.videoCoverSrc)
279
310
  return;
280
- const { texture: e } = yield this.getImageTexture(this.videoCoverSrc), t = M(this.objectFit, this.cornerPoints, e.image.width / e.image.height), s = I(...t), i = t.map((n) => n.clone().sub(s)), h = new F(i);
281
- this.coverMesh.geometry.dispose(), this.coverMesh.geometry = h, this.coverMesh.position.copy(new T(0, 0, 0));
311
+ const { texture: e } = yield this.getImageTexture(this.videoCoverSrc), t = g(this.objectFit, this.cornerPoints, e.image.width / e.image.height), i = I(...t), s = t.map((n) => n.clone().sub(i)), r = new F(s);
312
+ this.coverMesh.geometry.dispose(), this.coverMesh.geometry = r, this.coverMesh.position.copy(new b(0, 0, 0));
282
313
  });
283
314
  }
284
315
  updateButtonMesh() {
285
- return d(this, null, function* () {
286
- var m, f, g, w;
316
+ return m(this, null, function* () {
317
+ var u, p, f, w;
287
318
  if (!this.buttonMesh)
288
319
  return;
289
- const { texture: e } = yield this.getImageTexture(this.buttonSrc), t = M("contain", this.cornerPoints, e.image.width / e.image.height), s = I(...t), i = t.map((C) => C.clone().sub(s)), h = new F(i), n = (f = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, o = (w = (g = this.coverMesh) == null ? void 0 : g.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, a = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), c = Math.min(n, o, a) / a * 0.3;
290
- this.buttonMesh.geometry.dispose(), this.buttonMesh.geometry = h, this.buttonMesh.position.copy(new T(0, 0, 0)), this.buttonMesh.scale.set(c, c, c);
291
- const u = P(t).multiplyScalar(b.Z_FIGHTING_OFFSET * 2);
292
- this.buttonMesh.position.add(u);
320
+ const { texture: e } = yield this.getImageTexture(this.buttonSrc), t = g("contain", this.cornerPoints, e.image.width / e.image.height), i = I(...t), s = t.map((x) => x.clone().sub(i)), r = new F(s), n = (p = (u = this.videoMesh) == null ? void 0 : u.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? p : 1 / 0, o = (w = (f = this.coverMesh) == null ? void 0 : f.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, d = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), c = Math.min(n, o, d) / d * 0.3;
321
+ this.buttonMesh.geometry.dispose(), this.buttonMesh.geometry = r, this.buttonMesh.position.copy(new b(0, 0, 0)), this.buttonMesh.scale.set(c, c, c);
322
+ const v = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET * 2);
323
+ this.buttonMesh.position.add(v);
293
324
  });
294
325
  }
295
326
  }
296
327
  export {
297
- z as ImagePlane,
298
- J as VideoPlane
328
+ J as ImagePlane,
329
+ K as VideoPlane
299
330
  };
@@ -22,7 +22,7 @@ let A = class {
22
22
  /**
23
23
  * @realsee/dnalogel 版本号
24
24
  */
25
- r(this, "VERSION", "3.73.0");
25
+ r(this, "VERSION", "3.73.1-alpha.2");
26
26
  r(this, "NAME");
27
27
  r(this, "five");
28
28
  r(this, "workUtil");