@realsee/dnalogel 2.6.4 → 2.6.7-dev.0

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 (372) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +1 -1
  2. package/dist/Object3DHelperPlugin/Controller.d.ts +25 -10
  3. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +6 -8
  4. package/dist/Object3DHelperPlugin/typings.d.ts +14 -0
  5. package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
  6. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +22 -6
  7. package/dist/PanoTagPlugin/controller/index.d.ts +32 -6
  8. package/dist/PanoTagPlugin/typings/controller.d.ts +17 -2
  9. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +5 -2
  10. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +19 -3
  11. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
  12. package/dist/PanoTagPlugin/utils/tag/index.d.ts +2 -0
  13. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +2 -1
  14. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -1
  15. package/dist/index.cjs.js +43 -43
  16. package/dist/index.js +5078 -4667
  17. package/dist/index.umd.js +32 -32
  18. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +41 -15
  19. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +27 -20
  20. package/dist/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +7 -0
  21. package/dist/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -0
  22. package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +24 -0
  23. package/dist/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +6 -1
  24. package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +14 -0
  25. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +12 -0
  26. package/dist/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts} +3 -2
  27. package/{libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts → dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts} +3 -8
  28. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +14 -11
  29. package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +5 -0
  30. package/dist/shared-utils/Object3DHelper/Helper/index.d.ts +2 -2
  31. package/dist/shared-utils/Object3DHelper/index.d.ts +4 -27
  32. package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +22 -12
  33. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +22 -0
  34. package/dist/shared-utils/Object3DHelper/utils/boundingBox.d.ts +2 -0
  35. package/dist/shared-utils/three/GLTFLoader.d.ts +2 -0
  36. package/docs/assets/search.js +1 -1
  37. package/docs/classes/CSS3DRender.html +31 -31
  38. package/docs/classes/CruisePluginController.html +24 -24
  39. package/docs/classes/Magnifier.html +20 -20
  40. package/docs/classes/ModelRoomLabelController.html +11 -11
  41. package/docs/classes/Object3DHelperController.html +40 -33
  42. package/docs/classes/PaintBrush.html +15 -15
  43. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  44. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  45. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  46. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  47. package/docs/classes/PanoTagPluginController.html +205 -77
  48. package/docs/classes/Util.BetterTween.html +8 -8
  49. package/docs/classes/Util.FivePointSelector.html +12 -12
  50. package/docs/classes/Util.Interval.html +12 -12
  51. package/docs/classes/Util.Magnifier.html +17 -17
  52. package/docs/classes/Util.PointDomHelper.html +11 -11
  53. package/docs/classes/Util.PointHelper.html +11 -11
  54. package/docs/classes/Util.Rectangle.html +13 -13
  55. package/docs/enums/CameraMovementEffect.html +7 -7
  56. package/docs/enums/ContentType.html +34 -16
  57. package/docs/enums/DIRECTION.html +9 -9
  58. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  59. package/docs/enums/DimensionType.html +7 -7
  60. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  61. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  62. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  63. package/docs/enums/PointType.html +7 -7
  64. package/docs/enums/Rotation.html +8 -8
  65. package/docs/functions/CSS3DRenderPlugin.html +10 -5
  66. package/docs/functions/CameraMovementPlugin.html +10 -5
  67. package/docs/functions/CruisePlugin.html +10 -5
  68. package/docs/functions/GuideLinePlugin.html +10 -5
  69. package/docs/functions/ItemLabelPlugin.html +10 -5
  70. package/docs/functions/MapviewFloorplanPlugin.html +10 -5
  71. package/docs/functions/ModelChassisCompassPlugin.html +10 -5
  72. package/docs/functions/ModelEntryDoorGuidePlugin.html +10 -5
  73. package/docs/functions/ModelFloorplanPlugin.html +10 -5
  74. package/docs/functions/ModelItemLabelPlugin.html +10 -5
  75. package/docs/functions/ModelRoomLabelPlugin.html +10 -5
  76. package/docs/functions/ModelTVVideoPlugin.html +10 -5
  77. package/docs/functions/ModelViewPlugin.html +10 -5
  78. package/docs/functions/Object3DHelperPlugin.html +10 -5
  79. package/docs/functions/PanoCompassPlugin.html +10 -5
  80. package/docs/functions/PanoCursorRaycasterPlugin.html +10 -5
  81. package/docs/functions/PanoDoorLabelPlugin.html +10 -5
  82. package/docs/functions/PanoFloorplanRadarPlugin.html +10 -5
  83. package/docs/functions/PanoMeasurePlugin.html +10 -5
  84. package/docs/functions/PanoRulerPlugin.html +10 -5
  85. package/docs/functions/PanoRulerProPlugin.html +10 -5
  86. package/docs/functions/PanoSpatialTagPlugin.html +10 -5
  87. package/docs/functions/PanoTagPlugin.html +15 -10
  88. package/docs/functions/TopviewFloorplanPlugin.html +10 -5
  89. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  90. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  91. package/docs/functions/Util.getFrameTime.html +5 -5
  92. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  93. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  94. package/docs/functions/Util.isNil.html +5 -5
  95. package/docs/functions/Util.nextFrame.html +5 -5
  96. package/docs/functions/Util.notNil.html +5 -5
  97. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  98. package/docs/functions/Util.tweenProgress.html +5 -5
  99. package/docs/functions/pluginFlag.html +10 -5
  100. package/docs/index.html +9 -4
  101. package/docs/interfaces/AddTagConfig.html +6 -6
  102. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  103. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  104. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  105. package/docs/interfaces/EventMap.html +19 -19
  106. package/docs/interfaces/FloorplanBounding.html +8 -8
  107. package/docs/interfaces/FloorplanData.html +10 -10
  108. package/docs/interfaces/FloorplanEntrance.html +11 -11
  109. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  110. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  111. package/docs/interfaces/FloorplanFloorData.html +9 -9
  112. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  113. package/docs/interfaces/FloorplanObserver.html +9 -9
  114. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  115. package/docs/interfaces/FloorplanPosition.html +7 -7
  116. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  117. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  118. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  119. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  120. package/docs/interfaces/FloorplanServerData.html +7 -7
  121. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  122. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  123. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  124. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  125. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  126. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  127. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  128. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  129. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  130. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  131. package/docs/interfaces/HelperOffset.html +78 -0
  132. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  133. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  134. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  135. package/docs/interfaces/MinMax.html +7 -7
  136. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  137. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  138. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  139. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  140. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  141. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  142. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  143. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  144. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  145. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  146. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  147. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  148. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  149. package/docs/interfaces/Object3DHelperState.html +8 -8
  150. package/docs/interfaces/ObjectHelperControllers.html +85 -0
  151. package/docs/interfaces/PaintBrushAction.html +12 -12
  152. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  153. package/docs/interfaces/PaintBrushState.html +10 -10
  154. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  155. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +10 -5
  156. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  157. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  158. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  159. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  160. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  161. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  162. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  163. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  164. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  165. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  166. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  167. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  168. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +10 -5
  169. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +10 -5
  170. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  171. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  172. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  173. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  174. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  175. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  176. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  177. package/docs/interfaces/Point.html +8 -8
  178. package/docs/interfaces/Room.html +9 -9
  179. package/docs/interfaces/RoomInfo.html +7 -7
  180. package/docs/interfaces/RoomLabel.html +14 -14
  181. package/docs/interfaces/RoomRules.html +10 -5
  182. package/docs/interfaces/Rooms.html +10 -5
  183. package/docs/interfaces/Scissor.html +9 -9
  184. package/docs/interfaces/State.html +8 -8
  185. package/docs/interfaces/TagCache.html +25 -16
  186. package/docs/interfaces/TagConfig.html +10 -10
  187. package/docs/interfaces/TagIconUrl.html +9 -9
  188. package/docs/interfaces/Tags.html +11 -11
  189. package/docs/interfaces/TemporaryState.html +6 -6
  190. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  191. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  192. package/docs/modules/Util.html +5 -5
  193. package/docs/modules.html +14 -4
  194. package/docs/types/ArrayPosition.html +10 -5
  195. package/docs/types/AudioAppearance.html +10 -5
  196. package/docs/types/AudioTagTypeConfigKey.html +10 -5
  197. package/docs/types/CSS3DRenderExportType.html +10 -5
  198. package/docs/types/CSS3DRenderPluginExportType.html +10 -5
  199. package/docs/types/CSS3DRenderPluginParameterType.html +10 -5
  200. package/docs/types/ClassFunctionParameters.html +268 -0
  201. package/docs/types/Color.html +10 -5
  202. package/docs/types/ContentTypeConfigKey.html +10 -5
  203. package/docs/types/ContentTypeConfigKeySplit.html +10 -5
  204. package/docs/types/ContentTypeMap.html +10 -5
  205. package/docs/types/Create3DDomContainerReturnType.html +10 -5
  206. package/docs/types/Create3DElementReturnType.html +10 -5
  207. package/docs/types/CruisePluginExportType.html +10 -5
  208. package/docs/types/Direction-1.html +10 -5
  209. package/docs/types/Direction4.html +10 -5
  210. package/docs/types/FloorplanRuleLabels.html +10 -5
  211. package/docs/types/FloorplanServerRuleLabels.html +10 -5
  212. package/docs/types/GuideLinePluginExportType.html +10 -5
  213. package/docs/types/HelperEventMap.html +174 -21
  214. package/docs/types/LoadTagConfig.html +10 -5
  215. package/docs/types/MapviewFloorplanPluginParameterType.html +10 -5
  216. package/docs/types/MapviewFloorplanPluginReturnType.html +10 -5
  217. package/docs/types/MediaData.html +10 -5
  218. package/docs/types/MediaStore.html +10 -5
  219. package/docs/types/ModelElement.html +266 -0
  220. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +10 -5
  221. package/docs/types/ModelFloorplanPluginParameterType.html +10 -5
  222. package/docs/types/ModelFloorplanPluginReturnType.html +10 -5
  223. package/docs/types/ModelRoomLabelPluginParameters.html +10 -5
  224. package/docs/types/ModelRoomLabelPluginReturnType.html +10 -5
  225. package/docs/types/MoveArgs.html +10 -5
  226. package/docs/types/MoveOpts.html +10 -5
  227. package/docs/types/Object3DHelperEventMap.html +10 -5
  228. package/docs/types/ObjectFit.html +10 -5
  229. package/docs/types/PaintBrushEventMap.html +10 -5
  230. package/docs/types/PanoCompassPluginData.html +10 -5
  231. package/docs/types/PanoCompassPluginExportType.html +10 -5
  232. package/docs/types/PanoCompassPluginParameterType.html +10 -5
  233. package/docs/types/PanoFloorplanRadarPluginParameterType.html +10 -5
  234. package/docs/types/PanoFloorplanRadarPluginReturnType.html +10 -5
  235. package/docs/types/PanoIndex.html +10 -5
  236. package/docs/types/PanoMeasurePluginEvent.html +10 -5
  237. package/docs/types/PanoMeasureReturnType.html +10 -5
  238. package/docs/types/PanoSpatialTagPluginId.html +10 -5
  239. package/docs/types/PanoTagPluginExportInterface.html +10 -5
  240. package/docs/types/PanoTagPluginParamsInterface.html +10 -5
  241. package/docs/types/PlaneTag.html +10 -5
  242. package/docs/types/PlaneTagElement.html +10 -5
  243. package/docs/types/Point2DElement.html +10 -5
  244. package/docs/types/Point2DTag.html +10 -5
  245. package/docs/types/Point3DElement.html +10 -5
  246. package/docs/types/Point3DTag.html +10 -5
  247. package/docs/types/PointTag.html +10 -5
  248. package/docs/types/PointTagElement.html +10 -5
  249. package/docs/types/Position.html +10 -5
  250. package/docs/types/RotateArgs.html +10 -5
  251. package/docs/types/RotateOpts.html +10 -5
  252. package/docs/types/RuleLabelsKey.html +10 -5
  253. package/docs/types/RuleLabelsValue.html +10 -5
  254. package/docs/types/StickType.html +11 -6
  255. package/docs/types/Tag.html +11 -6
  256. package/docs/types/Tag2D.html +10 -5
  257. package/docs/types/Tag3D.html +10 -5
  258. package/docs/types/TagContentType.html +11 -6
  259. package/docs/types/TagDimensionType.html +10 -5
  260. package/docs/types/TagElement.html +11 -6
  261. package/docs/types/TagEvents.html +10 -5
  262. package/docs/types/TagGLTFObject.html +261 -0
  263. package/docs/types/TagHooks.html +10 -5
  264. package/docs/types/TagIconSize.html +10 -5
  265. package/docs/types/TagId.html +10 -5
  266. package/docs/types/TagPointType.html +10 -5
  267. package/docs/types/TopviewFloorplanPluginParameterType.html +10 -5
  268. package/docs/types/TopviewFloorplanPluginReturnType.html +10 -5
  269. package/docs/types/WorkCode.html +10 -5
  270. package/docs/variables/FLOOR_TYPE_MAP.html +10 -5
  271. package/docs/variables/PLUGIN.html +10 -5
  272. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +10 -5
  273. package/docs/variables/ROOM_TYPE_MAP.html +10 -5
  274. package/docs/variables/VERSION.html +10 -5
  275. package/docs/variables/itemLabelPluginServerParams.html +10 -5
  276. package/docs/variables/modelItemLabelPluginServerParams.html +10 -5
  277. package/docs/variables/modelRoomLabelPluginServerParams.html +10 -5
  278. package/libs/CSS3DRenderPlugin/CSS3DRender.js +43 -43
  279. package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
  280. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +16 -15
  281. package/libs/Object3DHelperPlugin/Controller.d.ts +25 -10
  282. package/libs/Object3DHelperPlugin/Controller.js +117 -97
  283. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +6 -8
  284. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +29 -22
  285. package/libs/Object3DHelperPlugin/index.js +16 -11
  286. package/libs/Object3DHelperPlugin/typings.d.ts +14 -0
  287. package/libs/PanoTagPlugin/Components/Common/Media.js +3 -2
  288. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
  289. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +3 -2
  290. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +3 -2
  291. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +68 -68
  292. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +3 -2
  293. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +3 -2
  294. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +12 -11
  295. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +33 -33
  296. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +3 -2
  297. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +46 -46
  298. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +12 -11
  299. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +26 -25
  300. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +29 -28
  301. package/libs/PanoTagPlugin/Components/Tag/index.js +126 -119
  302. package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
  303. package/libs/PanoTagPlugin/Components/TagItem.js +67 -65
  304. package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
  305. package/libs/PanoTagPlugin/controller/TagCacheController.js +14 -12
  306. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +22 -6
  307. package/libs/PanoTagPlugin/controller/TagComputer.js +242 -176
  308. package/libs/PanoTagPlugin/controller/index.d.ts +32 -6
  309. package/libs/PanoTagPlugin/controller/index.js +176 -91
  310. package/libs/PanoTagPlugin/index.js +15 -12
  311. package/libs/PanoTagPlugin/tag.config.js +9 -0
  312. package/libs/PanoTagPlugin/typings/controller.d.ts +17 -2
  313. package/libs/PanoTagPlugin/typings/controller.js +1 -1
  314. package/libs/PanoTagPlugin/typings/index.js +6 -5
  315. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +5 -2
  316. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +19 -3
  317. package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
  318. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
  319. package/libs/PanoTagPlugin/utils/addDebugPoints.js +5 -4
  320. package/libs/PanoTagPlugin/utils/color.js +5 -5
  321. package/libs/PanoTagPlugin/utils/index.js +37 -34
  322. package/libs/PanoTagPlugin/utils/planeNormal.js +3 -2
  323. package/libs/PanoTagPlugin/utils/tag/index.d.ts +2 -0
  324. package/libs/PanoTagPlugin/utils/tag/index.js +11 -0
  325. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +2 -1
  326. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +6 -2
  327. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -1
  328. package/libs/PanoTagPlugin/utils/tagPosition.js +20 -8
  329. package/libs/index.js +111 -104
  330. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +41 -15
  331. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -90
  332. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +27 -20
  333. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +55 -22
  334. package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +7 -0
  335. package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.js +14 -0
  336. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -0
  337. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +14 -10
  338. package/libs/shared-utils/Object3DHelper/Controller/MoveController.d.ts +24 -0
  339. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +80 -37
  340. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +6 -1
  341. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +44 -41
  342. package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +14 -0
  343. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +95 -67
  344. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +12 -0
  345. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +21 -0
  346. package/libs/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts} +3 -2
  347. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +87 -0
  348. package/{dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts → libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts} +3 -8
  349. package/libs/shared-utils/Object3DHelper/Helper/{RectangleScaleHelper.js → CSS3DScaleHelper.js} +5 -7
  350. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +7 -9
  351. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +14 -11
  352. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +72 -66
  353. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +5 -0
  354. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +9 -0
  355. package/libs/shared-utils/Object3DHelper/Helper/index.d.ts +2 -2
  356. package/libs/shared-utils/Object3DHelper/Helper/index.js +0 -2
  357. package/libs/shared-utils/Object3DHelper/index.d.ts +4 -27
  358. package/libs/shared-utils/Object3DHelper/index.js +48 -96
  359. package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +22 -12
  360. package/libs/shared-utils/Object3DHelper/typings/index.d.ts +22 -0
  361. package/libs/shared-utils/Object3DHelper/typings/index.js +2 -1
  362. package/libs/shared-utils/Object3DHelper/utils/boundingBox.d.ts +2 -0
  363. package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +24 -0
  364. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +2 -2
  365. package/libs/shared-utils/three/GLTFLoader.d.ts +2 -0
  366. package/libs/shared-utils/three/GLTFLoader.js +16 -0
  367. package/libs/typings/math.type.js +1 -0
  368. package/package.json +4 -4
  369. package/dist/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
  370. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +0 -2
  371. package/libs/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
  372. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +0 -1
@@ -50,6 +50,15 @@ const e = {
50
50
  visibleConfig: {
51
51
  alwaysShowWhenMovePano: !0
52
52
  }
53
+ },
54
+ MediaModel: {
55
+ unfoldedConfig: {
56
+ keep: "unfolded"
57
+ },
58
+ visibleConfig: {
59
+ keep: "visible",
60
+ alwaysShowWhenMovePano: !0
61
+ }
53
62
  }
54
63
  }
55
64
  };
@@ -8,6 +8,7 @@ import type { Subscribe } from '@realsee/five';
8
8
  import type { TagId, StickType } from './tag/Utils';
9
9
  import type { TagContentType } from './tag/TagData';
10
10
  import type { Tag } from './tag/Tag';
11
+ import { GLTFObject } from '@realsee/five/gltf-loader';
11
12
  declare type NonNullable<T> = T extends null | undefined | void ? never : T;
12
13
  export declare type TagHooks = InstanceType<typeof PanoTagPluginController>['hooks'];
13
14
  export interface State extends BasePlugin.State {
@@ -73,11 +74,17 @@ export interface TagCache {
73
74
  minimumDistanceResult?: boolean;
74
75
  distance?: number;
75
76
  angle?: number;
76
- __debug_visiblereason__?: {
77
+ /** MedialModelTag 中,多媒体的隐藏 & 展示 */
78
+ modelMedialVisible?: boolean;
79
+ __debug_visible_reason__?: {
77
80
  value: boolean;
78
81
  reason?: string;
79
82
  };
80
83
  }
84
+ export declare type TagGLTFObject = GLTFObject & {
85
+ customID: number | string;
86
+ isTagModel: boolean;
87
+ };
81
88
  export declare type TagElement<C extends TagContentType = TagContentType, S extends StickType = StickType> = Tag<C, S> & Partial<{
82
89
  pointTagStyle: {
83
90
  leftPercent: number;
@@ -102,7 +109,14 @@ export declare type TagElement<C extends TagContentType = TagContentType, S exte
102
109
  };
103
110
  hooks: Subscribe<TagEvents>;
104
111
  mergedConfig: TagConfig<C, S>;
105
- };
112
+ } & (S extends 'Model' ? {
113
+ model?: {
114
+ promise: Promise<TagGLTFObject>;
115
+ object?: TagGLTFObject;
116
+ };
117
+ } : unknown) & (C extends 'MediaModel' ? {
118
+ mediaVisible?: boolean;
119
+ } : unknown);
106
120
  export declare type MediaStore = Writable<{
107
121
  currentMediaElement: HTMLMediaElement | null;
108
122
  }>;
@@ -110,4 +124,5 @@ export declare type PointTagElement<C extends TagContentType = TagContentType> =
110
124
  export declare type PlaneTagElement<C extends TagContentType = TagContentType> = TagElement<C, 'Plane'>;
111
125
  export declare type Point2DElement<C extends TagContentType = TagContentType> = TagElement<C, '2DPoint'>;
112
126
  export declare type Point3DElement<C extends TagContentType = TagContentType> = TagElement<C, '3DPoint'>;
127
+ export declare type ModelElement<C extends TagContentType = TagContentType> = TagElement<C, 'Model'>;
113
128
  export {};
@@ -1 +1 @@
1
-
1
+ import "@realsee/five/gltf-loader";
@@ -1,7 +1,8 @@
1
- import { ContentType as n } from "./tag/TagData.js";
2
- import { DimensionType as t, PointType as r } from "./tag/Utils.js";
1
+ import "@realsee/five/gltf-loader";
2
+ import { ContentType as t } from "./tag/TagData.js";
3
+ import { DimensionType as r, PointType as i } from "./tag/Utils.js";
3
4
  export {
4
- n as ContentType,
5
- t as DimensionType,
6
- r as PointType
5
+ t as ContentType,
6
+ r as DimensionType,
7
+ i as PointType
7
8
  };
@@ -30,7 +30,7 @@ export declare type Tag<C extends TagContentType = TagContentType, S extends Sti
30
30
  /** @type {TagContentType} 内容类型,根据内容类型展示对应UI */
31
31
  contentType: C;
32
32
  /** 点 */
33
- position: S extends 'Plane' ? [Position, Position, Position, Position] : S extends '2DPoint' | '3DPoint' ? Position : any;
33
+ position: S extends 'Plane' ? [Position, Position, Position, Position] : S extends '2DPoint' | '3DPoint' | 'Model' ? Position : any;
34
34
  /** 法向量 */
35
35
  normal?: Position;
36
36
  /** 自定义标签内容 */
@@ -50,4 +50,7 @@ export declare type Tag<C extends TagContentType = TagContentType, S extends Sti
50
50
  };
51
51
  } & (S extends '3DPoint' ? {
52
52
  normal: Position;
53
- } : unknown); /** 三维标签需要法向量 */
53
+ } : unknown) & // 三维标签需要法向量
54
+ (S extends 'Model' ? {
55
+ matrix: number[];
56
+ } : unknown);
@@ -1,4 +1,4 @@
1
- import type { TagIconUrl } from './Utils';
1
+ import type { Position, TagIconUrl } from './Utils';
2
2
  export declare type MediaData = {
3
3
  type: 'Image';
4
4
  url: string;
@@ -30,10 +30,14 @@ export declare enum ContentType {
30
30
  Marketing = "Marketing",
31
31
  /** 图片视频贴片 */
32
32
  MediaPlane = "MediaPlane",
33
+ /** 带有多媒体的模型 */
34
+ MediaModel = "MediaModel",
33
35
  /** 其他/自定义标签 */
34
- Custom = "Custom"
36
+ Custom = "Custom",
37
+ /** Unknown */
38
+ Unknown = "Unknown"
35
39
  }
36
- export declare type TagContentType = keyof typeof ContentType | 'Unknown';
40
+ export declare type TagContentType = keyof typeof ContentType;
37
41
  /**
38
42
  * @description: 标签数据
39
43
  */
@@ -147,6 +151,18 @@ interface ContentTypeMapInterface {
147
151
  playIcon?: 'withText' | 'withoutText' | string;
148
152
  extraData?: Object;
149
153
  };
154
+ MediaModel: {
155
+ modelUrl: string;
156
+ matrix?: number[];
157
+ mediaPosition: [Position, Position, Position, Position];
158
+ /** 多媒体在容器中的适配规则 */
159
+ objectFit?: ObjectFit;
160
+ action?: {
161
+ url: string;
162
+ type: 'iframe' | 'window';
163
+ };
164
+ mediaData: MediaData[];
165
+ };
150
166
  Custom: Object;
151
167
  Unknown: Object;
152
168
  }
@@ -1,4 +1,4 @@
1
- var a = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.Custom = "Custom", i))(a || {});
1
+ var a = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.MediaModel = "MediaModel", i.Custom = "Custom", i.Unknown = "Unknown", i))(a || {});
2
2
  export {
3
3
  a as ContentType
4
4
  };
@@ -22,7 +22,7 @@ export declare enum PointType {
22
22
  }
23
23
  /** @deprecated 改用 stickType */
24
24
  export declare type TagPointType = keyof typeof PointType;
25
- export declare type StickType = '2DPoint' | '3DPoint' | 'Plane';
25
+ export declare type StickType = '2DPoint' | '3DPoint' | 'Plane' | 'Model';
26
26
  export interface TagIconUrl {
27
27
  url: string;
28
28
  /** 指切图是几倍图,如 2倍图, 3倍图,默认值为 3 */
@@ -1,7 +1,8 @@
1
1
  import * as o from "three";
2
2
  import { arrayPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
3
- function M(h, p) {
4
- p.forEach((t) => {
3
+ import "@realsee/five/gltf-loader";
4
+ function f(p, h) {
5
+ h.forEach((t) => {
5
6
  const r = new o.SphereGeometry(0.02, 16, 16), i = [], a = [
6
7
  new o.MeshBasicMaterial({ color: 16776960 }),
7
8
  new o.MeshBasicMaterial({ color: 16711935 }),
@@ -18,10 +19,10 @@ function M(h, p) {
18
19
  s.position.copy(c(t.position)), i.push(s);
19
20
  }
20
21
  i.forEach((e) => {
21
- e.material.depthTest = !1, h.scene.add(e);
22
+ e.material.depthTest = !1, p.scene.add(e);
22
23
  });
23
24
  });
24
25
  }
25
26
  export {
26
- M as addDebugPoints
27
+ f as addDebugPoints
27
28
  };
@@ -1,11 +1,11 @@
1
- function n(a) {
1
+ function n(o) {
2
2
  const e = document.createElement("div");
3
- e.style.color = a, document.body.appendChild(e);
3
+ e.style.color = o, document.body.appendChild(e);
4
4
  const t = window.getComputedStyle(e).color;
5
- document.body.removeChild(e);
6
- const o = (() => t.search("rgba") === -1 ? t.replace("rgb", "rgba").replace(")", ", 1)") : t)(), r = o.replace("rgba", "").replace("(", "").replace(")", "").split(",").map((c) => Number(c.trim()));
5
+ e.remove();
6
+ const a = (() => t.search("rgba") === -1 ? t.replace("rgb", "rgba").replace(")", ", 1)") : t)(), r = a.replace("rgba", "").replace("(", "").replace(")", "").split(",").map((c) => Number(c.trim()));
7
7
  return {
8
- rgba: o,
8
+ rgba: a,
9
9
  r: r[0],
10
10
  g: r[1],
11
11
  b: r[2],
@@ -1,37 +1,40 @@
1
- import { centerPoint as t } from "../../CSS3DRenderPlugin/utils/centerPoint.js";
2
- import { even as a } from "../../CSS3DRenderPlugin/utils/even.js";
3
- import { random as n } from "../../CSS3DRenderPlugin/utils/random.js";
4
- import { anyPositionToVector3 as f, arrayPositionToVector3 as x, positionToVector3 as s } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
5
- import { addDebugPoints as l } from "./addDebugPoints.js";
6
- import { noTypecheck as P } from "./noTypecheck.js";
7
- import { planeNormal as T } from "./planeNormal.js";
8
- import { tagPosition as b } from "./tagPosition.js";
9
- import { checkRange as u } from "./checkRange.js";
10
- import { actionAfterFiveModelLoad as y, waitFiveModelLoaded as F } from "./actionAfterFiveModelLoad.js";
11
- import { normalPositionToPositions as k } from "./normalPositionToPositions.js";
12
- import { debounce as S } from "./debounce.js";
13
- import { throttle as z } from "./throttle.js";
14
- import { binarySearchFirstBig as B, searchFirstValueSmallThanLastValue as D } from "./search.js";
15
- import { resizeObserver as O } from "./resizeObserver.js";
1
+ import { centerPoint as a } from "../../CSS3DRenderPlugin/utils/centerPoint.js";
2
+ import { even as n } from "../../CSS3DRenderPlugin/utils/even.js";
3
+ import { random as f } from "../../CSS3DRenderPlugin/utils/random.js";
4
+ import { anyPositionToVector3 as x, arrayPositionToVector3 as c, positionToVector3 as l } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
5
+ import { addDebugPoints as P } from "./addDebugPoints.js";
6
+ import { noTypecheck as g } from "./noTypecheck.js";
7
+ import { planeNormal as V } from "./planeNormal.js";
8
+ import { getTagPosition as u, tagPosition as v } from "./tagPosition.js";
9
+ import { checkRange as F } from "./checkRange.js";
10
+ import { actionAfterFiveModelLoad as k, waitFiveModelLoaded as M } from "./actionAfterFiveModelLoad.js";
11
+ import { normalPositionToPositions as w } from "./normalPositionToPositions.js";
12
+ import { debounce as A } from "./debounce.js";
13
+ import { throttle as D } from "./throttle.js";
14
+ import { binarySearchFirstBig as O, searchFirstValueSmallThanLastValue as R } from "./search.js";
15
+ import { resizeObserver as q } from "./resizeObserver.js";
16
16
  import "three";
17
+ import "@realsee/five/gltf-loader";
18
+ import "./tag/tagCheck.js";
17
19
  export {
18
- y as actionAfterFiveModelLoad,
19
- l as addDebugPoints,
20
- f as anyPositionToVector3,
21
- x as arrayPositionToVector3,
22
- B as binarySearchFirstBig,
23
- t as centerPoint,
24
- u as checkRange,
25
- S as debounce,
26
- a as even,
27
- P as noTypecheck,
28
- k as normalPositionToPositions,
29
- T as planeNormal,
30
- s as positionToVector3,
31
- n as random,
32
- O as resizeObserver,
33
- D as searchFirstValueSmallThanLastValue,
34
- b as tagPosition,
35
- z as throttle,
36
- F as waitFiveModelLoaded
20
+ k as actionAfterFiveModelLoad,
21
+ P as addDebugPoints,
22
+ x as anyPositionToVector3,
23
+ c as arrayPositionToVector3,
24
+ O as binarySearchFirstBig,
25
+ a as centerPoint,
26
+ F as checkRange,
27
+ A as debounce,
28
+ n as even,
29
+ u as getTagPosition,
30
+ g as noTypecheck,
31
+ w as normalPositionToPositions,
32
+ V as planeNormal,
33
+ l as positionToVector3,
34
+ f as random,
35
+ q as resizeObserver,
36
+ R as searchFirstValueSmallThanLastValue,
37
+ v as tagPosition,
38
+ D as throttle,
39
+ M as waitFiveModelLoaded
37
40
  };
@@ -1,11 +1,12 @@
1
1
  import "three";
2
2
  import { anyPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
3
- function i(t) {
3
+ import "@realsee/five/gltf-loader";
4
+ function m(t) {
4
5
  if (t.length < 3)
5
6
  return;
6
7
  const o = t.map(c), r = o[1].clone().sub(o[0]), n = o[2].clone().sub(o[1]);
7
8
  return r.cross(n);
8
9
  }
9
10
  export {
10
- i as planeNormal
11
+ m as planeNormal
11
12
  };
@@ -0,0 +1,2 @@
1
+ import { Tag } from '../../typings';
2
+ export declare function getMediaModelPlanPositions(tag: Tag<'MediaModel', 'Model'>): number[][];
@@ -0,0 +1,11 @@
1
+ import { Matrix4 as e, Vector3 as o } from "three";
2
+ import "@realsee/five/gltf-loader";
3
+ function p(r) {
4
+ if (!r.matrix)
5
+ return;
6
+ const t = new e().fromArray(r.matrix), { mediaPosition: i } = r.data;
7
+ return i.map((n) => new o().fromArray(n).add(new o(0, 0, 5e-4)).applyMatrix4(t).toArray());
8
+ }
9
+ export {
10
+ p as getMediaModelPlanPositions
11
+ };
@@ -1,7 +1,8 @@
1
- import type { Tag } from '../../typings';
1
+ import type { Tag, TagElement } from '../../typings';
2
2
  export declare function isPointTag(tag: Tag): boolean;
3
3
  export declare function isPlaneTag(tag: Tag): boolean;
4
4
  export declare function isPoint2DTag(tag: Tag): boolean;
5
5
  export declare function isPoint3DTag(tag: Tag): boolean;
6
6
  export declare function is2DTag(tag: Tag): boolean;
7
7
  export declare function is3DTag(tag: Tag): boolean;
8
+ export declare function isMediaModelTag(tag: Tag): tag is TagElement<'MediaModel', 'Model'>;
@@ -13,12 +13,16 @@ function o(n) {
13
13
  function c(n) {
14
14
  return n.stickType === "2DPoint";
15
15
  }
16
- function s(n) {
16
+ function T(n) {
17
17
  return n.stickType === "3DPoint" || n.stickType === "Plane";
18
18
  }
19
+ function s(n) {
20
+ return n.stickType === "Model" && n.contentType === "MediaModel";
21
+ }
19
22
  export {
20
23
  c as is2DTag,
21
- s as is3DTag,
24
+ T as is3DTag,
25
+ s as isMediaModelTag,
22
26
  t as isPlaneTag,
23
27
  e as isPoint2DTag,
24
28
  o as isPoint3DTag,
@@ -1,3 +1,5 @@
1
- import type { Vector3 } from 'three';
1
+ import { Vector3 } from 'three';
2
2
  import { AnyPosition } from '.';
3
+ import { Tag } from '../typings';
3
4
  export declare function tagPosition(position: AnyPosition | [AnyPosition, AnyPosition, AnyPosition, AnyPosition]): Vector3;
5
+ export declare function getTagPosition(tag: Tag): Vector3;
@@ -1,13 +1,25 @@
1
- import { centerPoint as e } from "../../CSS3DRenderPlugin/utils/centerPoint.js";
2
- import { anyPositionToVector3 as o } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
3
- import "three";
4
- function p(r) {
1
+ import { Matrix4 as s, Vector3 as m } from "three";
2
+ import { centerPoint as n } from "../../CSS3DRenderPlugin/utils/centerPoint.js";
3
+ import { anyPositionToVector3 as t, arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
4
+ import "@realsee/five/gltf-loader";
5
+ import { isPointTag as a, isMediaModelTag as c } from "./tag/tagCheck.js";
6
+ function f(r) {
5
7
  if (Array.isArray(r) && r.length === 4) {
6
- const t = r.map(o);
7
- return e(t[0], t[2]);
8
+ const o = r.map(t);
9
+ return n(o[0], o[2]);
8
10
  } else
9
- return o(r);
11
+ return t(r);
12
+ }
13
+ function T(r) {
14
+ if (a(r))
15
+ return p(r == null ? void 0 : r.position);
16
+ if (c(r) && r.matrix) {
17
+ const i = new s().fromArray(r.matrix), o = r.data.mediaPosition.map((e) => new m().fromArray(e).applyMatrix4(i));
18
+ return n(o[0], o[2]);
19
+ } else
20
+ return f(r.position);
10
21
  }
11
22
  export {
12
- p as tagPosition
23
+ T as getTagPosition,
24
+ f as tagPosition
13
25
  };