@realsee/dnalogel 2.19.0-2 → 2.19.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 (306) hide show
  1. package/dist/index.cjs.js +7 -7
  2. package/dist/index.js +91 -89
  3. package/dist/index.umd.js +7 -7
  4. package/docs/classes/CSS3DRender.html +30 -30
  5. package/docs/classes/CruisePluginController.html +25 -25
  6. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  7. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
  8. package/docs/classes/Magnifier.html +19 -19
  9. package/docs/classes/ModelRoomLabelController.html +10 -10
  10. package/docs/classes/Object3DHelperController.html +24 -24
  11. package/docs/classes/PaintBrush.html +14 -14
  12. package/docs/classes/PanoMeasurePluginLine.html +22 -22
  13. package/docs/classes/PanoMeasurePluginModel.html +21 -21
  14. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  15. package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
  16. package/docs/classes/PanoTagPluginController.html +45 -45
  17. package/docs/classes/Util.BetterTween.html +8 -8
  18. package/docs/classes/Util.FivePointSelector.html +11 -11
  19. package/docs/classes/Util.Interval.html +11 -11
  20. package/docs/classes/Util.Magnifier.html +16 -16
  21. package/docs/classes/Util.PointDomHelper.html +10 -10
  22. package/docs/classes/Util.PointHelper.html +10 -10
  23. package/docs/classes/Util.Rectangle.html +12 -12
  24. package/docs/enums/CameraMovementEffect.html +6 -6
  25. package/docs/enums/ContentType.html +19 -19
  26. package/docs/enums/DIRECTION.html +8 -8
  27. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  28. package/docs/enums/DimensionType.html +6 -6
  29. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  30. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  31. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  32. package/docs/enums/Rotation.html +7 -7
  33. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  34. package/docs/functions/CameraMovementPlugin.html +3 -3
  35. package/docs/functions/CruisePlugin.html +3 -3
  36. package/docs/functions/GuideLinePlugin.html +4 -4
  37. package/docs/functions/ItemLabelPlugin.html +3 -3
  38. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  39. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  40. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  41. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  42. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  43. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  44. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  45. package/docs/functions/ModelViewPlugin.html +3 -3
  46. package/docs/functions/Object3DHelperPlugin.html +3 -3
  47. package/docs/functions/PanoCompassPlugin.html +3 -3
  48. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  49. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  50. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  51. package/docs/functions/PanoMeasurePlugin.html +3 -3
  52. package/docs/functions/PanoRulerPlugin.html +3 -3
  53. package/docs/functions/PanoRulerProPlugin.html +3 -3
  54. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  55. package/docs/functions/PanoTagPlugin.html +3 -3
  56. package/docs/functions/PanoVideoPlugin.html +3 -3
  57. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  58. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  59. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  60. package/docs/functions/Util.getFrameTime.html +4 -4
  61. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  62. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  63. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  64. package/docs/functions/Util.isModelLike.html +4 -4
  65. package/docs/functions/Util.isNil.html +4 -4
  66. package/docs/functions/Util.isPanoramaLike.html +4 -4
  67. package/docs/functions/Util.nextFrame.html +4 -4
  68. package/docs/functions/Util.notNil.html +4 -4
  69. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  70. package/docs/functions/Util.tweenProgress.html +4 -4
  71. package/docs/functions/Util.uuid.html +4 -4
  72. package/docs/functions/pluginFlag.html +4 -4
  73. package/docs/index.html +4 -4
  74. package/docs/interfaces/AddTagConfig.html +5 -5
  75. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  76. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  77. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  78. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  79. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  80. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  81. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  82. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  83. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  84. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  85. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  86. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  87. package/docs/interfaces/EventMap.html +14 -14
  88. package/docs/interfaces/FloorplanBounding.html +7 -7
  89. package/docs/interfaces/FloorplanData.html +9 -9
  90. package/docs/interfaces/FloorplanEntrance.html +10 -10
  91. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  92. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  93. package/docs/interfaces/FloorplanFloorData.html +8 -8
  94. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  95. package/docs/interfaces/FloorplanObserver.html +8 -8
  96. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  97. package/docs/interfaces/FloorplanPosition.html +6 -6
  98. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  99. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  100. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  101. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  102. package/docs/interfaces/FloorplanServerData.html +6 -6
  103. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  104. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  105. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  106. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  107. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  108. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  109. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  110. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  111. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  112. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  113. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  114. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  115. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  116. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  117. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  118. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  119. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  120. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  121. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  122. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  123. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  124. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  125. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  126. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  127. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  128. package/docs/interfaces/HelperOffset.html +7 -7
  129. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  130. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  131. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  132. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  133. package/docs/interfaces/MinMax.html +6 -6
  134. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  135. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  136. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  137. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  138. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  139. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  140. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  141. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  142. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  143. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  144. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  145. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  146. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  147. package/docs/interfaces/Object3DHelperState.html +7 -7
  148. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  149. package/docs/interfaces/PaintBrushAction.html +11 -11
  150. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  151. package/docs/interfaces/PaintBrushState.html +9 -9
  152. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  153. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  154. package/docs/interfaces/PanoMeasureParameterType.html +13 -13
  155. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  156. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  157. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  158. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  159. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  160. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  161. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  162. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  163. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  164. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  165. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  166. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  167. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  168. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  169. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  170. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  171. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  172. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  173. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  174. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  175. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  176. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  177. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  178. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  179. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  180. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  181. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  182. package/docs/interfaces/Point.html +7 -7
  183. package/docs/interfaces/Room.html +8 -8
  184. package/docs/interfaces/RoomInfo.html +6 -6
  185. package/docs/interfaces/RoomLabel.html +13 -13
  186. package/docs/interfaces/RoomRules.html +4 -4
  187. package/docs/interfaces/Rooms.html +4 -4
  188. package/docs/interfaces/Scissor.html +8 -8
  189. package/docs/interfaces/State.html +7 -7
  190. package/docs/interfaces/TagCacheInterface.html +11 -11
  191. package/docs/interfaces/TagConfig.html +12 -12
  192. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  193. package/docs/interfaces/TagIconUrl.html +11 -11
  194. package/docs/interfaces/TagObjectGroup.html +5 -5
  195. package/docs/interfaces/TagStyle.html +5 -5
  196. package/docs/interfaces/Tags.html +8 -8
  197. package/docs/interfaces/TemporaryState.html +5 -5
  198. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  199. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  200. package/docs/modules/CruisePluginTypes.html +4 -4
  201. package/docs/modules/GuideLineItem.html +4 -4
  202. package/docs/modules/GuideLineModeItem.html +4 -4
  203. package/docs/modules/GuideLinePluginType.html +4 -4
  204. package/docs/modules/PanoVideoPluginType.html +4 -4
  205. package/docs/modules/Util.html +4 -4
  206. package/docs/modules.html +4 -4
  207. package/docs/types/ArrayPosition.html +4 -4
  208. package/docs/types/AudioAppearance.html +4 -4
  209. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  210. package/docs/types/CSS3DRenderExportType.html +4 -4
  211. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  212. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  213. package/docs/types/ClassFunctionParameters.html +4 -4
  214. package/docs/types/Color.html +4 -4
  215. package/docs/types/ContentTypeConfigKey.html +4 -4
  216. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  217. package/docs/types/ContentTypeMap.html +4 -4
  218. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  219. package/docs/types/Create3DElementReturnType.html +4 -4
  220. package/docs/types/CruisePluginExportType.html +4 -4
  221. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  222. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  223. package/docs/types/Direction-1.html +4 -4
  224. package/docs/types/Direction4.html +4 -4
  225. package/docs/types/ElementRenderer.html +4 -4
  226. package/docs/types/FloorplanRuleLabels.html +4 -4
  227. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  228. package/docs/types/GuideLinePluginExportType.html +4 -4
  229. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  230. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  231. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  232. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  233. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  234. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  235. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  236. package/docs/types/HelperEventMap.html +4 -4
  237. package/docs/types/LoadTagConfig.html +4 -4
  238. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  239. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  240. package/docs/types/MediaData.html +4 -4
  241. package/docs/types/MediaStore.html +4 -4
  242. package/docs/types/ModelElement.html +4 -4
  243. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  244. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  245. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  246. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  247. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  248. package/docs/types/MoveArgs.html +4 -4
  249. package/docs/types/MoveOpts.html +4 -4
  250. package/docs/types/Object3DHelperEventMap.html +4 -4
  251. package/docs/types/ObjectFit.html +4 -4
  252. package/docs/types/PaintBrushEventMap.html +4 -4
  253. package/docs/types/PanoCompassPluginData.html +4 -4
  254. package/docs/types/PanoCompassPluginExportType.html +4 -4
  255. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  256. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  257. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  258. package/docs/types/PanoIndex.html +4 -4
  259. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  260. package/docs/types/PanoMeasureReturnType.html +4 -4
  261. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  262. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  263. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  264. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  265. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  266. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  267. package/docs/types/PlaneTag.html +4 -4
  268. package/docs/types/PlaneTagElement.html +4 -4
  269. package/docs/types/Point2DElement.html +4 -4
  270. package/docs/types/Point2DTag.html +4 -4
  271. package/docs/types/Point3DElement.html +4 -4
  272. package/docs/types/Point3DTag.html +4 -4
  273. package/docs/types/PointTag.html +4 -4
  274. package/docs/types/PointTagElement.html +4 -4
  275. package/docs/types/Position.html +4 -4
  276. package/docs/types/RotateArgs.html +4 -4
  277. package/docs/types/RotateOpts.html +4 -4
  278. package/docs/types/RuleLabelsKey.html +4 -4
  279. package/docs/types/RuleLabelsValue.html +4 -4
  280. package/docs/types/StickType.html +4 -4
  281. package/docs/types/Tag.html +4 -4
  282. package/docs/types/Tag2D.html +4 -4
  283. package/docs/types/Tag3D.html +4 -4
  284. package/docs/types/TagContentType.html +4 -4
  285. package/docs/types/TagDimensionType.html +4 -4
  286. package/docs/types/TagElement.html +4 -4
  287. package/docs/types/TagEvents.html +4 -4
  288. package/docs/types/TagGLTFObject.html +4 -4
  289. package/docs/types/TagHooks.html +4 -4
  290. package/docs/types/TagIconSize.html +4 -4
  291. package/docs/types/TagId.html +4 -4
  292. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  293. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  294. package/docs/types/WorkCode.html +4 -4
  295. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  296. package/docs/variables/PLUGIN.html +4 -4
  297. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  298. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  299. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  300. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  301. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  302. package/libs/PanoMeasurePlugin/Controller/index.js +26 -24
  303. package/libs/PanoTagPlugin/controller/TagRender.js +80 -80
  304. package/libs/base/BasePlugin.js +1 -1
  305. package/libs/shared-utils/logger.js +1 -1
  306. package/package.json +1 -1
@@ -1,32 +1,32 @@
1
1
  var k = Object.defineProperty;
2
2
  var E = (f, h, t) => h in f ? k(f, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[h] = t;
3
- var g = (f, h, t) => (E(f, typeof h != "symbol" ? h + "" : h, t), t);
4
- var D = (f, h, t) => new Promise((e, o) => {
3
+ var b = (f, h, t) => (E(f, typeof h != "symbol" ? h + "" : h, t), t);
4
+ var C = (f, h, t) => new Promise((e, o) => {
5
5
  var i = (r) => {
6
6
  try {
7
- n(t.next(r));
7
+ a(t.next(r));
8
8
  } catch (s) {
9
9
  o(s);
10
10
  }
11
- }, a = (r) => {
11
+ }, n = (r) => {
12
12
  try {
13
- n(t.throw(r));
13
+ a(t.throw(r));
14
14
  } catch (s) {
15
15
  o(s);
16
16
  }
17
- }, n = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, a);
18
- n((t = t.apply(f, h)).next());
17
+ }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, n);
18
+ a((t = t.apply(f, h)).next());
19
19
  });
20
20
  import { TagComputer as w } from "./TagComputer.js";
21
- import { Group as P, Quaternion as O, Vector3 as v, Matrix4 as T } from "three";
21
+ import { Group as S, Quaternion as O, Vector3 as v, Matrix4 as D } from "three";
22
22
  import x from "../Components/TagContainer.js";
23
23
  import A from "../Components/Tag/index.js";
24
- import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
24
+ import { arrayPositionToVector3 as y } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
25
  import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
26
- import { isMediaModelTag as S, isStickModelTag as I } from "../utils/tag/tagCheck.js";
26
+ import { isMediaModelTag as P, isStickModelTag as I } from "../utils/tag/tagCheck.js";
27
27
  import { CSS3DRenderPlugin as V } from "../../CSS3DRenderPlugin/index.js";
28
28
  import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
29
- import { VideoPlane as R, ImagePlane as j } from "../utils/model/mediaPlane.js";
29
+ import { VideoPlane as j, ImagePlane as R } from "../utils/model/mediaPlane.js";
30
30
  import "../utils/tagPosition.js";
31
31
  import "../utils/checkRange.js";
32
32
  import "hammerjs";
@@ -143,42 +143,42 @@ const L = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
143
143
  class ti extends w {
144
144
  constructor(t) {
145
145
  super(t);
146
- g(this, "group", new P());
147
- g(this, "imagePlaneGroup", new P());
148
- g(this, "gltfObjectGroup", new P());
146
+ b(this, "group", new S());
147
+ b(this, "imagePlaneGroup", new S());
148
+ b(this, "gltfObjectGroup", new S());
149
149
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
150
- g(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
150
+ b(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
151
151
  /** 临时状态 */
152
- g(this, "temporaryState", { visible: !0 });
152
+ b(this, "temporaryState", { visible: !0 });
153
153
  /** 点标签 */
154
- g(this, "TagContainerSvelte");
154
+ b(this, "TagContainerSvelte");
155
155
  /** 加载外部模型 */
156
- g(this, "loadModel", (t) => D(this, null, function* () {
157
- var n;
156
+ b(this, "loadModel", (t) => C(this, null, function* () {
157
+ var a;
158
158
  const e = t.data.modelUrl;
159
159
  if (!e)
160
160
  return;
161
161
  const o = F(e).then((r) => {
162
- var m, u, p, d, c;
162
+ var p, m, l, c, d;
163
163
  const s = Object.assign(r.scene, {
164
164
  customID: t.id,
165
165
  isTagModel: !0,
166
- removeEventListener: this.addObjectClickHandler(t, r.scene, (b) => {
167
- this.hooks.emit("click", { target: "TagModel", tag: t, event: b });
166
+ removeEventListener: this.addObjectClickHandler(t, r.scene, (g) => {
167
+ console.log("🐶 ==> tag:", t), this.hooks.emit("click", { target: "TagModel", tag: t, event: g });
168
168
  })
169
169
  });
170
- return s.visible = this.getCurrentVisibleState(t), new T().fromArray(t.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFiveMode(t), (p = (u = (m = this.config) == null ? void 0 : m.globalConfig) == null ? void 0 : u.modelConfig) != null && p.autoLookAtEnabled && ((c = (d = t.config) == null ? void 0 : d.modelConfig) != null && c.autoLookAtEnabled) && s.lookAt(this.five.camera.position.clone().setY(s.position.y)), s;
170
+ return s.visible = this.getCurrentVisibleState(t), new D().fromArray(t.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFiveMode(t), (l = (m = (p = this.config) == null ? void 0 : p.globalConfig) == null ? void 0 : m.modelConfig) != null && l.autoLookAtEnabled && ((d = (c = t.config) == null ? void 0 : c.modelConfig) != null && d.autoLookAtEnabled) && s.lookAt(this.five.camera.position.clone().setY(s.position.y)), s;
171
171
  });
172
172
  t.model = { promise: o };
173
173
  const i = yield o;
174
- if (((n = t.model) == null ? void 0 : n.promise) !== o || !this.tags.includes(t))
174
+ if (((a = t.model) == null ? void 0 : a.promise) !== o || !this.tags.includes(t))
175
175
  return;
176
176
  t.model.object = i;
177
- const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
178
- if (a && (this.gltfObjectGroup.remove(a), a.removeEventListener()), this.updateRender3DDomTag(), S(t)) {
177
+ const n = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
178
+ if (n && (this.gltfObjectGroup.remove(n), n.removeEventListener()), this.updateRender3DDomTag(), P(t)) {
179
179
  if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
180
- const r = t.data.mediaPosition.map(C);
181
- t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(C), {
180
+ const r = t.data.mediaPosition.map(y);
181
+ t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(y), {
182
182
  objectFit: t.data.objectFit
183
183
  });
184
184
  const s = new v().addVectors(r[0], r[2]).divideScalar(2);
@@ -207,32 +207,32 @@ class ti extends w {
207
207
  */
208
208
  updateRenderImagePlane() {
209
209
  this.sort(this.filterImagePlane).forEach((e) => {
210
- var r, s, l, m, u;
210
+ var r, s, u, p, m;
211
211
  const o = e.data.mediaData[0];
212
212
  if (!o)
213
213
  return;
214
- const { url: i, type: a } = o;
215
- if (!i || (e.mediaPlane && (e.mediaPlane.visible = (s = (r = e.state) == null ? void 0 : r.visible) != null ? s : !0, e.mediaPlane.visible || e.mediaPlane instanceof R && ((l = e.data.autoplayConfig) != null && l.autoplayVideo || e.mediaPlane.pause())), ((m = e.mediaPlane) == null ? void 0 : m.src) === i))
214
+ const { url: i, type: n } = o;
215
+ if (!i || (e.mediaPlane && (e.mediaPlane.visible = (s = (r = e.state) == null ? void 0 : r.visible) != null ? s : !0, e.mediaPlane.visible || e.mediaPlane instanceof j && ((u = e.data.autoplayConfig) != null && u.autoplayVideo || e.mediaPlane.pause())), ((p = e.mediaPlane) == null ? void 0 : p.src) === i))
216
216
  return;
217
- const n = e.position.map(C);
218
- if (e.mediaPlane && e.mediaPlane.removeFromParent(), a === "Image")
219
- e.mediaPlane = new j(i, n, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
220
- this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
217
+ const a = e.position.map(y);
218
+ if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
219
+ e.mediaPlane = new R(i, a, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (l) => {
220
+ this.hooks.emit("click", { tag: e, target: "TagContent", event: l.origDomEvent });
221
221
  });
222
- else if (a === "Video") {
223
- const p = new R(i, n, {
222
+ else if (n === "Video") {
223
+ const l = new j(i, a, {
224
224
  videoCoverSrc: o.videoCoverUrl,
225
225
  playButton: e.data.playIcon,
226
- paused: !((u = e.data.autoplayConfig) != null && u.autoplayVideo),
226
+ paused: !((m = e.data.autoplayConfig) != null && m.autoplayVideo),
227
227
  objectFit: e.data.objectFit,
228
228
  videoTextureMap: L,
229
229
  ImageTextureMap: B
230
230
  });
231
- p.onVideoReady = (c) => {
232
- c.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: p.videoInstance }));
233
- }, p.initialDomEvents(this.domEvents);
234
- const d = (c) => (this.five.on("renderFrame", c), () => this.five.off("renderFrame", c));
235
- p.initialRenderHooks(d), e.mediaPlane = p;
231
+ l.onVideoReady = (d) => {
232
+ d.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: l.videoInstance }));
233
+ }, l.initialDomEvents(this.domEvents);
234
+ const c = (d) => (this.five.on("renderFrame", d), () => this.five.off("renderFrame", d));
235
+ l.initialRenderHooks(c), e.mediaPlane = l;
236
236
  }
237
237
  this.imagePlaneGroup.add(e.mediaPlane);
238
238
  });
@@ -242,44 +242,44 @@ class ti extends w {
242
242
  */
243
243
  updateRender3DDomTag() {
244
244
  this.sort([...this.filterCSS3DTag]).forEach((e) => {
245
- var o, i, a;
245
+ var o, i, n, a;
246
246
  if (e.tag3DContentSvelte) {
247
- const { svelteApp: n, css3DInstance: r, initialNormal: s, currentNormal: l } = e.tag3DContentSvelte;
248
- if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(l)) {
249
- const m = new O().setFromUnitVectors(s, l);
250
- r.css3DObject.setRotationFromQuaternion(m);
247
+ const { svelteApp: r, css3DInstance: s, initialNormal: u, currentNormal: p } = e.tag3DContentSvelte;
248
+ if (r.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !u.equals(p)) {
249
+ const m = new O().setFromUnitVectors(u, p);
250
+ s.css3DObject.setRotationFromQuaternion(m);
251
251
  }
252
252
  return;
253
253
  } else {
254
- if (S(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
254
+ if (P(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
255
255
  return;
256
256
  if (this.css3DRenderPlugin || (this.css3DRenderPlugin = V(this.five)), e.stickType === "3DPoint" && !e.normal)
257
257
  return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
258
- const n = this.getPositions(e);
259
- if (!n)
260
- return;
261
- const r = this.getTagNormal(e);
258
+ const r = this.getPositions(e);
262
259
  if (!r)
263
260
  return;
264
- const l = (a = this.getTagConfig(e).tag3DConfig) != null ? a : {};
261
+ const s = this.getTagNormal(e);
262
+ if (!s)
263
+ return;
264
+ const p = (n = this.getTagConfig(e).tag3DConfig) != null ? n : {};
265
265
  if (this.getRenderType(e) === "BehindDom") {
266
- l.mode = "behind", l.container = document.createElement("div");
267
- const p = "black";
268
- l.container.style.backgroundColor = p, l.container.style.border = `3px solid ${p}`, this.css3DRenderPlugin.hooks.on("render", () => {
266
+ p.mode = "behind", p.container = document.createElement("div");
267
+ const c = "black";
268
+ p.container.style.backgroundColor = c, p.container.style.border = `3px solid ${c}`, this.css3DRenderPlugin.hooks.on("render", () => {
269
269
  var d;
270
270
  if (m.css3DObject.opacityMesh) {
271
- const c = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (b) => {
272
- this.hooks.emit("click", { event: b, target: "TagContent", tag: e });
271
+ const g = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (T) => {
272
+ this.hooks.emit("click", { event: T, target: "TagContent", tag: e });
273
273
  });
274
- (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(c);
274
+ (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(g);
275
275
  }
276
276
  });
277
277
  }
278
- const m = this.css3DRenderPlugin.create3DDomContainer(n, l);
278
+ const m = this.css3DRenderPlugin.create3DDomContainer(r, p);
279
279
  if (!m)
280
280
  return;
281
281
  this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
282
- const u = new A({
282
+ const l = new A({
283
283
  target: m.container,
284
284
  props: {
285
285
  tag: e,
@@ -291,15 +291,15 @@ class ti extends w {
291
291
  }
292
292
  });
293
293
  e.tag3DContentSvelte = {
294
- svelteApp: u,
294
+ svelteApp: l,
295
295
  domContainer: m,
296
296
  css3DInstance: m,
297
- initialNormal: r,
298
- currentNormal: r,
297
+ initialNormal: s,
298
+ currentNormal: s,
299
299
  dispose: () => {
300
- u.$destroy(), m.dispose();
300
+ l.$destroy(), m.dispose();
301
301
  }
302
- };
302
+ }, P(e) && ((a = e.model) != null && a.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
303
303
  }
304
304
  }), this.clearUnusedPanelTag();
305
305
  }
@@ -313,9 +313,9 @@ class ti extends w {
313
313
  updateRenderModelTag() {
314
314
  const t = (i) => !this.enabledModelTagSet.has(i.customID), e = this.gltfObjectGroup.children.filter(t);
315
315
  e.forEach((i) => i.removeEventListener()), this.gltfObjectGroup.remove(...e), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
316
- var a;
317
- (a = i.model) == null || a.promise.then((n) => {
318
- n.visible = this.getCurrentVisibleState(i);
316
+ var n;
317
+ (n = i.model) == null || n.promise.then((a) => {
318
+ a.visible = this.getCurrentVisibleState(i);
319
319
  });
320
320
  }), this.five.needsRender = !0;
321
321
  }
@@ -330,20 +330,20 @@ class ti extends w {
330
330
  * @param model 模型
331
331
  */
332
332
  updateTagCss3DObjectMatrix(t, e) {
333
- var c, b, y, M;
334
- const o = (y = (b = (c = t.mergedConfig) == null ? void 0 : c.tag3DConfig) == null ? void 0 : b.ratio) != null ? y : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
333
+ var d, g, T, M;
334
+ const o = (T = (g = (d = t.mergedConfig) == null ? void 0 : d.tag3DConfig) == null ? void 0 : g.ratio) != null ? T : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
335
335
  if (!i)
336
336
  return;
337
- const a = S(t) ? t.data.mediaPosition : t.position;
337
+ const n = P(t) ? t.data.mediaPosition : t.position;
338
338
  e.updateWorldMatrix(!1, !1);
339
- const n = e.matrixWorld, r = new v().fromArray(a[0]), s = new v().fromArray(a[2]), l = G(r, s).add(new v(0, 0, 5e-4)), m = new T().setPosition(l), u = new T().makeScale(o, o, o), p = new T().multiply(n).multiply(m).multiply(u);
340
- p.decompose(i.position, i.quaternion, i.scale);
341
- const d = i.opacityMesh;
342
- d && p.decompose(d.position, d.quaternion, d.scale);
339
+ const a = e.matrixWorld, r = new v().fromArray(n[0]), s = new v().fromArray(n[2]), u = G(r, s).add(new v(0, 0, 5e-4)), p = new D().setPosition(u), m = new D().makeScale(o, o, o), l = new D().multiply(a).multiply(p).multiply(m);
340
+ l.decompose(i.position, i.quaternion, i.scale);
341
+ const c = i.opacityMesh;
342
+ c && l.decompose(c.position, c.quaternion, c.scale);
343
343
  }
344
344
  /** 添加模型标签 */
345
345
  addMediaModelTag(t) {
346
- return D(this, null, function* () {
346
+ return C(this, null, function* () {
347
347
  const e = t.filter(I).map((o) => this.loadModel(o));
348
348
  yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
349
349
  });
@@ -373,8 +373,8 @@ class ti extends w {
373
373
  temporaryState: this.temporaryState,
374
374
  withAnimation: this.store.visibleWithAnimation
375
375
  }), this.filterCSS3DTag.forEach((e) => {
376
- var o, i, a, n, r;
377
- (n = (i = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : i.css3DObject) == null || n.setVisible((this.state.visible && ((a = e.state) == null ? void 0 : a.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
376
+ var o, i, n, a, r;
377
+ (a = (i = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : i.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
378
378
  state: this.state,
379
379
  temporaryState: this.temporaryState,
380
380
  withAnimation: this.store.visibleWithAnimation
@@ -14,7 +14,7 @@ let n = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- e(this, "VERSION", "2.19.0-2");
17
+ e(this, "VERSION", "2.19.0");
18
18
  e(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.info(
3
- "%c %c@realsee/dnalogel %cv2.19.0-2",
3
+ "%c %c@realsee/dnalogel %cv2.19.0",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.19.0-2",
10
+ "version": "2.19.0",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",