@realsee/dnalogel 3.77.4-alpha.0 → 3.77.4-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (523) hide show
  1. package/CHANGELOG.md +837 -846
  2. package/dist/DigitalPerformancePlugin/controller/index.d.ts +224 -0
  3. package/dist/DigitalPerformancePlugin/core/DigitalHuman.d.ts +54 -0
  4. package/dist/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +40 -0
  5. package/dist/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +150 -0
  6. package/dist/DigitalPerformancePlugin/core/Trace.d.ts +9 -0
  7. package/dist/DigitalPerformancePlugin/index.d.ts +11 -0
  8. package/dist/DigitalPerformancePlugin/mock.d.ts +76 -0
  9. package/dist/DigitalPerformancePlugin/typings/index.d.ts +79 -0
  10. package/dist/GuideLinePlugin/Controller.d.ts +2 -34
  11. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +2 -7
  12. package/dist/index.cjs.js +86 -73
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.js +12911 -11239
  15. package/dist/index.umd.js +87 -74
  16. package/libs/DigitalPerformancePlugin/controller/index.d.ts +2 -2
  17. package/libs/DigitalPerformancePlugin/controller/index.js +164 -173
  18. package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +15 -6
  19. package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +125 -98
  20. package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +11 -5
  21. package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +84 -74
  22. package/libs/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +7 -0
  23. package/libs/DigitalPerformancePlugin/mock.d.ts +6 -0
  24. package/libs/DigitalPerformancePlugin/mock.js +270 -273
  25. package/libs/GuideLinePlugin/Components/Tag.js +163 -151
  26. package/libs/GuideLinePlugin/Controller.d.ts +2 -34
  27. package/libs/GuideLinePlugin/Controller.js +22 -56
  28. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +69 -76
  29. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +2 -7
  30. package/libs/base/BasePlugin.js +1 -1
  31. package/libs/index.d.ts +1 -0
  32. package/libs/index.js +161 -150
  33. package/libs/shared-utils/logger.js +1 -1
  34. package/package.json +2 -2
  35. package/docs/.nojekyll +0 -1
  36. package/docs/assets/custom.css +0 -0
  37. package/docs/assets/highlight.css +0 -127
  38. package/docs/assets/icons.js +0 -18
  39. package/docs/assets/icons.svg +0 -1
  40. package/docs/assets/main.js +0 -60
  41. package/docs/assets/navigation.js +0 -1
  42. package/docs/assets/search.js +0 -1
  43. package/docs/assets/style.css +0 -1493
  44. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -59
  45. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -71
  46. package/docs/classes/CSS3DRender.html +0 -100
  47. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -21
  48. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -72
  49. package/docs/classes/ModelMakerPluginInstance.html +0 -116
  50. package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +0 -52
  51. package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +0 -52
  52. package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +0 -53
  53. package/docs/classes/ModelRoomLabelController.html +0 -19
  54. package/docs/classes/MoveController.html +0 -45
  55. package/docs/classes/Object3DHelperController.html +0 -45
  56. package/docs/classes/PaintBrush.html +0 -15
  57. package/docs/classes/PanoMeasurePluginLine.html +0 -24
  58. package/docs/classes/PanoMeasurePluginModel.html +0 -23
  59. package/docs/classes/PanoMeasurePluginPoint.html +0 -7
  60. package/docs/classes/PanoMeasurePluginPolyline.html +0 -27
  61. package/docs/classes/PanoTagPluginController.html +0 -111
  62. package/docs/classes/Sculpt.html +0 -77
  63. package/docs/classes/Util.BetterTween.html +0 -6
  64. package/docs/classes/Util.FiveDomEvents.html +0 -13
  65. package/docs/classes/Util.FivePuppet.html +0 -20
  66. package/docs/classes/Util.Interval.html +0 -11
  67. package/docs/classes/Util.LegacyPointHelper.html +0 -7
  68. package/docs/classes/Util.LightTag.html +0 -47
  69. package/docs/classes/Util.LineSegments.html +0 -4
  70. package/docs/classes/Util.Magnifier.html +0 -26
  71. package/docs/classes/Util.Object3D.html +0 -8
  72. package/docs/classes/Util.PointDomHelper.html +0 -8
  73. package/docs/classes/Util.PointHelper.html +0 -10
  74. package/docs/classes/Util.PointSelector.html +0 -66
  75. package/docs/classes/Util.PointSelectorHelper.html +0 -14
  76. package/docs/classes/Util.Rectangle.html +0 -12
  77. package/docs/classes/Util.sculpt.BaseEditor.html +0 -17
  78. package/docs/classes/Util.sculpt.BoxMesh.html +0 -48
  79. package/docs/classes/Util.sculpt.BoxMeshEditor.html +0 -18
  80. package/docs/classes/Util.sculpt.CircleMesh.html +0 -26
  81. package/docs/classes/Util.sculpt.CircleMeshEditor.html +0 -18
  82. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +0 -26
  83. package/docs/classes/Util.sculpt.CylinderMesh.html +0 -25
  84. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +0 -18
  85. package/docs/classes/Util.sculpt.LineMesh.html +0 -34
  86. package/docs/classes/Util.sculpt.PointMesh.html +0 -24
  87. package/docs/classes/Util.sculpt.PolygonMesh.html +0 -40
  88. package/docs/classes/Util.sculpt.PrismMesh.html +0 -48
  89. package/docs/classes/Util.sculpt.PrismMeshEditor.html +0 -18
  90. package/docs/classes/Util.sculpt.RectangleMesh.html +0 -41
  91. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +0 -18
  92. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +0 -44
  93. package/docs/classes/WalkController.html +0 -42
  94. package/docs/enums/CameraMovementEffect.html +0 -4
  95. package/docs/enums/ContentType.html +0 -34
  96. package/docs/enums/DIRECTION.html +0 -5
  97. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -5
  98. package/docs/enums/DimensionType.html +0 -4
  99. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -4
  100. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -5
  101. package/docs/enums/PaintBrushTypeEnum.html +0 -4
  102. package/docs/enums/PointType.html +0 -4
  103. package/docs/enums/Rotation.html +0 -5
  104. package/docs/functions/AreaMakerPlugin.html +0 -1
  105. package/docs/functions/CSS3DRenderPlugin.html +0 -1
  106. package/docs/functions/CameraMovementPlugin.html +0 -2
  107. package/docs/functions/CruisePlugin.html +0 -1
  108. package/docs/functions/CurrentPanoImagePlugin.html +0 -1
  109. package/docs/functions/FloorplanGuidePlugin.html +0 -1
  110. package/docs/functions/GuideLinePlugin.html +0 -1
  111. package/docs/functions/ItemLabelPlugin.html +0 -1
  112. package/docs/functions/MapviewFloorplanPlugin.html +0 -1
  113. package/docs/functions/MeasurePlugin.html +0 -1
  114. package/docs/functions/ModelChassisCompassPlugin.html +0 -2
  115. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -2
  116. package/docs/functions/ModelFloorplanPlugin.html +0 -1
  117. package/docs/functions/ModelItemLabelPlugin.html +0 -1
  118. package/docs/functions/ModelMakerPlugin.html +0 -1
  119. package/docs/functions/ModelRoomLabelPlugin.html +0 -1
  120. package/docs/functions/ModelTVVideoPlugin.html +0 -1
  121. package/docs/functions/ModelViewPlugin.html +0 -2
  122. package/docs/functions/MovePlugin.html +0 -1
  123. package/docs/functions/Object3DHelperPlugin.html +0 -1
  124. package/docs/functions/PanoCompassPlugin.html +0 -1
  125. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -2
  126. package/docs/functions/PanoDoorLabelPlugin.html +0 -1
  127. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -1
  128. package/docs/functions/PanoMeasurePlugin.html +0 -1
  129. package/docs/functions/PanoRulerPlugin.html +0 -2
  130. package/docs/functions/PanoRulerProPlugin.html +0 -2
  131. package/docs/functions/PanoSpatialTagPlugin.html +0 -2
  132. package/docs/functions/PanoTagPlugin.html +0 -1
  133. package/docs/functions/PanoVideoPlugin.html +0 -10
  134. package/docs/functions/PipelinePlugin.html +0 -1
  135. package/docs/functions/SculptPlugin.html +0 -2
  136. package/docs/functions/SculptPluginForFive.html +0 -2
  137. package/docs/functions/TopviewFloorplanPlugin.html +0 -1
  138. package/docs/functions/Util.awaitNextFrame.html +0 -1
  139. package/docs/functions/Util.blink.html +0 -13
  140. package/docs/functions/Util.blinkWithPreset.html +0 -6
  141. package/docs/functions/Util.bounding.html +0 -1
  142. package/docs/functions/Util.boundingBox.html +0 -1
  143. package/docs/functions/Util.boundingSphere.html +0 -1
  144. package/docs/functions/Util.boxVertex.html +0 -7
  145. package/docs/functions/Util.boxVertexes.html +0 -1
  146. package/docs/functions/Util.checkFiveModelLoaded.html +0 -2
  147. package/docs/functions/Util.cleanup.html +0 -3
  148. package/docs/functions/Util.convexHull.html +0 -2
  149. package/docs/functions/Util.equal.html +0 -5
  150. package/docs/functions/Util.fiveModelIsLoaded.html +0 -2
  151. package/docs/functions/Util.generatePolygonGeometry.html +0 -2
  152. package/docs/functions/Util.getCoordsFromClient.html +0 -1
  153. package/docs/functions/Util.getCoordsFromElement.html +0 -1
  154. package/docs/functions/Util.getFrameTime.html +0 -3
  155. package/docs/functions/Util.getGeometryArea.html +0 -1
  156. package/docs/functions/Util.getGeometryInfo.html +0 -1
  157. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -1
  158. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -1
  159. package/docs/functions/Util.initialCSS3DRender.html +0 -1
  160. package/docs/functions/Util.inside.html +0 -1
  161. package/docs/functions/Util.isModelLike.html +0 -1
  162. package/docs/functions/Util.isNil.html +0 -2
  163. package/docs/functions/Util.isPanoramaLike.html +0 -1
  164. package/docs/functions/Util.lookObject.html +0 -7
  165. package/docs/functions/Util.lookPoint.html +0 -5
  166. package/docs/functions/Util.nextFrame.html +0 -1
  167. package/docs/functions/Util.notNil.html +0 -2
  168. package/docs/functions/Util.reblink.html +0 -13
  169. package/docs/functions/Util.replaceStaticPrefix.html +0 -8
  170. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -5
  171. package/docs/functions/Util.sculpt.createBox.html +0 -1
  172. package/docs/functions/Util.sculpt.createCircle.html +0 -1
  173. package/docs/functions/Util.sculpt.createCylinder.html +0 -1
  174. package/docs/functions/Util.sculpt.createLine.html +0 -2
  175. package/docs/functions/Util.sculpt.createPoint.html +0 -1
  176. package/docs/functions/Util.sculpt.createPolygon.html +0 -1
  177. package/docs/functions/Util.sculpt.createPrism.html +0 -1
  178. package/docs/functions/Util.sculpt.createRectangle.html +0 -2
  179. package/docs/functions/Util.sculpt.transformUnit.html +0 -1
  180. package/docs/functions/Util.sculpt.transformUnitSquare.html +0 -1
  181. package/docs/functions/Util.tag.html +0 -1
  182. package/docs/functions/Util.triangleArea.html +0 -2
  183. package/docs/functions/Util.triangleCenter.html +0 -2
  184. package/docs/functions/Util.tweenProgress.html +0 -1
  185. package/docs/functions/Util.uuid.html +0 -2
  186. package/docs/functions/Util.waitFiveModelLoaded.html +0 -2
  187. package/docs/functions/Util.worldBounding.html +0 -1
  188. package/docs/functions/Util.worldBoundingBox.html +0 -1
  189. package/docs/functions/Util.worldBoundingSphere.html +0 -1
  190. package/docs/functions/createPolyline.html +0 -2
  191. package/docs/functions/pluginFlag.html +0 -1
  192. package/docs/functions/validatePolygon.html +0 -1
  193. package/docs/hierarchy.html +0 -1
  194. package/docs/index.html +0 -70
  195. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -4
  196. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -8
  197. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -25
  198. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -4
  199. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -20
  200. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -13
  201. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -9
  202. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -3
  203. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -3
  204. package/docs/interfaces/AreaMakerPluginType.State.html +0 -8
  205. package/docs/interfaces/BoxAnimationConfig.html +0 -6
  206. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -9
  207. package/docs/interfaces/CSS3DRenderPluginState.html +0 -7
  208. package/docs/interfaces/CameraMovementPluginExportType.html +0 -11
  209. package/docs/interfaces/ContentTypeMapInterface.html +0 -73
  210. package/docs/interfaces/CruisePluginTypes.Config.html +0 -7
  211. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -8
  212. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -33
  213. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +0 -6
  214. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -16
  215. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -19
  216. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -20
  217. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -8
  218. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -2
  219. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -15
  220. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -13
  221. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -15
  222. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -4
  223. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -3
  224. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -7
  225. package/docs/interfaces/FloorplanBounding.html +0 -9
  226. package/docs/interfaces/FloorplanData.html +0 -7
  227. package/docs/interfaces/FloorplanEntrance.html +0 -14
  228. package/docs/interfaces/FloorplanExtraObject.html +0 -9
  229. package/docs/interfaces/FloorplanExtraObject3D.html +0 -5
  230. package/docs/interfaces/FloorplanFloorData.html +0 -9
  231. package/docs/interfaces/FloorplanImagePosition.html +0 -4
  232. package/docs/interfaces/FloorplanObserver.html +0 -8
  233. package/docs/interfaces/FloorplanOutlineItem.html +0 -6
  234. package/docs/interfaces/FloorplanPosition.html +0 -4
  235. package/docs/interfaces/FloorplanRoomItem.html +0 -24
  236. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -6
  237. package/docs/interfaces/FloorplanServerBounding.html +0 -9
  238. package/docs/interfaces/FloorplanServerComputedData.html +0 -6
  239. package/docs/interfaces/FloorplanServerData.html +0 -4
  240. package/docs/interfaces/FloorplanServerDoorItem.html +0 -6
  241. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -4
  242. package/docs/interfaces/FloorplanServerEntrance.html +0 -14
  243. package/docs/interfaces/FloorplanServerFloorData.html +0 -8
  244. package/docs/interfaces/FloorplanServerImagePosition.html +0 -4
  245. package/docs/interfaces/FloorplanServerObserver.html +0 -8
  246. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -6
  247. package/docs/interfaces/FloorplanServerPosition.html +0 -4
  248. package/docs/interfaces/FloorplanServerRoomItem.html +0 -27
  249. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -6
  250. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -4
  251. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -7
  252. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -13
  253. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +0 -5
  254. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -8
  255. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -2
  256. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -32
  257. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -4
  258. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -5
  259. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -42
  260. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -3
  261. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -57
  262. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -1
  263. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -2
  264. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -7
  265. package/docs/interfaces/GuideLinePluginType.Route.html +0 -13
  266. package/docs/interfaces/HelperOffset.html +0 -4
  267. package/docs/interfaces/ImagePlaneGroup.html +0 -3
  268. package/docs/interfaces/ItemLabelPluginData.html +0 -2
  269. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -7
  270. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -5
  271. package/docs/interfaces/MinMax.html +0 -3
  272. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -3
  273. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -4
  274. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -3
  275. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -4
  276. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -4
  277. package/docs/interfaces/ModelItemLabelPluginData.html +0 -2
  278. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -7
  279. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -3
  280. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +0 -17
  281. package/docs/interfaces/ModelMakerPluginType.EventMap.html +0 -18
  282. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +0 -23
  283. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +0 -11
  284. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +0 -10
  285. package/docs/interfaces/ModelMakerPluginType.ServerData.html +0 -3
  286. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +0 -10
  287. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +0 -10
  288. package/docs/interfaces/ModelMakerPluginType.State.html +0 -8
  289. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +0 -11
  290. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -2
  291. package/docs/interfaces/ModelTVVideoPluginData.html +0 -5
  292. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -4
  293. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -2
  294. package/docs/interfaces/ModelViewPluginExportType.html +0 -8
  295. package/docs/interfaces/Object3DHelperState.html +0 -4
  296. package/docs/interfaces/ObjectHelperControllers.html +0 -5
  297. package/docs/interfaces/PaintBrushAction.html +0 -14
  298. package/docs/interfaces/PaintBrushConfigs.html +0 -8
  299. package/docs/interfaces/PaintBrushState.html +0 -6
  300. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -16
  301. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -1
  302. package/docs/interfaces/PanoMeasureParameterType.html +0 -20
  303. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -4
  304. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -4
  305. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -3
  306. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -7
  307. package/docs/interfaces/PanoRulerPluginExportType.html +0 -6
  308. package/docs/interfaces/PanoRulerPluginOptions.html +0 -3
  309. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -4
  310. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -5
  311. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -3
  312. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -3
  313. package/docs/interfaces/PanoRulerProPluginState.html +0 -4
  314. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -1
  315. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -1
  316. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -7
  317. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -6
  318. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -9
  319. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -6
  320. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -9
  321. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -7
  322. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -6
  323. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -3
  324. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -8
  325. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -2
  326. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -15
  327. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -2
  328. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -14
  329. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -13
  330. package/docs/interfaces/PluginEventMap.html +0 -16
  331. package/docs/interfaces/Point.html +0 -4
  332. package/docs/interfaces/Room.html +0 -5
  333. package/docs/interfaces/RoomInfo.html +0 -3
  334. package/docs/interfaces/RoomLabel.html +0 -16
  335. package/docs/interfaces/RoomRules.html +0 -1
  336. package/docs/interfaces/Rooms.html +0 -1
  337. package/docs/interfaces/Scissor.html +0 -13
  338. package/docs/interfaces/SculptConfig.html +0 -19
  339. package/docs/interfaces/State.html +0 -7
  340. package/docs/interfaces/TagCacheInterface.html +0 -9
  341. package/docs/interfaces/TagConfig.html +0 -174
  342. package/docs/interfaces/TagGLTFObjectGroup.html +0 -3
  343. package/docs/interfaces/TagIconAnimationConfig.html +0 -7
  344. package/docs/interfaces/TagIconUrl.html +0 -22
  345. package/docs/interfaces/TagObjectGroup.html +0 -3
  346. package/docs/interfaces/TagState.html +0 -3
  347. package/docs/interfaces/TagStyle.html +0 -5
  348. package/docs/interfaces/Tags.html +0 -8
  349. package/docs/interfaces/TemporaryState.html +0 -2
  350. package/docs/interfaces/Util.AnimeInstance.html +0 -14
  351. package/docs/interfaces/Util.BlinkAnimeOptions.html +0 -21
  352. package/docs/interfaces/Util.EventHandlerConfig.html +0 -21
  353. package/docs/interfaces/Util.FiveDomEvent.html +0 -7
  354. package/docs/interfaces/Util.FiveDomEventMap.html +0 -20
  355. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +0 -4
  356. package/docs/interfaces/Util.MagnifierParameter.html +0 -13
  357. package/docs/interfaces/Util.MouseGroupParameter.html +0 -4
  358. package/docs/interfaces/Util.ObjectInitialState.html +0 -9
  359. package/docs/interfaces/Util.PointIntersection.html +0 -21
  360. package/docs/interfaces/Util.PointSelectorHelperConfig.html +0 -6
  361. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +0 -27
  362. package/docs/modules/AreaMakerPluginType.html +0 -17
  363. package/docs/modules/CruisePluginTypes.html +0 -14
  364. package/docs/modules/CurrentPanoImagePluginType.html +0 -6
  365. package/docs/modules/GuideLineItem.html +0 -2
  366. package/docs/modules/GuideLineModeItem.html +0 -3
  367. package/docs/modules/GuideLinePluginType.html +0 -25
  368. package/docs/modules/ModelMakerPluginType.html +0 -19
  369. package/docs/modules/PanoVideoPluginType.html +0 -8
  370. package/docs/modules/SculptData.html +0 -9
  371. package/docs/modules/SculptType.html +0 -2
  372. package/docs/modules/Util.html +0 -91
  373. package/docs/modules/Util.sculpt.html +0 -27
  374. package/docs/modules.html +0 -281
  375. package/docs/types/AddObject3DHelperConfig.html +0 -19
  376. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -7
  377. package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -1
  378. package/docs/types/AreaMakerPluginType.PluginData.html +0 -2
  379. package/docs/types/AreaMakerPluginType.ServerData.html +0 -2
  380. package/docs/types/ArrayPosition.html +0 -1
  381. package/docs/types/AudioAppearance.html +0 -1
  382. package/docs/types/CSS3DRenderExportType.html +0 -1
  383. package/docs/types/CSS3DRenderPluginExportType.html +0 -1
  384. package/docs/types/CSS3DRenderPluginParameterType.html +0 -1
  385. package/docs/types/ClassFunctionParameters.html +0 -1
  386. package/docs/types/Color.html +0 -1
  387. package/docs/types/ContentTypeConfigKey.html +0 -1
  388. package/docs/types/ContentTypeConfigKeySplit.html +0 -1
  389. package/docs/types/ContentTypeMap.html +0 -1
  390. package/docs/types/Create3DDomContainerReturnType.html +0 -1
  391. package/docs/types/Create3DElementReturnType.html +0 -1
  392. package/docs/types/CruisePluginExportType.html +0 -1
  393. package/docs/types/CruisePluginTypes.CruiseData.html +0 -6
  394. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -1
  395. package/docs/types/CurrentPanoImagePluginExportType.html +0 -1
  396. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -3
  397. package/docs/types/DeprecatedTagProperty.html +0 -3
  398. package/docs/types/Direction-1.html +0 -1
  399. package/docs/types/Direction4.html +0 -1
  400. package/docs/types/ElementRenderer.html +0 -2
  401. package/docs/types/FloorplanGuidePluginParameterType.html +0 -1
  402. package/docs/types/FloorplanGuidePluginReturnType.html +0 -1
  403. package/docs/types/FloorplanRuleLabels.html +0 -2
  404. package/docs/types/FloorplanServerRuleLabels.html +0 -1
  405. package/docs/types/GuideLinePluginExportType.html +0 -1
  406. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -2
  407. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -1
  408. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -1
  409. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -2
  410. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -2
  411. package/docs/types/GuideLinePluginType.PathItem.html +0 -2
  412. package/docs/types/GuideLinePluginType.PluginData.html +0 -2
  413. package/docs/types/GuideLinePluginType.RouteConfig.html +0 -4
  414. package/docs/types/HelperEventMap.html +0 -1
  415. package/docs/types/InternalHelperEventMap.html +0 -1
  416. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -1
  417. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -1
  418. package/docs/types/MeasureEndReason.html +0 -1
  419. package/docs/types/MeasurePluginConfig.html +0 -5
  420. package/docs/types/MeasurePluginEventMap.html +0 -1
  421. package/docs/types/MediaData.html +0 -2
  422. package/docs/types/MediaStore.html +0 -1
  423. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -1
  424. package/docs/types/ModelFloorplanPluginParameterType.html +0 -1
  425. package/docs/types/ModelFloorplanPluginReturnType.html +0 -1
  426. package/docs/types/ModelId.html +0 -1
  427. package/docs/types/ModelMakerPluginType.ElementRenderer.html +0 -1
  428. package/docs/types/ModelMakerPluginType.ItemType.html +0 -2
  429. package/docs/types/ModelMakerPluginType.MarkerItem.html +0 -1
  430. package/docs/types/ModelMakerPluginType.ServerItem.html +0 -2
  431. package/docs/types/ModelRoomLabelPluginParameters.html +0 -1
  432. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -1
  433. package/docs/types/MoveArgs.html +0 -2
  434. package/docs/types/MoveOpts.html +0 -2
  435. package/docs/types/Object3DHelperEventMap.html +0 -1
  436. package/docs/types/ObjectFit.html +0 -1
  437. package/docs/types/PaintBrushEventMap.html +0 -1
  438. package/docs/types/PanoCompassPluginData.html +0 -1
  439. package/docs/types/PanoCompassPluginExportType.html +0 -1
  440. package/docs/types/PanoCompassPluginParameterType.html +0 -1
  441. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -1
  442. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -1
  443. package/docs/types/PanoIndex.html +0 -1
  444. package/docs/types/PanoMeasurePluginEvent.html +0 -1
  445. package/docs/types/PanoMeasureReturnType.html +0 -1
  446. package/docs/types/PanoSpatialTagPluginId.html +0 -1
  447. package/docs/types/PanoTagPluginExportInterface.html +0 -1
  448. package/docs/types/PanoTagPluginParamsInterface.html +0 -1
  449. package/docs/types/PanoVideoPluginParameterType.html +0 -1
  450. package/docs/types/PanoVideoPluginReturnType.html +0 -1
  451. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -2
  452. package/docs/types/PipelinePluginParameterType.html +0 -1
  453. package/docs/types/PipelinePluginReturnType.html +0 -1
  454. package/docs/types/PlaneTag.html +0 -2
  455. package/docs/types/Point2DTag.html +0 -2
  456. package/docs/types/Point3DTag.html +0 -2
  457. package/docs/types/PointTagInstance.html +0 -1
  458. package/docs/types/Position.html +0 -1
  459. package/docs/types/PositionFrom.html +0 -1
  460. package/docs/types/RotateArgs.html +0 -2
  461. package/docs/types/RotateOpts.html +0 -2
  462. package/docs/types/RuleLabelsKey.html +0 -1
  463. package/docs/types/RuleLabelsValue.html +0 -1
  464. package/docs/types/ScaleCallback.html +0 -1
  465. package/docs/types/ScalePosition.html +0 -3
  466. package/docs/types/SculptData.BoxData.html +0 -1
  467. package/docs/types/SculptData.CircleData.html +0 -1
  468. package/docs/types/SculptData.CylinderData.html +0 -1
  469. package/docs/types/SculptData.PointData.html +0 -1
  470. package/docs/types/SculptData.PolygonData.html +0 -1
  471. package/docs/types/SculptData.PolylineData.html +0 -1
  472. package/docs/types/SculptData.PrismData.html +0 -1
  473. package/docs/types/SculptData.RectangleData.html +0 -1
  474. package/docs/types/SculptType.Theme.html +0 -10
  475. package/docs/types/StickType.html +0 -1
  476. package/docs/types/Tag.html +0 -17
  477. package/docs/types/Tag2D.html +0 -2
  478. package/docs/types/Tag3D.html +0 -2
  479. package/docs/types/TagClickParams.html +0 -1
  480. package/docs/types/TagConfigByKey.html +0 -1
  481. package/docs/types/TagContentType.html +0 -1
  482. package/docs/types/TagContentTypeMapping.html +0 -1
  483. package/docs/types/TagDimensionType.html +0 -1
  484. package/docs/types/TagElement.html +0 -2
  485. package/docs/types/TagEvents.html +0 -1
  486. package/docs/types/TagGLTFObject.html +0 -1
  487. package/docs/types/TagHooks.html +0 -1
  488. package/docs/types/TagId.html +0 -1
  489. package/docs/types/TagInstance.html +0 -1
  490. package/docs/types/TagPlacement.html +0 -5
  491. package/docs/types/TagPointType.html +0 -2
  492. package/docs/types/TagRendererMap.html +0 -1
  493. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -1
  494. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -1
  495. package/docs/types/Util.ActionIfNoIntersection.html +0 -1
  496. package/docs/types/Util.AdherePoint.html +0 -2
  497. package/docs/types/Util.PointSelectorConfig.html +0 -1
  498. package/docs/types/Util.SupportedTarget.html +0 -2
  499. package/docs/types/Util.Target.html +0 -2
  500. package/docs/types/Util.ThreeObject.html +0 -2
  501. package/docs/types/WorkCode.html +0 -1
  502. package/docs/variables/FLOOR_TYPE_MAP.html +0 -2
  503. package/docs/variables/PLUGIN.html +0 -1
  504. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -2
  505. package/docs/variables/ROOM_TYPE_MAP.html +0 -2
  506. package/docs/variables/Util.ANIME_PRESETS.html +0 -2
  507. package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +0 -2
  508. package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +0 -2
  509. package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +0 -2
  510. package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +0 -2
  511. package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +0 -2
  512. package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +0 -2
  513. package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +0 -2
  514. package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +0 -2
  515. package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +0 -2
  516. package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +0 -2
  517. package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +0 -2
  518. package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +0 -2
  519. package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +0 -2
  520. package/docs/variables/defaultGlobalConfig.html +0 -1
  521. package/docs/variables/itemLabelPluginServerParams.html +0 -1
  522. package/docs/variables/modelItemLabelPluginServerParams.html +0 -1
  523. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -1
@@ -1,373 +1,370 @@
1
- import * as F from "three";
2
- function nt(s, E = 0, v = 300) {
3
- var Y;
4
- if (!((Y = s.track) != null && Y.path) || s.track.path.length === 0) {
5
- const t = I(s.matrix), n = [
1
+ import * as _ from "three";
2
+ function G(t) {
3
+ const m = [t[12], t[13], t[14]], r = t[0], o = t[4], l = t[8], p = t[1], x = t[5], h = t[9], e = t[2], u = t[6], b = t[10], v = Math.sqrt(r * r + p * p + e * e), q = Math.sqrt(o * o + x * x + u * u), F = Math.sqrt(l * l + h * h + b * b), E = [v, q, F], N = [r / v, o / q, l / F, p / v, x / q, h / F, e / v, u / q, b / F], S = nt(N);
4
+ return { position: m, quaternion: S, scale: E };
5
+ }
6
+ function nt(t) {
7
+ const m = t[0] + t[4] + t[8];
8
+ let r, o = [0, 0, 0, 0];
9
+ return m > 0 ? (r = Math.sqrt(m + 1) * 2, o[3] = 0.25 * r, o[0] = (t[7] - t[5]) / r, o[1] = (t[2] - t[6]) / r, o[2] = (t[3] - t[1]) / r) : t[0] > t[4] && t[0] > t[8] ? (r = Math.sqrt(1 + t[0] - t[4] - t[8]) * 2, o[3] = (t[7] - t[5]) / r, o[0] = 0.25 * r, o[1] = (t[1] + t[3]) / r, o[2] = (t[2] + t[6]) / r) : t[4] > t[8] ? (r = Math.sqrt(1 + t[4] - t[0] - t[8]) * 2, o[3] = (t[2] - t[6]) / r, o[0] = (t[1] + t[3]) / r, o[1] = 0.25 * r, o[2] = (t[5] + t[7]) / r) : (r = Math.sqrt(1 + t[8] - t[0] - t[4]) * 2, o[3] = (t[3] - t[1]) / r, o[0] = (t[2] + t[6]) / r, o[1] = (t[5] + t[7]) / r, o[2] = 0.25 * r), o;
10
+ }
11
+ function it({ x: t, y: m, z: r, order: o = "XYZ" }) {
12
+ const l = Math.cos(t / 2), p = Math.cos(m / 2), x = Math.cos(r / 2), h = Math.sin(t / 2), e = Math.sin(m / 2), u = Math.sin(r / 2);
13
+ let b, v, q, F;
14
+ switch (o) {
15
+ case "XYZ":
16
+ b = h * p * x + l * e * u, v = l * e * x - h * p * u, q = l * p * u + h * e * x, F = l * p * x - h * e * u;
17
+ break;
18
+ default:
19
+ b = h * p * x + l * e * u, v = l * e * x - h * p * u, q = l * p * u + h * e * x, F = l * p * x - h * e * u;
20
+ }
21
+ return [b, v, q, F];
22
+ }
23
+ function J(t) {
24
+ if (typeof t == "string" && !isNaN(Number(t)))
25
+ return [0, -(Number(t) * Math.PI) / 180, 0];
26
+ if (Array.isArray(t) && t.length === 3)
27
+ return [t[0], -t[1], t[2]];
28
+ }
29
+ function W(t, m) {
30
+ if (!m)
31
+ return t;
32
+ const r = it({ x: m[0], y: m[1], z: m[2] }), [o, l, p, x] = r, [h, e, u, b] = t;
33
+ return [
34
+ x * h + o * b + l * u - p * e,
35
+ x * e - o * u + l * b + p * h,
36
+ x * u + o * e - l * h + p * b,
37
+ x * b - o * h - l * e - p * u
38
+ ];
39
+ }
40
+ function ot(t, m) {
41
+ const r = new _.Vector3(m.x - t.x, m.y - t.y, m.z - t.z).normalize(), o = new _.Vector3(0, 0, 1), l = new _.Quaternion();
42
+ return l.setFromUnitVectors(o, r), [l.x, l.y, l.z, l.w];
43
+ }
44
+ function et(t, m = 0, r = 300) {
45
+ var H, L, O;
46
+ if (!((H = t.track) != null && H.path) || t.track.path.length === 0) {
47
+ const i = G(t.matrix), n = [
6
48
  {
7
49
  visible: !0,
8
- timeStamp: 0 + E,
9
- position: t.position,
10
- quaternion: t.quaternion,
11
- scale: t.scale
50
+ timeStamp: 0 + m,
51
+ position: i.position,
52
+ quaternion: i.quaternion,
53
+ scale: i.scale
12
54
  }
13
55
  ];
14
56
  return {
15
- name: s.name || "默认角色",
57
+ name: t.name || "默认角色",
16
58
  type: "model",
17
- model: s.modelUrl,
59
+ model: t.modelUrl,
18
60
  keyframes: n
19
61
  };
20
62
  }
21
- function I(t) {
22
- const n = [t[12], t[13], t[14]], i = t[0], e = t[4], a = t[8], c = t[1], l = t[5], p = t[9], o = t[2], f = t[6], r = t[10], u = Math.sqrt(i * i + c * c + o * o), x = Math.sqrt(e * e + l * l + f * f), m = Math.sqrt(a * a + p * p + r * r), z = [u, x, m], q = [i / u, e / x, a / m, c / u, l / x, p / m, o / u, f / x, r / m], b = H(q);
23
- return { position: n, quaternion: b, scale: z };
24
- }
25
- function H(t) {
26
- const n = t[0] + t[4] + t[8];
27
- let i, e = [0, 0, 0, 0];
28
- return n > 0 ? (i = Math.sqrt(n + 1) * 2, e[3] = 0.25 * i, e[0] = (t[7] - t[5]) / i, e[1] = (t[2] - t[6]) / i, e[2] = (t[3] - t[1]) / i) : t[0] > t[4] && t[0] > t[8] ? (i = Math.sqrt(1 + t[0] - t[4] - t[8]) * 2, e[3] = (t[7] - t[5]) / i, e[0] = 0.25 * i, e[1] = (t[1] + t[3]) / i, e[2] = (t[2] + t[6]) / i) : t[4] > t[8] ? (i = Math.sqrt(1 + t[4] - t[0] - t[8]) * 2, e[3] = (t[2] - t[6]) / i, e[0] = (t[1] + t[3]) / i, e[1] = 0.25 * i, e[2] = (t[5] + t[7]) / i) : (i = Math.sqrt(1 + t[8] - t[0] - t[4]) * 2, e[3] = (t[3] - t[1]) / i, e[0] = (t[2] + t[6]) / i, e[1] = (t[5] + t[7]) / i, e[2] = 0.25 * i), e;
29
- }
30
- function L(t, n, i, e = "XYZ") {
31
- const a = Math.cos(t / 2), c = Math.cos(n / 2), l = Math.cos(i / 2), p = Math.sin(t / 2), o = Math.sin(n / 2), f = Math.sin(i / 2);
32
- let r, u, x, m;
33
- switch (e) {
34
- case "XYZ":
35
- r = p * c * l + a * o * f, u = a * o * l - p * c * f, x = a * c * f + p * o * l, m = a * c * l - p * o * f;
36
- break;
37
- default:
38
- r = p * c * l + a * o * f, u = a * o * l - p * c * f, x = a * c * f + p * o * l, m = a * c * l - p * o * f;
39
- }
40
- return [r, u, x, m];
41
- }
42
- function G(t, n) {
43
- const i = new F.Vector3(
44
- n.x - t.x,
45
- n.y - t.y,
46
- n.z - t.z
47
- ).normalize(), e = new F.Vector3(0, 0, 1), a = new F.Quaternion();
48
- return a.setFromUnitVectors(e, i), [a.x, a.y, a.z, a.w];
49
- }
50
- function N(t) {
51
- if (typeof t == "string" && !isNaN(Number(t)))
52
- return [0, -(Number(t) * Math.PI) / 180, 0];
53
- if (Array.isArray(t) && t.length === 3)
54
- return [t[0], -t[1], t[2]];
55
- }
56
- function j(t, n) {
57
- if (!n)
58
- return t;
59
- const i = L(n[0], n[1], n[2]), [e, a, c, l] = i, [p, o, f, r] = t;
60
- return [
61
- l * p + e * r + a * f - c * o,
62
- l * o - e * f + a * r + c * p,
63
- l * f + e * o - a * p + c * r,
64
- l * r - e * p - a * o - c * f
65
- ];
66
- }
67
- const h = I(s.matrix);
68
- let $ = h.quaternion.slice();
69
- const S = s.track.points.find(
70
- (t) => Math.abs(t.point.x - h.position[0]) < 1e-3 && Math.abs(t.point.y - h.position[1]) < 1e-3 && Math.abs(t.point.z - h.position[2]) < 1e-3
63
+ const o = G(t.matrix);
64
+ let l = o.quaternion.slice();
65
+ const p = t.track.points.find(
66
+ (i) => Math.abs(i.point.x - o.position[0]) < 1e-3 && Math.abs(i.point.y - o.position[1]) < 1e-3 && Math.abs(i.point.z - o.position[2]) < 1e-3
71
67
  );
72
- let P = s.animationUrl, B = s.repeat === "loop";
73
- const d = [];
74
- if (S) {
75
- let t = 0;
76
- for (const n of S.actions)
68
+ let x = t.animationUrl, h = t.repeat === "loop";
69
+ const e = [];
70
+ if (p) {
71
+ let i = 0;
72
+ for (const n of p.actions)
77
73
  if (n.duration > 0) {
78
- const i = typeof n.animationUrl == "string" && n.animationUrl && n.animationUrl.trim() && n.animationUrl !== "none" && n.animationUrl !== "x_turn";
79
- T({
74
+ const a = typeof n.animationUrl == "string" && n.animationUrl && n.animationUrl.trim() && n.animationUrl !== "none" && n.animationUrl !== "x_turn";
75
+ u({
80
76
  visible: !0,
81
- timeStamp: t,
82
- position: h.position,
83
- quaternion: $,
84
- scale: h.scale,
77
+ timeStamp: i,
78
+ position: o.position,
79
+ quaternion: l,
80
+ scale: o.scale,
85
81
  animation: {
86
- url: i ? n.animationUrl : s.animationUrl,
87
- repeat: !i,
88
- needRender: i
82
+ url: a ? n.animationUrl : t.animationUrl,
83
+ repeat: !a && (n == null ? void 0 : n.repeat),
84
+ needRender: a
89
85
  }
90
- }), t += n.duration * 1e3;
86
+ }), i += n.duration * 1e3;
91
87
  }
92
- if (!S.actions.some((n) => n.duration > 0)) {
93
- const n = S.actions.find(
94
- (i) => i.duration > 0 && i.animationUrl !== "none"
95
- );
96
- n ? (P = n.animationUrl, B = !1, console.log(`初始位置与action point重合,使用动作动画: ${P}`)) : console.log("初始位置与action point重合,但没有有效动作,使用默认动画");
88
+ if (!p.actions.some((n) => n.duration > 0)) {
89
+ const n = p.actions.find((a) => a.duration > 0 && a.animationUrl !== "none");
90
+ n ? (x = n.animationUrl, h = !1, console.log(`初始位置与action point重合,使用动作动画: ${x}`)) : console.log("初始位置与action point重合,但没有有效动作,使用默认动画");
97
91
  }
98
92
  } else
99
93
  console.log("初始位置独立,使用默认移动动画");
100
- function T(t) {
101
- var i, e, a;
102
- t.timeStamp += E, t.animation.url === "none" && delete t.animation;
103
- const n = d.findIndex((c) => c.timeStamp === t.timeStamp);
104
- n !== -1 ? ((i = d[n].animation) == null ? void 0 : i.url) !== ((e = t.animation) == null ? void 0 : e.url) && t.animation && ((a = t.animation) == null ? void 0 : a.url) !== s.animationUrl && (d[n] = t) : d.push(t);
94
+ function u(i) {
95
+ var a, y, f;
96
+ i.timeStamp += m, i.animation.url === "none" && delete i.animation;
97
+ const n = e.findIndex(($) => $.timeStamp === i.timeStamp);
98
+ n !== -1 ? ((a = e[n].animation) == null ? void 0 : a.url) !== ((y = i.animation) == null ? void 0 : y.url) && i.animation && ((f = i.animation) == null ? void 0 : f.url) !== t.animationUrl && (e[n] = i) : e.push(i);
105
99
  }
106
- T({
100
+ u({
107
101
  visible: !0,
108
102
  timeStamp: 0,
109
- position: h.position,
110
- quaternion: $,
111
- scale: h.scale,
103
+ position: o.position,
104
+ quaternion: l,
105
+ scale: o.scale,
112
106
  animation: {
113
- url: P,
114
- repeat: B
107
+ url: x,
108
+ repeat: h
115
109
  }
116
110
  });
117
- let _ = 0;
118
- if (S) {
119
- let t = 0;
120
- for (const n of S.actions)
111
+ let b = 0;
112
+ if (p) {
113
+ let i = 0;
114
+ for (const n of p.actions)
121
115
  if (n.duration > 0 || n.animationUrl === "x_turn") {
122
116
  if (n.animationUrl === "x_turn") {
123
117
  n.duration = 1;
124
- const i = N(n.rotation);
125
- i && ($ = j($, i));
118
+ const a = J(n.rotation);
119
+ a && (l = W(l, a));
126
120
  }
127
- t += n.duration * 1e3, _ += n.duration * 1e3, T({
121
+ i += n.duration * 1e3, b += n.duration * 1e3, u({
128
122
  visible: !0,
129
- timeStamp: t,
130
- position: h.position,
131
- quaternion: $,
132
- scale: h.scale,
123
+ timeStamp: i,
124
+ position: o.position,
125
+ quaternion: l,
126
+ scale: o.scale,
133
127
  animation: {
134
- url: s.animationUrl,
128
+ url: t.animationUrl,
135
129
  // 恢复默认移动动画
136
- repeat: s.repeat === "loop"
130
+ repeat: t.repeat === "loop"
137
131
  }
138
132
  });
139
133
  }
140
- console.log(`初始action point处理完成,总延迟: ${_}ms`);
134
+ console.log(`初始action point处理完成,总延迟: ${b}ms`);
141
135
  }
142
- function J(t, n) {
143
- return Math.sqrt(
144
- Math.pow(n.x - t.x, 2) + Math.pow(n.y - t.y, 2) + Math.pow(n.z - t.z, 2)
145
- );
136
+ function v(i, n) {
137
+ return Math.sqrt(Math.pow(n.x - i.x, 2) + Math.pow(n.y - i.y, 2) + Math.pow(n.z - i.z, 2));
146
138
  }
147
- let Q = 0;
148
- const V = [];
149
- for (let t = 0; t < s.track.path.length - 1; t++) {
150
- const n = J(s.track.path[t], s.track.path[t + 1]);
151
- V.push(n), Q += n;
139
+ let q = 0;
140
+ const F = [];
141
+ for (let i = 0; i < t.track.path.length - 1; i++) {
142
+ const n = v(t.track.path[i], t.track.path[i + 1]);
143
+ F.push(n), q += n;
152
144
  }
153
- const R = Q / s.track.duration;
145
+ const E = q / t.track.duration;
154
146
  console.log(`路径分析:
155
- - 总距离: ${Q.toFixed(2)}
156
- - 移动时间: ${s.track.duration}s
157
- - 移动速度: ${R.toFixed(2)} 单位/秒
158
- - 路径段距离: [${V.map((t) => t.toFixed(2)).join(", ")}]`);
159
- let U = _, A = 0;
147
+ - 总距离: ${q.toFixed(2)}
148
+ - 移动时间: ${t.track.duration}s
149
+ - 移动速度: ${E.toFixed(2)} 单位/秒
150
+ - 路径段距离: [${F.map((i) => i.toFixed(2)).join(", ")}]`);
151
+ const N = /* @__PURE__ */ new Map();
152
+ for (const i of t.track.points) {
153
+ const n = `${i.point.x.toFixed(3)}_${i.point.y.toFixed(3)}_${i.point.z.toFixed(3)}`;
154
+ let a = 1 / 0, y = 0;
155
+ for (let f = 0; f < t.track.path.length - 1; f++) {
156
+ const $ = D(i.point, t.track.path[f], t.track.path[f + 1]);
157
+ $ < a && (a = $, y = f);
158
+ }
159
+ N.set(n, y);
160
+ }
161
+ let S = b, j = 0;
160
162
  const C = /* @__PURE__ */ new Set();
161
- for (let t = 0; t < s.track.path.length - 1; t++) {
162
- const n = s.track.path[t], i = s.track.path[t + 1], e = V[t], a = A / Q * s.track.duration * 1e3;
163
- A += e;
164
- const c = A / Q * s.track.duration * 1e3, l = a + U, p = c + U;
163
+ for (let i = 0; i < t.track.path.length - 1; i++) {
164
+ const n = t.track.path[i], a = t.track.path[i + 1], y = F[i], f = j / q * t.track.duration * 1e3;
165
+ j += y;
166
+ const $ = j / q * t.track.duration * 1e3, U = f + S, g = $ + S;
165
167
  console.log(
166
- `路径段${t}: 距离${e.toFixed(2)}, 基础时间${a.toFixed(0)}-${c.toFixed(0)}ms, 实际时间${l.toFixed(0)}-${p.toFixed(0)}ms`
167
- ), T({
168
+ `路径段${i}: 距离${y.toFixed(2)}, 基础时间${f.toFixed(0)}-${$.toFixed(
169
+ 0
170
+ )}ms, 实际时间${U.toFixed(0)}-${g.toFixed(0)}ms`
171
+ ), u({
168
172
  visible: !0,
169
- timeStamp: l,
173
+ timeStamp: U,
170
174
  position: [n.x, n.y, n.z],
171
- quaternion: $,
172
- scale: h.scale,
175
+ quaternion: l,
176
+ scale: o.scale,
173
177
  animation: {
174
- url: s.animationUrl,
178
+ url: t.animationUrl,
175
179
  // 默认移动动画
176
- repeat: s.repeat === "loop"
180
+ repeat: t.repeat === "loop"
177
181
  }
178
182
  });
179
- for (const o of s.track.points) {
180
- if (S && o === S && t === 0) {
183
+ for (const s of t.track.points) {
184
+ if (p && s === p && i === 0) {
181
185
  console.log("跳过初始action point,已在初始关键帧中处理");
182
186
  continue;
183
187
  }
184
- const f = `${o.point.x.toFixed(3)}_${o.point.y.toFixed(3)}_${o.point.z.toFixed(3)}`;
185
- if (C.has(f)) {
186
- console.log(
187
- `跳过已处理的点位: [${o.point.x.toFixed(2)}, ${o.point.y.toFixed(2)}, ${o.point.z.toFixed(2)}]`
188
- );
188
+ const T = `${s.point.x.toFixed(3)}_${s.point.y.toFixed(3)}_${s.point.z.toFixed(3)}`;
189
+ if (C.has(T)) {
190
+ console.log(`跳过已处理的点位: [${s.point.x.toFixed(2)}, ${s.point.y.toFixed(2)}, ${s.point.z.toFixed(2)}]`);
189
191
  continue;
190
192
  }
191
- if (W(o.point, n, i)) {
192
- const r = k(o.point, n, i), u = A - e + e * r, m = u / Q * s.track.duration * 1e3 + U;
193
+ if (N.get(T) === i) {
194
+ const d = k(s.point, n, a), M = j - y + y * d, R = M / q * t.track.duration * 1e3 + S;
193
195
  console.log(
194
- `Action点: 位置[${o.point.x.toFixed(2)}, ${o.point.y.toFixed(2)}, ${o.point.z.toFixed(2)}], 距离${u.toFixed(2)}, 到达时间${m.toFixed(0)}ms`
196
+ `Action点: 位置[${s.point.x.toFixed(2)}, ${s.point.y.toFixed(2)}, ${s.point.z.toFixed(
197
+ 2
198
+ )}], 距离${M.toFixed(2)}, 到达时间${R.toFixed(0)}ms`
195
199
  );
196
- let z = s.animationUrl;
197
- const q = o.actions.find(
198
- (y) => y.duration > 0 && y.animationUrl !== "none"
199
- );
200
- q ? (z = q.animationUrl, q.duration > 2, console.log(`到达动作点,使用该点的动画: ${z}`)) : console.log("动作点没有有效动作,使用默认移动动画"), T({
200
+ let I = t.animationUrl;
201
+ const z = s.actions.find((c) => c.duration > 0 && c.animationUrl !== "none"), A = z == null ? void 0 : z.subAction;
202
+ z ? (I = z.animationUrl, z.duration > 2, console.log(`到达动作点,使用该点的动画: ${I}`)) : console.log("动作点没有有效动作,使用默认移动动画"), u({
201
203
  visible: !0,
202
- timeStamp: m,
203
- position: [o.point.x, o.point.y, o.point.z],
204
- quaternion: $,
205
- scale: h.scale,
204
+ timeStamp: R,
205
+ position: [s.point.x, s.point.y, s.point.z],
206
+ quaternion: l,
207
+ scale: o.scale,
206
208
  animation: {
207
- url: z,
208
- repeat: !1
209
+ url: I,
210
+ item: A != null && A.url ? A : void 0,
211
+ repeat: z == null ? void 0 : z.repeat,
212
+ duration: z == null ? void 0 : z.duration
209
213
  }
210
214
  });
211
- let b = m, w = 0;
212
- for (const y of o.actions)
213
- if (y.duration > 0 || y.animationUrl === "x_turn") {
214
- if (y.animationUrl === "x_turn") {
215
- y.duration = 1;
216
- const Z = N(y.rotation);
217
- Z && ($ = j($, Z));
215
+ let P = R, K = 0;
216
+ for (const c of s.actions)
217
+ if (c.duration > 0 || c.animationUrl === "x_turn") {
218
+ if (c.animationUrl === "x_turn") {
219
+ c.duration = 1;
220
+ const V = J(c.rotation);
221
+ V && (l = W(l, V));
218
222
  }
219
- const M = y.animationUrl !== "none" && y.animationUrl !== "x_turn";
220
- T({
223
+ const B = c.animationUrl !== "none" && c.animationUrl !== "x_turn";
224
+ u({
221
225
  visible: !0,
222
- timeStamp: b,
223
- position: [o.point.x, o.point.y, o.point.z],
224
- quaternion: $,
225
- scale: h.scale,
226
+ timeStamp: P,
227
+ position: [s.point.x, s.point.y, s.point.z],
228
+ quaternion: l,
229
+ scale: o.scale,
226
230
  animation: {
227
- url: M ? y.animationUrl : s.animationUrl,
228
- repeat: !M,
229
- needRender: M
231
+ url: B ? c.animationUrl : t.animationUrl,
232
+ repeat: !B || (c == null ? void 0 : c.repeat),
233
+ needRender: B,
234
+ item: (L = c.subAction) != null && L.url ? c.subAction : void 0,
235
+ duration: c == null ? void 0 : c.duration
230
236
  }
231
- }), b += y.duration * 1e3, w += y.duration * 1e3, T({
237
+ }), P += c.duration * 1e3, K += c.duration * 1e3, u({
232
238
  visible: !0,
233
- timeStamp: b,
234
- position: [o.point.x, o.point.y, o.point.z],
235
- quaternion: $,
236
- scale: h.scale,
239
+ timeStamp: P,
240
+ position: [s.point.x, s.point.y, s.point.z],
241
+ quaternion: l,
242
+ scale: o.scale,
237
243
  animation: {
238
- url: s.animationUrl,
239
- repeat: s.repeat === "loop"
244
+ url: t.animationUrl,
245
+ repeat: t.repeat === "loop",
246
+ item: (O = c.subAction) != null && O.url ? c.subAction : void 0
240
247
  }
241
248
  });
242
249
  }
243
- U += w, C.add(f), console.log(
244
- `点位处理完成,已标记为已处理: [${o.point.x.toFixed(2)}, ${o.point.y.toFixed(2)}, ${o.point.z.toFixed(2)}]`
250
+ S += K, C.add(T), console.log(
251
+ `点位处理完成,已标记为已处理: [${s.point.x.toFixed(2)}, ${s.point.y.toFixed(2)}, ${s.point.z.toFixed(
252
+ 2
253
+ )}]`
245
254
  );
246
255
  }
247
256
  }
248
- if (t === s.track.path.length - 2) {
249
- const o = c + U;
250
- T({
257
+ if (i === t.track.path.length - 2) {
258
+ const s = $ + S;
259
+ u({
251
260
  visible: !0,
252
- timeStamp: o,
253
- position: [i.x, i.y, i.z],
254
- quaternion: $,
255
- scale: h.scale,
261
+ timeStamp: s,
262
+ position: [a.x, a.y, a.z],
263
+ quaternion: l,
264
+ scale: o.scale,
256
265
  animation: {
257
- url: s.animationUrl,
258
- repeat: s.repeat === "loop"
266
+ url: t.animationUrl,
267
+ repeat: t.repeat === "loop"
259
268
  }
260
269
  });
261
270
  }
262
271
  }
263
- function W(t, n, i, e = 0.5) {
264
- return D(t, n, i) <= e;
265
- }
266
- function D(t, n, i) {
267
- const e = t.x - n.x, a = t.y - n.y, c = t.z - n.z, l = i.x - n.x, p = i.y - n.y, o = i.z - n.z, f = e * l + a * p + c * o, r = l * l + p * p + o * o;
268
- if (r === 0)
269
- return Math.sqrt(e * e + a * a + c * c);
270
- let u = f / r;
271
- u < 0 ? u = 0 : u > 1 && (u = 1);
272
- const x = n.x + u * l, m = n.y + u * p, z = n.z + u * o, q = t.x - x, b = t.y - m, w = t.z - z;
273
- return Math.sqrt(q * q + b * b + w * w);
272
+ function D(i, n, a) {
273
+ const y = i.x - n.x, f = i.y - n.y, $ = i.z - n.z, U = a.x - n.x, g = a.y - n.y, s = a.z - n.z, T = y * U + f * g + $ * s, d = U * U + g * g + s * s;
274
+ if (d === 0)
275
+ return Math.sqrt(y * y + f * f + $ * $);
276
+ let M = T / d;
277
+ M < 0 ? M = 0 : M > 1 && (M = 1);
278
+ const w = n.x + M * U, R = n.y + M * g, I = n.z + M * s, z = i.x - w, A = i.y - R, P = i.z - I;
279
+ return Math.sqrt(z * z + A * A + P * P);
274
280
  }
275
- function k(t, n, i) {
276
- const e = i.x - n.x, a = i.y - n.y, c = i.z - n.z, l = e * e + a * a + c * c;
277
- if (l === 0)
281
+ function k(i, n, a) {
282
+ const y = a.x - n.x, f = a.y - n.y, $ = a.z - n.z, U = y * y + f * f + $ * $;
283
+ if (U === 0)
278
284
  return 0;
279
- const p = t.x - n.x, o = t.y - n.y, f = t.z - n.z, r = p * e + o * a + f * c;
280
- return Math.max(0, Math.min(1, r / l));
285
+ const g = i.x - n.x, s = i.y - n.y, T = i.z - n.z, d = g * y + s * f + T * $;
286
+ return Math.max(0, Math.min(1, d / U));
281
287
  }
282
- d.sort((t, n) => t.timeStamp - n.timeStamp);
283
- const K = [];
284
- for (let t = 0; t < d.length - 1; t++) {
285
- const n = d[t], i = d[t + 1];
286
- if (Math.abs(n.position[0] - i.position[0]) + Math.abs(n.position[1] - i.position[1]) + Math.abs(n.position[2] - i.position[2]) > 1e-3) {
287
- console.log(`找到连续的不同位置关键帧: ${t} -> ${t + 1}`);
288
- const a = R * (v / 1e3), c = new F.Vector3(
289
- n.position[0],
290
- n.position[1],
291
- n.position[2]
292
- ), l = new F.Vector3(
293
- i.position[0] - n.position[0],
294
- i.position[1] - n.position[1],
295
- i.position[2] - n.position[2]
296
- ).normalize(), p = c.clone().add(l.multiplyScalar(a));
297
- let o = G(
288
+ e.sort((i, n) => i.timeStamp - n.timeStamp);
289
+ const X = [];
290
+ for (let i = 0; i < e.length - 1; i++) {
291
+ const n = e[i], a = e[i + 1];
292
+ if (Math.abs(n.position[0] - a.position[0]) + Math.abs(n.position[1] - a.position[1]) + Math.abs(n.position[2] - a.position[2]) > 1e-3) {
293
+ console.log(`找到连续的不同位置关键帧: ${i} -> ${i + 1}`);
294
+ const f = E * (r / 1e3), $ = new _.Vector3(n.position[0], n.position[1], n.position[2]), U = new _.Vector3(
295
+ a.position[0] - n.position[0],
296
+ a.position[1] - n.position[1],
297
+ a.position[2] - n.position[2]
298
+ ).normalize(), g = $.clone().add(U.multiplyScalar(f));
299
+ let s = ot(
298
300
  { x: n.position[0], y: n.position[1], z: n.position[2] },
299
- { x: i.position[0], y: i.position[1], z: i.position[2] }
301
+ { x: a.position[0], y: a.position[1], z: a.position[2] }
300
302
  );
301
- const f = {
303
+ const T = {
302
304
  visible: !0,
303
- timeStamp: n.timeStamp + v,
305
+ timeStamp: n.timeStamp + r,
304
306
  // 加上旋转走路的时间
305
- position: [p.x, p.y, p.z],
307
+ position: [g.x, g.y, g.z],
306
308
  // 使用计算后的位置
307
- quaternion: o,
309
+ quaternion: s,
308
310
  // 使用路径方向的quaternion
309
- scale: h.scale
311
+ scale: o.scale
310
312
  };
311
- s.animationUrl !== "none" && (f.animation = {
312
- url: s.animationUrl,
313
- repeat: s.repeat === "loop"
314
- }), K.push(f);
315
- for (let r = 0; r < d.length; r++)
316
- if (d[r].timeStamp > n.timeStamp + v)
317
- if (Math.abs(d[r].position[0] - i.position[0]) < 1e-3 && Math.abs(d[r].position[1] - i.position[1]) < 1e-3 && Math.abs(d[r].position[2] - i.position[2]) < 1e-3)
318
- if (r < d.length - 1) {
319
- const u = d[r].quaternion, x = d[r + 1].quaternion;
320
- if (Math.abs(u[0] - x[0]) + Math.abs(u[1] - x[1]) + Math.abs(u[2] - x[2]) + Math.abs(u[3] - x[3]) < 1e-3)
321
- d[r].quaternion = o.slice(), console.log(`关键帧${r}没有旋转,设置为路径方向`);
313
+ t.animationUrl !== "none" && (T.animation = {
314
+ url: t.animationUrl,
315
+ repeat: t.repeat === "loop"
316
+ }), X.push(T);
317
+ for (let d = 0; d < e.length; d++)
318
+ if (e[d].timeStamp > n.timeStamp + r)
319
+ if (Math.abs(e[d].position[0] - a.position[0]) < 1e-3 && Math.abs(e[d].position[1] - a.position[1]) < 1e-3 && Math.abs(e[d].position[2] - a.position[2]) < 1e-3)
320
+ if (d < e.length - 1) {
321
+ const M = e[d].quaternion, w = e[d + 1].quaternion;
322
+ if (Math.abs(M[0] - w[0]) + Math.abs(M[1] - w[1]) + Math.abs(M[2] - w[2]) + Math.abs(M[3] - w[3]) < 1e-3)
323
+ e[d].quaternion = s.slice(), console.log(`关键帧${d}没有旋转,设置为路径方向`);
322
324
  else {
323
- const z = new F.Quaternion(), q = new F.Quaternion(
324
- u[0],
325
- u[1],
326
- u[2],
327
- u[3]
328
- ), b = new F.Quaternion(
329
- x[0],
330
- x[1],
331
- x[2],
332
- x[3]
333
- ), w = q.clone();
334
- w.conjugate(), z.copy(b).multiply(w), d[r].quaternion = o.slice();
335
- const M = new F.Quaternion(
336
- o[0],
337
- o[1],
338
- o[2],
339
- o[3]
340
- ).clone().multiply(z);
341
- d[r + 1].quaternion = [M.x, M.y, M.z, M.w], o = [M.x, M.y, M.z, M.w], console.log(`关键帧${r}发生旋转,当前帧设置为路径方向,下一帧设置为路径方向+旋转角度,更新路径方向`), r++;
325
+ const I = new _.Quaternion(), z = new _.Quaternion(
326
+ M[0],
327
+ M[1],
328
+ M[2],
329
+ M[3]
330
+ ), A = new _.Quaternion(w[0], w[1], w[2], w[3]), P = z.clone();
331
+ P.conjugate(), I.copy(A).multiply(P), e[d].quaternion = s.slice();
332
+ const c = new _.Quaternion(
333
+ s[0],
334
+ s[1],
335
+ s[2],
336
+ s[3]
337
+ ).clone().multiply(I);
338
+ e[d + 1].quaternion = [c.x, c.y, c.z, c.w], s = [c.x, c.y, c.z, c.w], console.log(`关键帧${d}发生旋转,当前帧设置为路径方向,下一帧设置为路径方向+旋转角度,更新路径方向`), d++;
342
339
  }
343
340
  } else
344
- d[r].quaternion = o.slice(), console.log(`最后一个关键帧${r}设置为路径方向`);
341
+ e[d].quaternion = s.slice(), console.log(`最后一个关键帧${d}设置为路径方向`);
345
342
  else
346
343
  break;
347
- console.log(`添加旋转动作帧,时间戳: ${n.timeStamp + v}ms`);
344
+ console.log(`添加旋转动作帧,时间戳: ${n.timeStamp + r}ms`);
348
345
  }
349
346
  }
350
- d.push(...K), d.sort((t, n) => t.timeStamp - n.timeStamp);
351
- const O = s.track.duration * 1e3, X = O + U, g = d[d.length - 1], tt = d.filter(
352
- (t) => t.timeStamp === 0 && Math.abs(t.position[0] - h.position[0]) < 1e-3 && Math.abs(t.position[1] - h.position[1]) < 1e-3 && Math.abs(t.position[2] - h.position[2]) < 1e-3
347
+ e.push(...X), e.sort((i, n) => i.timeStamp - n.timeStamp);
348
+ const Y = t.track.duration * 1e3, Z = Y + S, Q = e[e.length - 1], tt = e.filter(
349
+ (i) => i.timeStamp === 0 && Math.abs(i.position[0] - o.position[0]) < 1e-3 && Math.abs(i.position[1] - o.position[1]) < 1e-3 && Math.abs(i.position[2] - o.position[2]) < 1e-3
353
350
  );
354
351
  return console.log(`动画转换完成:
355
- - 路径总距离: ${Q.toFixed(2)} 单位
356
- - 基础移动时间: ${O}ms (${s.track.duration}s)
357
- - 移动速度: ${R.toFixed(2)} 单位/秒
358
- - 动作延迟时间: ${U}ms (${(U / 1e3).toFixed(2)}s)
359
- - 计算总时间: ${X}ms (${(X / 1e3).toFixed(2)}s)
360
- - 实际最后时间戳: ${g == null ? void 0 : g.timeStamp}ms (${((g == null ? void 0 : g.timeStamp) / 1e3).toFixed(2)}s)
361
- - 关键帧数量: ${d.length}
352
+ - 路径总距离: ${q.toFixed(2)} 单位
353
+ - 基础移动时间: ${Y}ms (${t.track.duration}s)
354
+ - 移动速度: ${E.toFixed(2)} 单位/秒
355
+ - 动作延迟时间: ${S}ms (${(S / 1e3).toFixed(2)}s)
356
+ - 计算总时间: ${Z}ms (${(Z / 1e3).toFixed(2)}s)
357
+ - 实际最后时间戳: ${Q == null ? void 0 : Q.timeStamp}ms (${((Q == null ? void 0 : Q.timeStamp) / 1e3).toFixed(2)}s)
358
+ - 关键帧数量: ${e.length}
362
359
  - 初始位置关键帧数量: ${tt.length}
363
- - 速度一致性: ${(((g == null ? void 0 : g.timeStamp) - U) / 1e3 / s.track.duration * 100).toFixed(1)}% (100%为完全一致)`), {
364
- id: s.id,
365
- name: s.name || "默认角色",
360
+ - 速度一致性: ${(((Q == null ? void 0 : Q.timeStamp) - S) / 1e3 / t.track.duration * 100).toFixed(1)}% (100%为完全一致)`), {
361
+ id: t.id,
362
+ name: t.name || "默认角色",
366
363
  type: "model",
367
- model: s.modelUrl,
368
- keyframes: d
364
+ model: t.modelUrl,
365
+ keyframes: e
369
366
  };
370
367
  }
371
368
  export {
372
- nt as convertMockToPlayer
369
+ et as convertMockToPlayer
373
370
  };