@realsee/dnalogel 3.81.12-alpha.1 → 3.81.12

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 (640) hide show
  1. package/CHANGELOG.md +9 -2
  2. package/dist/DigitalPerformancePlugin/animation-script-adapter.d.ts +20 -0
  3. package/dist/DigitalPerformancePlugin/controller/index.d.ts +12 -4
  4. package/dist/DigitalPerformancePlugin/core/DigitalPerformanceNameplate.d.ts +115 -0
  5. package/dist/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +2 -0
  6. package/dist/DigitalPerformancePlugin/index.d.ts +5 -0
  7. package/dist/DigitalPerformancePlugin/movement-track-classifier.d.ts +52 -0
  8. package/dist/DigitalPerformancePlugin/transform-script-data.d.ts +7 -0
  9. package/dist/DigitalPerformancePlugin/typings/index.d.ts +8 -0
  10. package/dist/DigitalPerformanceV2Plugin/controller/index.d.ts +11 -0
  11. package/dist/DigitalPerformanceV2Plugin/core/Playground.d.ts +4 -0
  12. package/dist/DigitalPerformanceV2Plugin/index.d.ts +2 -0
  13. package/dist/DigitalPerformanceV2Plugin/typings/index.d.ts +9 -0
  14. package/dist/index.cjs.js +109 -97
  15. package/dist/index.js +8708 -7957
  16. package/dist/index.umd.js +99 -87
  17. package/docs/assets/highlight.css +0 -35
  18. package/docs/assets/navigation.js +1 -1
  19. package/docs/assets/search.js +1 -1
  20. package/docs/classes/AnimationScriptAdapterSafetyError.html +4 -0
  21. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
  22. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
  23. package/docs/classes/CSS3DRender.html +2 -2
  24. package/docs/classes/DigitalHuman.html +2 -2
  25. package/docs/classes/DigitalPerformanceV2.DigitalPerformanceNameplate.html +25 -0
  26. package/docs/classes/DigitalPerformanceV2.DigitalPerformanceV2PluginController.html +50 -46
  27. package/docs/classes/DigitalPlayground.html +2 -2
  28. package/docs/classes/DigitalStateMachine.html +2 -2
  29. package/docs/classes/FireControl.html +2 -2
  30. package/docs/classes/FireScenePlayer.html +2 -2
  31. package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
  32. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
  33. package/docs/classes/ModelMakerPluginInstance.html +2 -2
  34. package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
  35. package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
  36. package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
  37. package/docs/classes/ModelRoomLabelController.html +2 -2
  38. package/docs/classes/MoveController.html +2 -2
  39. package/docs/classes/Object3DHelperController.html +2 -2
  40. package/docs/classes/PaintBrush.html +2 -2
  41. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  42. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  43. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  44. package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
  45. package/docs/classes/PanoTagPluginController.html +2 -2
  46. package/docs/classes/Sculpt.html +2 -2
  47. package/docs/classes/Util.BetterTween.html +2 -2
  48. package/docs/classes/Util.FiveDomEvents.html +2 -2
  49. package/docs/classes/Util.FivePuppet.html +3 -3
  50. package/docs/classes/Util.Interval.html +2 -2
  51. package/docs/classes/Util.LegacyPointHelper.html +2 -2
  52. package/docs/classes/Util.LightTag.html +2 -2
  53. package/docs/classes/Util.LineSegments.html +2 -2
  54. package/docs/classes/Util.Magnifier.html +2 -2
  55. package/docs/classes/Util.Object3D.html +2 -2
  56. package/docs/classes/Util.PointDomHelper.html +2 -2
  57. package/docs/classes/Util.PointHelper.html +2 -2
  58. package/docs/classes/Util.PointSelector.html +2 -2
  59. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  60. package/docs/classes/Util.Rectangle.html +2 -2
  61. package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
  62. package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
  63. package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
  64. package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
  65. package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
  66. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
  67. package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
  68. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
  69. package/docs/classes/Util.sculpt.LineMesh.html +2 -2
  70. package/docs/classes/Util.sculpt.PointMesh.html +2 -2
  71. package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
  72. package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
  73. package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
  74. package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
  75. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
  76. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
  77. package/docs/classes/WalkController.html +2 -2
  78. package/docs/enums/CameraMovementEffect.html +2 -2
  79. package/docs/enums/ContentType.html +2 -2
  80. package/docs/enums/DIRECTION.html +2 -2
  81. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  82. package/docs/enums/DimensionType.html +2 -2
  83. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  84. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  85. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  86. package/docs/enums/PointType.html +2 -2
  87. package/docs/enums/Rotation.html +2 -2
  88. package/docs/functions/AreaMakerPlugin.html +1 -1
  89. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  90. package/docs/functions/CameraMovementPlugin.html +2 -2
  91. package/docs/functions/CruisePlugin.html +1 -1
  92. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  93. package/docs/functions/DigitalPerformancePlugin.html +1 -1
  94. package/docs/functions/DigitalPerformanceV2.DigitalPerformanceV2Plugin.html +1 -1
  95. package/docs/functions/DigitalPerformanceV2.normalizeDigitalPerformanceName.html +2 -0
  96. package/docs/functions/FloorplanGuidePlugin.html +1 -1
  97. package/docs/functions/GuideLinePlugin.html +1 -1
  98. package/docs/functions/ItemLabelPlugin.html +1 -1
  99. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  100. package/docs/functions/MeasurePlugin.html +1 -1
  101. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  102. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  103. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  104. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  105. package/docs/functions/ModelMakerPlugin.html +1 -1
  106. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  107. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  108. package/docs/functions/ModelViewPlugin.html +2 -2
  109. package/docs/functions/MovePlugin.html +1 -1
  110. package/docs/functions/Object3DHelperPlugin.html +1 -1
  111. package/docs/functions/PanoCompassPlugin.html +1 -1
  112. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  113. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  114. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  115. package/docs/functions/PanoMeasurePlugin.html +1 -1
  116. package/docs/functions/PanoRulerPlugin.html +2 -2
  117. package/docs/functions/PanoRulerProPlugin.html +2 -2
  118. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  119. package/docs/functions/PanoTagPlugin.html +1 -1
  120. package/docs/functions/PanoVideoPlugin.html +2 -2
  121. package/docs/functions/PipelinePlugin.html +1 -1
  122. package/docs/functions/SculptPlugin.html +2 -2
  123. package/docs/functions/SculptPluginForFive.html +2 -2
  124. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  125. package/docs/functions/Util.awaitNextFrame.html +1 -1
  126. package/docs/functions/Util.blink.html +2 -2
  127. package/docs/functions/Util.blinkWithPreset.html +2 -2
  128. package/docs/functions/Util.bounding.html +1 -1
  129. package/docs/functions/Util.boundingBox.html +1 -1
  130. package/docs/functions/Util.boundingSphere.html +1 -1
  131. package/docs/functions/Util.boxVertex.html +2 -2
  132. package/docs/functions/Util.boxVertexes.html +1 -1
  133. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  134. package/docs/functions/Util.cleanup.html +2 -2
  135. package/docs/functions/Util.convexHull.html +2 -2
  136. package/docs/functions/Util.equal.html +2 -2
  137. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  138. package/docs/functions/Util.generatePolygonGeometry.html +2 -2
  139. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  140. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  141. package/docs/functions/Util.getFrameTime.html +2 -2
  142. package/docs/functions/Util.getGeometryArea.html +1 -1
  143. package/docs/functions/Util.getGeometryInfo.html +1 -1
  144. package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
  145. package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
  146. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  147. package/docs/functions/Util.inside.html +1 -1
  148. package/docs/functions/Util.isModelLike.html +1 -1
  149. package/docs/functions/Util.isNil.html +2 -2
  150. package/docs/functions/Util.isPanoramaLike.html +1 -1
  151. package/docs/functions/Util.lookObject.html +2 -2
  152. package/docs/functions/Util.lookPoint.html +2 -2
  153. package/docs/functions/Util.nextFrame.html +1 -1
  154. package/docs/functions/Util.notNil.html +2 -2
  155. package/docs/functions/Util.reblink.html +2 -2
  156. package/docs/functions/Util.replaceStaticPrefix.html +2 -2
  157. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  158. package/docs/functions/Util.sculpt.createBox.html +1 -1
  159. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  160. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  161. package/docs/functions/Util.sculpt.createLine.html +2 -2
  162. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  163. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  164. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  165. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  166. package/docs/functions/Util.sculpt.transformUnit.html +2 -2
  167. package/docs/functions/Util.sculpt.transformUnitSquare.html +1 -1
  168. package/docs/functions/Util.tag.html +1 -1
  169. package/docs/functions/Util.triangleArea.html +2 -2
  170. package/docs/functions/Util.triangleCenter.html +2 -2
  171. package/docs/functions/Util.tweenProgress.html +1 -1
  172. package/docs/functions/Util.uuid.html +2 -2
  173. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  174. package/docs/functions/Util.worldBounding.html +1 -1
  175. package/docs/functions/Util.worldBoundingBox.html +1 -1
  176. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  177. package/docs/functions/classifyMovementTrack.html +1 -0
  178. package/docs/functions/createPolyline.html +2 -2
  179. package/docs/functions/getAreaBox3.html +2 -2
  180. package/docs/functions/getAreaVertices.html +2 -2
  181. package/docs/functions/getEffectivePointActionDuration.html +1 -0
  182. package/docs/functions/getEntryArea.html +2 -2
  183. package/docs/functions/getMovementActionDuration.html +1 -0
  184. package/docs/functions/hasMovementV2Signal.html +1 -0
  185. package/docs/functions/isConverterSafeMovementMatrix.html +1 -0
  186. package/docs/functions/pluginFlag.html +1 -1
  187. package/docs/functions/transformAnimationDetailToDigitalScript.html +3 -0
  188. package/docs/functions/transformScriptData.html +4 -0
  189. package/docs/functions/validatePolygon.html +1 -1
  190. package/docs/hierarchy.html +1 -1
  191. package/docs/index.html +2 -2
  192. package/docs/interfaces/AnimationScriptAdapterOptions.html +6 -0
  193. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
  194. package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
  195. package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
  196. package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
  197. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
  198. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
  199. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
  200. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
  201. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  202. package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
  203. package/docs/interfaces/BoxAnimationConfig.html +2 -2
  204. package/docs/interfaces/BoxPosition.html +2 -2
  205. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  206. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  207. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  208. package/docs/interfaces/ChapterLocation.html +2 -2
  209. package/docs/interfaces/ChapterTimeInfo.html +2 -2
  210. package/docs/interfaces/ContentTypeMapInterface.html +2 -2
  211. package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
  212. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  213. package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
  214. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
  215. package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
  216. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
  217. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
  218. package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
  219. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  220. package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
  221. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
  222. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
  223. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
  224. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  225. package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
  226. package/docs/interfaces/DigitalCameraKeyframe.html +2 -2
  227. package/docs/interfaces/DigitalCameraPlayer.html +2 -2
  228. package/docs/interfaces/DigitalCameraState.html +2 -2
  229. package/docs/interfaces/DigitalChapter.html +2 -2
  230. package/docs/interfaces/DigitalDataPlayer.html +2 -2
  231. package/docs/interfaces/DigitalDataState.html +2 -2
  232. package/docs/interfaces/DigitalEffectKeyframe.html +2 -2
  233. package/docs/interfaces/DigitalEffectState.html +2 -2
  234. package/docs/interfaces/DigitalItemKeyframe.html +2 -2
  235. package/docs/interfaces/DigitalItemState.html +2 -2
  236. package/docs/interfaces/DigitalModelKeyframe.html +2 -2
  237. package/docs/interfaces/DigitalModelPlayer.html +4 -2
  238. package/docs/interfaces/DigitalModelPlayerEffect.html +2 -2
  239. package/docs/interfaces/DigitalModelPlayerItem.html +2 -2
  240. package/docs/interfaces/DigitalModelState.html +2 -2
  241. package/docs/interfaces/DigitalPerformancePluginConfig.html +7 -2
  242. package/docs/interfaces/DigitalPerformanceV2.CameraState.html +7 -7
  243. package/docs/interfaces/DigitalPerformanceV2.DigitalCameraKeyframe.html +10 -10
  244. package/docs/interfaces/DigitalPerformanceV2.DigitalCameraPlayer.html +3 -3
  245. package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceNameplateBinding.html +5 -0
  246. package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceNameplateOptions.html +22 -0
  247. package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceNameplateRenderContext.html +5 -0
  248. package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceV2PluginConfig.html +11 -5
  249. package/docs/interfaces/DigitalPerformanceV2.GroupChapterTimeInfo.html +7 -7
  250. package/docs/interfaces/DigitalPerformanceV2.GroupProgress.html +9 -9
  251. package/docs/interfaces/DigitalPerformanceV2.V2Progress.html +6 -6
  252. package/docs/interfaces/DigitalScript.html +2 -2
  253. package/docs/interfaces/DigitalSubTitleKeyframe.html +2 -2
  254. package/docs/interfaces/DigitalSubTitlePlayer.html +2 -2
  255. package/docs/interfaces/DigitalSubTitleState.html +2 -2
  256. package/docs/interfaces/ExtendedAnimationConfig.html +2 -2
  257. package/docs/interfaces/FireArea.html +2 -2
  258. package/docs/interfaces/FireModel.html +2 -2
  259. package/docs/interfaces/FireSceneConfig.html +2 -2
  260. package/docs/interfaces/FireSequencePlayerOptions.html +2 -2
  261. package/docs/interfaces/FireSequenceStep.html +2 -2
  262. package/docs/interfaces/FireVector3.html +2 -2
  263. package/docs/interfaces/FloorplanBounding.html +2 -2
  264. package/docs/interfaces/FloorplanData.html +2 -2
  265. package/docs/interfaces/FloorplanEntrance.html +2 -2
  266. package/docs/interfaces/FloorplanExtraObject.html +2 -2
  267. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  268. package/docs/interfaces/FloorplanFloorData.html +2 -2
  269. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  270. package/docs/interfaces/FloorplanObserver.html +2 -2
  271. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  272. package/docs/interfaces/FloorplanPosition.html +2 -2
  273. package/docs/interfaces/FloorplanRoomItem.html +2 -2
  274. package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
  275. package/docs/interfaces/FloorplanServerBounding.html +2 -2
  276. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  277. package/docs/interfaces/FloorplanServerData.html +2 -2
  278. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  279. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  280. package/docs/interfaces/FloorplanServerEntrance.html +2 -2
  281. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  282. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  283. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  284. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  285. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  286. package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
  287. package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
  288. package/docs/interfaces/FloorplanServerStyledFloorplan.html +2 -2
  289. package/docs/interfaces/FloorplanServerStyledImage.html +2 -2
  290. package/docs/interfaces/GlobalProgress.html +2 -2
  291. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  292. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
  293. package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
  294. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
  295. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
  296. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  297. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
  298. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
  299. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  300. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
  301. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  302. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
  303. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  304. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  305. package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
  306. package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
  307. package/docs/interfaces/HelperOffset.html +2 -2
  308. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  309. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  310. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  311. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  312. package/docs/interfaces/LegacyScriptTransformer.html +2 -0
  313. package/docs/interfaces/MinMax.html +2 -2
  314. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  315. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  316. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  317. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  318. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  319. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  320. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  321. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  322. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +2 -2
  323. package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
  324. package/docs/interfaces/ModelMakerPluginType.ModelMakerPluginConfig.html +2 -2
  325. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +2 -2
  326. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
  327. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
  328. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  329. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
  330. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
  331. package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
  332. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +2 -2
  333. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  334. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  335. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  336. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  337. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  338. package/docs/interfaces/Object3DHelperState.html +2 -2
  339. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  340. package/docs/interfaces/PaintBrushAction.html +2 -2
  341. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  342. package/docs/interfaces/PaintBrushState.html +2 -2
  343. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
  344. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  345. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  346. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  347. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
  348. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  349. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
  350. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  351. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  352. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  353. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  354. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  355. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  356. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  357. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  358. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  359. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  360. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  361. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  362. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  363. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  364. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  365. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  366. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
  367. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
  368. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  369. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
  370. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  371. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
  372. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
  373. package/docs/interfaces/PlaybackController.html +2 -2
  374. package/docs/interfaces/PlaybackManager.html +2 -2
  375. package/docs/interfaces/PlaybackSession.html +2 -2
  376. package/docs/interfaces/PluginEventMap.html +2 -2
  377. package/docs/interfaces/Point.html +2 -2
  378. package/docs/interfaces/ProgressBarEvents.html +2 -2
  379. package/docs/interfaces/Room.html +2 -2
  380. package/docs/interfaces/RoomInfo.html +2 -2
  381. package/docs/interfaces/RoomLabel.html +2 -2
  382. package/docs/interfaces/RoomRules.html +1 -1
  383. package/docs/interfaces/Rooms.html +1 -1
  384. package/docs/interfaces/Scissor.html +2 -2
  385. package/docs/interfaces/SculptConfig.html +2 -2
  386. package/docs/interfaces/State.html +2 -2
  387. package/docs/interfaces/StyledFloorplan.html +2 -2
  388. package/docs/interfaces/StyledFloorplanImage.html +2 -2
  389. package/docs/interfaces/StyledFloorplanRoomLabel.html +2 -2
  390. package/docs/interfaces/TagCacheInterface.html +2 -2
  391. package/docs/interfaces/TagConfig.html +2 -2
  392. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  393. package/docs/interfaces/TagIconAnimationConfig.html +2 -2
  394. package/docs/interfaces/TagIconUrl.html +2 -2
  395. package/docs/interfaces/TagObjectGroup.html +2 -2
  396. package/docs/interfaces/TagState.html +2 -2
  397. package/docs/interfaces/TagStyle.html +2 -2
  398. package/docs/interfaces/Tags.html +2 -2
  399. package/docs/interfaces/TemporaryState.html +2 -2
  400. package/docs/interfaces/TraceManager.html +2 -2
  401. package/docs/interfaces/TracePoint.html +2 -2
  402. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  403. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  404. package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
  405. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  406. package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
  407. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
  408. package/docs/interfaces/Util.MagnifierParameter.html +2 -2
  409. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  410. package/docs/interfaces/Util.ObjectInitialState.html +2 -2
  411. package/docs/interfaces/Util.PointIntersection.html +2 -2
  412. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  413. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
  414. package/docs/modules/AreaMakerPluginType.html +2 -2
  415. package/docs/modules/CruisePluginTypes.html +2 -2
  416. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  417. package/docs/modules/DigitalPerformanceV2.html +9 -3
  418. package/docs/modules/GuideLineItem.html +2 -2
  419. package/docs/modules/GuideLineModeItem.html +2 -2
  420. package/docs/modules/GuideLinePluginType.html +2 -2
  421. package/docs/modules/ModelMakerPluginType.html +2 -2
  422. package/docs/modules/PanoVideoPluginType.html +2 -2
  423. package/docs/modules/SculptData.html +2 -2
  424. package/docs/modules/SculptType.html +2 -2
  425. package/docs/modules/Util.html +2 -2
  426. package/docs/modules/Util.sculpt.html +2 -2
  427. package/docs/modules.html +31 -4
  428. package/docs/types/AddObject3DHelperConfig.html +2 -2
  429. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  430. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  431. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  432. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  433. package/docs/types/ArrayPosition.html +1 -1
  434. package/docs/types/AudioAppearance.html +1 -1
  435. package/docs/types/BoxTag.html +2 -2
  436. package/docs/types/CSS3DRenderExportType.html +1 -1
  437. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  438. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  439. package/docs/types/CanonicalMovementTrackPlan.html +1 -0
  440. package/docs/types/ClassFunctionParameters.html +1 -1
  441. package/docs/types/Color.html +1 -1
  442. package/docs/types/ContentTypeConfigKey.html +1 -1
  443. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  444. package/docs/types/ContentTypeMap.html +1 -1
  445. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  446. package/docs/types/Create3DElementReturnType.html +1 -1
  447. package/docs/types/CruisePluginExportType.html +1 -1
  448. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  449. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  450. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  451. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  452. package/docs/types/DeprecatedTagProperty.html +2 -2
  453. package/docs/types/DigitalPerformancePluginExportInterface.html +1 -1
  454. package/docs/types/DigitalPerformancePluginParamsInterface.html +1 -1
  455. package/docs/types/DigitalPerformanceV2.CameraCoordinateSpace.html +2 -2
  456. package/docs/types/DigitalPerformanceV2.CameraTransition.html +2 -2
  457. package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginExportInterface.html +1 -1
  458. package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginParamsInterface.html +1 -1
  459. package/docs/types/DigitalPerformanceV2.V2ProgressListener.html +1 -1
  460. package/docs/types/Direction-1.html +1 -1
  461. package/docs/types/Direction4.html +1 -1
  462. package/docs/types/ElementRenderer.html +2 -2
  463. package/docs/types/FireModelType.html +2 -2
  464. package/docs/types/FireSequenceKind.html +2 -2
  465. package/docs/types/FireSpreadBounds.html +2 -2
  466. package/docs/types/FloorplanAffineTransform.html +1 -1
  467. package/docs/types/FloorplanGuidePluginParameterType.html +1 -1
  468. package/docs/types/FloorplanGuidePluginReturnType.html +1 -1
  469. package/docs/types/FloorplanRuleLabels.html +2 -2
  470. package/docs/types/FloorplanServerAffineTransform.html +1 -1
  471. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  472. package/docs/types/GuideLinePluginExportType.html +1 -1
  473. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  474. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  475. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  476. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  477. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  478. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  479. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  480. package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
  481. package/docs/types/HelperEventMap.html +1 -1
  482. package/docs/types/InternalHelperEventMap.html +1 -1
  483. package/docs/types/KeyframeType.html +1 -1
  484. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  485. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  486. package/docs/types/MaskPosition.html +2 -2
  487. package/docs/types/MaskTag.html +2 -2
  488. package/docs/types/MeasureEndReason.html +1 -1
  489. package/docs/types/MeasurePluginConfig.html +2 -2
  490. package/docs/types/MeasurePluginEventMap.html +1 -1
  491. package/docs/types/MediaData.html +2 -2
  492. package/docs/types/MediaOperations.html +1 -1
  493. package/docs/types/MediaStore.html +1 -1
  494. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  495. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  496. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  497. package/docs/types/ModelId.html +1 -1
  498. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  499. package/docs/types/ModelMakerPluginType.ItemType.html +2 -2
  500. package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
  501. package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
  502. package/docs/types/ModelMakerPluginType.TagOcclusionScope.html +2 -2
  503. package/docs/types/ModelMakerPluginType.TagOcclusionScopeConfig.html +2 -2
  504. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  505. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  506. package/docs/types/MoveArgs.html +2 -2
  507. package/docs/types/MoveOpts.html +2 -2
  508. package/docs/types/MovementConfig.html +1 -0
  509. package/docs/types/MovementPosition.html +1 -0
  510. package/docs/types/MovementTrackClassification.html +1 -0
  511. package/docs/types/MovementTrackConflictReason.html +1 -0
  512. package/docs/types/MovementTrackProjection.html +1 -0
  513. package/docs/types/Object3DHelperEventMap.html +1 -1
  514. package/docs/types/ObjectFit.html +1 -1
  515. package/docs/types/PaintBrushEventMap.html +1 -1
  516. package/docs/types/PanoCompassPluginData.html +1 -1
  517. package/docs/types/PanoCompassPluginExportType.html +1 -1
  518. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  519. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  520. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  521. package/docs/types/PanoIndex.html +1 -1
  522. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  523. package/docs/types/PanoMeasureReturnType.html +1 -1
  524. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  525. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  526. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  527. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  528. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  529. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  530. package/docs/types/PipelinePluginParameterType.html +1 -1
  531. package/docs/types/PipelinePluginReturnType.html +1 -1
  532. package/docs/types/PlaneTag.html +2 -2
  533. package/docs/types/Point2DTag.html +2 -2
  534. package/docs/types/Point3DTag.html +2 -2
  535. package/docs/types/PointAction.html +1 -0
  536. package/docs/types/PointTagInstance.html +1 -1
  537. package/docs/types/PolygonPosition.html +2 -2
  538. package/docs/types/PolygonTag.html +2 -2
  539. package/docs/types/Position.html +1 -1
  540. package/docs/types/PositionFrom.html +1 -1
  541. package/docs/types/ProgressListener.html +1 -1
  542. package/docs/types/RotateArgs.html +2 -2
  543. package/docs/types/RotateOpts.html +2 -2
  544. package/docs/types/RuleLabelsKey.html +1 -1
  545. package/docs/types/RuleLabelsValue.html +1 -1
  546. package/docs/types/ScaleCallback.html +1 -1
  547. package/docs/types/ScalePosition.html +2 -2
  548. package/docs/types/SculptData.BoxData.html +1 -1
  549. package/docs/types/SculptData.CircleData.html +1 -1
  550. package/docs/types/SculptData.CylinderData.html +1 -1
  551. package/docs/types/SculptData.PointData.html +1 -1
  552. package/docs/types/SculptData.PolygonData.html +1 -1
  553. package/docs/types/SculptData.PolylineData.html +1 -1
  554. package/docs/types/SculptData.PrismData.html +1 -1
  555. package/docs/types/SculptData.RectangleData.html +1 -1
  556. package/docs/types/SculptType.Theme.html +2 -2
  557. package/docs/types/StateType.html +1 -1
  558. package/docs/types/StickType.html +1 -1
  559. package/docs/types/Tag.html +2 -2
  560. package/docs/types/Tag2D.html +2 -2
  561. package/docs/types/Tag3D.html +2 -2
  562. package/docs/types/TagClickParams.html +1 -1
  563. package/docs/types/TagConfigByKey.html +1 -1
  564. package/docs/types/TagContentType.html +1 -1
  565. package/docs/types/TagContentTypeMapping.html +1 -1
  566. package/docs/types/TagDimensionType.html +1 -1
  567. package/docs/types/TagElement.html +2 -2
  568. package/docs/types/TagEvents.html +1 -1
  569. package/docs/types/TagGLTFObject.html +1 -1
  570. package/docs/types/TagHooks.html +1 -1
  571. package/docs/types/TagId.html +1 -1
  572. package/docs/types/TagInstance.html +1 -1
  573. package/docs/types/TagPlacement.html +2 -2
  574. package/docs/types/TagPointType.html +2 -2
  575. package/docs/types/TagRendererMap.html +1 -1
  576. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  577. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  578. package/docs/types/TrackPoint.html +1 -0
  579. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  580. package/docs/types/Util.AdherePoint.html +2 -2
  581. package/docs/types/Util.PointSelectorConfig.html +1 -1
  582. package/docs/types/Util.SupportedTarget.html +2 -2
  583. package/docs/types/Util.Target.html +2 -2
  584. package/docs/types/Util.ThreeObject.html +2 -2
  585. package/docs/types/WorkCode.html +1 -1
  586. package/docs/variables/DigitalPerformanceV2.DEFAULT_DIGITAL_PERFORMANCE_NAME_MAX_LENGTH.html +1 -0
  587. package/docs/variables/FIRE_ACTION_DURATION_MS.html +2 -2
  588. package/docs/variables/FIRE_SPREAD_SPEED.html +2 -2
  589. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  590. package/docs/variables/MODEL_SCALE_RANGE.html +2 -2
  591. package/docs/variables/MOVEMENT_OCCURRENCE_EPSILON.html +1 -0
  592. package/docs/variables/MOVEMENT_POSITION_EPSILON.html +1 -0
  593. package/docs/variables/MOVEMENT_SCHEMA_VERSION.html +1 -0
  594. package/docs/variables/PLUGIN.html +1 -1
  595. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  596. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  597. package/docs/variables/Util.ANIME_PRESETS.html +2 -2
  598. package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -2
  599. package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -2
  600. package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -2
  601. package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -2
  602. package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -2
  603. package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -2
  604. package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -2
  605. package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -2
  606. package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -2
  607. package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -2
  608. package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -2
  609. package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -2
  610. package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -2
  611. package/docs/variables/defaultGlobalConfig.html +1 -1
  612. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  613. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  614. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  615. package/libs/DigitalPerformancePlugin/animation-script-adapter.d.ts +20 -0
  616. package/libs/DigitalPerformancePlugin/animation-script-adapter.js +234 -0
  617. package/libs/DigitalPerformancePlugin/controller/index.d.ts +12 -4
  618. package/libs/DigitalPerformancePlugin/controller/index.js +232 -255
  619. package/libs/DigitalPerformancePlugin/core/DigitalPerformanceNameplate.d.ts +115 -0
  620. package/libs/DigitalPerformancePlugin/core/DigitalPerformanceNameplate.js +266 -0
  621. package/libs/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +2 -0
  622. package/libs/DigitalPerformancePlugin/index.d.ts +5 -0
  623. package/libs/DigitalPerformancePlugin/index.js +29 -11
  624. package/libs/DigitalPerformancePlugin/movement-track-classifier.d.ts +52 -0
  625. package/libs/DigitalPerformancePlugin/movement-track-classifier.js +227 -0
  626. package/libs/DigitalPerformancePlugin/transform-script-data.d.ts +7 -0
  627. package/libs/DigitalPerformancePlugin/transform-script-data.js +72 -0
  628. package/libs/DigitalPerformancePlugin/typings/index.d.ts +8 -0
  629. package/libs/DigitalPerformanceV2Plugin/controller/index.d.ts +11 -0
  630. package/libs/DigitalPerformanceV2Plugin/controller/index.js +82 -41
  631. package/libs/DigitalPerformanceV2Plugin/core/Playground.d.ts +4 -0
  632. package/libs/DigitalPerformanceV2Plugin/core/Playground.js +23 -17
  633. package/libs/DigitalPerformanceV2Plugin/index/index.js +7 -3
  634. package/libs/DigitalPerformanceV2Plugin/index.d.ts +2 -0
  635. package/libs/DigitalPerformanceV2Plugin/index.js +14 -5
  636. package/libs/DigitalPerformanceV2Plugin/typings/index.d.ts +9 -0
  637. package/libs/base/BasePlugin.js +5 -5
  638. package/libs/index.js +191 -173
  639. package/libs/shared-utils/logger.js +1 -1
  640. package/package.json +1 -1
@@ -0,0 +1,227 @@
1
+ var b = Object.defineProperty, R = Object.defineProperties;
2
+ var y = Object.getOwnPropertyDescriptors;
3
+ var P = Object.getOwnPropertySymbols;
4
+ var p = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
+ var g = (n, t, i) => t in n ? b(n, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[t] = i, M = (n, t) => {
6
+ for (var i in t || (t = {}))
7
+ p.call(t, i) && g(n, i, t[i]);
8
+ if (P)
9
+ for (var i of P(t))
10
+ x.call(t, i) && g(n, i, t[i]);
11
+ return n;
12
+ }, v = (n, t) => R(n, y(t));
13
+ const H = 2, Q = 1e-3, Y = 1e-9;
14
+ function L(n) {
15
+ return JSON.parse(JSON.stringify(n));
16
+ }
17
+ function T(n) {
18
+ if (!n || typeof n != "object")
19
+ return !1;
20
+ const t = n;
21
+ return Number.isFinite(t.x) && Number.isFinite(t.y) && Number.isFinite(t.z);
22
+ }
23
+ function k(n) {
24
+ if (!n || typeof n != "object")
25
+ return !1;
26
+ const t = n;
27
+ return typeof t.duration == "number" && Number.isFinite(t.duration) && t.duration > 0 && typeof t.animationUrl == "string" && t.animationUrl.trim().length > 0 && (t.repeat === "loop" || t.repeat === "once") && (t.restartOnEnter === void 0 || typeof t.restartOnEnter == "boolean");
28
+ }
29
+ function C(n) {
30
+ if (n === void 0)
31
+ return [];
32
+ if (!Array.isArray(n))
33
+ return;
34
+ const t = [];
35
+ for (const i of n) {
36
+ if (!i || typeof i != "object")
37
+ return;
38
+ const e = L(i);
39
+ if (typeof e.animationUrl != "string" || e.animationUrl.trim().length === 0 || e.duration !== void 0 && (typeof e.duration != "number" || !Number.isFinite(e.duration) || e.duration < 0) || e.repeat !== void 0 && typeof e.repeat != "boolean")
40
+ return;
41
+ t.push(e);
42
+ }
43
+ return t;
44
+ }
45
+ function F(n) {
46
+ return n.animationUrl === "x_turn" ? 1 : typeof n.duration == "number" && Number.isFinite(n.duration) ? n.duration : 0;
47
+ }
48
+ function B(n) {
49
+ return n.reduce((t, i) => t + F(i), 0);
50
+ }
51
+ function A(n, t) {
52
+ const i = t.x - n.x, e = t.y - n.y, r = t.z - n.z;
53
+ return Math.sqrt(i * i + e * e + r * r);
54
+ }
55
+ function V(n, t, i) {
56
+ const e = i.x - t.x, r = i.y - t.y, o = i.z - t.z, a = e * e + r * r + o * o;
57
+ if (!Number.isFinite(a))
58
+ return;
59
+ const c = n.x - t.x, s = n.y - t.y, d = n.z - t.z, E = a === 0 ? 0 : Math.max(0, Math.min(1, (c * e + s * r + d * o) / a)), m = t.x + E * e, _ = t.y + E * r, u = t.z + E * o, f = n.x - m, N = n.y - _, I = n.z - u, l = f * f + N * N + I * I;
60
+ if (!(!Number.isFinite(E) || !Number.isFinite(l)))
61
+ return { t: E, distanceSquared: l };
62
+ }
63
+ function j(n) {
64
+ const t = [...n].sort((o, a) => o.distance - a.distance || o.segmentIndex - a.segmentIndex), i = [];
65
+ let e = [];
66
+ const r = () => {
67
+ if (e.length === 0)
68
+ return;
69
+ const o = e.map(({ segmentIndex: c }) => c).sort((c, s) => c - s);
70
+ o.every(
71
+ (c, s) => s === 0 || c === o[s - 1] + 1
72
+ ) ? i.push(e[0]) : i.push(...e), e = [];
73
+ };
74
+ for (const o of t)
75
+ e.length > 0 && Math.abs(o.distance - e[0].distance) > 1e-9 && r(), e.push(o);
76
+ return r(), i;
77
+ }
78
+ function D(n, t) {
79
+ if (n.length < 2 || t.length < 2 || !n.every(T) || !t.every(T))
80
+ return { kind: "invalid" };
81
+ const i = [], e = [];
82
+ let r = 0;
83
+ for (let u = 0; u < n.length - 1; u++) {
84
+ const f = A(n[u], n[u + 1]);
85
+ if (!Number.isFinite(f))
86
+ return { kind: "invalid" };
87
+ e.push(r), i.push(f), r += f;
88
+ }
89
+ if (!Number.isFinite(r) || r <= 1e-3)
90
+ return { kind: "invalid" };
91
+ const o = [];
92
+ for (const u of t) {
93
+ const f = [];
94
+ let N = 1 / 0;
95
+ for (let O = 0; O < n.length - 1; O++) {
96
+ const S = V(u, n[O], n[O + 1]);
97
+ if (!S)
98
+ return { kind: "invalid" };
99
+ N = Math.min(N, S.distanceSquared), f.push({
100
+ segmentIndex: O,
101
+ distance: e[O] + i[O] * S.t,
102
+ distanceSquared: S.distanceSquared
103
+ });
104
+ }
105
+ if (!Number.isFinite(N) || N > 1e-6)
106
+ return { kind: "invalid" };
107
+ const I = Math.max(1e-6, Math.abs(N) * 1e-9), l = j(
108
+ f.filter(
109
+ (O) => O.distanceSquared <= 1e-6 && O.distanceSquared - N <= I
110
+ )
111
+ );
112
+ if (l.length === 0)
113
+ return { kind: "invalid" };
114
+ o.push(l);
115
+ }
116
+ const a = t.length - 1, c = n.length - 1;
117
+ if (A(t[0], n[0]) > 1e-3 || A(t[a], n[c]) > 1e-3)
118
+ return { kind: "invalid" };
119
+ o[0] = o[0].filter((u) => u.distance <= 1e-3);
120
+ const s = o.length - 1;
121
+ if (o[s] = o[s].filter(
122
+ (u) => Math.abs(u.distance - r) <= 1e-3
123
+ ), o[0].length === 0 || o[s].length === 0)
124
+ return { kind: "invalid" };
125
+ let d = 0, E;
126
+ const m = [], _ = (u, f) => {
127
+ if (!(d > 1)) {
128
+ for (const N of o[u])
129
+ if (!(u > 0 && N.distance <= f) && (m.push(N), u === o.length - 1 ? (d += 1, d === 1 && (E = m.map((I) => M({}, I)))) : _(u + 1, N.distance), m.pop(), d > 1))
130
+ return;
131
+ }
132
+ };
133
+ return _(0, Number.NEGATIVE_INFINITY), d === 0 || !E ? { kind: "invalid" } : d > 1 ? { kind: "ambiguous" } : { kind: "resolved", projections: E.map(({ segmentIndex: u, distance: f }) => ({ segmentIndex: u, distance: f })) };
134
+ }
135
+ function U(n) {
136
+ return n[0] * n[0] + n[1] * n[1] + n[2] * n[2];
137
+ }
138
+ function h(n, t) {
139
+ return n[0] * t[0] + n[1] * t[1] + n[2] * t[2];
140
+ }
141
+ function X(n) {
142
+ if (!Array.isArray(n) || n.length !== 16 || !n.every((c) => typeof c == "number" && Number.isFinite(c)) || Math.abs(n[3]) > 1e-6 || Math.abs(n[7]) > 1e-6 || Math.abs(n[11]) > 1e-6 || Math.abs(n[15] - 1) > 1e-6)
143
+ return !1;
144
+ const t = [
145
+ [n[0], n[1], n[2]],
146
+ [n[4], n[5], n[6]],
147
+ [n[8], n[9], n[10]]
148
+ ], i = [];
149
+ for (const c of t) {
150
+ const s = U(c);
151
+ if (!Number.isFinite(s) || s <= 1e-6 * 1e-6)
152
+ return !1;
153
+ const d = Math.sqrt(s);
154
+ if (!Number.isFinite(d))
155
+ return !1;
156
+ i.push([c[0] / d, c[1] / d, c[2] / d]);
157
+ }
158
+ if (Math.abs(h(i[0], i[1])) > 1e-5 || Math.abs(h(i[0], i[2])) > 1e-5 || Math.abs(h(i[1], i[2])) > 1e-5)
159
+ return !1;
160
+ const [e, r, o] = i, a = e[0] * (r[1] * o[2] - r[2] * o[1]) - r[0] * (e[1] * o[2] - e[2] * o[1]) + o[0] * (e[1] * r[2] - e[2] * r[1]);
161
+ return Number.isFinite(a) && a > 0 && Math.abs(a - 1) <= 1e-5;
162
+ }
163
+ function q(n, t) {
164
+ const i = Math.max(1e-6, 1e-9 * Math.max(Math.abs(n), Math.abs(t)));
165
+ return Math.abs(n - t) <= i;
166
+ }
167
+ function z(n, t) {
168
+ var o;
169
+ const i = t.slice(0, -1).map((a) => a.outgoingMovement), e = i.reduce((a, c) => a + c.duration, 0), r = i[0];
170
+ return typeof ((o = n.track) == null ? void 0 : o.duration) == "number" && Number.isFinite(n.track.duration) && n.track.duration > 0 && q(n.track.duration, e) && n.animationUrl === r.animationUrl.trim() && n.repeat === r.repeat;
171
+ }
172
+ function J(n) {
173
+ const t = n.track, i = t == null ? void 0 : t.path, e = t == null ? void 0 : t.points;
174
+ if (!Array.isArray(i) || i.length < 2 || !i.every(T))
175
+ return { kind: "conflict-invalid", reason: "invalid-path" };
176
+ if (!Array.isArray(e) || e.length < 2 || !e.every((s) => s && typeof s == "object" && T(s.point)))
177
+ return { kind: "conflict-invalid", reason: "invalid-points" };
178
+ if (!X(n.matrix))
179
+ return { kind: "conflict-invalid", reason: "invalid-matrix" };
180
+ const r = [];
181
+ for (let s = 0; s < e.length; s++) {
182
+ const d = e[s], E = C(d.actions);
183
+ if (!E)
184
+ return { kind: "conflict-invalid", reason: "invalid-actions" };
185
+ if (s < e.length - 1) {
186
+ if (!k(d.outgoingMovement))
187
+ return { kind: "conflict-invalid", reason: "invalid-movement" };
188
+ } else if (d.outgoingMovement !== void 0)
189
+ return { kind: "conflict-invalid", reason: "terminal-movement" };
190
+ r.push(v(M({}, L(d)), { actions: E }));
191
+ }
192
+ if (!z(n, r))
193
+ return { kind: "conflict-invalid", reason: "legacy-summary-mismatch" };
194
+ const o = i.map((s) => M({}, s)), a = D(
195
+ o,
196
+ r.map((s) => s.point)
197
+ );
198
+ if (a.kind !== "resolved")
199
+ return { kind: "conflict-invalid", reason: "invalid-projection" };
200
+ const c = { x: n.matrix[12], y: n.matrix[13], z: n.matrix[14] };
201
+ return A(c, r[0].point) > 1e-3 ? { kind: "conflict-invalid", reason: "matrix-origin-mismatch" } : {
202
+ kind: "canonical-v2",
203
+ plan: { path: o, points: r, projections: a.projections }
204
+ };
205
+ }
206
+ function w(n) {
207
+ var r, o;
208
+ const t = n && typeof n == "object" ? n : {}, i = (r = t.track) == null ? void 0 : r.points, e = Array.isArray(i) ? i : [];
209
+ return ((o = t.track) == null ? void 0 : o.schemaVersion) !== void 0 || e.some(
210
+ (a) => a && typeof a == "object" && a.outgoingMovement !== void 0
211
+ );
212
+ }
213
+ function Z(n) {
214
+ var i;
215
+ const t = n && typeof n == "object" ? n : {};
216
+ return w(t) ? ((i = t.track) == null ? void 0 : i.schemaVersion) !== 2 ? { kind: "conflict-invalid", reason: "unsupported-schema" } : J(t) : { kind: "pure-legacy" };
217
+ }
218
+ export {
219
+ Y as MOVEMENT_OCCURRENCE_EPSILON,
220
+ Q as MOVEMENT_POSITION_EPSILON,
221
+ H as MOVEMENT_SCHEMA_VERSION,
222
+ Z as classifyMovementTrack,
223
+ F as getEffectivePointActionDuration,
224
+ B as getMovementActionDuration,
225
+ w as hasMovementV2Signal,
226
+ X as isConverterSafeMovementMatrix
227
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 将 animation detail 转换为 dnalogel Legacy/V2 共用的 canonical script。
3
+ *
4
+ * 这是纯数据转换,不依赖 Five 实例,也不会修改调用方传入的 detail。
5
+ * outgoingMovement 的分段协议由上层 adapter 通过临时 Legacy detail 复用本函数。
6
+ */
7
+ export declare function transformScriptData(res: any, work?: any, totalDelay?: number): any;
@@ -0,0 +1,72 @@
1
+ var N = Object.defineProperty, O = Object.defineProperties;
2
+ var C = Object.getOwnPropertyDescriptors;
3
+ var P = Object.getOwnPropertySymbols;
4
+ var J = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
5
+ var S = (r, t, n) => t in r ? N(r, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[t] = n, m = (r, t) => {
6
+ for (var n in t || (t = {}))
7
+ J.call(t, n) && S(r, n, t[n]);
8
+ if (P)
9
+ for (var n of P(t))
10
+ V.call(t, n) && S(r, n, t[n]);
11
+ return r;
12
+ }, v = (r, t) => O(r, C(t));
13
+ import { Vector3 as x } from "three";
14
+ import { convertMockToPlayer as b } from "./mock.js";
15
+ import { transformPosition as l } from "../shared-utils/five/transformPosition.js";
16
+ function j(r) {
17
+ return JSON.parse(JSON.stringify(r));
18
+ }
19
+ function $(r, t, n = 0) {
20
+ var h, u;
21
+ if (!r || !r.players || !Array.isArray(r.players))
22
+ return r;
23
+ const f = j(r), i = (h = f.players[0]) != null && h.fiveState ? m({}, f.players[0].fiveState) : void 0;
24
+ if (i && i.offset && t) {
25
+ const c = new x(i.offset.x, i.offset.y, i.offset.z), p = l(c, t == null ? void 0 : t.transform);
26
+ i.offset = { x: p.x, y: p.y, z: p.z };
27
+ }
28
+ const y = [
29
+ {
30
+ id: 0,
31
+ name: ((u = f.players[0]) == null ? void 0 : u.chapterName) || "Chapter 1",
32
+ players: []
33
+ }
34
+ ];
35
+ let o = 0;
36
+ return f.players.forEach((c, p) => {
37
+ var d, z, A;
38
+ const a = m({}, c);
39
+ if (t && ((d = a.track) != null && d.path && Array.isArray(a.track.path) && (a.track.path = a.track.path.map((e) => {
40
+ const s = l(new x(e.x, e.y, e.z), t == null ? void 0 : t.transform);
41
+ return { x: s.x, y: s.y, z: s.z };
42
+ })), (z = a.track) != null && z.points && Array.isArray(a.track.points) && (a.track.points = a.track.points.map((e) => {
43
+ if (!e.point)
44
+ return e;
45
+ const s = l(new x(e.point.x, e.point.y, e.point.z), t == null ? void 0 : t.transform);
46
+ return v(m({}, e), {
47
+ point: {
48
+ x: s.x,
49
+ y: s.y,
50
+ z: s.z
51
+ }
52
+ });
53
+ })), Array.isArray(a.matrix) && a.matrix.length >= 16)) {
54
+ const e = new x(a.matrix[12], a.matrix[13], a.matrix[14]), s = l(e, t == null ? void 0 : t.transform);
55
+ a.matrix[12] = s.x, a.matrix[13] = s.y, a.matrix[14] = s.z;
56
+ }
57
+ const g = b(a, n);
58
+ ((A = c.config) == null ? void 0 : A.type) === "simultaneous" || p > 0 && o++, y[o] || y.push({
59
+ id: o,
60
+ name: c.chapterName || `Chapter ${o + 1}`,
61
+ players: []
62
+ }), y[o].players.push(g);
63
+ }), {
64
+ id: f.id,
65
+ name: f.name,
66
+ fiveState: i,
67
+ chapters: y
68
+ };
69
+ }
70
+ export {
71
+ $ as transformScriptData
72
+ };
@@ -1,10 +1,18 @@
1
1
  import * as THREE from 'three';
2
2
  import type { DigitalChapter } from '../core/DigitalStateMachine';
3
+ import type { DigitalPerformanceNameplateOptions } from '../core/DigitalPerformanceNameplate';
3
4
  export type { DigitalScript, DigitalChapter, DigitalModelPlayer, DigitalSubTitlePlayer, DigitalCameraPlayer, DigitalModelKeyframe, DigitalSubTitleKeyframe, DigitalCameraKeyframe, DigitalModelState, DigitalSubTitleState, DigitalCameraState, DigitalModelPlayerItem, DigitalModelPlayerEffect, DigitalEffectKeyframe, DigitalDataState, DigitalDataPlayer, KeyframeType, StateType, } from '../core/DigitalStateMachine';
4
5
  export interface DigitalPerformancePluginConfig {
5
6
  autoPlay?: boolean;
6
7
  loop?: boolean;
7
8
  debug?: boolean;
9
+ /**
10
+ * 是否展示模型头顶的 2D 气泡名牌(默认 true)。
11
+ * 插件会内置挂载到 five canvas 的父容器,调用方无需提供容器,仅需声明是否展示。
12
+ */
13
+ showNameplate?: boolean;
14
+ /** 内置名牌的自定义配置(class / 内联样式 / 文本 / 自定义渲染器等)。仅 showNameplate 为真时生效。 */
15
+ nameplateOptions?: DigitalPerformanceNameplateOptions;
8
16
  }
9
17
  export interface GlobalProgress {
10
18
  currentTime: number;
@@ -1,6 +1,7 @@
1
1
  import type { Five } from '@realsee/five';
2
2
  import type { DigitalPerformanceV2PluginConfig, DigitalCameraKeyframe, DigitalCameraPlayer, CameraTransition, CameraCoordinateSpace, CameraState, GroupChapterTimeInfo, GroupProgress } from '../typings';
3
3
  import { PerformancePlayground } from '../core/Playground';
4
+ import { type AnimationScriptAdapterOptions } from '../../DigitalPerformancePlugin/animation-script-adapter';
4
5
  import type { DigitalScript, DigitalChapter } from '../core/shared';
5
6
  /** 播放进度(当前章节内) */
6
7
  export interface V2Progress {
@@ -80,6 +81,9 @@ export default class DigitalPerformanceV2PluginController {
80
81
  private groupProgressListeners;
81
82
  private keyframesChangedListeners;
82
83
  private currentChapterChangedListeners;
84
+ private nameplate;
85
+ private unsubNameplateRender;
86
+ private unsubNameplateCameraUpdate;
83
87
  private unsubClockTick;
84
88
  /**
85
89
  * 进入编辑时的运镜内存态快照:以章节对象为 key,值为该章节相机关键帧的深拷贝;
@@ -119,6 +123,10 @@ export default class DigitalPerformanceV2PluginController {
119
123
  constructor(five: Five, config?: DigitalPerformanceV2PluginConfig);
120
124
  /** 加载剧本:预加载资源 + 将模型加入 five 场景;autoPlay 时自动播放首章 */
121
125
  loadScript(script: DigitalScript): Promise<void>;
126
+ /**
127
+ * 加载 raw animation detail。转换逻辑由 dnalogel 与 Legacy 插件共用,随后复用 canonical loadScript。
128
+ */
129
+ loadAnimationDetail(detail: unknown, options?: AnimationScriptAdapterOptions): Promise<any>;
122
130
  /** 播放指定章节 */
123
131
  playChapter(chapter: DigitalChapter): Promise<void>;
124
132
  /** 通过索引播放章节 */
@@ -352,6 +360,9 @@ export default class DigitalPerformanceV2PluginController {
352
360
  playing: boolean;
353
361
  currentChapter: DigitalChapter | null;
354
362
  };
363
+ /** 实时修改角色名牌;只更新文本和当前剧本,不重新加载模型/动画。 */
364
+ updateModelName(id: string, value: string): void;
365
+ private syncNameplates;
355
366
  /** 重置播放(保留已加载资源) */
356
367
  reset(): void;
357
368
  /** 销毁插件、释放资源 */
@@ -1,15 +1,15 @@
1
- var R = Object.defineProperty;
2
- var x = Object.getOwnPropertySymbols;
3
- var D = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
4
- var k = (p, e, t) => e in p ? R(p, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[e] = t, g = (p, e) => {
1
+ var L = Object.defineProperty;
2
+ var K = Object.getOwnPropertySymbols;
3
+ var R = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
4
+ var b = (p, e, t) => e in p ? L(p, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[e] = t, g = (p, e) => {
5
5
  for (var t in e || (e = {}))
6
- D.call(e, t) && k(p, t, e[t]);
7
- if (x)
8
- for (var t of x(e))
9
- G.call(e, t) && k(p, t, e[t]);
6
+ R.call(e, t) && b(p, t, e[t]);
7
+ if (K)
8
+ for (var t of K(e))
9
+ D.call(e, t) && b(p, t, e[t]);
10
10
  return p;
11
11
  };
12
- var h = (p, e, t) => (k(p, typeof e != "symbol" ? e + "" : e, t), t);
12
+ var h = (p, e, t) => (b(p, typeof e != "symbol" ? e + "" : e, t), t);
13
13
  var m = (p, e, t) => new Promise((r, a) => {
14
14
  var s = (n) => {
15
15
  try {
@@ -27,8 +27,10 @@ var m = (p, e, t) => new Promise((r, a) => {
27
27
  o((t = t.apply(p, e)).next());
28
28
  });
29
29
  import * as T from "three";
30
- import { PerformancePlayground as A, getChapterModelDuration as I, getChapterDuration as N } from "../core/Playground.js";
31
- import { CameraTrack as V } from "../core/CameraTrack.js";
30
+ import { PerformancePlayground as A, getChapterModelDuration as x, getChapterDuration as G } from "../core/Playground.js";
31
+ import { CameraTrack as O } from "../core/CameraTrack.js";
32
+ import { DigitalPerformanceNameplate as V, normalizeDigitalPerformanceName as z } from "../../DigitalPerformancePlugin/core/DigitalPerformanceNameplate.js";
33
+ import { transformAnimationDetailToDigitalScript as B } from "../../DigitalPerformancePlugin/animation-script-adapter.js";
32
34
  import "../../DigitalPerformancePlugin/core/DigitalPlayground.js";
33
35
  import "@realsee/five/gltf-loader";
34
36
  import "../../DigitalPerformancePlugin/core/DigitalHuman.js";
@@ -39,12 +41,16 @@ import "../core/PerformanceClock.js";
39
41
  import "../core/CameraDirector.js";
40
42
  import "../core/FiveModelCameraBridge.js";
41
43
  import "../core/CameraSampler.js";
42
- const O = "Dnalogel-DigitalPerformanceV2Plugin", L = "five-world";
43
- class $ {
44
+ import "../../DigitalPerformancePlugin/movement-track-classifier.js";
45
+ import "../../DigitalPerformancePlugin/transform-script-data.js";
46
+ import "../../DigitalPerformancePlugin/mock.js";
47
+ import "../../shared-utils/five/transformPosition.js";
48
+ const U = "Dnalogel-DigitalPerformanceV2Plugin", I = "five-world";
49
+ class he {
44
50
  constructor(e, t = {}) {
45
51
  h(this, "five");
46
52
  h(this, "config");
47
- h(this, "NAME", O);
53
+ h(this, "NAME", U);
48
54
  h(this, "playground");
49
55
  h(this, "state", {
50
56
  enabled: !0,
@@ -58,6 +64,9 @@ class $ {
58
64
  h(this, "groupProgressListeners", /* @__PURE__ */ new Set());
59
65
  h(this, "keyframesChangedListeners", /* @__PURE__ */ new Set());
60
66
  h(this, "currentChapterChangedListeners", /* @__PURE__ */ new Set());
67
+ h(this, "nameplate");
68
+ h(this, "unsubNameplateRender", null);
69
+ h(this, "unsubNameplateCameraUpdate", null);
61
70
  h(this, "unsubClockTick", null);
62
71
  /**
63
72
  * 进入编辑时的运镜内存态快照:以章节对象为 key,值为该章节相机关键帧的深拷贝;
@@ -94,13 +103,13 @@ class $ {
94
103
  h(this, "chapterFloorModel", null);
95
104
  /** five 'modeChange' 楼层重放监听的反订阅句柄(chapterFloorMap 启用时挂载,停用/reset/dispose 时清理) */
96
105
  h(this, "unsubFloorModeChange", null);
97
- this.five = e, this.config = g({ autoPlay: !1, loop: !1, debug: !1, showTrace: !1 }, t), this.playground = new A(e, this.config.debug), this.unsubClockTick = this.playground.getClock().onTick(() => this.emitProgress());
106
+ this.five = e, this.config = g({ autoPlay: !1, loop: !1, debug: !1, showTrace: !1, showNameplate: !0 }, t), this.playground = new A(e, this.config.debug), this.nameplate = new V(e), this.unsubNameplateRender = this.playground.onRender(() => this.nameplate.update()), this.unsubNameplateCameraUpdate = this.five.on("cameraUpdate", () => this.nameplate.update()), this.unsubClockTick = this.playground.getClock().onTick(() => this.emitProgress()), this.config.showNameplate !== !1 && this.nameplate.enableAutoMount(this.config.nameplateOptions);
98
107
  }
99
108
  /** 加载剧本:预加载资源 + 将模型加入 five 场景;autoPlay 时自动播放首章 */
100
109
  loadScript(e) {
101
110
  return m(this, null, function* () {
102
111
  var t;
103
- if (this.state.currentScript = e, this.playground.setScript(e), this.groupChapterTimeMapCache = null, this.groupChapterTimeMapCacheScript = null, this.chapterFloorMap = null, yield this.preloadResources(e), this.five && this.five.scene) {
112
+ if (this.state.currentScript = e, this.nameplate.setBindings([]), this.playground.setScript(e), this.groupChapterTimeMapCache = null, this.groupChapterTimeMapCacheScript = null, this.chapterFloorMap = null, yield this.preloadResources(e), this.five && this.five.scene) {
104
113
  yield new Promise((a) => requestAnimationFrame(() => a()));
105
114
  let r = 0;
106
115
  if (e.chapters.forEach((a) => {
@@ -116,10 +125,19 @@ class $ {
116
125
  this.playground.setTraceVisible((t = this.config.showTrace) != null ? t : !1), this.config.autoPlay && e.chapters.length > 0 && (yield this.playChapter(e.chapters[0]));
117
126
  });
118
127
  }
128
+ /**
129
+ * 加载 raw animation detail。转换逻辑由 dnalogel 与 Legacy 插件共用,随后复用 canonical loadScript。
130
+ */
131
+ loadAnimationDetail(r) {
132
+ return m(this, arguments, function* (e, t = {}) {
133
+ const a = B(e, t);
134
+ return yield this.loadScript(a), a;
135
+ });
136
+ }
119
137
  /** 播放指定章节 */
120
138
  playChapter(e) {
121
139
  return m(this, null, function* () {
122
- this.state.currentChapter = e, this.applyChapterFloor(this.getCurrentChapterIndex()), this.state.continuousPlaying = !1, this.state.playing = !0;
140
+ this.state.currentChapter = e, this.syncNameplates(e), this.applyChapterFloor(this.getCurrentChapterIndex()), this.state.continuousPlaying = !1, this.state.playing = !0;
123
141
  try {
124
142
  yield this.playground.playByChapter(e);
125
143
  } finally {
@@ -151,7 +169,7 @@ class $ {
151
169
  try {
152
170
  for (; t >= 0 && t < e.length && this.state.continuousPlaying; ) {
153
171
  let r = 0;
154
- if (this.seekRedirect && this.seekRedirect.index === t && (r = this.seekRedirect.fromTime), this.seekRedirect = null, this.state.currentChapter = e[t], this.applyChapterFloor(t), this.emitProgress(), yield this.playground.playByChapter(e[t], r), this.seekRedirect) {
172
+ if (this.seekRedirect && this.seekRedirect.index === t && (r = this.seekRedirect.fromTime), this.seekRedirect = null, this.state.currentChapter = e[t], this.syncNameplates(e[t]), this.applyChapterFloor(t), this.emitProgress(), yield this.playground.playByChapter(e[t], r), this.seekRedirect) {
155
173
  t = this.seekRedirect.index;
156
174
  continue;
157
175
  }
@@ -383,7 +401,7 @@ class $ {
383
401
  name: (t = e == null ? void 0 : e.name) != null ? t : "camera",
384
402
  type: "camera",
385
403
  keyframes: this.serializeKeyframes(e),
386
- coordinateSpace: L
404
+ coordinateSpace: I
387
405
  }
388
406
  };
389
407
  }
@@ -404,7 +422,7 @@ class $ {
404
422
  name: (s = a.name) != null ? s : "camera",
405
423
  type: "camera",
406
424
  keyframes: this.serializeKeyframes(a),
407
- coordinateSpace: L
425
+ coordinateSpace: I
408
426
  }
409
427
  });
410
428
  }), e;
@@ -422,7 +440,7 @@ class $ {
422
440
  return;
423
441
  const i = t[s], o = e[s];
424
442
  let n = i.players.find((u) => u.type === "camera");
425
- n || (n = { name: (l = o.name) != null ? l : "camera", type: "camera", keyframes: [] }, i.players.push(n)), n.keyframes = [...(c = o.keyframes) != null ? c : []].sort((u, f) => u.timeStamp - f.timeStamp), o.coordinateSpace && (n.coordinateSpace = o.coordinateSpace);
443
+ n || (n = { name: (l = o.name) != null ? l : "camera", type: "camera", keyframes: [] }, i.players.push(n)), n.keyframes = [...(c = o.keyframes) != null ? c : []].sort((u, d) => u.timeStamp - d.timeStamp), o.coordinateSpace && (n.coordinateSpace = o.coordinateSpace);
426
444
  });
427
445
  const r = this.cameraPlayerOf(this.state.currentChapter);
428
446
  r && this.playground.setCameraKeyframes(r.keyframes);
@@ -461,26 +479,26 @@ class $ {
461
479
  * 无任何可用模型几何(未加载/无 model player/包围盒空)时返回 undefined。
462
480
  */
463
481
  deriveChapterModelFramingView(e) {
464
- var d, F, M;
482
+ var f, k, F;
465
483
  const t = this.getChapters();
466
484
  if (e < 0 || e >= t.length)
467
485
  return;
468
486
  const r = t[e], a = new T.Box3();
469
487
  let s = !1;
470
- if (r.players.forEach((S) => {
471
- var E, C, v, K;
472
- if (S.type !== "model")
488
+ if (r.players.forEach((M) => {
489
+ var E, C, v, N;
490
+ if (M.type !== "model")
473
491
  return;
474
- const b = S, P = (v = (C = (E = this.playground) == null ? void 0 : E.loader) == null ? void 0 : C.getDigitalHuman) == null ? void 0 : v.call(C, b.model, b.id), y = P == null ? void 0 : P.container;
492
+ const S = M, P = (v = (C = (E = this.playground) == null ? void 0 : E.loader) == null ? void 0 : C.getDigitalHuman) == null ? void 0 : v.call(C, S.model, S.id), y = P == null ? void 0 : P.container;
475
493
  if (!y)
476
494
  return;
477
- (K = y.updateWorldMatrix) == null || K.call(y, !0, !0);
495
+ (N = y.updateWorldMatrix) == null || N.call(y, !0, !0);
478
496
  const w = new T.Box3().setFromObject(y);
479
497
  w.isEmpty() || (a.union(w), s = !0);
480
498
  }), !s || a.isEmpty())
481
499
  return;
482
- const i = a.getCenter(new T.Vector3()), o = a.getSize(new T.Vector3()).length(), n = (M = (F = (d = this.five).getCurrentState) == null ? void 0 : F.call(d)) != null ? M : {}, l = typeof n.longitude == "number" ? n.longitude : Math.PI / 4, c = typeof n.latitude == "number" ? n.latitude : Math.PI / 5, u = typeof n.fov == "number" && n.fov > 0 ? n.fov : 60, f = this.clamp(o * 2.5, 4, 14);
483
- return { target: i, longitude: l, latitude: c, distance: f, fov: u };
500
+ const i = a.getCenter(new T.Vector3()), o = a.getSize(new T.Vector3()).length(), n = (F = (k = (f = this.five).getCurrentState) == null ? void 0 : k.call(f)) != null ? F : {}, l = typeof n.longitude == "number" ? n.longitude : Math.PI / 4, c = typeof n.latitude == "number" ? n.latitude : Math.PI / 5, u = typeof n.fov == "number" && n.fov > 0 ? n.fov : 60, d = this.clamp(o * 2.5, 4, 14);
501
+ return { target: i, longitude: l, latitude: c, distance: d, fov: u };
484
502
  }
485
503
  /**
486
504
  * 设为当前编辑章节(不开始播放)。该次调用内联动完成:
@@ -493,7 +511,7 @@ class $ {
493
511
  if (e < 0 || e >= t.length)
494
512
  return;
495
513
  const r = t[e];
496
- this.playground.pause(), this.state.playing = !1, this.state.currentChapter = r, this.playground.prepareChapter(r, 0), this.applyChapterFloor(e), this.applyChapterDefaultView(e), this.state.selectedShotIndex = null, this.emitProgress(), this.emitCurrentChapterChanged();
514
+ this.playground.pause(), this.state.playing = !1, this.state.currentChapter = r, this.syncNameplates(r), this.playground.prepareChapter(r, 0), this.applyChapterFloor(e), this.applyChapterDefaultView(e), this.state.selectedShotIndex = null, this.emitProgress(), this.emitCurrentChapterChanged();
497
515
  }
498
516
  /** 当前章节信息:{ index, name, duration };duration 为该章节模型动画时长(排除相机 player) */
499
517
  getCurrentChapterInfo() {
@@ -501,7 +519,7 @@ class $ {
501
519
  return e ? {
502
520
  index: this.getCurrentChapterIndex(),
503
521
  name: e.name,
504
- duration: I(e)
522
+ duration: x(e)
505
523
  } : { index: -1, name: "", duration: 0 };
506
524
  }
507
525
  /** 注册当前章节变更监听(current-chapter-changed);返回反订阅函数 */
@@ -545,7 +563,7 @@ class $ {
545
563
  getProgress() {
546
564
  const e = this.playground.getClock(), t = e.getTime();
547
565
  let r = e.getDuration();
548
- r <= 0 && this.state.currentChapter && (r = N(this.state.currentChapter));
566
+ r <= 0 && this.state.currentChapter && (r = G(this.state.currentChapter));
549
567
  const a = this.getChapters(), s = this.state.currentChapter, i = s ? a.findIndex((o) => o === s || o.name === s.name) : -1;
550
568
  return { currentTime: t, totalTime: r, currentChapterIndex: i, totalChapters: a.length };
551
569
  }
@@ -569,7 +587,7 @@ class $ {
569
587
  const t = this.getChapters(), r = [];
570
588
  let a = 0;
571
589
  for (let s = 0; s < t.length; s++) {
572
- const i = I(t[s]), o = a, n = o + i;
590
+ const i = x(t[s]), o = a, n = o + i;
573
591
  r.push({ index: s, name: t[s].name, startTime: o, endTime: n, duration: i }), a = n;
574
592
  }
575
593
  return this.groupChapterTimeMapCache = r, this.groupChapterTimeMapCacheScript = e, r;
@@ -613,7 +631,7 @@ class $ {
613
631
  */
614
632
  setCurrentChapterForPlayback(e, t) {
615
633
  const r = this.getChapters();
616
- e < 0 || e >= r.length || (this.state.currentChapter = r[e], this.applyChapterFloor(e), this.playground.prepareChapter(r[e], t));
634
+ e < 0 || e >= r.length || (this.state.currentChapter = r[e], this.syncNameplates(r[e]), this.applyChapterFloor(e), this.playground.prepareChapter(r[e], t));
617
635
  }
618
636
  /**
619
637
  * 跳转到组级时间(ms):映射为 (章节 index, 章节内时间),必要时切章后 setTimelineTo。
@@ -673,13 +691,36 @@ class $ {
673
691
  getState() {
674
692
  return { playing: this.state.playing, currentChapter: this.state.currentChapter };
675
693
  }
694
+ /** 实时修改角色名牌;只更新文本和当前剧本,不重新加载模型/动画。 */
695
+ updateModelName(e, t) {
696
+ var a;
697
+ const r = z(t);
698
+ (a = this.state.currentScript) == null || a.chapters.forEach((s) => {
699
+ s.players.forEach((i) => {
700
+ i.type === "model" && i.id === e && (i.name = r);
701
+ });
702
+ }), this.nameplate.updateName(e, r);
703
+ }
704
+ syncNameplates(e = this.state.currentChapter) {
705
+ if (!e) {
706
+ this.nameplate.setBindings([]);
707
+ return;
708
+ }
709
+ const t = [];
710
+ e.players.forEach((r) => {
711
+ if (r.type !== "model")
712
+ return;
713
+ const a = this.playground.loader.getDigitalHuman(r.model, r.id);
714
+ a && t.push({ id: r.id, player: r, model: a.model });
715
+ }), this.nameplate.setBindings(t);
716
+ }
676
717
  /** 重置播放(保留已加载资源) */
677
718
  reset() {
678
- this.playground.reset(), this.state.playing = !1, this.state.continuousPlaying = !1, this.state.currentChapter = null, this.state.selectedShotIndex = null, this.seekRedirect = null, this.chapterFloorMap && (this.showModelFloor(), this.chapterFloorMap = null), this.chapterFloorModel = null, this.unhookFloorModeChange(), this.emitProgress();
719
+ this.playground.reset(), this.state.playing = !1, this.state.continuousPlaying = !1, this.state.currentChapter = null, this.state.selectedShotIndex = null, this.seekRedirect = null, this.nameplate.setBindings([]), this.chapterFloorMap && (this.showModelFloor(), this.chapterFloorMap = null), this.chapterFloorModel = null, this.unhookFloorModeChange(), this.emitProgress();
679
720
  }
680
721
  /** 销毁插件、释放资源 */
681
722
  dispose() {
682
- this.unsubClockTick && (this.unsubClockTick(), this.unsubClockTick = null), this.chapterFloorMap && (this.showModelFloor(), this.chapterFloorMap = null), this.chapterFloorModel = null, this.unhookFloorModeChange(), this.progressListeners.clear(), this.keyframesChangedListeners.clear(), this.currentChapterChangedListeners.clear(), this.groupProgressListeners.clear(), this.cameraEditSnapshot = null, this.playground.dispose();
723
+ this.unsubClockTick && (this.unsubClockTick(), this.unsubClockTick = null), this.chapterFloorMap && (this.showModelFloor(), this.chapterFloorMap = null), this.chapterFloorModel = null, this.unhookFloorModeChange(), this.progressListeners.clear(), this.keyframesChangedListeners.clear(), this.currentChapterChangedListeners.clear(), this.groupProgressListeners.clear(), this.cameraEditSnapshot = null, this.unsubNameplateRender && (this.unsubNameplateRender(), this.unsubNameplateRender = null), this.unsubNameplateCameraUpdate && (this.unsubNameplateCameraUpdate(), this.unsubNameplateCameraUpdate = null), this.nameplate.dispose(), this.playground.dispose();
683
724
  }
684
725
  /** 预加载模型 / 动画 / 道具(复用 Shared_Core 加载) */
685
726
  preloadResources(e) {
@@ -691,14 +732,14 @@ class $ {
691
732
  return;
692
733
  const l = n;
693
734
  t.push(l.model), r.push(n.id), l.keyframes.forEach((c) => {
694
- var f, d;
735
+ var d, f;
695
736
  if (!c.animation)
696
737
  return;
697
738
  a.add(c.animation.url);
698
739
  const u = c.animation.item;
699
740
  u && (s.push(u.url), i.set(u.url, {
700
- position: (f = u.position) != null ? f : [0, 0, 0],
701
- rotation: (d = u.rotation) != null ? d : [0, 0, 0]
741
+ position: (d = u.position) != null ? d : [0, 0, 0],
742
+ rotation: (f = u.rotation) != null ? f : [0, 0, 0]
702
743
  }));
703
744
  });
704
745
  });
@@ -810,7 +851,7 @@ class $ {
810
851
  const r = this.cameraPlayerOf(t[e]);
811
852
  if (!r || r.keyframes.length === 0)
812
853
  return null;
813
- const a = new V();
854
+ const a = new O();
814
855
  return a.setKeyframes(r.keyframes), a;
815
856
  }
816
857
  /** 深拷贝关键帧序列(数组字段亦深拷贝),供快照/还原使用(Mapview 位姿) */
@@ -829,5 +870,5 @@ class $ {
829
870
  }
830
871
  }
831
872
  export {
832
- $ as default
873
+ he as default
833
874
  };