@inweb/viewer-core 27.5.0 → 27.6.1

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.
@@ -13,13 +13,13 @@ export interface IOptions {
13
13
  *
14
14
  * @defaultValue true
15
15
  */
16
- showWCS?: boolean;
16
+ showWCS: boolean;
17
17
  /**
18
18
  * Enable camera animation.
19
19
  *
20
20
  * @defaultValue true
21
21
  */
22
- cameraAnimation?: boolean;
22
+ cameraAnimation: boolean;
23
23
  /**
24
24
  * Enable anti-aliasing. Can be one of:
25
25
  *
@@ -31,72 +31,72 @@ export interface IOptions {
31
31
  *
32
32
  * @defaultValue true
33
33
  */
34
- antialiasing?: boolean | string;
34
+ antialiasing: boolean | string;
35
35
  /**
36
36
  * Show ground shadows below the model.
37
37
  *
38
38
  * @defaultValue false
39
39
  */
40
- groundShadow?: boolean;
40
+ groundShadow: boolean;
41
41
  /**
42
42
  * Enable ambient shadows.
43
43
  *
44
44
  * @defaultValue false
45
45
  */
46
- shadows?: boolean;
46
+ shadows: boolean;
47
47
  /**
48
48
  * Camera speed on X axis.
49
49
  *
50
50
  * @defaultValue 4
51
51
  */
52
- cameraAxisXSpeed?: number;
52
+ cameraAxisXSpeed: number;
53
53
  /**
54
54
  * Camera speed on Y axis.
55
55
  *
56
56
  * @defaultValue 1
57
57
  */
58
- cameraAxisYSpeed?: number;
58
+ cameraAxisYSpeed: number;
59
59
  /**
60
60
  * Enable ambient occlusion.
61
61
  *
62
62
  * @defaultValue false
63
63
  */
64
- ambientOcclusion?: boolean;
64
+ ambientOcclusion: boolean;
65
65
  /**
66
66
  * Enable streaming of drawings from the Open Cloud Server.
67
67
  *
68
68
  * If streaming is disabled, the file/assembly will be loaded in one go. The viewer will only update
69
69
  * once the loading is complete, which may take a while.
70
70
  *
71
- * If streaming is enabled, {@link enablePartialMode | partial streaming} mode may be enabled as well.
71
+ * If streaming is enabled, {@link enablePartialMode | partial streaming} may be enabled as well.
72
72
  *
73
73
  * @defaultValue true
74
74
  */
75
- enableStreamingMode?: boolean;
75
+ enableStreamingMode: boolean;
76
76
  /**
77
- * Enable partial streaming mode to be able open large drawing.
77
+ * Enable partial streaming to be able open large drawing.
78
78
  *
79
- * In partial streaming mode, the viewer keeps only visible objects in memory and loads other objects
80
- * when the camera changes.
79
+ * In partial streaming, the viewer keeps only visible objects in memory and loads other objects when
80
+ * the camera changes.
81
81
  *
82
82
  * Only used if {@link enableStreamingMode | streaming} is enabled. If partial streaming is enabled,
83
83
  * then {@link sceneGraph | scene graph} will be disabled.
84
84
  *
85
85
  * @defaultValue false
86
86
  */
87
- enablePartialMode?: boolean;
87
+ enablePartialMode: boolean;
88
88
  /**
89
89
  * The size of the memory buffer for graphics data, in bytes.
90
90
  *
91
91
  * @defaultValue 3294967296
92
92
  */
93
- memoryLimit?: number;
93
+ memoryLimit: number;
94
94
  /**
95
95
  * Deprecated since `27.5`. Use {@link sectionFillColor} instead.
96
96
  *
97
97
  * @deprecated
98
98
  */
99
- cuttingPlaneFillColor?: RGB;
99
+ cuttingPlaneFillColor: RGB;
100
100
  /**
101
101
  * Show solid fill on section caps.
102
102
  *
@@ -104,13 +104,13 @@ export interface IOptions {
104
104
  *
105
105
  * @defaultValue true
106
106
  */
107
- enableSectionFill?: boolean;
107
+ enableSectionFill: boolean;
108
108
  /**
109
109
  * Section cap fill color.
110
110
  *
111
111
  * @defaultValue { red: 0xff, green: 0x98, blue: 0x00 }
112
112
  */
113
- sectionFillColor?: {
113
+ sectionFillColor: {
114
114
  r: number;
115
115
  g: number;
116
116
  b: number;
@@ -123,19 +123,19 @@ export interface IOptions {
123
123
  *
124
124
  * @defaultValue false
125
125
  */
126
- sectionUseObjectColor?: boolean;
126
+ sectionUseObjectColor: boolean;
127
127
  /**
128
128
  * Overlay a hatch pattern on top of the section fill.
129
129
  *
130
130
  * @defaultValue true
131
131
  */
132
- enableSectionHatch?: boolean;
132
+ enableSectionHatch: boolean;
133
133
  /**
134
134
  * Hatch line color used on top of the section fill.
135
135
  *
136
136
  * @defaultValue { red: 0x4b, green: 0x4c, blue: 0x35 }
137
137
  */
138
- sectionHatchColor?: {
138
+ sectionHatchColor: {
139
139
  r: number;
140
140
  g: number;
141
141
  b: number;
@@ -147,19 +147,19 @@ export interface IOptions {
147
147
  *
148
148
  * @defaultValue 8
149
149
  */
150
- sectionHatchScale?: number;
150
+ sectionHatchScale: number;
151
151
  /**
152
152
  * Draw the outline contour along the section boundary.
153
153
  *
154
154
  * @defaultValue true
155
155
  */
156
- enableSectionOutline?: boolean;
156
+ enableSectionOutline: boolean;
157
157
  /**
158
158
  * Color of the section outline contour.
159
159
  *
160
160
  * @defaultValue { red: 0, green: 0, blue: 0 }
161
161
  */
162
- sectionOutlineColor?: {
162
+ sectionOutlineColor: {
163
163
  r: number;
164
164
  g: number;
165
165
  b: number;
@@ -169,11 +169,11 @@ export interface IOptions {
169
169
  *
170
170
  * @defaultValue 2
171
171
  */
172
- sectionOutlineWidth?: number;
172
+ sectionOutlineWidth: number;
173
173
  /**
174
174
  * Edges highlight color.
175
175
  */
176
- edgesColor?: {
176
+ edgesColor: {
177
177
  r: number;
178
178
  g: number;
179
179
  b: number;
@@ -181,7 +181,7 @@ export interface IOptions {
181
181
  /**
182
182
  * Faces highlight color.
183
183
  */
184
- facesColor?: {
184
+ facesColor: {
185
185
  r: number;
186
186
  g: number;
187
187
  b: number;
@@ -189,28 +189,28 @@ export interface IOptions {
189
189
  /**
190
190
  * Show highlighted edges.
191
191
  */
192
- edgesVisibility?: boolean;
192
+ edgesVisibility: boolean;
193
193
  /**
194
194
  * Show highlighted edges over drawing.
195
195
  */
196
- edgesOverlap?: boolean;
196
+ edgesOverlap: boolean;
197
197
  /**
198
198
  * Show highlighted faces over drawing.
199
199
  */
200
- facesOverlap?: boolean;
200
+ facesOverlap: boolean;
201
201
  /**
202
202
  * Highlighted faces transparency value, from 0 to 255.
203
203
  */
204
- facesTransparancy?: number;
204
+ facesTransparancy: number;
205
205
  /**
206
206
  * Enable custom highlight settings.
207
207
  */
208
- enableCustomHighlight?: boolean;
208
+ enableCustomHighlight: boolean;
209
209
  /**
210
210
  * Enable scene graph.
211
211
  *
212
212
  * Scene graph increases perfomance improvement, but consumes memory. If scene graph is enabled, then
213
- * {@link enablePartialMode | partial streaming} mode will be disabled.
213
+ * {@link enablePartialMode | partial streaming} will be disabled.
214
214
  */
215
215
  sceneGraph: boolean;
216
216
  /**
@@ -244,7 +244,7 @@ export interface IOptions {
244
244
  * - `vsfx` - `VSFX` (default), for opening a file in `VisualizeJS` viewer.
245
245
  * - `gltf` - `glTF`, for opening a file in `Three.js` viewer.
246
246
  */
247
- geometryType?: string;
247
+ geometryType: string;
248
248
  /**
249
249
  * Unit of measurement for the ruler tool (distance measurements).
250
250
  *
@@ -268,7 +268,7 @@ export interface IOptions {
268
268
  *
269
269
  * @defaultValue "Default"
270
270
  */
271
- rulerUnit?: string;
271
+ rulerUnit: string;
272
272
  /**
273
273
  * Number of decimal places to display in ruler measurements.
274
274
  *
@@ -283,7 +283,7 @@ export interface IOptions {
283
283
  *
284
284
  * @defaultValue 2
285
285
  */
286
- rulerPrecision?: any;
286
+ rulerPrecision: "Default" | "Auto" | number;
287
287
  /**
288
288
  * Camera projection mode:
289
289
  *
@@ -292,7 +292,7 @@ export interface IOptions {
292
292
  *
293
293
  * @defaultValue "perspective"
294
294
  */
295
- cameraMode?: CameraMode;
295
+ cameraMode: CameraMode;
296
296
  /**
297
297
  * Default MIME type for snapshot images.
298
298
  *
@@ -304,7 +304,7 @@ export interface IOptions {
304
304
  *
305
305
  * @defaultValue "image/jpeg"
306
306
  */
307
- snapshotMimeType?: string;
307
+ snapshotMimeType: string;
308
308
  /**
309
309
  * Default quality level for snapshot images when using lossy formats (JPEG, WebP).
310
310
  *
@@ -318,12 +318,6 @@ export interface IOptions {
318
318
  *
319
319
  * @defaultValue 0.25
320
320
  */
321
- snapshotQuality?: number;
322
- /**
323
- * Resets options to default values.
324
- *
325
- * @param fields - Name of fields to be reset.
326
- */
327
- resetToDefaults?: (fields?: string[]) => void;
321
+ snapshotQuality: number;
328
322
  }
329
323
  export declare function defaultOptions(): IOptions;
@@ -1,11 +1,15 @@
1
- import { EventEmitter2 } from "@inweb/eventemitter2";
1
+ import { IEventEmitter } from "@inweb/eventemitter2";
2
2
  import { CameraMode, IOptions, RGB } from "./IOptions";
3
3
  export declare class Options implements IOptions {
4
- protected _emitter?: EventEmitter2;
4
+ protected _emitter?: IEventEmitter;
5
5
  protected _data: IOptions;
6
- constructor(emitter?: EventEmitter2);
6
+ protected _defaults: IOptions;
7
+ protected _updateCount: number;
8
+ constructor(emitter?: IEventEmitter);
7
9
  static defaults(): IOptions;
8
10
  change(): void;
11
+ beginUpdate(): void;
12
+ endUpdate(): void;
9
13
  saveToStorage(): void;
10
14
  loadFromStorage(): void;
11
15
  /**
@@ -13,9 +17,11 @@ export declare class Options implements IOptions {
13
17
  *
14
18
  * @param fields - Name of fields to be reset. Specify `undefined` to reset all.
15
19
  */
16
- resetToDefaults(fields?: string[]): void;
20
+ resetToDefaults(fields?: string[], defaults?: IOptions): void;
21
+ setProperty<K extends keyof IOptions>(key: K, value?: IOptions[K], accept?: boolean): void;
22
+ isValidValue(key: keyof IOptions, value: unknown): boolean;
17
23
  get data(): IOptions;
18
- set data(value: IOptions);
24
+ set data(value: Partial<IOptions>);
19
25
  get showWCS(): boolean;
20
26
  set showWCS(value: boolean);
21
27
  get cameraAnimation(): boolean;
@@ -126,8 +132,12 @@ export declare class Options implements IOptions {
126
132
  set geometryType(value: string);
127
133
  get rulerUnit(): string;
128
134
  set rulerUnit(value: string);
129
- get rulerPrecision(): any;
130
- set rulerPrecision(value: any);
135
+ get rulerPrecision(): "Default" | "Auto" | number;
136
+ set rulerPrecision(value: "Default" | "Auto" | number);
131
137
  get cameraMode(): CameraMode;
132
138
  set cameraMode(value: CameraMode);
139
+ get snapshotMimeType(): string;
140
+ set snapshotMimeType(value: string);
141
+ get snapshotQuality(): number;
142
+ set snapshotQuality(value: number);
133
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inweb/viewer-core",
3
- "version": "27.5.0",
3
+ "version": "27.6.1",
4
4
  "description": "3D CAD and BIM data Viewer core",
5
5
  "homepage": "https://cloud.opendesign.com/docs/index.html",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -26,7 +26,7 @@
26
26
  "test": "karma start karma.conf.js"
27
27
  },
28
28
  "dependencies": {
29
- "@inweb/client": "~27.5.0",
30
- "@inweb/eventemitter2": "~27.5.0"
29
+ "@inweb/client": "~27.6.1",
30
+ "@inweb/eventemitter2": "~27.6.1"
31
31
  }
32
32
  }
@@ -28,8 +28,7 @@ export class Loader implements ILoader {
28
28
  public abortController: AbortController = new AbortController();
29
29
 
30
30
  dispose(): void {
31
- this.abortController.abort();
32
- this.abortController = undefined;
31
+ this.cancel();
33
32
  }
34
33
 
35
34
  isSupport(file: FileSource, format?: string): boolean {
@@ -53,9 +52,9 @@ export class Loader implements ILoader {
53
52
  extractFileName(file: FileSource): string {
54
53
  const regex = /[^/\\?#:]+(?=\?|#|$)/;
55
54
 
56
- if (typeof file === "string") return (file.match(regex) || [])[0];
57
- else if (file instanceof globalThis.File) return (file.name.match(regex) || [])[0];
55
+ if (typeof file === "string") return (file.match(regex) || [])[0] || "";
56
+ else if (file instanceof globalThis.File) return (file.name.match(regex) || [])[0] || "";
58
57
 
59
- return undefined;
58
+ return "";
60
59
  }
61
60
  }
@@ -42,7 +42,7 @@ class Loaders implements ILoadersRegistry {
42
42
  }
43
43
 
44
44
  createLoader(viewer: IViewer, file: FileSource, format?: string): ILoader | null {
45
- let result: ILoader = null;
45
+ let result: ILoader | null = null;
46
46
  this._providers.forEach((provider, key) => {
47
47
  const loader = provider(viewer);
48
48
  if (loader.isSupport(file, format)) {
@@ -38,14 +38,14 @@ export interface IOptions {
38
38
  *
39
39
  * @defaultValue true
40
40
  */
41
- showWCS?: boolean;
41
+ showWCS: boolean;
42
42
 
43
43
  /**
44
44
  * Enable camera animation.
45
45
  *
46
46
  * @defaultValue true
47
47
  */
48
- cameraAnimation?: boolean;
48
+ cameraAnimation: boolean;
49
49
 
50
50
  /**
51
51
  * Enable anti-aliasing. Can be one of:
@@ -58,42 +58,42 @@ export interface IOptions {
58
58
  *
59
59
  * @defaultValue true
60
60
  */
61
- antialiasing?: boolean | string;
61
+ antialiasing: boolean | string;
62
62
 
63
63
  /**
64
64
  * Show ground shadows below the model.
65
65
  *
66
66
  * @defaultValue false
67
67
  */
68
- groundShadow?: boolean;
68
+ groundShadow: boolean;
69
69
 
70
70
  /**
71
71
  * Enable ambient shadows.
72
72
  *
73
73
  * @defaultValue false
74
74
  */
75
- shadows?: boolean;
75
+ shadows: boolean;
76
76
 
77
77
  /**
78
78
  * Camera speed on X axis.
79
79
  *
80
80
  * @defaultValue 4
81
81
  */
82
- cameraAxisXSpeed?: number;
82
+ cameraAxisXSpeed: number;
83
83
 
84
84
  /**
85
85
  * Camera speed on Y axis.
86
86
  *
87
87
  * @defaultValue 1
88
88
  */
89
- cameraAxisYSpeed?: number;
89
+ cameraAxisYSpeed: number;
90
90
 
91
91
  /**
92
92
  * Enable ambient occlusion.
93
93
  *
94
94
  * @defaultValue false
95
95
  */
96
- ambientOcclusion?: boolean;
96
+ ambientOcclusion: boolean;
97
97
 
98
98
  /**
99
99
  * Enable streaming of drawings from the Open Cloud Server.
@@ -101,38 +101,38 @@ export interface IOptions {
101
101
  * If streaming is disabled, the file/assembly will be loaded in one go. The viewer will only update
102
102
  * once the loading is complete, which may take a while.
103
103
  *
104
- * If streaming is enabled, {@link enablePartialMode | partial streaming} mode may be enabled as well.
104
+ * If streaming is enabled, {@link enablePartialMode | partial streaming} may be enabled as well.
105
105
  *
106
106
  * @defaultValue true
107
107
  */
108
- enableStreamingMode?: boolean;
108
+ enableStreamingMode: boolean;
109
109
 
110
110
  /**
111
- * Enable partial streaming mode to be able open large drawing.
111
+ * Enable partial streaming to be able open large drawing.
112
112
  *
113
- * In partial streaming mode, the viewer keeps only visible objects in memory and loads other objects
114
- * when the camera changes.
113
+ * In partial streaming, the viewer keeps only visible objects in memory and loads other objects when
114
+ * the camera changes.
115
115
  *
116
116
  * Only used if {@link enableStreamingMode | streaming} is enabled. If partial streaming is enabled,
117
117
  * then {@link sceneGraph | scene graph} will be disabled.
118
118
  *
119
119
  * @defaultValue false
120
120
  */
121
- enablePartialMode?: boolean;
121
+ enablePartialMode: boolean;
122
122
 
123
123
  /**
124
124
  * The size of the memory buffer for graphics data, in bytes.
125
125
  *
126
126
  * @defaultValue 3294967296
127
127
  */
128
- memoryLimit?: number;
128
+ memoryLimit: number;
129
129
 
130
130
  /**
131
131
  * Deprecated since `27.5`. Use {@link sectionFillColor} instead.
132
132
  *
133
133
  * @deprecated
134
134
  */
135
- cuttingPlaneFillColor?: RGB;
135
+ cuttingPlaneFillColor: RGB;
136
136
 
137
137
  /**
138
138
  * Show solid fill on section caps.
@@ -141,14 +141,14 @@ export interface IOptions {
141
141
  *
142
142
  * @defaultValue true
143
143
  */
144
- enableSectionFill?: boolean;
144
+ enableSectionFill: boolean;
145
145
 
146
146
  /**
147
147
  * Section cap fill color.
148
148
  *
149
149
  * @defaultValue { red: 0xff, green: 0x98, blue: 0x00 }
150
150
  */
151
- sectionFillColor?: { r: number; g: number; b: number };
151
+ sectionFillColor: { r: number; g: number; b: number };
152
152
 
153
153
  /**
154
154
  * Use the intersected object's color for the section cap fill.
@@ -158,21 +158,21 @@ export interface IOptions {
158
158
  *
159
159
  * @defaultValue false
160
160
  */
161
- sectionUseObjectColor?: boolean;
161
+ sectionUseObjectColor: boolean;
162
162
 
163
163
  /**
164
164
  * Overlay a hatch pattern on top of the section fill.
165
165
  *
166
166
  * @defaultValue true
167
167
  */
168
- enableSectionHatch?: boolean;
168
+ enableSectionHatch: boolean;
169
169
 
170
170
  /**
171
171
  * Hatch line color used on top of the section fill.
172
172
  *
173
173
  * @defaultValue { red: 0x4b, green: 0x4c, blue: 0x35 }
174
174
  */
175
- sectionHatchColor?: { r: number; g: number; b: number };
175
+ sectionHatchColor: { r: number; g: number; b: number };
176
176
 
177
177
  /**
178
178
  * Distance between hatch lines, in screen-space pixels.
@@ -181,69 +181,69 @@ export interface IOptions {
181
181
  *
182
182
  * @defaultValue 8
183
183
  */
184
- sectionHatchScale?: number;
184
+ sectionHatchScale: number;
185
185
 
186
186
  /**
187
187
  * Draw the outline contour along the section boundary.
188
188
  *
189
189
  * @defaultValue true
190
190
  */
191
- enableSectionOutline?: boolean;
191
+ enableSectionOutline: boolean;
192
192
 
193
193
  /**
194
194
  * Color of the section outline contour.
195
195
  *
196
196
  * @defaultValue { red: 0, green: 0, blue: 0 }
197
197
  */
198
- sectionOutlineColor?: { r: number; g: number; b: number };
198
+ sectionOutlineColor: { r: number; g: number; b: number };
199
199
 
200
200
  /**
201
201
  * Width of the section outline contour, in pixels.
202
202
  *
203
203
  * @defaultValue 2
204
204
  */
205
- sectionOutlineWidth?: number;
205
+ sectionOutlineWidth: number;
206
206
 
207
207
  /**
208
208
  * Edges highlight color.
209
209
  */
210
- edgesColor?: { r: number; g: number; b: number };
210
+ edgesColor: { r: number; g: number; b: number };
211
211
 
212
212
  /**
213
213
  * Faces highlight color.
214
214
  */
215
- facesColor?: { r: number; g: number; b: number };
215
+ facesColor: { r: number; g: number; b: number };
216
216
 
217
217
  /**
218
218
  * Show highlighted edges.
219
219
  */
220
- edgesVisibility?: boolean;
220
+ edgesVisibility: boolean;
221
221
 
222
222
  /**
223
223
  * Show highlighted edges over drawing.
224
224
  */
225
- edgesOverlap?: boolean;
225
+ edgesOverlap: boolean;
226
226
 
227
227
  /**
228
228
  * Show highlighted faces over drawing.
229
229
  */
230
- facesOverlap?: boolean;
230
+ facesOverlap: boolean;
231
231
 
232
232
  /**
233
233
  * Highlighted faces transparency value, from 0 to 255.
234
234
  */
235
- facesTransparancy?: number;
235
+ facesTransparancy: number;
236
236
 
237
237
  /**
238
238
  * Enable custom highlight settings.
239
239
  */
240
- enableCustomHighlight?: boolean;
240
+ enableCustomHighlight: boolean;
241
241
 
242
242
  /**
243
243
  * Enable scene graph.
244
244
  *
245
245
  * Scene graph increases perfomance improvement, but consumes memory. If scene graph is enabled, then
246
- * {@link enablePartialMode | partial streaming} mode will be disabled.
246
+ * {@link enablePartialMode | partial streaming} will be disabled.
247
247
  */
248
248
  sceneGraph: boolean;
249
249
 
@@ -282,7 +282,7 @@ export interface IOptions {
282
282
  * - `vsfx` - `VSFX` (default), for opening a file in `VisualizeJS` viewer.
283
283
  * - `gltf` - `glTF`, for opening a file in `Three.js` viewer.
284
284
  */
285
- geometryType?: string;
285
+ geometryType: string;
286
286
 
287
287
  /**
288
288
  * Unit of measurement for the ruler tool (distance measurements).
@@ -307,7 +307,7 @@ export interface IOptions {
307
307
  *
308
308
  * @defaultValue "Default"
309
309
  */
310
- rulerUnit?: string;
310
+ rulerUnit: string;
311
311
 
312
312
  /**
313
313
  * Number of decimal places to display in ruler measurements.
@@ -323,7 +323,7 @@ export interface IOptions {
323
323
  *
324
324
  * @defaultValue 2
325
325
  */
326
- rulerPrecision?: any;
326
+ rulerPrecision: "Default" | "Auto" | number;
327
327
 
328
328
  /**
329
329
  * Camera projection mode:
@@ -333,7 +333,7 @@ export interface IOptions {
333
333
  *
334
334
  * @defaultValue "perspective"
335
335
  */
336
- cameraMode?: CameraMode;
336
+ cameraMode: CameraMode;
337
337
 
338
338
  /**
339
339
  * Default MIME type for snapshot images.
@@ -346,7 +346,7 @@ export interface IOptions {
346
346
  *
347
347
  * @defaultValue "image/jpeg"
348
348
  */
349
- snapshotMimeType?: string;
349
+ snapshotMimeType: string;
350
350
 
351
351
  /**
352
352
  * Default quality level for snapshot images when using lossy formats (JPEG, WebP).
@@ -361,14 +361,7 @@ export interface IOptions {
361
361
  *
362
362
  * @defaultValue 0.25
363
363
  */
364
- snapshotQuality?: number;
365
-
366
- /**
367
- * Resets options to default values.
368
- *
369
- * @param fields - Name of fields to be reset.
370
- */
371
- resetToDefaults?: (fields?: string[]) => void;
364
+ snapshotQuality: number;
372
365
  }
373
366
 
374
367
  export function defaultOptions(): IOptions {