vis-core 0.31.28 → 0.31.29

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
@@ -136,6 +136,30 @@ export declare class Base extends Camera {
136
136
  showAction(): void;
137
137
  hide(): void;
138
138
  exportScene(): any;
139
+ exportBaseObject(baseObject: BaseObject): string;
140
+ restoreBaseObject(data: string, target?: BaseObject, objectsMap?: {
141
+ Point: Point;
142
+ Arc: typeof Arc;
143
+ Model: Model;
144
+ Plane: Plane;
145
+ PlaneShadow: PlaneShadow;
146
+ Sphere: Sphere;
147
+ Sprite: typeof Sprite;
148
+ Box: Box;
149
+ Circle: Circle;
150
+ Tube: Tube;
151
+ Ring: Ring;
152
+ AmbientLight: AmbientLight;
153
+ DirectionalLight: DirectionalLight;
154
+ PointLight: PointLight;
155
+ SpotLight: SpotLight;
156
+ HemisphereLight: HemisphereLight;
157
+ RectAreaLight: RectAreaLight;
158
+ Node: typeof NodeObject;
159
+ ExtrudePolygon: ExtrudePolygonObject;
160
+ Line: typeof LineObject;
161
+ Group: GroupObject;
162
+ }): Promise<BaseObject<THREE.Object3D<THREE.Object3DEventMap>>>;
139
163
  restoreScene(str: string, objectsMap?: {
140
164
  Point: Point;
141
165
  Arc: typeof Arc;
@@ -991,6 +1015,8 @@ declare class Model extends GroupObject {
991
1015
  * Get all available animation clip names
992
1016
  */
993
1017
  getClipNames(): string[];
1018
+ rebuildFromScene(): void;
1019
+ instantiate(ops?: Parameters<GroupObject['instantiate']>[0]): Promise<this>;
994
1020
  /**
995
1021
  * Update animations - should be called in render loop
996
1022
  * @param deltaTime Time elapsed since last frame
@@ -1000,6 +1026,7 @@ declare class Model extends GroupObject {
1000
1026
  * Dispose of resources including animation mixer
1001
1027
  */
1002
1028
  dispose(): void;
1029
+ private syncPlayingClipNames;
1003
1030
  }
1004
1031
 
1005
1032
  declare class Mountain extends GroupObject {
@@ -1088,6 +1115,8 @@ declare interface Options_4 {
1088
1115
  src?: string;
1089
1116
  autoPlay?: boolean;
1090
1117
  playbackSpeed?: number;
1118
+ serializedClips?: SerializedClip[];
1119
+ playingClipNames?: string[];
1091
1120
  }
1092
1121
 
1093
1122
  declare interface Options_5 {
@@ -1270,6 +1299,8 @@ declare interface SelectedMeta {
1270
1299
  children: SelectedMeta[];
1271
1300
  }
1272
1301
 
1302
+ declare type SerializedClip = ReturnType<(typeof THREE.AnimationClip)['toJSON']>;
1303
+
1273
1304
  declare const sinusoidalInOut: ({ onUpdate, onComplete, backwards, }?: {
1274
1305
  onUpdate?: ((v: number) => void) | undefined;
1275
1306
  onComplete?: (() => void) | undefined;
@@ -1342,7 +1373,7 @@ export { TWEEN }
1342
1373
 
1343
1374
  export { Tween }
1344
1375
 
1345
- export declare const VERSION = "0.31.28";
1376
+ export declare const VERSION = "0.31.29";
1346
1377
 
1347
1378
  export { }
1348
1379