@realsee/dnalogel 3.40.0 → 3.40.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/index.cjs.js +4 -4
  3. package/dist/index.js +29 -26
  4. package/dist/index.umd.js +4 -4
  5. package/libs/GuideLinePlugin/Controller.js +41 -41
  6. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +38 -35
  7. package/libs/base/BasePlugin.js +1 -1
  8. package/libs/shared-utils/logger.js +1 -1
  9. package/libs/shared-utils/three/blink.js +23 -23
  10. package/package.json +3 -2
  11. package/README.md +0 -116
  12. package/docs/.nojekyll +0 -1
  13. package/docs/assets/custom.css +0 -0
  14. package/docs/assets/highlight.css +0 -127
  15. package/docs/assets/main.js +0 -58
  16. package/docs/assets/search.js +0 -1
  17. package/docs/assets/style.css +0 -1367
  18. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -731
  19. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -694
  20. package/docs/classes/CSS3DRender.html +0 -778
  21. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -481
  22. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -894
  23. package/docs/classes/Magnifier.html +0 -485
  24. package/docs/classes/ModelRoomLabelController.html +0 -403
  25. package/docs/classes/MoveController.html +0 -681
  26. package/docs/classes/Object3DHelperController.html +0 -645
  27. package/docs/classes/PaintBrush.html +0 -507
  28. package/docs/classes/PanoMeasurePluginLine.html +0 -527
  29. package/docs/classes/PanoMeasurePluginModel.html +0 -576
  30. package/docs/classes/PanoMeasurePluginPoint.html +0 -367
  31. package/docs/classes/PanoMeasurePluginPolyline.html +0 -572
  32. package/docs/classes/PanoTagPluginController.html +0 -1132
  33. package/docs/classes/Util.BetterTween.html +0 -421
  34. package/docs/classes/Util.Interval.html +0 -437
  35. package/docs/classes/Util.LineSegments.html +0 -389
  36. package/docs/classes/Util.Magnifier.html +0 -508
  37. package/docs/classes/Util.Object3D.html +0 -411
  38. package/docs/classes/Util.PointDomHelper.html +0 -412
  39. package/docs/classes/Util.PointHelper.html +0 -403
  40. package/docs/classes/Util.PointSelectorHelper.html +0 -459
  41. package/docs/classes/Util.Rectangle.html +0 -460
  42. package/docs/classes/WalkController.html +0 -700
  43. package/docs/enums/CameraMovementEffect.html +0 -315
  44. package/docs/enums/ContentType.html +0 -461
  45. package/docs/enums/DIRECTION.html +0 -325
  46. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -325
  47. package/docs/enums/DimensionType.html +0 -315
  48. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -318
  49. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -325
  50. package/docs/enums/PaintBrushTypeEnum.html +0 -318
  51. package/docs/enums/PointType.html +0 -315
  52. package/docs/enums/Rotation.html +0 -322
  53. package/docs/functions/AreaMakerPlugin.html +0 -295
  54. package/docs/functions/CSS3DRenderPlugin.html +0 -293
  55. package/docs/functions/CameraMovementPlugin.html +0 -298
  56. package/docs/functions/CruisePlugin.html +0 -295
  57. package/docs/functions/CurrentPanoImagePlugin.html +0 -295
  58. package/docs/functions/GuideLinePlugin.html +0 -295
  59. package/docs/functions/ItemLabelPlugin.html +0 -295
  60. package/docs/functions/MapviewFloorplanPlugin.html +0 -295
  61. package/docs/functions/ModelChassisCompassPlugin.html +0 -298
  62. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -298
  63. package/docs/functions/ModelFloorplanPlugin.html +0 -295
  64. package/docs/functions/ModelItemLabelPlugin.html +0 -295
  65. package/docs/functions/ModelRoomLabelPlugin.html +0 -293
  66. package/docs/functions/ModelTVVideoPlugin.html +0 -295
  67. package/docs/functions/ModelViewPlugin.html +0 -298
  68. package/docs/functions/MovePlugin.html +0 -295
  69. package/docs/functions/Object3DHelperPlugin.html +0 -293
  70. package/docs/functions/PanoCompassPlugin.html +0 -295
  71. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -299
  72. package/docs/functions/PanoDoorLabelPlugin.html +0 -295
  73. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -295
  74. package/docs/functions/PanoMeasurePlugin.html +0 -295
  75. package/docs/functions/PanoRulerPlugin.html +0 -298
  76. package/docs/functions/PanoRulerProPlugin.html +0 -298
  77. package/docs/functions/PanoSpatialTagPlugin.html +0 -298
  78. package/docs/functions/PanoTagPlugin.html +0 -300
  79. package/docs/functions/PanoVideoPlugin.html +0 -304
  80. package/docs/functions/PipelinePlugin.html +0 -293
  81. package/docs/functions/TopviewFloorplanPlugin.html +0 -295
  82. package/docs/functions/Util.absoluteUrl.html +0 -331
  83. package/docs/functions/Util.checkFiveModelLoaded.html +0 -334
  84. package/docs/functions/Util.equal.html +0 -343
  85. package/docs/functions/Util.getCoordsFromClient.html +0 -333
  86. package/docs/functions/Util.getCoordsFromElement.html +0 -333
  87. package/docs/functions/Util.getFrameTime.html +0 -325
  88. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -333
  89. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -333
  90. package/docs/functions/Util.isAbsoluteURL.html +0 -326
  91. package/docs/functions/Util.isModelLike.html +0 -326
  92. package/docs/functions/Util.isNil.html +0 -334
  93. package/docs/functions/Util.isPanoramaLike.html +0 -326
  94. package/docs/functions/Util.nextFrame.html +0 -339
  95. package/docs/functions/Util.notNil.html +0 -334
  96. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -355
  97. package/docs/functions/Util.tweenProgress.html +0 -328
  98. package/docs/functions/Util.uuid.html +0 -324
  99. package/docs/functions/pluginFlag.html +0 -293
  100. package/docs/index.html +0 -358
  101. package/docs/interfaces/AddTagConfig.html +0 -308
  102. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -335
  103. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -340
  104. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -626
  105. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -339
  106. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -397
  107. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -382
  108. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -339
  109. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -332
  110. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -331
  111. package/docs/interfaces/AreaMakerPluginType.State.html +0 -360
  112. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -454
  113. package/docs/interfaces/CSS3DRenderPluginState.html +0 -330
  114. package/docs/interfaces/CameraMovementPluginExportType.html +0 -363
  115. package/docs/interfaces/CruisePluginTypes.Config.html +0 -364
  116. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -366
  117. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -724
  118. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -390
  119. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -426
  120. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -416
  121. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -356
  122. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -324
  123. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -392
  124. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -387
  125. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -526
  126. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -328
  127. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -320
  128. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -342
  129. package/docs/interfaces/EventMap.html +0 -547
  130. package/docs/interfaces/FloorplanBounding.html +0 -337
  131. package/docs/interfaces/FloorplanData.html +0 -340
  132. package/docs/interfaces/FloorplanEntrance.html +0 -365
  133. package/docs/interfaces/FloorplanExtraObject.html +0 -355
  134. package/docs/interfaces/FloorplanExtraObject3D.html +0 -344
  135. package/docs/interfaces/FloorplanFloorData.html +0 -333
  136. package/docs/interfaces/FloorplanImagePosition.html +0 -319
  137. package/docs/interfaces/FloorplanObserver.html +0 -337
  138. package/docs/interfaces/FloorplanOutlineItem.html +0 -333
  139. package/docs/interfaces/FloorplanPosition.html +0 -319
  140. package/docs/interfaces/FloorplanRoomItem.html +0 -407
  141. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -325
  142. package/docs/interfaces/FloorplanServerBounding.html +0 -337
  143. package/docs/interfaces/FloorplanServerComputedData.html +0 -336
  144. package/docs/interfaces/FloorplanServerData.html +0 -319
  145. package/docs/interfaces/FloorplanServerDoorItem.html +0 -336
  146. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -322
  147. package/docs/interfaces/FloorplanServerEntrance.html +0 -365
  148. package/docs/interfaces/FloorplanServerFloorData.html +0 -333
  149. package/docs/interfaces/FloorplanServerImagePosition.html +0 -319
  150. package/docs/interfaces/FloorplanServerObserver.html +0 -337
  151. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -333
  152. package/docs/interfaces/FloorplanServerPosition.html +0 -319
  153. package/docs/interfaces/FloorplanServerRoomItem.html +0 -419
  154. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -325
  155. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -328
  156. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -367
  157. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -531
  158. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -362
  159. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -353
  160. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -452
  161. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -342
  162. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -352
  163. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -522
  164. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -349
  165. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -532
  166. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -314
  167. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -335
  168. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -360
  169. package/docs/interfaces/GuideLinePluginType.Route.html +0 -376
  170. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -358
  171. package/docs/interfaces/HelperOffset.html +0 -337
  172. package/docs/interfaces/ImagePlaneGroup.html +0 -311
  173. package/docs/interfaces/ItemLabelPluginData.html +0 -308
  174. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -393
  175. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -329
  176. package/docs/interfaces/MinMax.html +0 -315
  177. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -315
  178. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -351
  179. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -315
  180. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -322
  181. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -359
  182. package/docs/interfaces/ModelItemLabelPluginData.html +0 -308
  183. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -393
  184. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -315
  185. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -308
  186. package/docs/interfaces/ModelTVVideoPluginData.html +0 -329
  187. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -353
  188. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -308
  189. package/docs/interfaces/ModelViewPluginExportType.html +0 -421
  190. package/docs/interfaces/Object3DHelperState.html +0 -322
  191. package/docs/interfaces/ObjectHelperControllers.html +0 -329
  192. package/docs/interfaces/PaintBrushAction.html +0 -368
  193. package/docs/interfaces/PaintBrushConfigs.html +0 -366
  194. package/docs/interfaces/PaintBrushState.html +0 -350
  195. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -430
  196. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -287
  197. package/docs/interfaces/PanoMeasureParameterType.html +0 -454
  198. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -322
  199. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -319
  200. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -315
  201. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -325
  202. package/docs/interfaces/PanoRulerPluginExportType.html +0 -382
  203. package/docs/interfaces/PanoRulerPluginOptions.html +0 -331
  204. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -322
  205. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -358
  206. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -328
  207. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -315
  208. package/docs/interfaces/PanoRulerProPluginState.html +0 -322
  209. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -301
  210. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -290
  211. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -358
  212. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -340
  213. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -436
  214. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -336
  215. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -357
  216. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -343
  217. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -336
  218. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -328
  219. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -346
  220. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -319
  221. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -425
  222. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -319
  223. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -354
  224. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -373
  225. package/docs/interfaces/Point.html +0 -322
  226. package/docs/interfaces/Room.html +0 -329
  227. package/docs/interfaces/RoomInfo.html +0 -315
  228. package/docs/interfaces/RoomLabel.html +0 -391
  229. package/docs/interfaces/RoomRules.html +0 -290
  230. package/docs/interfaces/Rooms.html +0 -290
  231. package/docs/interfaces/Scissor.html +0 -349
  232. package/docs/interfaces/State.html +0 -336
  233. package/docs/interfaces/TagCacheInterface.html +0 -367
  234. package/docs/interfaces/TagConfig.html +0 -570
  235. package/docs/interfaces/TagGLTFObjectGroup.html +0 -311
  236. package/docs/interfaces/TagIconUrl.html +0 -368
  237. package/docs/interfaces/TagObjectGroup.html +0 -311
  238. package/docs/interfaces/TagStyle.html +0 -321
  239. package/docs/interfaces/Tags.html +0 -2825
  240. package/docs/interfaces/TemporaryState.html +0 -308
  241. package/docs/interfaces/Util.MagnifierParameter.html +0 -396
  242. package/docs/interfaces/Util.MouseGroupParameter.html +0 -355
  243. package/docs/interfaces/Util.PointIntersection.html +0 -370
  244. package/docs/modules/AreaMakerPluginType.html +0 -330
  245. package/docs/modules/CruisePluginTypes.html +0 -333
  246. package/docs/modules/CurrentPanoImagePluginType.html +0 -302
  247. package/docs/modules/GuideLineItem.html +0 -294
  248. package/docs/modules/GuideLineModeItem.html +0 -299
  249. package/docs/modules/GuideLinePluginType.html +0 -355
  250. package/docs/modules/PanoVideoPluginType.html +0 -306
  251. package/docs/modules/Util.html +0 -356
  252. package/docs/modules.html +0 -564
  253. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -359
  254. package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -325
  255. package/docs/types/AreaMakerPluginType.PluginData.html +0 -307
  256. package/docs/types/AreaMakerPluginType.ServerData.html +0 -307
  257. package/docs/types/ArrayPosition.html +0 -284
  258. package/docs/types/AudioAppearance.html +0 -284
  259. package/docs/types/AudioTagTypeConfigKey.html +0 -284
  260. package/docs/types/CSS3DRenderExportType.html +0 -284
  261. package/docs/types/CSS3DRenderPluginExportType.html +0 -284
  262. package/docs/types/CSS3DRenderPluginParameterType.html +0 -284
  263. package/docs/types/ClassFunctionParameters.html +0 -291
  264. package/docs/types/Color.html +0 -284
  265. package/docs/types/ContentTypeConfigKey.html +0 -284
  266. package/docs/types/ContentTypeConfigKeySplit.html +0 -284
  267. package/docs/types/ContentTypeMap.html +0 -284
  268. package/docs/types/Create3DDomContainerReturnType.html +0 -284
  269. package/docs/types/Create3DElementReturnType.html +0 -284
  270. package/docs/types/CruisePluginExportType.html +0 -284
  271. package/docs/types/CruisePluginTypes.CruiseData.html +0 -323
  272. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -300
  273. package/docs/types/CurrentPanoImagePluginExportType.html +0 -284
  274. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -296
  275. package/docs/types/DeprecatedTagProperty.html +0 -299
  276. package/docs/types/Direction-1.html +0 -284
  277. package/docs/types/Direction4.html +0 -284
  278. package/docs/types/ElementRenderer.html +0 -308
  279. package/docs/types/FloorplanRuleLabels.html +0 -287
  280. package/docs/types/FloorplanServerRuleLabels.html +0 -284
  281. package/docs/types/GuideLinePluginExportType.html +0 -284
  282. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -357
  283. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -378
  284. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -311
  285. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -314
  286. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -314
  287. package/docs/types/GuideLinePluginType.PathItem.html +0 -314
  288. package/docs/types/GuideLinePluginType.PluginData.html +0 -323
  289. package/docs/types/HelperEventMap.html +0 -429
  290. package/docs/types/InternalHelperEventMap.html +0 -380
  291. package/docs/types/LoadTagConfig.html +0 -284
  292. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -284
  293. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -284
  294. package/docs/types/MediaData.html +0 -305
  295. package/docs/types/MediaStore.html +0 -289
  296. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -291
  297. package/docs/types/ModelFloorplanPluginParameterType.html +0 -284
  298. package/docs/types/ModelFloorplanPluginReturnType.html +0 -284
  299. package/docs/types/ModelId.html +0 -284
  300. package/docs/types/ModelRoomLabelPluginParameters.html +0 -284
  301. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -284
  302. package/docs/types/MoveArgs.html +0 -294
  303. package/docs/types/MoveOpts.html +0 -292
  304. package/docs/types/Object3DHelperEventMap.html +0 -377
  305. package/docs/types/ObjectFit.html +0 -284
  306. package/docs/types/PaintBrushEventMap.html +0 -315
  307. package/docs/types/PanoCompassPluginData.html +0 -284
  308. package/docs/types/PanoCompassPluginExportType.html +0 -284
  309. package/docs/types/PanoCompassPluginParameterType.html +0 -284
  310. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -284
  311. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -284
  312. package/docs/types/PanoIndex.html +0 -284
  313. package/docs/types/PanoMeasurePluginEvent.html +0 -284
  314. package/docs/types/PanoMeasureReturnType.html +0 -284
  315. package/docs/types/PanoSpatialTagPluginId.html +0 -284
  316. package/docs/types/PanoTagPluginExportInterface.html +0 -284
  317. package/docs/types/PanoTagPluginParamsInterface.html +0 -284
  318. package/docs/types/PanoVideoPluginParameterType.html +0 -284
  319. package/docs/types/PanoVideoPluginReturnType.html +0 -284
  320. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -292
  321. package/docs/types/PipelinePluginParameterType.html +0 -284
  322. package/docs/types/PipelinePluginReturnType.html +0 -284
  323. package/docs/types/PlaneTag.html +0 -292
  324. package/docs/types/Point2DTag.html +0 -292
  325. package/docs/types/Point3DTag.html +0 -292
  326. package/docs/types/PointTag.html +0 -289
  327. package/docs/types/PointTagInstance.html +0 -289
  328. package/docs/types/Position.html +0 -284
  329. package/docs/types/RotateArgs.html +0 -296
  330. package/docs/types/RotateOpts.html +0 -292
  331. package/docs/types/RuleLabelsKey.html +0 -284
  332. package/docs/types/RuleLabelsValue.html +0 -284
  333. package/docs/types/StickType.html +0 -284
  334. package/docs/types/Tag.html +0 -350
  335. package/docs/types/Tag2D.html +0 -292
  336. package/docs/types/Tag3D.html +0 -292
  337. package/docs/types/TagConfigByKey.html +0 -289
  338. package/docs/types/TagContentType.html +0 -284
  339. package/docs/types/TagContentTypeMapping.html +0 -284
  340. package/docs/types/TagDimensionType.html +0 -286
  341. package/docs/types/TagElement.html +0 -294
  342. package/docs/types/TagEvents.html +0 -337
  343. package/docs/types/TagGLTFObject.html +0 -307
  344. package/docs/types/TagHooks.html +0 -284
  345. package/docs/types/TagId.html +0 -284
  346. package/docs/types/TagInstance.html +0 -362
  347. package/docs/types/TagPointType.html +0 -287
  348. package/docs/types/TagRendererMap.html +0 -291
  349. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -284
  350. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -284
  351. package/docs/types/WorkCode.html +0 -284
  352. package/docs/variables/FLOOR_TYPE_MAP.html +0 -294
  353. package/docs/variables/PLUGIN.html +0 -284
  354. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -287
  355. package/docs/variables/ROOM_TYPE_MAP.html +0 -294
  356. package/docs/variables/defaultGlobalConfig.html +0 -284
  357. package/docs/variables/itemLabelPluginServerParams.html +0 -291
  358. package/docs/variables/modelItemLabelPluginServerParams.html +0 -291
  359. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -291
@@ -1,44 +1,44 @@
1
- var M = Object.defineProperty;
2
- var A = Object.getOwnPropertySymbols;
3
- var O = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
4
- var c = (s, o, t) => o in s ? M(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, f = (s, o) => {
1
+ var T = Object.defineProperty;
2
+ var G = Object.getOwnPropertySymbols;
3
+ var k = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
+ var c = (s, o, t) => o in s ? T(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, f = (s, o) => {
5
5
  for (var t in o || (o = {}))
6
- O.call(o, t) && c(s, t, o[t]);
7
- if (A)
8
- for (var t of A(o))
9
- k.call(o, t) && c(s, t, o[t]);
6
+ k.call(o, t) && c(s, t, o[t]);
7
+ if (G)
8
+ for (var t of G(o))
9
+ x.call(o, t) && c(s, t, o[t]);
10
10
  return s;
11
11
  };
12
12
  var h = (s, o, t) => (c(s, typeof o != "symbol" ? o + "" : o, t), t);
13
13
  var u = (s, o, t) => new Promise((i, a) => {
14
- var m = (p) => {
14
+ var p = (m) => {
15
15
  try {
16
- r(t.next(p));
16
+ r(t.next(m));
17
17
  } catch (n) {
18
18
  a(n);
19
19
  }
20
- }, e = (p) => {
20
+ }, e = (m) => {
21
21
  try {
22
- r(t.throw(p));
22
+ r(t.throw(m));
23
23
  } catch (n) {
24
24
  a(n);
25
25
  }
26
- }, r = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(m, e);
26
+ }, r = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(p, e);
27
27
  r((t = t.apply(s, o)).next());
28
28
  });
29
- import { Controller as x } from "../base/BasePluginWithData.js";
30
- import { equal as N } from "../shared-utils/equal.js";
31
- import { GuideLineItem as $ } from "./GuideLineItem/index.js";
32
- import P from "../CruisePlugin/Work.js";
33
- import { objectAssignDeepExports as G } from "../vendor/object-assign-deep/objectAssignDeep.js";
34
- import * as S from "three";
29
+ import { Controller as N } from "../base/BasePluginWithData.js";
30
+ import { equal as $ } from "../shared-utils/equal.js";
31
+ import { GuideLineItem as P } from "./GuideLineItem/index.js";
32
+ import W from "../CruisePlugin/Work.js";
33
+ import { objectAssignDeepExports as S } from "../vendor/object-assign-deep/objectAssignDeep.js";
34
+ import * as V from "three";
35
35
  import "hammerjs";
36
36
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
37
37
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
38
38
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
39
- import { waitFiveModelLoaded as W } from "../shared-utils/five/fiveModelLoad.js";
39
+ import { waitFiveModelLoaded as H } from "../shared-utils/five/fiveModelLoad.js";
40
40
  import "animejs";
41
- import { uuid as H } from "../shared-utils/uuid.js";
41
+ import { uuid as U } from "../shared-utils/uuid.js";
42
42
  import "../base/BasePlugin.js";
43
43
  import "../shared-utils/Subscribe.js";
44
44
  import "../shared-utils/url/absoluteUrl.js";
@@ -206,7 +206,7 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
206
206
  import "../CruisePlugin/utils/safeCall.js";
207
207
  import "../shared-utils/five/fiveLoaded.js";
208
208
  const b = "GuideLinePlugin", g = `${b}`, oe = (s) => `${g}--${s}`;
209
- class me extends x {
209
+ class me extends N {
210
210
  constructor(t, i) {
211
211
  super(t, i);
212
212
  h(this, "name", b);
@@ -225,7 +225,7 @@ class me extends x {
225
225
  h(this, "disposedErrorLog", () => {
226
226
  console.error(`${g} is disposed`);
227
227
  });
228
- this._config = i != null ? i : {}, this.cruisePlugin = new P(t), Object.assign(window, { [`__${b}_DEBUG__`]: this });
228
+ this._config = i != null ? i : {}, this.cruisePlugin = new W(t), Object.assign(window, { [`__${b}_DEBUG__`]: this });
229
229
  }
230
230
  get config() {
231
231
  return this._config;
@@ -236,8 +236,8 @@ class me extends x {
236
236
  load(t, i, a = !0) {
237
237
  return u(this, null, function* () {
238
238
  var v, _, E, I, w, D, y, L;
239
- const m = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
240
- this.hooks.emit("dataChange", e, m), this.data = e;
239
+ const p = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
240
+ this.hooks.emit("dataChange", e, p), this.data = e;
241
241
  const r = e.config, n = {
242
242
  panorama_style: {
243
243
  visible: !!(!e.lines && e.routes),
@@ -248,10 +248,10 @@ class me extends x {
248
248
  auto_depth_test_effect_distance: this.config.autoDepthTestEffectDistance
249
249
  }
250
250
  }, d = (D = (w = e.routes) == null ? void 0 : w.map((l) => {
251
- var T;
252
- return G({}, n, { id: (T = l.id) != null ? T : H(), pano_group: l.panoIndexList });
253
- })) != null ? D : [], V = (L = (y = e.lines) == null ? void 0 : y.map((l) => G({}, n, l))) != null ? L : [], C = [...d, ...V];
254
- yield W(this.five), this.clear(), C.forEach((l) => {
251
+ var A;
252
+ return S({}, n, { id: (A = l.id) != null ? A : U(), pano_group: l.panoIndexList });
253
+ })) != null ? D : [], M = (L = (y = e.lines) == null ? void 0 : y.map((l) => S({}, n, l))) != null ? L : [], O = [...d, ...M];
254
+ yield H(this.five), this.clear(), O.forEach((l) => {
255
255
  this.addGuideLineItem(l);
256
256
  }), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: a }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
257
257
  });
@@ -286,18 +286,18 @@ class me extends x {
286
286
  this.disposed || (this.clear(), this.hooks.emit("dispose"));
287
287
  }
288
288
  setState(t, i) {
289
- var m;
289
+ var p;
290
290
  if (this.disposed)
291
291
  return this.disposedErrorLog();
292
292
  const a = f({}, this.state);
293
- this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), N(a, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: a, userAction: (m = i == null ? void 0 : i.userAction) != null ? m : !0 }), this.five.needsRender = !0);
293
+ this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), $(a, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: a, userAction: (p = i == null ? void 0 : i.userAction) != null ? p : !0 }), this.five.needsRender = !0);
294
294
  }
295
295
  /** 添加一个 GuideLineItem */
296
296
  addGuideLineItem(t) {
297
297
  const i = t.render_id || t.id, a = this.itemMap.get(i);
298
298
  a && this.removeGuideLineItem(a);
299
- const m = new $({ five: this.five, id: i, plugin: this });
300
- return this.itemMap.set(i, m), t && m.setData(t), this.heightOffset += 1e-4, m.modelItem.setHeightOffset(this.heightOffset), m.panoramaItem.setHeightOffset(this.heightOffset), m;
299
+ const p = new P({ five: this.five, id: i, plugin: this });
300
+ return this.itemMap.set(i, p), t && p.setData(t), this.heightOffset += 1e-4, p.modelItem.setHeightOffset(this.heightOffset), p.panoramaItem.setHeightOffset(this.heightOffset), p;
301
301
  }
302
302
  /** 获取 Plugin 内的 GuideLineItem */
303
303
  getGuideLineItemByID(t) {
@@ -314,21 +314,21 @@ class me extends x {
314
314
  return Array.isArray(e) && e.every((r) => typeof r == "number");
315
315
  }
316
316
  function a(e, r) {
317
- return new S.Vector3().fromArray(e).distanceTo(new S.Vector3().fromArray(r)) < 0.01;
317
+ return new V.Vector3().fromArray(e).distanceTo(new V.Vector3().fromArray(r)) < 0.01;
318
318
  }
319
- function m(e) {
320
- var p;
321
- const r = (p = e.tag) == null ? void 0 : p.position;
319
+ function p(e) {
320
+ var m;
321
+ const r = (m = e == null ? void 0 : e.tag) == null ? void 0 : m.position;
322
322
  return i(r) ? t.every((n) => {
323
323
  var d;
324
324
  return i((d = n.tag) == null ? void 0 : d.position) ? !a(r, n.tag.position) : !0;
325
325
  }) : !1;
326
326
  }
327
327
  this.itemMap.forEach((e) => {
328
- const r = e.modelItem.startTagContainer, p = e.modelItem.endTagContainer, n = m(r);
329
- n && t.push(r), r.plugin.setState({ enabled: n }, {});
330
- const d = m(p);
331
- d && t.push(p), p.plugin.setState({ enabled: d }, {});
328
+ const r = e.modelItem.startTagContainer, m = e.modelItem.endTagContainer, n = p(r);
329
+ n && t.push(r), r == null || r.plugin.setState({ enabled: n }, {});
330
+ const d = p(m);
331
+ d && t.push(m), m == null || m.plugin.setState({ enabled: d }, {});
332
332
  });
333
333
  }
334
334
  /** 清空所有 GuideLineItem */
@@ -2,15 +2,15 @@ var x = Object.defineProperty, w = Object.defineProperties;
2
2
  var M = Object.getOwnPropertyDescriptors;
3
3
  var D = Object.getOwnPropertySymbols;
4
4
  var P = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
5
- var b = (l, e, t) => e in l ? x(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, m = (l, e) => {
5
+ var y = (l, e, t) => e in l ? x(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, m = (l, e) => {
6
6
  for (var t in e || (e = {}))
7
- P.call(e, t) && b(l, t, e[t]);
7
+ P.call(e, t) && y(l, t, e[t]);
8
8
  if (D)
9
9
  for (var t of D(e))
10
- U.call(e, t) && b(l, t, e[t]);
10
+ U.call(e, t) && y(l, t, e[t]);
11
11
  return l;
12
- }, c = (l, e) => w(l, M(e));
13
- var i = (l, e, t) => (b(l, typeof e != "symbol" ? e + "" : e, t), t);
12
+ }, b = (l, e) => w(l, M(e));
13
+ var i = (l, e, t) => (y(l, typeof e != "symbol" ? e + "" : e, t), t);
14
14
  import * as h from "three";
15
15
  import { logWarning as F, logError as L } from "../../shared-utils/log.js";
16
16
  import { createLineGeometry as S } from "../utils/createLineGeometry.js";
@@ -258,18 +258,18 @@ class Y {
258
258
  this.meshWithDepthTest.material.uniforms.vOffset.value = t, this.meshWithoutDepthTest.material.uniforms.vOffset.value = t, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
259
259
  });
260
260
  i(this, "onFlickerAnimeUpdate", (e) => {
261
- var s, o, a, n;
261
+ var s, o, a, n, u;
262
262
  const { progress: t } = e, r = 1 - t;
263
- this.meshWithDepthTest.material.uniforms.flicker.value = r, this.meshWithoutDepthTest.material.uniforms.flicker.value = r, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && T(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(c(m({}, this.startTagContainer.tag.data), {
263
+ this.meshWithDepthTest.material.uniforms.flicker.value = r, this.meshWithoutDepthTest.material.uniforms.flicker.value = r, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, (s = this.startTagContainer) != null && s.tag && W(this.startTagContainer.tag) && ((n = this.startTagContainer.app) == null || n.$set(b(m({}, this.startTagContainer.tag.data), {
264
264
  opacity: r,
265
265
  name: this.name,
266
- distance: Math.round((o = (s = this.curvePath) == null ? void 0 : s.getLength()) != null ? o : 0)
267
- }))), this.endTagContainer.tag && T(this.endTagContainer.tag) && ((n = this.endTagContainer.app) == null || n.$set(c(m({}, this.endTagContainer.tag.data), { opacity: r })));
266
+ distance: Math.round((a = (o = this.curvePath) == null ? void 0 : o.getLength()) != null ? a : 0)
267
+ }))), this.endTagContainer.tag && W(this.endTagContainer.tag) && ((u = this.endTagContainer.app) == null || u.$set(b(m({}, this.endTagContainer.tag.data), { opacity: r })));
268
268
  });
269
269
  i(this, "logWarning", (e) => F("GuideLineModeItem: ", e));
270
270
  i(this, "logError", (e) => L("GuideLineModeItem: ", e));
271
271
  var o, a;
272
- this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.group.name = "GuideLineModeItem", this.startTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 1 }) }, this.endTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 1 }) };
272
+ this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.group.name = "GuideLineModeItem";
273
273
  const r = new h.BufferGeometry(), s = new h.ShaderMaterial({
274
274
  vertexShader: R,
275
275
  fragmentShader: H,
@@ -352,12 +352,12 @@ class Y {
352
352
  }
353
353
  /** 通过路径设置线条形状 */
354
354
  setGeometryByPath(e, t) {
355
- var f, y, W, C;
355
+ var g, c, v, C;
356
356
  if (this.disposed)
357
357
  return this.logError("disposed");
358
- const r = (f = t == null ? void 0 : t.scale) != null ? f : this.scale, s = (y = t == null ? void 0 : t.width) != null ? y : this.width, o = (W = t == null ? void 0 : t.unit_length) != null ? W : this.unitLength;
358
+ const r = (g = t == null ? void 0 : t.scale) != null ? g : this.scale, s = (c = t == null ? void 0 : t.width) != null ? c : this.width, o = (v = t == null ? void 0 : t.unit_length) != null ? v : this.unitLength;
359
359
  this.scale = r, this.width = s, this.unitLength = o;
360
- const { geometry: a, maxV: n, curvePath: u, curvePoints: d, panoMap: p, totalLength: g } = S({
360
+ const { geometry: a, maxV: n, curvePath: u, curvePoints: d, panoMap: p, totalLength: f } = S({
361
361
  path: e,
362
362
  width: s * r,
363
363
  unitLength: o * r,
@@ -365,8 +365,8 @@ class Y {
365
365
  useAutoDepthTest: t.useAutoDepthTest
366
366
  });
367
367
  this.autoDepthTestEffectDistance = (C = t.autoDepthTestEffectDistance) != null ? C : (() => {
368
- const v = g / 10;
369
- return v > 3 ? 3 : v < 1 ? 1 : v;
368
+ const T = f / 10;
369
+ return T > 3 ? 3 : T < 1 ? 1 : T;
370
370
  })(), this.panoMap = p, this._curvePath = u, this._curvePoints = d, this.meshWithDepthTest.geometry.copy(a), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.meshWithDepthTest.material.needsUpdate = !0, this.meshWithDepthTest.material.uniforms.maxV.value = n, this.meshWithoutDepthTest.material.needsUpdate = !0, this.meshWithoutDepthTest.material.uniforms.maxV.value = n, this.five.needsRender = !0, this.path = e, this.geometryStyle = m(m({}, this.geometryStyle), t);
371
371
  }
372
372
  /** 设置线条材质 */
@@ -387,7 +387,7 @@ class Y {
387
387
  const t = m(m({}, this.meshStyle), e);
388
388
  this.meshStyle = t;
389
389
  function r(s, o) {
390
- if (!s.tag)
390
+ if (!(s != null && s.tag))
391
391
  return;
392
392
  const a = new h.Vector3().fromArray(s.tag.position);
393
393
  a.add(o);
@@ -497,43 +497,46 @@ class Y {
497
497
  const e = this.curvePoints.length, t = this.curvePath.getLength(), r = e - 1, s = t / r, o = (u = this.curvePath.getLengths(r)) != null ? u : [], a = [];
498
498
  let n = 0;
499
499
  for (let d = 0; d < e; d++) {
500
- const p = this.curvePoints[d], g = this.plugin.workUtil.getObserverStandingPosition(n);
501
- if (!g)
500
+ const p = this.curvePoints[d], f = this.plugin.workUtil.getObserverStandingPosition(n);
501
+ if (!f)
502
502
  break;
503
- g.clone().setY(0).distanceTo(p.clone().setY(0)) < s && (a.push(o[d]), n += 1);
503
+ f.clone().setY(0).distanceTo(p.clone().setY(0)) < s && (a.push(o[d]), n += 1);
504
504
  }
505
505
  return a;
506
506
  }
507
507
  setTag(e, t) {
508
- const r = this.curvePath, s = e === "start" ? this.startTagContainer : this.endTagContainer;
508
+ var u, d;
509
+ const r = this.curvePath;
509
510
  if (!(t != null && t.data))
510
- return s.plugin.clearTags();
511
- const a = I({}, {
511
+ return;
512
+ const s = e === "start" ? (u = this.startTagContainer) != null ? u : (() => (this.startTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 1 }) }, this.startTagContainer))() : (d = this.endTagContainer) != null ? d : (() => (this.endTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 1 }) }, this.endTagContainer))(), a = I({}, {
512
513
  contentType: "Custom",
513
514
  stickType: "2DPoint",
514
515
  config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
515
516
  style: { point: { enabled: !1 } },
516
517
  data: {}
517
518
  }, t);
518
- s.tag = a, T(a) && (s.tag.element = (u) => {
519
- var g, f;
520
- (g = s.app) == null || g.$destroy();
521
- const d = e === "start" ? c(m({}, a.data), { name: this.name, distance: Math.round((f = r.getLength()) != null ? f : 0), i18n: this.plugin.config.i18n }) : a.data, p = new B({ target: u, intro: !0, props: d });
522
- return s.app = p, () => p.$destroy();
519
+ s.tag = a, W(a) && (s.tag.element = (p) => {
520
+ var c, v;
521
+ (c = s.app) == null || c.$destroy();
522
+ const f = e === "start" ? b(m({}, a.data), { name: this.name, distance: Math.round((v = r.getLength()) != null ? v : 0), i18n: this.plugin.config.i18n }) : a.data, g = new B({ target: p, intro: !0, props: f });
523
+ return s.app = g, () => g.$destroy();
523
524
  }), s.plugin.load({ tagList: [s.tag] });
524
525
  const n = this.meshStyle.translate;
525
526
  if (n && a.position) {
526
- const u = new h.Vector3().fromArray(a.position), d = new h.Vector3().fromArray(n);
527
- u.add(d), u.y += this.heightOffset;
528
- const p = u.toArray();
529
- s.plugin.changeTagById(s.tag.id, { position: p });
527
+ const p = new h.Vector3().fromArray(a.position), f = new h.Vector3().fromArray(n);
528
+ p.add(f), p.y += this.heightOffset;
529
+ const g = p.toArray();
530
+ s.plugin.getTagById(s.tag.id).changePosition(g);
530
531
  }
531
532
  }
532
533
  doShow() {
533
- this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.group), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
534
+ var e, t;
535
+ this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.group), (e = this.startTagContainer) == null || e.plugin.show(), (t = this.endTagContainer) == null || t.plugin.show(), this.five.needsRender = !0;
534
536
  }
535
537
  doHide() {
536
- this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.group), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
538
+ var e, t;
539
+ this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.group), (e = this.startTagContainer) == null || e.plugin.hide(), (t = this.endTagContainer) == null || t.plugin.hide(), this.five.needsRender = !0;
537
540
  }
538
541
  /** 通过 panoIndex 数组计算路径 */
539
542
  getPathFromPanoGroup(e, t, r) {
@@ -543,10 +546,10 @@ class Y {
543
546
  var a;
544
547
  return (a = this.plugin.workUtil.getObserverStandingPosition(o)) == null ? void 0 : a.toArray();
545
548
  }).filter(V);
546
- return [c(m({ type: "CatmullRomCurve3", points: s }, r), { panoIndexList: e })];
549
+ return [b(m({ type: "CatmullRomCurve3", points: s }, r), { panoIndexList: e })];
547
550
  }
548
551
  }
549
- function T(l) {
552
+ function W(l) {
550
553
  return l.contentType === "Custom";
551
554
  }
552
555
  const he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -15,7 +15,7 @@ let x = class {
15
15
  /**
16
16
  * @realsee/dnalogel 版本号
17
17
  */
18
- o(this, "VERSION", "3.40.0");
18
+ o(this, "VERSION", "3.40.2");
19
19
  o(this, "NAME");
20
20
  o(this, "five");
21
21
  o(this, "workUtil");
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.40.0",
3
+ "%c %c@realsee/dnalogel %cv3.40.2",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
@@ -11,39 +11,39 @@ var H = (a, t, r) => t in a ? R(a, t, { enumerable: !0, configurable: !0, writab
11
11
  };
12
12
  import D from "animejs";
13
13
  import { toArray as g } from "../util.js";
14
- const f = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
14
+ const s = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
15
15
  function k(a) {
16
16
  g(a).forEach((r) => {
17
- var l, s;
18
- f.has(r) || (r instanceof HTMLElement ? f.set(r, {
17
+ var l, i;
18
+ s.has(r) || (r instanceof HTMLElement ? s.set(r, {
19
19
  opacity: r.style.opacity === "" ? void 0 : r.style.opacity,
20
20
  visible: {
21
21
  display: r.style.display,
22
22
  visibility: r.style.visibility
23
23
  }
24
- }) : r.isObject3D && f.set(r, {
24
+ }) : r.isObject3D && s.set(r, {
25
25
  opacity: (l = r.material) == null ? void 0 : l.opacity,
26
- transparent: (s = r.material) == null ? void 0 : s.transparent,
26
+ transparent: (i = r.material) == null ? void 0 : i.transparent,
27
27
  visible: r.visible
28
28
  }));
29
29
  });
30
30
  }
31
31
  function S(a) {
32
- console.log("restoring object state"), g(a).forEach((r) => {
33
- const l = f.get(r);
34
- l && (r instanceof HTMLElement && (r.style.opacity = l.opacity === void 0 ? "" : l.opacity, r.style.display = l.visible.display, r.style.visibility = l.visible.visibility), r.isObject3D && (r.visible = l.visible, r.material && (r.material.opacity = l.opacity, r.material.transparent = l.transparent)), f.delete(r));
32
+ g(a).forEach((r) => {
33
+ const l = s.get(r);
34
+ l && (r instanceof HTMLElement && (r.style.opacity = l.opacity === void 0 ? "" : l.opacity, r.style.display = l.visible.display, r.style.visibility = l.visible.visibility), r.isObject3D && (r.visible = l.visible, r.material && (r.material.opacity = l.opacity, r.material.transparent = l.transparent)), s.delete(r));
35
35
  });
36
36
  }
37
37
  function w(a, t) {
38
38
  var p;
39
39
  const r = (p = t == null ? void 0 : t.traverseTHREEObject) != null ? p : !0;
40
40
  let l = g(a);
41
- const s = [];
41
+ const i = [];
42
42
  l.forEach((y) => {
43
- y instanceof HTMLElement ? s.push(y) : y.isObject3D && (r ? (s.push(y), y.traverse((c) => {
44
- c && s.push(c);
45
- })) : s.push(y));
46
- }), l = [...new Set(s)], k(l);
43
+ y instanceof HTMLElement ? i.push(y) : y.isObject3D && (r ? (i.push(y), y.traverse((c) => {
44
+ c && i.push(c);
45
+ })) : i.push(y));
46
+ }), l = [...new Set(i)], k(l);
47
47
  const e = D(E({
48
48
  targets: l,
49
49
  duration: 300,
@@ -56,9 +56,9 @@ function w(a, t) {
56
56
  y.animatables.forEach((d) => {
57
57
  var M;
58
58
  const u = d.target;
59
- if (!f.has(u))
59
+ if (!s.has(u))
60
60
  return;
61
- const h = Number((M = f.get(u).opacity) != null ? M : 1) * (100 - y.progress) / 100;
61
+ const h = Number((M = s.get(u).opacity) != null ? M : 1) * (100 - y.progress) / 100;
62
62
  u instanceof HTMLElement ? u.style.opacity = String(h) : u.material && (u.material.opacity = h, u.material.transparent = !0);
63
63
  }), (c = t == null ? void 0 : t.updateRender) == null || c.call(t);
64
64
  }
@@ -69,24 +69,24 @@ function w(a, t) {
69
69
  return (y = t == null ? void 0 : t.updateRender) == null ? void 0 : y.call(t);
70
70
  }));
71
71
  };
72
- const i = v.get(a);
73
- return i == null || i.pause(), i == null || i.seek(0), v.set(a, e), e.play(), e.finished.then(() => {
72
+ const f = v.get(a);
73
+ return f == null || f.pause(), f == null || f.seek(0), v.set(a, e), e.play(), e.finished.then(() => {
74
74
  var y;
75
75
  S(l), setTimeout(() => {
76
76
  v.get(a) === e && v.delete(a);
77
77
  }, 1e3), (y = t == null ? void 0 : t.updateRender) == null || y.call(t);
78
78
  }), e;
79
79
  }
80
- function q(a, t) {
80
+ function z(a, t) {
81
81
  return w(a, E({
82
82
  update: (r) => {
83
83
  var l;
84
- r.animatables.forEach((s) => {
84
+ r.animatables.forEach((i) => {
85
85
  var c, d;
86
- const e = s.target;
87
- if (!f.has(e))
86
+ const e = i.target;
87
+ if (!s.has(e))
88
88
  return;
89
- const i = f.get(e), y = ((d = (c = i == null ? void 0 : i.opacity) != null ? c : t == null ? void 0 : t.maxOpacity) != null ? d : 1) * (r.progress / 100);
89
+ const f = s.get(e), y = ((d = (c = f == null ? void 0 : f.opacity) != null ? c : t == null ? void 0 : t.maxOpacity) != null ? d : 1) * (r.progress / 100);
90
90
  e instanceof HTMLElement ? (e.style.opacity = String(y), e.style.visibility = "visible") : e.isObject3D && (g(a).includes(e) && (e.visible = !0), e.material && (e.material.opacity = y, e.material.transparent = !0));
91
91
  }), (l = t == null ? void 0 : t.updateRender) == null || l.call(t);
92
92
  }
@@ -95,5 +95,5 @@ function q(a, t) {
95
95
  export {
96
96
  v as animeMap,
97
97
  w as blink,
98
- q as reblink
98
+ z as reblink
99
99
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.40.0",
3
+ "version": "3.40.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",
@@ -36,7 +36,8 @@
36
36
  "CHANGELOG.md"
37
37
  ],
38
38
  "publishConfig": {
39
- "registry": "https://registry.npmjs.org/"
39
+ "registry": "https://registry.npmjs.org/",
40
+ "access": "public"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@babel/core": "^7.22.9",
package/README.md DELETED
@@ -1,116 +0,0 @@
1
- <p align="center">
2
- <a href="https://realsee.js.org/"><img src="https://vrlab-public.ljcdn.com/common/file/web/ea031fa5-ad82-46b3-86c8-7b20ec1e635a.jpg" width="60" /></a>
3
- </p>
4
-
5
-
6
- <p align="center">
7
- <a href="https://www.npmjs.com/package/@realsee/dnalogel">
8
- <img src="https://img.shields.io/npm/v/@realsee/dnalogel.svg" alt="npm version" >
9
- </a>
10
- <a href="https://packagephobia.now.sh/result?p=@realsee/dnalogel">
11
- <img src="https://packagephobia.now.sh/badge?p=@realsee/dnalogel" alt="install size" >
12
- </a>
13
- <a href="https://github.com/realsee-developer/dnalogel/blob/main/TERMS.txt">
14
- <img src="https://img.shields.io/npm/l/@realsee/dnalogel.svg" alt="license">
15
- </a>
16
- </p>
17
-
18
- <h1 align="center">@realsee/dnalogel</h1>
19
-
20
- # 👀 Overview
21
-
22
- @realsee/dnalogel 将 [如视(realsee.com)](https://realsee.com) **VR 空间交互** 常用能力沉淀,并以 `Five Plugins` 形式进行抽象。
23
- 结合[如视三维空间重建渲染引擎 Five](https://open-platform.realsee.com/developer/docs/five/intro/)
24
- 与 [如视开放 API](https://open-platform.realsee.com/developer/openapi/?id=1001) ,可以制作出丰富多彩的三维空间应用。不论是经过线上环境千锤百炼的刚需功能,还是灵感一现的炫酷尝试,所有已经落地的功能我们均毫无保留的开源至github [realsee-developer/dnalogel](https://github.com/realsee-developer/dnalogel) 。
25
-
26
- # 🔨 Usage
27
-
28
- **1、安装**
29
-
30
- ```bash
31
- npm install @realsee/dnalogel
32
- ```
33
-
34
- ```bash
35
- yarn add @realsee/dnalogel
36
- ```
37
-
38
- **2、插件注册**
39
-
40
- ```js
41
- import { Five } from '@realsee/five'
42
- import { Plugin } from '@realsee/dnalogel'
43
- const five = new Five({
44
- plugins: [[Plugin, 'PluginName', initOptions]],
45
- })
46
- ```
47
-
48
- **3、插件方法使用**
49
-
50
- ```js
51
- // 不同插件提供的方法可能存在差异,请参考各插件 API 文档
52
- five.plugins.PluginName.load(data)
53
- five.plugins.PluginName.enable()
54
- five.plugins.PluginName.disable()
55
- five.plugins.PluginName.dispose()
56
- ```
57
-
58
- **4、插件依赖数据获取**
59
-
60
- 您可以通过 [open API](https://open-platform.realsee.com/developer/open/api#/) 查看数据获取方式及相关 open API 。
61
-
62
- # 📖 Documents
63
-
64
- - [说明文档](https://open-platform.realsee.com/developer/docs/dnalogel/intro/)
65
- - [API 文档](https://open-platform.realsee.com/developer/openapi/?id=1001)
66
- - [demo 源码](https://github.com/realsee-developer/dnalogel)
67
- - [数据依赖来源:open API](https://open-platform.realsee.com/developer/openapi/?id=1001)
68
-
69
- # 💡 Preview
70
-
71
- 我们为每个插件书写了简单的效果示例,您可点击预览:
72
- [@realsee/dnalogel showcase](https://realsee-developer.github.io/dnalogel/)
73
-
74
- # 🧾 Lists
75
-
76
- - 🔌 ModelViewPlugin:模型小窗插件
77
- - 🔌 PanoFloorplanRadarPlugin:全景户型雷达图插件
78
- - 🔌 ModelRoomLabelPlugin:模型态房屋标签插件
79
- - 🔌 TopviewFloorplanPlugin:俯视模型户型图插件
80
- - 🔌 ModelChassisCompassPlugin:模型底盘指南针插件
81
- - 🔌 ModelEntryDoorGuidePlugin:模型入户门引导插件
82
- - 🔌 CSS3DRenderPlugin:CSS3D渲染插件
83
- - 🔌 CameraMovementPlugin:相机运镜插件
84
- - 🔌 ModelFloorplanPlugin:模型户型图插件
85
- - 🔌 PanoRulerPlugin:全景标尺插件
86
- - 🔌 PanoCompassPlugin:全景指南针插件
87
- - 其他插件持续更新中...
88
-
89
- # 可能遇到的问题
90
-
91
- 1. webpack打包出现以下错误
92
-
93
- ```bash
94
- Module not found: Error: Can't resolve '@realsee/five/line' in 'xxx/node_modules/@realsee/dnalogel/libs'
95
- Did you mean 'index.js'?
96
- BREAKING CHANGE: The request '@realsee/five/line' failed to resolve only because it was resolved as fully specified
97
- (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
98
- The extension in the request is mandatory for it to be fully specified.
99
- Add the extension to the request.
100
- ```
101
-
102
- 解决方案:在webpack配置里加以下rule
103
- 参考:[resolvefullyspecified](https://webpack.js.org/configuration/module/#resolvefullyspecified)
104
-
105
- ```js
106
- {
107
- test: /\.m?js$/,
108
- resolve: {
109
- fullySpecified: false, // disable the behaviour
110
- },
111
- },
112
- ```
113
-
114
- # License
115
-
116
- [TERMS](https://github.com/realsee-developer/dnalogel/blob/main/TERMS.txt)
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.
File without changes