@realsee/dnalogel 3.3.0-dev.5 → 3.3.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 (350) hide show
  1. package/dist/index.cjs.js +4 -4
  2. package/dist/index.js +27 -11
  3. package/dist/index.umd.js +4 -4
  4. package/libs/CurrentPanoImagePlugin/Controller.js +27 -27
  5. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +92 -76
  6. package/libs/base/BasePlugin.js +1 -1
  7. package/libs/shared-utils/logger.js +1 -1
  8. package/package.json +1 -1
  9. package/docs/.nojekyll +0 -1
  10. package/docs/assets/highlight.css +0 -120
  11. package/docs/assets/main.js +0 -58
  12. package/docs/assets/search.js +0 -1
  13. package/docs/assets/style.css +0 -1367
  14. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
  15. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
  16. package/docs/classes/CSS3DRender.html +0 -773
  17. package/docs/classes/CruisePluginController.html +0 -672
  18. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -476
  19. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -856
  20. package/docs/classes/Magnifier.html +0 -480
  21. package/docs/classes/ModelRoomLabelController.html +0 -398
  22. package/docs/classes/Object3DHelperController.html +0 -640
  23. package/docs/classes/PaintBrush.html +0 -502
  24. package/docs/classes/PanoMeasurePluginLine.html +0 -522
  25. package/docs/classes/PanoMeasurePluginModel.html +0 -571
  26. package/docs/classes/PanoMeasurePluginPoint.html +0 -362
  27. package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
  28. package/docs/classes/PanoTagPluginController.html +0 -1077
  29. package/docs/classes/Util.BetterTween.html +0 -416
  30. package/docs/classes/Util.Interval.html +0 -432
  31. package/docs/classes/Util.LineSegments.html +0 -384
  32. package/docs/classes/Util.Magnifier.html +0 -503
  33. package/docs/classes/Util.Object3D.html +0 -406
  34. package/docs/classes/Util.PointDomHelper.html +0 -407
  35. package/docs/classes/Util.PointHelper.html +0 -398
  36. package/docs/classes/Util.PointSelectorHelper.html +0 -454
  37. package/docs/classes/Util.Rectangle.html +0 -455
  38. package/docs/enums/CameraMovementEffect.html +0 -310
  39. package/docs/enums/ContentType.html +0 -446
  40. package/docs/enums/DIRECTION.html +0 -320
  41. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
  42. package/docs/enums/DimensionType.html +0 -310
  43. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
  44. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
  45. package/docs/enums/PaintBrushTypeEnum.html +0 -313
  46. package/docs/enums/PointType.html +0 -310
  47. package/docs/enums/Rotation.html +0 -317
  48. package/docs/functions/AreaMakerPlugin.html +0 -290
  49. package/docs/functions/CSS3DRenderPlugin.html +0 -288
  50. package/docs/functions/CameraMovementPlugin.html +0 -293
  51. package/docs/functions/CruisePlugin.html +0 -290
  52. package/docs/functions/CurrentPanoImagePlugin.html +0 -290
  53. package/docs/functions/GuideLinePlugin.html +0 -290
  54. package/docs/functions/ItemLabelPlugin.html +0 -290
  55. package/docs/functions/MapviewFloorplanPlugin.html +0 -290
  56. package/docs/functions/ModelChassisCompassPlugin.html +0 -293
  57. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
  58. package/docs/functions/ModelFloorplanPlugin.html +0 -290
  59. package/docs/functions/ModelItemLabelPlugin.html +0 -290
  60. package/docs/functions/ModelRoomLabelPlugin.html +0 -288
  61. package/docs/functions/ModelTVVideoPlugin.html +0 -290
  62. package/docs/functions/ModelViewPlugin.html +0 -293
  63. package/docs/functions/Object3DHelperPlugin.html +0 -288
  64. package/docs/functions/PanoCompassPlugin.html +0 -290
  65. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
  66. package/docs/functions/PanoDoorLabelPlugin.html +0 -290
  67. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
  68. package/docs/functions/PanoMeasurePlugin.html +0 -290
  69. package/docs/functions/PanoRulerPlugin.html +0 -293
  70. package/docs/functions/PanoRulerProPlugin.html +0 -293
  71. package/docs/functions/PanoSpatialTagPlugin.html +0 -293
  72. package/docs/functions/PanoTagPlugin.html +0 -295
  73. package/docs/functions/PanoVideoPlugin.html +0 -299
  74. package/docs/functions/PipelinePlugin.html +0 -288
  75. package/docs/functions/TopviewFloorplanPlugin.html +0 -290
  76. package/docs/functions/Util.absoluteUrl.html +0 -326
  77. package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
  78. package/docs/functions/Util.equal.html +0 -338
  79. package/docs/functions/Util.getCoordsFromClient.html +0 -328
  80. package/docs/functions/Util.getCoordsFromElement.html +0 -328
  81. package/docs/functions/Util.getFrameTime.html +0 -320
  82. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
  83. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
  84. package/docs/functions/Util.isAbsoluteURL.html +0 -321
  85. package/docs/functions/Util.isModelLike.html +0 -321
  86. package/docs/functions/Util.isNil.html +0 -329
  87. package/docs/functions/Util.isPanoramaLike.html +0 -321
  88. package/docs/functions/Util.nextFrame.html +0 -334
  89. package/docs/functions/Util.notNil.html +0 -329
  90. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
  91. package/docs/functions/Util.tweenProgress.html +0 -323
  92. package/docs/functions/Util.uuid.html +0 -319
  93. package/docs/functions/pluginFlag.html +0 -288
  94. package/docs/index.html +0 -354
  95. package/docs/interfaces/AddTagConfig.html +0 -303
  96. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
  97. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
  98. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
  99. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
  100. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
  101. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
  102. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
  103. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
  104. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
  105. package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
  106. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
  107. package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
  108. package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
  109. package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
  110. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
  111. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
  112. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
  113. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
  114. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
  115. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
  116. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
  117. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
  118. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
  119. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
  120. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
  121. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
  122. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
  123. package/docs/interfaces/EventMap.html +0 -542
  124. package/docs/interfaces/FloorplanBounding.html +0 -332
  125. package/docs/interfaces/FloorplanData.html +0 -335
  126. package/docs/interfaces/FloorplanEntrance.html +0 -360
  127. package/docs/interfaces/FloorplanExtraObject.html +0 -350
  128. package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
  129. package/docs/interfaces/FloorplanFloorData.html +0 -328
  130. package/docs/interfaces/FloorplanImagePosition.html +0 -314
  131. package/docs/interfaces/FloorplanObserver.html +0 -332
  132. package/docs/interfaces/FloorplanOutlineItem.html +0 -328
  133. package/docs/interfaces/FloorplanPosition.html +0 -314
  134. package/docs/interfaces/FloorplanRoomItem.html +0 -379
  135. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
  136. package/docs/interfaces/FloorplanServerBounding.html +0 -332
  137. package/docs/interfaces/FloorplanServerComputedData.html +0 -331
  138. package/docs/interfaces/FloorplanServerData.html +0 -314
  139. package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
  140. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
  141. package/docs/interfaces/FloorplanServerEntrance.html +0 -360
  142. package/docs/interfaces/FloorplanServerFloorData.html +0 -328
  143. package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
  144. package/docs/interfaces/FloorplanServerObserver.html +0 -332
  145. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
  146. package/docs/interfaces/FloorplanServerPosition.html +0 -314
  147. package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
  148. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
  149. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
  150. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -362
  151. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -526
  152. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -357
  153. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -348
  154. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -415
  155. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -337
  156. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -347
  157. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -483
  158. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -344
  159. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -483
  160. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -309
  161. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -330
  162. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -355
  163. package/docs/interfaces/GuideLinePluginType.Route.html +0 -371
  164. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -353
  165. package/docs/interfaces/HelperOffset.html +0 -332
  166. package/docs/interfaces/ImagePlaneGroup.html +0 -306
  167. package/docs/interfaces/ItemLabelPluginData.html +0 -303
  168. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
  169. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
  170. package/docs/interfaces/MinMax.html +0 -310
  171. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
  172. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
  173. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
  174. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
  175. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
  176. package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
  177. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
  178. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
  179. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
  180. package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
  181. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
  182. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
  183. package/docs/interfaces/ModelViewPluginExportType.html +0 -416
  184. package/docs/interfaces/Object3DHelperState.html +0 -317
  185. package/docs/interfaces/ObjectHelperControllers.html +0 -324
  186. package/docs/interfaces/PaintBrushAction.html +0 -363
  187. package/docs/interfaces/PaintBrushConfigs.html +0 -361
  188. package/docs/interfaces/PaintBrushState.html +0 -345
  189. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
  190. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
  191. package/docs/interfaces/PanoMeasureParameterType.html +0 -449
  192. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
  193. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
  194. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
  195. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
  196. package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
  197. package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
  198. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
  199. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
  200. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
  201. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
  202. package/docs/interfaces/PanoRulerProPluginState.html +0 -317
  203. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
  204. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
  205. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
  206. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
  207. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
  208. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
  209. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
  210. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
  211. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
  212. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
  213. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
  214. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
  215. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
  216. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
  217. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
  218. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
  219. package/docs/interfaces/Point.html +0 -317
  220. package/docs/interfaces/Room.html +0 -324
  221. package/docs/interfaces/RoomInfo.html +0 -310
  222. package/docs/interfaces/RoomLabel.html +0 -386
  223. package/docs/interfaces/RoomRules.html +0 -285
  224. package/docs/interfaces/Rooms.html +0 -285
  225. package/docs/interfaces/Scissor.html +0 -344
  226. package/docs/interfaces/State.html +0 -331
  227. package/docs/interfaces/TagCacheInterface.html +0 -362
  228. package/docs/interfaces/TagConfig.html +0 -565
  229. package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
  230. package/docs/interfaces/TagIconUrl.html +0 -363
  231. package/docs/interfaces/TagObjectGroup.html +0 -306
  232. package/docs/interfaces/TagStyle.html +0 -316
  233. package/docs/interfaces/Tags.html +0 -2688
  234. package/docs/interfaces/TemporaryState.html +0 -303
  235. package/docs/interfaces/Util.MagnifierParameter.html +0 -391
  236. package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
  237. package/docs/interfaces/Util.PointIntersection.html +0 -365
  238. package/docs/modules/AreaMakerPluginType.html +0 -323
  239. package/docs/modules/CruisePluginTypes.html +0 -328
  240. package/docs/modules/CurrentPanoImagePluginType.html +0 -297
  241. package/docs/modules/GuideLineItem.html +0 -289
  242. package/docs/modules/GuideLineModeItem.html +0 -294
  243. package/docs/modules/GuideLinePluginType.html +0 -350
  244. package/docs/modules/PanoVideoPluginType.html +0 -301
  245. package/docs/modules/Util.html +0 -351
  246. package/docs/modules.html +0 -540
  247. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
  248. package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
  249. package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
  250. package/docs/types/ArrayPosition.html +0 -279
  251. package/docs/types/AudioAppearance.html +0 -279
  252. package/docs/types/AudioTagTypeConfigKey.html +0 -279
  253. package/docs/types/CSS3DRenderExportType.html +0 -279
  254. package/docs/types/CSS3DRenderPluginExportType.html +0 -279
  255. package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
  256. package/docs/types/ClassFunctionParameters.html +0 -286
  257. package/docs/types/Color.html +0 -279
  258. package/docs/types/ContentTypeConfigKey.html +0 -279
  259. package/docs/types/ContentTypeConfigKeySplit.html +0 -279
  260. package/docs/types/ContentTypeMap.html +0 -279
  261. package/docs/types/Create3DDomContainerReturnType.html +0 -279
  262. package/docs/types/Create3DElementReturnType.html +0 -279
  263. package/docs/types/CruisePluginExportType.html +0 -279
  264. package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
  265. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
  266. package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
  267. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
  268. package/docs/types/DeprecatedTagProperty.html +0 -294
  269. package/docs/types/Direction-1.html +0 -279
  270. package/docs/types/Direction4.html +0 -279
  271. package/docs/types/ElementRenderer.html +0 -303
  272. package/docs/types/FloorplanRuleLabels.html +0 -282
  273. package/docs/types/FloorplanServerRuleLabels.html +0 -279
  274. package/docs/types/GuideLinePluginExportType.html +0 -279
  275. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -352
  276. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -373
  277. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -306
  278. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -309
  279. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -309
  280. package/docs/types/GuideLinePluginType.PathItem.html +0 -309
  281. package/docs/types/GuideLinePluginType.PluginData.html +0 -318
  282. package/docs/types/HelperEventMap.html +0 -517
  283. package/docs/types/LoadTagConfig.html +0 -279
  284. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
  285. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
  286. package/docs/types/MediaData.html +0 -295
  287. package/docs/types/MediaStore.html +0 -284
  288. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
  289. package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
  290. package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
  291. package/docs/types/ModelId.html +0 -279
  292. package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
  293. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
  294. package/docs/types/MoveArgs.html +0 -289
  295. package/docs/types/MoveOpts.html +0 -287
  296. package/docs/types/Object3DHelperEventMap.html +0 -372
  297. package/docs/types/ObjectFit.html +0 -279
  298. package/docs/types/PaintBrushEventMap.html +0 -310
  299. package/docs/types/PanoCompassPluginData.html +0 -279
  300. package/docs/types/PanoCompassPluginExportType.html +0 -279
  301. package/docs/types/PanoCompassPluginParameterType.html +0 -279
  302. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
  303. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
  304. package/docs/types/PanoIndex.html +0 -279
  305. package/docs/types/PanoMeasurePluginEvent.html +0 -279
  306. package/docs/types/PanoMeasureReturnType.html +0 -279
  307. package/docs/types/PanoSpatialTagPluginId.html +0 -279
  308. package/docs/types/PanoTagPluginExportInterface.html +0 -279
  309. package/docs/types/PanoTagPluginParamsInterface.html +0 -279
  310. package/docs/types/PanoVideoPluginParameterType.html +0 -279
  311. package/docs/types/PanoVideoPluginReturnType.html +0 -279
  312. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
  313. package/docs/types/PipelinePluginParameterType.html +0 -279
  314. package/docs/types/PipelinePluginReturnType.html +0 -279
  315. package/docs/types/PlaneTag.html +0 -287
  316. package/docs/types/Point2DTag.html +0 -287
  317. package/docs/types/Point3DTag.html +0 -287
  318. package/docs/types/PointTag.html +0 -284
  319. package/docs/types/PointTagInstance.html +0 -284
  320. package/docs/types/Position.html +0 -279
  321. package/docs/types/RotateArgs.html +0 -291
  322. package/docs/types/RotateOpts.html +0 -287
  323. package/docs/types/RuleLabelsKey.html +0 -279
  324. package/docs/types/RuleLabelsValue.html +0 -279
  325. package/docs/types/StickType.html +0 -279
  326. package/docs/types/Tag.html +0 -345
  327. package/docs/types/Tag2D.html +0 -287
  328. package/docs/types/Tag3D.html +0 -287
  329. package/docs/types/TagConfigByKey.html +0 -284
  330. package/docs/types/TagContentType.html +0 -279
  331. package/docs/types/TagDimensionType.html +0 -281
  332. package/docs/types/TagElement.html +0 -289
  333. package/docs/types/TagEvents.html +0 -332
  334. package/docs/types/TagGLTFObject.html +0 -302
  335. package/docs/types/TagHooks.html +0 -279
  336. package/docs/types/TagId.html +0 -279
  337. package/docs/types/TagInstance.html +0 -355
  338. package/docs/types/TagPointType.html +0 -282
  339. package/docs/types/TagRendererMap.html +0 -284
  340. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
  341. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
  342. package/docs/types/WorkCode.html +0 -279
  343. package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
  344. package/docs/variables/PLUGIN.html +0 -279
  345. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
  346. package/docs/variables/ROOM_TYPE_MAP.html +0 -289
  347. package/docs/variables/defaultGlobalConfig.html +0 -279
  348. package/docs/variables/itemLabelPluginServerParams.html +0 -286
  349. package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
  350. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
@@ -1,7 +1,7 @@
1
1
  var m = Object.defineProperty;
2
2
  var g = Object.getOwnPropertySymbols;
3
3
  var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
- var p = (r, o, e) => o in r ? m(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, d = (r, o) => {
4
+ var p = (r, o, e) => o in r ? m(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, l = (r, o) => {
5
5
  for (var e in o || (o = {}))
6
6
  v.call(o, e) && p(r, e, o[e]);
7
7
  if (g)
@@ -11,22 +11,22 @@ var p = (r, o, e) => o in r ? m(r, o, { enumerable: !0, configurable: !0, writab
11
11
  };
12
12
  var n = (r, o, e) => (p(r, typeof o != "symbol" ? o + "" : o, e), e);
13
13
  var f = (r, o, e) => new Promise((i, t) => {
14
- var s = (l) => {
14
+ var s = (d) => {
15
15
  try {
16
- u(e.next(l));
16
+ u(e.next(d));
17
17
  } catch (c) {
18
18
  t(c);
19
19
  }
20
- }, h = (l) => {
20
+ }, a = (d) => {
21
21
  try {
22
- u(e.throw(l));
22
+ u(e.throw(d));
23
23
  } catch (c) {
24
24
  t(c);
25
25
  }
26
- }, u = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, h);
26
+ }, u = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, a);
27
27
  u((e = e.apply(r, o)).next());
28
28
  });
29
- import * as a from "three";
29
+ import * as h from "three";
30
30
  import { Controller as M } from "../base/BasePlugin.js";
31
31
  import { tweenProgress as A } from "../shared-utils/animationFrame/BetterTween.js";
32
32
  import "hammerjs";
@@ -69,7 +69,7 @@ class K extends M {
69
69
  pluginHidden: ""
70
70
  });
71
71
  // ==================== private properties ====================
72
- n(this, "group", new a.Group());
72
+ n(this, "group", new h.Group());
73
73
  n(this, "mesh");
74
74
  n(this, "textureLoadingPromise");
75
75
  n(this, "opacityAnimeTween");
@@ -127,20 +127,20 @@ class K extends M {
127
127
  visible: !0
128
128
  };
129
129
  this.state = Object.assign(t, i == null ? void 0 : i.initialState);
130
- const s = d({
130
+ const s = l({
131
131
  width: 1.4,
132
132
  yOffset: 0.01,
133
133
  yRotate: 0,
134
134
  imageURL: this.absoluteUrl("/release/web/logo.7febb17f.png")
135
135
  }, i == null ? void 0 : i.config);
136
- this._config = s, this.group.name = "current-pano-image-plugin-group", this.mesh = new a.Mesh(
137
- new a.PlaneBufferGeometry(this.config.width, this.config.width),
138
- new a.MeshBasicMaterial({ transparent: !0, opacity: 0, depthTest: !1 })
136
+ this._config = s, this.group.name = "current-pano-image-plugin-group", this.mesh = new h.Mesh(
137
+ new h.PlaneBufferGeometry(this.config.width, this.config.width),
138
+ new h.MeshBasicMaterial({ transparent: !0, opacity: 0, depthTest: !1 })
139
139
  ), this.mesh.visible = !1, this.group.add(this.mesh), this.updateMeshQuaternion(this.config.yRotate), this.state.visible || (this.checkMsg.pluginHidden = "初始值设置为隐藏"), this.state.enabled || (this.checkMsg.pluginDisabled = "初始值设置为禁用"), this.state.enabled && this._enable({ userAction: !1 }), this.five.once("dispose", this.dispose);
140
140
  }
141
141
  /** 插件配置项 */
142
142
  get config() {
143
- return d({}, this._config);
143
+ return l({}, this._config);
144
144
  }
145
145
  /** 是否已经被销毁 */
146
146
  get disposed() {
@@ -178,7 +178,7 @@ class K extends M {
178
178
  return Promise.resolve();
179
179
  if (this.disposed)
180
180
  return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
181
- const i = d({ userAction: !0 }, e);
181
+ const i = l({ userAction: !0 }, e);
182
182
  this.updateState({ visible: !0 }, i.userAction), this.checkMsg.pluginHidden = "", this._show(i);
183
183
  });
184
184
  }
@@ -190,7 +190,7 @@ class K extends M {
190
190
  return f(this, null, function* () {
191
191
  if (this.state.visible === !1)
192
192
  return;
193
- const i = d({ userAction: !0 }, e);
193
+ const i = l({ userAction: !0 }, e);
194
194
  this.updateState({ visible: !1 }, i.userAction), this.checkMsg.pluginDisabled = "调用 hide 隐藏", this._hide(i);
195
195
  });
196
196
  }
@@ -205,8 +205,8 @@ class K extends M {
205
205
  return;
206
206
  const s = i.userAction !== void 0 ? i.userAction : !0;
207
207
  if (this.updateState(e, s), e.enabled !== void 0 && t.enabled !== e.enabled && (e.enabled ? this.checkMsg.pluginDisabled = "" : this.checkMsg.pluginDisabled = "调用 setState 禁用", e.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), e.visible !== void 0 && t.visible !== e.visible) {
208
- const h = { userAction: s, anime: { duration: 500 } };
209
- e.visible ? this.checkMsg.pluginHidden = "" : this.checkMsg.pluginHidden = "调用 setState 隐藏", e.visible ? this._show(h) : this._hide(h);
208
+ const a = { userAction: s, anime: { duration: 500 } };
209
+ e.visible ? this.checkMsg.pluginHidden = "" : this.checkMsg.pluginHidden = "调用 setState 隐藏", e.visible ? this._show(a) : this._hide(a);
210
210
  }
211
211
  }
212
212
  /** 更改插件 Config
@@ -214,9 +214,9 @@ class K extends M {
214
214
  * @param `options` `<Option> | <undefined>`
215
215
  */
216
216
  updateConfig(e, i = {}) {
217
- var h;
218
- const t = this.config, s = d(d({}, t), e);
219
- this._config = s, t.imageURL !== s.imageURL && this.reloadTexture(s.imageURL), t.yOffset !== s.yOffset && this.updateMeshPosition(this.five.getCurrentState().panoIndex), t.yRotate !== s.yRotate && this.updateMeshQuaternion(s.yRotate), t.width !== s.width && (this.mesh.geometry = new a.PlaneBufferGeometry(s.width, s.width)), this.hooks.emit("configChange", { prevConfig: t, config: s, userAction: (h = i.userAction) != null ? h : !0 });
217
+ var a;
218
+ const t = this.config, s = l(l({}, t), e);
219
+ this._config = s, t.imageURL !== s.imageURL && this.reloadTexture(s.imageURL), t.yOffset !== s.yOffset && this.updateMeshPosition(this.five.getCurrentState().panoIndex), t.yRotate !== s.yRotate && this.updateMeshQuaternion(s.yRotate), t.width !== s.width && (this.mesh.geometry = new h.PlaneBufferGeometry(s.width, s.width)), this.hooks.emit("configChange", { prevConfig: t, config: s, userAction: (a = i.userAction) != null ? a : !0 });
220
220
  }
221
221
  /** 问什么看不到模型 */
222
222
  __whyCantSeeMesh() {
@@ -231,7 +231,7 @@ class K extends M {
231
231
  }
232
232
  updateState(e, i) {
233
233
  const t = this.state;
234
- this.state = d(d({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: t, userAction: i });
234
+ this.state = l(l({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: t, userAction: i });
235
235
  }
236
236
  /** 根据各种条件更新 Mesh 的可见性 */
237
237
  updateMeshVisible() {
@@ -240,8 +240,8 @@ class K extends M {
240
240
  }
241
241
  /** 根据点位更新 Mesh 坐标 */
242
242
  updateMeshPosition(e) {
243
- var s, h, u;
244
- const i = (u = (h = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : h[e]) == null ? void 0 : u.standingPosition, t = i == null ? void 0 : i.clone().setY(i.y + this.config.yOffset);
243
+ var s, a, u;
244
+ const i = (u = (a = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : a[e]) == null ? void 0 : u.standingPosition, t = i == null ? void 0 : i.clone().setY(i.y + this.config.yOffset);
245
245
  t && this.mesh.position.copy(t);
246
246
  }
247
247
  /** 重新加载贴图,调用时会先清除已有的贴图 */
@@ -251,19 +251,19 @@ class K extends M {
251
251
  const i = P(e);
252
252
  this.textureLoadingPromise = i;
253
253
  const t = yield i;
254
- this.textureLoadingPromise === i && (this.onTextureLoaded(t), this.textureLoadingPromise = null);
254
+ t.minFilter = h.LinearFilter, this.textureLoadingPromise === i && (this.onTextureLoaded(t), this.textureLoadingPromise = null);
255
255
  }
256
256
  this.updateMeshVisible();
257
257
  });
258
258
  }
259
259
  /** north_rad 变化时,需要更新模型的旋转角度 */
260
260
  updateMeshQuaternion(e) {
261
- const i = new a.Quaternion();
261
+ const i = new h.Quaternion();
262
262
  i.multiplyQuaternions(
263
263
  // 沿着自身 X 轴旋转 -90 度
264
- new a.Quaternion().setFromAxisAngle(new a.Vector3(1, 0, 0), -Math.PI / 2),
264
+ new h.Quaternion().setFromAxisAngle(new h.Vector3(1, 0, 0), -Math.PI / 2),
265
265
  // 沿着自身 Z 轴旋转 rad 弧度
266
- new a.Quaternion().setFromAxisAngle(new a.Vector3(0, 0, 1), e)
266
+ new h.Quaternion().setFromAxisAngle(new h.Vector3(0, 0, 1), e)
267
267
  ), this.mesh.quaternion.copy(i);
268
268
  }
269
269
  _enable(e) {
@@ -1,29 +1,29 @@
1
1
  var P = Object.defineProperty, V = Object.defineProperties;
2
- var F = Object.getOwnPropertyDescriptors;
2
+ var T = Object.getOwnPropertyDescriptors;
3
3
  var k = Object.getOwnPropertySymbols;
4
- var L = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
5
- var b = (n, e, t) => e in n ? P(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, d = (n, e) => {
4
+ var F = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
+ var b = (h, e, t) => e in h ? P(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, u = (h, e) => {
6
6
  for (var t in e || (e = {}))
7
- L.call(e, t) && b(n, t, e[t]);
7
+ F.call(e, t) && b(h, t, e[t]);
8
8
  if (k)
9
9
  for (var t of k(e))
10
- T.call(e, t) && b(n, t, e[t]);
11
- return n;
12
- }, p = (n, e) => V(n, F(e));
13
- var i = (n, e, t) => (b(n, typeof e != "symbol" ? e + "" : e, t), t);
14
- import * as h from "three";
15
- import { logWarning as x, logError as U } from "../../shared-utils/log.js";
16
- import { createLineGeometry as S } from "../utils/createLineGeometry.js";
17
- import { isPanoramaLike as _, isModelLike as M } from "../../shared-utils/five/mode.js";
10
+ L.call(e, t) && b(h, t, e[t]);
11
+ return h;
12
+ }, p = (h, e) => V(h, T(e));
13
+ var i = (h, e, t) => (b(h, typeof e != "symbol" ? e + "" : e, t), t);
14
+ import * as n from "three";
15
+ import { logWarning as x, logError as S } from "../../shared-utils/log.js";
16
+ import { createLineGeometry as U } from "../utils/createLineGeometry.js";
17
+ import { isPanoramaLike as M, isModelLike as _ } from "../../shared-utils/five/mode.js";
18
18
  import "hammerjs";
19
19
  import "@realsee/five";
20
20
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
21
21
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
22
22
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
- import { BetterTween as G, tweenProgress as O } from "../../shared-utils/animationFrame/BetterTween.js";
24
- import { loadTexture as E } from "../../shared-utils/three/loadTexture.js";
23
+ import { BetterTween as O, tweenProgress as G } from "../../shared-utils/animationFrame/BetterTween.js";
24
+ import { loadTexture as A } from "../../shared-utils/three/loadTexture.js";
25
25
  import w from "../../PanoTagPlugin/controller/index.js";
26
- import A from "../Components/Tag.js";
26
+ import E from "../Components/Tag.js";
27
27
  import { filterAdjacentDistinct as B } from "../utils/index.js";
28
28
  import { objectAssignDeepExports as I } from "../../vendor/object-assign-deep/objectAssignDeep.js";
29
29
  const R = (
@@ -155,8 +155,8 @@ class N {
155
155
  i(this, "plugin");
156
156
  i(this, "textureHasLoaded", !1);
157
157
  i(this, "disposed", !1);
158
- i(this, "flowAnime", new G({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
159
- i(this, "flickerAnime", O(300).yoyo(!0).repeat(5));
158
+ i(this, "flowAnime", new O({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
159
+ i(this, "flickerAnime", G(300).yoyo(!0).repeat(5));
160
160
  /** 缓存 panoGroup 中每个点距离起点的长度 */
161
161
  i(this, "cacheLengths", []);
162
162
  /** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
@@ -175,7 +175,7 @@ class N {
175
175
  });
176
176
  /** 模型状态变更 */
177
177
  i(this, "onFiveModeChange", (e) => {
178
- this.modeVisible = this.mode === "panorama" ? _(e) : M(e), this.updateVisible();
178
+ this.modeVisible = this.mode === "panorama" ? M(e) : _(e), this.updateVisible();
179
179
  });
180
180
  i(this, "onFiveModelShownFloorChange", (e) => {
181
181
  this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
@@ -190,30 +190,30 @@ class N {
190
190
  this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
191
191
  });
192
192
  i(this, "onFlickerAnimeUpdate", (e) => {
193
- var r, a, o, u;
194
- const { progress: t } = e, s = 1 - t;
195
- this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && y(this.startTagContainer.tag) && ((o = this.startTagContainer.app) == null || o.$set(p(d({}, this.startTagContainer.tag.data), {
196
- opacity: s,
193
+ var s, a, o, d;
194
+ const { progress: t } = e, r = 1 - t;
195
+ this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && y(this.startTagContainer.tag) && ((o = this.startTagContainer.app) == null || o.$set(p(u({}, this.startTagContainer.tag.data), {
196
+ opacity: r,
197
197
  name: this.name,
198
- distance: Math.round((a = (r = this.curvePath) == null ? void 0 : r.getLength()) != null ? a : 0)
199
- }))), this.endTagContainer.tag && y(this.endTagContainer.tag) && ((u = this.endTagContainer.app) == null || u.$set(p(d({}, this.endTagContainer.tag.data), { opacity: s })));
198
+ distance: Math.round((a = (s = this.curvePath) == null ? void 0 : s.getLength()) != null ? a : 0)
199
+ }))), this.endTagContainer.tag && y(this.endTagContainer.tag) && ((d = this.endTagContainer.app) == null || d.$set(p(u({}, this.endTagContainer.tag.data), { opacity: r })));
200
200
  });
201
201
  i(this, "logWarning", (e) => x("GuideLineModeItem: ", e));
202
- i(this, "logError", (e) => U("GuideLineModeItem: ", e));
202
+ i(this, "logError", (e) => S("GuideLineModeItem: ", e));
203
203
  var a, o;
204
204
  this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new w(this.five) }, this.endTagContainer = { tag: null, plugin: new w(this.five) };
205
- const s = new h.BufferGeometry(), r = new h.ShaderMaterial({
205
+ const r = new n.BufferGeometry(), s = new n.ShaderMaterial({
206
206
  vertexShader: R,
207
207
  fragmentShader: W,
208
208
  transparent: !0,
209
209
  uniforms: {
210
210
  map: { value: null },
211
211
  useMapColor: { value: 0 },
212
- mapColor: { value: new h.Color() },
212
+ mapColor: { value: new n.Color() },
213
213
  mapOpacity: { value: 1 },
214
- backgroundColor: { value: new h.Color() },
214
+ backgroundColor: { value: new n.Color() },
215
215
  backgroundOpacity: { value: 0 },
216
- borderColor: { value: new h.Color() },
216
+ borderColor: { value: new n.Color() },
217
217
  borderOpacity: { value: 0 },
218
218
  opacity: { value: 1 },
219
219
  flicker: { value: 1 },
@@ -221,7 +221,7 @@ class N {
221
221
  vOffset: { value: 0 }
222
222
  }
223
223
  });
224
- this.mesh = new h.Mesh(s, r), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((o = (a = this.five.model) == null ? void 0 : a.shownFloor) != null ? o : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
224
+ this.mesh = new n.Mesh(r, s), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((o = (a = this.five.model) == null ? void 0 : a.shownFloor) != null ? o : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
225
225
  }
226
226
  get panoGroup() {
227
227
  return this._panoGroup;
@@ -268,65 +268,73 @@ class N {
268
268
  return this.logError("disposed");
269
269
  if (!this.five.work)
270
270
  return this.logError("setPathByPanoGroup: work is not ready");
271
- const s = B(e);
272
- if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
273
- const a = t.skipPanoGroup ? s.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
271
+ const r = B(e);
272
+ if (this._panoGroup = r, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
273
+ const a = t.skipPanoGroup ? r.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
274
274
  this.skippedPositions = a;
275
275
  }
276
- const r = this.getPathFromPanoGroup(s, this.five.work, t);
277
- this.path = r, this.setGeometryByPath(r, t);
276
+ const s = this.getPathFromPanoGroup(r, this.five.work, t);
277
+ this.path = s, this.setGeometryByPath(s, t);
278
278
  }
279
279
  /** 通过路径设置线条形状 */
280
280
  setGeometryByPath(e, t) {
281
- var c, v, C;
281
+ var f, v, C;
282
282
  if (this.disposed)
283
283
  return this.logError("disposed");
284
- const s = (c = t == null ? void 0 : t.scale) != null ? c : this.scale, r = (v = t == null ? void 0 : t.width) != null ? v : this.width, a = (C = t == null ? void 0 : t.unit_length) != null ? C : this.unitLength;
285
- this.scale = s, this.width = r, this.unitLength = a;
286
- const { geometry: o, maxU: u, curvePath: g, curvePoints: m } = S({
284
+ const r = (f = t == null ? void 0 : t.scale) != null ? f : this.scale, s = (v = t == null ? void 0 : t.width) != null ? v : this.width, a = (C = t == null ? void 0 : t.unit_length) != null ? C : this.unitLength;
285
+ this.scale = r, this.width = s, this.unitLength = a;
286
+ const { geometry: o, maxU: d, curvePath: g, curvePoints: m } = U({
287
287
  path: e,
288
- width: r * s,
289
- unitLength: a * s,
288
+ width: s * r,
289
+ unitLength: a * r,
290
290
  skipPositions: this.skippedPositions
291
291
  });
292
- this._curvePath = g, this._curvePoints = m, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = u, this.five.needsRender = !0;
293
- const l = e, f = d(d({}, this.geometryStyle), t);
294
- this.path = l, this.geometryStyle = f;
292
+ this._curvePath = g, this._curvePoints = m, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = d, this.five.needsRender = !0;
293
+ const l = e, c = u(u({}, this.geometryStyle), t);
294
+ this.path = l, this.geometryStyle = c;
295
295
  }
296
296
  /** 设置线条材质 */
297
297
  setMartial(e) {
298
- var s;
298
+ var r;
299
299
  if (this.disposed)
300
300
  return this.logError("disposed");
301
- (e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((s = e == null ? void 0 : e.texture) == null ? void 0 : s.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity);
302
- const t = d(d({}, this.materialStyle), e);
301
+ (e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((r = e == null ? void 0 : e.texture) == null ? void 0 : r.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity);
302
+ const t = u(u({}, this.materialStyle), e);
303
303
  this.materialStyle = t;
304
304
  }
305
305
  /** 设置模型状态 */
306
306
  setMeshStyle(e) {
307
307
  if (e != null && e.translate) {
308
- const s = new h.Vector3(), r = new h.Vector3().fromArray(e.translate);
309
- s.add(r), s.y += this.heightOffset, this.mesh.position.copy(s);
308
+ const s = new n.Vector3(), a = new n.Vector3().fromArray(e.translate);
309
+ a.y += this.heightOffset, s.add(a), this.mesh.position.copy(s), r(this.startTagContainer, a), r(this.endTagContainer, a);
310
310
  }
311
- const t = d(d({}, this.meshStyle), e);
311
+ const t = u(u({}, this.meshStyle), e);
312
312
  this.meshStyle = t;
313
+ function r(s, a) {
314
+ if (!s.tag)
315
+ return;
316
+ const o = new n.Vector3().fromArray(s.tag.position);
317
+ o.add(a);
318
+ const d = o.toArray();
319
+ s.plugin.changeTagById(s.tag.id, { position: d });
320
+ }
313
321
  }
314
322
  /** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
315
323
  setHeightOffset(e) {
316
- const t = new h.Vector3();
317
- this.meshStyle.translate && t.add(new h.Vector3().fromArray(this.meshStyle.translate)), t.setY(t.y + e), this.mesh.position.copy(t), this.heightOffset = e, this.five.needsRender = !0;
324
+ const t = new n.Vector3();
325
+ this.meshStyle.translate && t.add(new n.Vector3().fromArray(this.meshStyle.translate)), t.setY(t.y + e), this.mesh.position.copy(t), this.heightOffset = e, this.five.needsRender = !0;
318
326
  }
319
327
  /** 设置贴图颜色 */
320
328
  setColor(e) {
321
329
  if (this.disposed)
322
330
  return this.logError("disposed");
323
- e && (this.mesh.material.uniforms.mapColor.value = new h.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
331
+ e && (this.mesh.material.uniforms.mapColor.value = new n.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
324
332
  }
325
333
  /** 设置边框 */
326
334
  setBorderColor(e) {
327
335
  if (this.disposed)
328
336
  return this.logError("disposed");
329
- this.mesh.material.uniforms.borderColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
337
+ this.mesh.material.uniforms.borderColor.value = new n.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
330
338
  }
331
339
  /** 设置边框透明度 */
332
340
  setBorderOpacity(e) {
@@ -338,7 +346,7 @@ class N {
338
346
  setBackgroundColor(e) {
339
347
  if (this.disposed)
340
348
  return this.logError("disposed");
341
- this.mesh.material.uniforms.backgroundColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
349
+ this.mesh.material.uniforms.backgroundColor.value = new n.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
342
350
  }
343
351
  /** 设置背景透明度 */
344
352
  setBackgroundOpacity(e) {
@@ -362,15 +370,15 @@ class N {
362
370
  setTextureUrl(e) {
363
371
  if (this.disposed)
364
372
  return this.logError("disposed");
365
- this.textureUrl = e, E(e).then((t) => {
366
- this.disposed || this.textureUrl === e && (t.wrapT = h.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
373
+ this.textureUrl = e, A(e).then((t) => {
374
+ this.disposed || this.textureUrl === e && (t.wrapT = n.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
367
375
  });
368
376
  }
369
377
  setVisibleFloorIndexes(e) {
370
- var t, s;
378
+ var t, r;
371
379
  if (this.disposed)
372
380
  return this.logError("disposed");
373
- this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((s = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? s : null);
381
+ this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? r : null);
374
382
  }
375
383
  setStartTag(e) {
376
384
  this.setTag("start", e);
@@ -397,19 +405,20 @@ class N {
397
405
  var m;
398
406
  if (!this.curvePoints || !this.curvePath)
399
407
  return [];
400
- const e = this.panoGroup.map((l) => this.five.work.observers[l]), t = this.curvePoints.length, s = this.curvePath.getLength(), r = t - 1, a = s / r, o = (m = this.curvePath.getLengths(r)) != null ? m : [], u = [];
408
+ const e = this.panoGroup.map((l) => this.five.work.observers[l]), t = this.curvePoints.length, r = this.curvePath.getLength(), s = t - 1, a = r / s, o = (m = this.curvePath.getLengths(s)) != null ? m : [], d = [];
401
409
  let g = 0;
402
410
  for (let l = 0; l < t; l++) {
403
- const f = this.curvePoints[l], c = e[g];
404
- if (!c)
411
+ const c = this.curvePoints[l], f = e[g];
412
+ if (!f)
405
413
  break;
406
- c.standingPosition.clone().setY(0).distanceTo(f.clone().setY(0)) < a && (u.push(o[l]), g += 1);
414
+ f.standingPosition.clone().setY(0).distanceTo(c.clone().setY(0)) < a && (d.push(o[l]), g += 1);
407
415
  }
408
- return u;
416
+ return d;
409
417
  }
410
418
  setTag(e, t) {
411
- const s = this.curvePath, r = e === "start" ? this.startTagContainer : this.endTagContainer;
412
- t || r.plugin.clearTags();
419
+ const r = this.curvePath, s = e === "start" ? this.startTagContainer : this.endTagContainer;
420
+ if (!(t != null && t.data))
421
+ return s.plugin.clearTags();
413
422
  const o = I({}, {
414
423
  contentType: "Custom",
415
424
  stickType: "2DPoint",
@@ -417,12 +426,19 @@ class N {
417
426
  style: { point: { enabled: !1 } },
418
427
  data: {}
419
428
  }, t);
420
- r.tag = o, y(o) && (r.tag.element = (u) => {
421
- var l, f;
422
- (l = r.app) == null || l.$destroy();
423
- const g = e === "start" ? p(d({}, o.data), { name: this.name, distance: Math.round((f = s.getLength()) != null ? f : 0), i18n: this.plugin.config.i18n }) : o.data, m = new A({ target: u, intro: !0, props: g });
424
- return r.app = m, () => m.$destroy();
425
- }), r.plugin.load({ tagList: [r.tag] });
429
+ s.tag = o, y(o) && (s.tag.element = (g) => {
430
+ var c, f;
431
+ (c = s.app) == null || c.$destroy();
432
+ const m = e === "start" ? p(u({}, o.data), { name: this.name, distance: Math.round((f = r.getLength()) != null ? f : 0), i18n: this.plugin.config.i18n }) : o.data, l = new E({ target: g, intro: !0, props: m });
433
+ return s.app = l, () => l.$destroy();
434
+ }), s.plugin.load({ tagList: [s.tag] });
435
+ const d = this.meshStyle.translate;
436
+ if (d && o.position) {
437
+ const g = new n.Vector3().fromArray(o.position), m = new n.Vector3().fromArray(d);
438
+ g.add(m), g.y += this.heightOffset;
439
+ const l = g.toArray();
440
+ s.plugin.changeTagById(s.tag.id, { position: l });
441
+ }
426
442
  }
427
443
  doShow() {
428
444
  this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
@@ -431,15 +447,15 @@ class N {
431
447
  this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
432
448
  }
433
449
  /** 通过 panoIndex 数组计算路径 */
434
- getPathFromPanoGroup(e, t, s) {
450
+ getPathFromPanoGroup(e, t, r) {
435
451
  if (e.length < 2)
436
452
  return [];
437
453
  const a = e.map((o) => t.observers[o]).map((o) => o.standingPosition.toArray());
438
- return [d({ type: "CatmullRomCurve3", points: a }, s)];
454
+ return [u({ type: "CatmullRomCurve3", points: a }, r)];
439
455
  }
440
456
  }
441
- function y(n) {
442
- return n.contentType === "Custom";
457
+ function y(h) {
458
+ return h.contentType === "Custom";
443
459
  }
444
460
  const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
445
461
  __proto__: null,
@@ -14,7 +14,7 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "3.3.0-dev.5");
17
+ i(this, "VERSION", "3.3.0");
18
18
  i(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.3.0-dev.5",
3
+ "%c %c@realsee/dnalogel %cv3.3.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": "3.3.0-dev.5",
10
+ "version": "3.3.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*",
package/docs/.nojekyll DELETED
@@ -1 +0,0 @@
1
- TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
@@ -1,120 +0,0 @@
1
- :root {
2
- --light-hl-0: #795E26;
3
- --dark-hl-0: #DCDCAA;
4
- --light-hl-1: #000000;
5
- --dark-hl-1: #D4D4D4;
6
- --light-hl-2: #A31515;
7
- --dark-hl-2: #CE9178;
8
- --light-hl-3: #AF00DB;
9
- --dark-hl-3: #C586C0;
10
- --light-hl-4: #001080;
11
- --dark-hl-4: #9CDCFE;
12
- --light-hl-5: #0000FF;
13
- --dark-hl-5: #569CD6;
14
- --light-hl-6: #0070C1;
15
- --dark-hl-6: #4FC1FF;
16
- --light-hl-7: #008000;
17
- --dark-hl-7: #6A9955;
18
- --light-hl-8: #000000;
19
- --dark-hl-8: #C8C8C8;
20
- --light-hl-9: #811F3F;
21
- --dark-hl-9: #D16969;
22
- --light-hl-10: #EE0000;
23
- --dark-hl-10: #D7BA7D;
24
- --light-hl-11: #000000;
25
- --dark-hl-11: #D7BA7D;
26
- --light-hl-12: #EE0000;
27
- --dark-hl-12: #DCDCAA;
28
- --light-hl-13: #267F99;
29
- --dark-hl-13: #4EC9B0;
30
- --light-code-background: #FFFFFF;
31
- --dark-code-background: #1E1E1E;
32
- }
33
-
34
- @media (prefers-color-scheme: light) { :root {
35
- --hl-0: var(--light-hl-0);
36
- --hl-1: var(--light-hl-1);
37
- --hl-2: var(--light-hl-2);
38
- --hl-3: var(--light-hl-3);
39
- --hl-4: var(--light-hl-4);
40
- --hl-5: var(--light-hl-5);
41
- --hl-6: var(--light-hl-6);
42
- --hl-7: var(--light-hl-7);
43
- --hl-8: var(--light-hl-8);
44
- --hl-9: var(--light-hl-9);
45
- --hl-10: var(--light-hl-10);
46
- --hl-11: var(--light-hl-11);
47
- --hl-12: var(--light-hl-12);
48
- --hl-13: var(--light-hl-13);
49
- --code-background: var(--light-code-background);
50
- } }
51
-
52
- @media (prefers-color-scheme: dark) { :root {
53
- --hl-0: var(--dark-hl-0);
54
- --hl-1: var(--dark-hl-1);
55
- --hl-2: var(--dark-hl-2);
56
- --hl-3: var(--dark-hl-3);
57
- --hl-4: var(--dark-hl-4);
58
- --hl-5: var(--dark-hl-5);
59
- --hl-6: var(--dark-hl-6);
60
- --hl-7: var(--dark-hl-7);
61
- --hl-8: var(--dark-hl-8);
62
- --hl-9: var(--dark-hl-9);
63
- --hl-10: var(--dark-hl-10);
64
- --hl-11: var(--dark-hl-11);
65
- --hl-12: var(--dark-hl-12);
66
- --hl-13: var(--dark-hl-13);
67
- --code-background: var(--dark-code-background);
68
- } }
69
-
70
- :root[data-theme='light'] {
71
- --hl-0: var(--light-hl-0);
72
- --hl-1: var(--light-hl-1);
73
- --hl-2: var(--light-hl-2);
74
- --hl-3: var(--light-hl-3);
75
- --hl-4: var(--light-hl-4);
76
- --hl-5: var(--light-hl-5);
77
- --hl-6: var(--light-hl-6);
78
- --hl-7: var(--light-hl-7);
79
- --hl-8: var(--light-hl-8);
80
- --hl-9: var(--light-hl-9);
81
- --hl-10: var(--light-hl-10);
82
- --hl-11: var(--light-hl-11);
83
- --hl-12: var(--light-hl-12);
84
- --hl-13: var(--light-hl-13);
85
- --code-background: var(--light-code-background);
86
- }
87
-
88
- :root[data-theme='dark'] {
89
- --hl-0: var(--dark-hl-0);
90
- --hl-1: var(--dark-hl-1);
91
- --hl-2: var(--dark-hl-2);
92
- --hl-3: var(--dark-hl-3);
93
- --hl-4: var(--dark-hl-4);
94
- --hl-5: var(--dark-hl-5);
95
- --hl-6: var(--dark-hl-6);
96
- --hl-7: var(--dark-hl-7);
97
- --hl-8: var(--dark-hl-8);
98
- --hl-9: var(--dark-hl-9);
99
- --hl-10: var(--dark-hl-10);
100
- --hl-11: var(--dark-hl-11);
101
- --hl-12: var(--dark-hl-12);
102
- --hl-13: var(--dark-hl-13);
103
- --code-background: var(--dark-code-background);
104
- }
105
-
106
- .hl-0 { color: var(--hl-0); }
107
- .hl-1 { color: var(--hl-1); }
108
- .hl-2 { color: var(--hl-2); }
109
- .hl-3 { color: var(--hl-3); }
110
- .hl-4 { color: var(--hl-4); }
111
- .hl-5 { color: var(--hl-5); }
112
- .hl-6 { color: var(--hl-6); }
113
- .hl-7 { color: var(--hl-7); }
114
- .hl-8 { color: var(--hl-8); }
115
- .hl-9 { color: var(--hl-9); }
116
- .hl-10 { color: var(--hl-10); }
117
- .hl-11 { color: var(--hl-11); }
118
- .hl-12 { color: var(--hl-12); }
119
- .hl-13 { color: var(--hl-13); }
120
- pre, code { background: var(--code-background); }