@soonspacejs/plugin-cps-soonmanager 2.9.3 → 2.9.5

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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import SoonSpace, { AnimationOptions, TopologyNodeInfo } from 'soonspacejs';
2
2
  import type { BaseObject3D, TopologyInfo } from 'soonspacejs/types/Library';
3
+ import { Tween } from '@tweenjs/tween.js';
3
4
  import { IMetadata, ITreeData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, Options } from './types';
4
5
  declare class CpsSoonmanagerPlugin {
5
6
  #private;
@@ -31,6 +32,7 @@ declare class CpsSoonmanagerPlugin {
31
32
  * 模型视角
32
33
  */
33
34
  modelVisionsData: TModelVisionsMap | null;
35
+ _objectsAnimations: Map<string, Set<Tween<any>>>;
34
36
  constructor(ssp: SoonSpace, option?: Options);
35
37
  /**
36
38
  * 设置 key
@@ -117,6 +119,10 @@ declare class CpsSoonmanagerPlugin {
117
119
  * 播放动画
118
120
  */
119
121
  playObjectAnimation(object: BaseObject3D, animationIndex?: number, options?: IPlayAnimationByIdOptions): Promise<void>;
122
+ /**
123
+ * 停止对象动画
124
+ */
125
+ stopObjectAnimation(object: BaseObject3D): Promise<void>;
120
126
  /**
121
127
  * 飞向场景视角
122
128
  * @param index