vis-core 0.31.28 → 0.31.30

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
@@ -104,8 +104,15 @@ export declare class Base extends Camera {
104
104
  re: RoomEnvironment | null;
105
105
  roomEnvMap?: THREE.Texture;
106
106
  visName: string;
107
+ private detectRes?;
107
108
  publicDir: Record<string, string>;
108
109
  constructor(options: BaseOptions);
110
+ private getDetectRes;
111
+ private getQueryOverrides;
112
+ private getEffectiveLogarithmicDepthBuffer;
113
+ private getEffectiveTier;
114
+ private isExtClipControlAvailable;
115
+ private resolveRendererDepthBufferOptions;
109
116
  private showDetectRes;
110
117
  setOptions(options: Record<string, any>): void;
111
118
  syncExtendsOptionToScene(name: string, value: any): void;
@@ -136,6 +143,30 @@ export declare class Base extends Camera {
136
143
  showAction(): void;
137
144
  hide(): void;
138
145
  exportScene(): any;
146
+ exportBaseObject(baseObject: BaseObject): string;
147
+ restoreBaseObject(data: string, target?: BaseObject, objectsMap?: {
148
+ Point: Point;
149
+ Arc: typeof Arc;
150
+ Model: Model;
151
+ Plane: Plane;
152
+ PlaneShadow: PlaneShadow;
153
+ Sphere: Sphere;
154
+ Sprite: typeof Sprite;
155
+ Box: Box;
156
+ Circle: Circle;
157
+ Tube: Tube;
158
+ Ring: Ring;
159
+ AmbientLight: AmbientLight;
160
+ DirectionalLight: DirectionalLight;
161
+ PointLight: PointLight;
162
+ SpotLight: SpotLight;
163
+ HemisphereLight: HemisphereLight;
164
+ RectAreaLight: RectAreaLight;
165
+ Node: typeof NodeObject;
166
+ ExtrudePolygon: ExtrudePolygonObject;
167
+ Line: typeof LineObject;
168
+ Group: GroupObject;
169
+ }): Promise<BaseObject<THREE.Object3D<THREE.Object3DEventMap>>>;
139
170
  restoreScene(str: string, objectsMap?: {
140
171
  Point: Point;
141
172
  Arc: typeof Arc;
@@ -991,6 +1022,8 @@ declare class Model extends GroupObject {
991
1022
  * Get all available animation clip names
992
1023
  */
993
1024
  getClipNames(): string[];
1025
+ rebuildFromScene(): Promise<void>;
1026
+ instantiate(ops?: Parameters<GroupObject['instantiate']>[0]): Promise<this>;
994
1027
  /**
995
1028
  * Update animations - should be called in render loop
996
1029
  * @param deltaTime Time elapsed since last frame
@@ -1000,6 +1033,7 @@ declare class Model extends GroupObject {
1000
1033
  * Dispose of resources including animation mixer
1001
1034
  */
1002
1035
  dispose(): void;
1036
+ private syncPlayingClipNames;
1003
1037
  }
1004
1038
 
1005
1039
  declare class Mountain extends GroupObject {
@@ -1088,6 +1122,8 @@ declare interface Options_4 {
1088
1122
  src?: string;
1089
1123
  autoPlay?: boolean;
1090
1124
  playbackSpeed?: number;
1125
+ serializedClips?: SerializedClip[];
1126
+ playingClipNames?: string[];
1091
1127
  }
1092
1128
 
1093
1129
  declare interface Options_5 {
@@ -1270,6 +1306,8 @@ declare interface SelectedMeta {
1270
1306
  children: SelectedMeta[];
1271
1307
  }
1272
1308
 
1309
+ declare type SerializedClip = ReturnType<(typeof THREE.AnimationClip)['toJSON']>;
1310
+
1273
1311
  declare const sinusoidalInOut: ({ onUpdate, onComplete, backwards, }?: {
1274
1312
  onUpdate?: ((v: number) => void) | undefined;
1275
1313
  onComplete?: (() => void) | undefined;
@@ -1342,7 +1380,7 @@ export { TWEEN }
1342
1380
 
1343
1381
  export { Tween }
1344
1382
 
1345
- export declare const VERSION = "0.31.28";
1383
+ export declare const VERSION = "0.31.30";
1346
1384
 
1347
1385
  export { }
1348
1386