@soonspacejs/plugin-cps-soonmanager 2.11.67 → 2.11.68
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 +3 -3
- package/dist/index.esm.js +4 -4
- package/dist/types.d.ts +4 -5
- package/dist/utils.d.ts +3 -8
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { BaseObject3D, Group, TopologyInfo } from 'soonspacejs';
|
|
|
3
3
|
import { PoiNodeData } from '@soonspacejs/plugin-poi-renderer';
|
|
4
4
|
import EffectPlugin from '@soonspacejs/plugin-effect';
|
|
5
5
|
import SoonFlow from '@soonflow/core';
|
|
6
|
-
import {
|
|
6
|
+
import { AnimationPlayer } from 'umanager-animation-parser';
|
|
7
7
|
import { EventDispatcher } from 'three';
|
|
8
8
|
import { IMetadata, ITreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces, IFlatData, IProgress, IProgressEventMap } from './types';
|
|
9
9
|
declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
|
|
@@ -45,7 +45,7 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
|
|
|
45
45
|
* 自定义属性
|
|
46
46
|
*/
|
|
47
47
|
propertiesData: TPropertiesMap | null;
|
|
48
|
-
objectsAnimations: Map<string, Set<
|
|
48
|
+
objectsAnimations: Map<string, Set<AnimationPlayer>>;
|
|
49
49
|
/**
|
|
50
50
|
* 动画
|
|
51
51
|
*/
|
|
@@ -166,7 +166,7 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
|
|
|
166
166
|
/**
|
|
167
167
|
* 播放动画
|
|
168
168
|
*/
|
|
169
|
-
playObjectAnimation(object: BaseObject3D, animationIndex?: number,
|
|
169
|
+
playObjectAnimation(object: BaseObject3D, animationIndex?: number, { autoStopPrevious, onStart, onUpdate, }?: IPlayAnimationByIdOptions): Promise<boolean>;
|
|
170
170
|
/**
|
|
171
171
|
* 停止对象动画
|
|
172
172
|
*/
|