@inweb/client 25.3.20 → 25.3.21
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/client.js +12 -12
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +9 -7
- package/dist/client.module.js.map +1 -1
- package/lib/Api/Assembly.d.ts +1 -1
- package/lib/Api/Client.d.ts +1 -1
- package/lib/Api/File.d.ts +1 -2
- package/lib/Api/Model.d.ts +1 -2
- package/package.json +2 -2
- package/src/Api/Assembly.ts +1 -1
- package/src/Api/Client.ts +1 -1
- package/src/Api/File.ts +7 -7
- package/src/Api/Model.ts +1 -2
package/dist/client.js
CHANGED
|
@@ -170,8 +170,7 @@
|
|
|
170
170
|
.then((array) => array.filter(({ custom_fields = {} }) => custom_fields.modelId === this.id || custom_fields.modelName === this.name));
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
|
-
* Add new model viewpoint. To create a new viewpoint use
|
|
174
|
-
* {@link Viewer#createViewpoint | Viewer.createViewpoint()}.
|
|
173
|
+
* Add new model viewpoint. To create a new viewpoint use `Viewer.createViewpoint()`.
|
|
175
174
|
*
|
|
176
175
|
* _**Note**: Assemblу models do not support viewpoints_.
|
|
177
176
|
*
|
|
@@ -877,7 +876,7 @@
|
|
|
877
876
|
return this.data.status;
|
|
878
877
|
}
|
|
879
878
|
/**
|
|
880
|
-
* Assembly type. Returns an `assembly
|
|
879
|
+
* Assembly type. Returns an `assembly` string.
|
|
881
880
|
*
|
|
882
881
|
* @readonly
|
|
883
882
|
*/
|
|
@@ -2274,8 +2273,7 @@
|
|
|
2274
2273
|
.then((viewpoints) => viewpoints.result);
|
|
2275
2274
|
}
|
|
2276
2275
|
/**
|
|
2277
|
-
* Add new file viewpoint. To create a new viewpoint use
|
|
2278
|
-
* {@link Viewer#createViewpoint | Viewer.createViewpoint()}.
|
|
2276
|
+
* Add new file viewpoint. To create a new viewpoint use `Viewer.createViewpoint()`.
|
|
2279
2277
|
*
|
|
2280
2278
|
* @async
|
|
2281
2279
|
* @param viewpoint - Viewpoint.
|
|
@@ -2499,14 +2497,16 @@
|
|
|
2499
2497
|
* @returns {Promise<File>}
|
|
2500
2498
|
*/
|
|
2501
2499
|
waitForDone(jobs, waitAll, params) {
|
|
2502
|
-
|
|
2503
|
-
jobs = [jobs];
|
|
2500
|
+
const waitJobs = Array.isArray(jobs) ? jobs : [jobs];
|
|
2504
2501
|
if (waitAll === undefined)
|
|
2505
2502
|
waitAll = true;
|
|
2506
2503
|
const checkDone = () => this.checkout().then((file) => {
|
|
2507
2504
|
var _a;
|
|
2508
|
-
const readyJobs =
|
|
2509
|
-
|
|
2505
|
+
const readyJobs = waitJobs.filter((job) => {
|
|
2506
|
+
const jobStatus = file.status[job] || { state: none };
|
|
2507
|
+
return ["none", "done", "failed"].includes(jobStatus.state);
|
|
2508
|
+
});
|
|
2509
|
+
const ready = waitAll ? readyJobs.length === waitJobs.length : readyJobs.length > 0;
|
|
2510
2510
|
const cancel = (_a = params === null || params === void 0 ? void 0 : params.onCheckout) === null || _a === void 0 ? void 0 : _a.call(params, file, ready);
|
|
2511
2511
|
return cancel || ready;
|
|
2512
2512
|
});
|
|
@@ -3645,7 +3645,7 @@
|
|
|
3645
3645
|
return this._serverUrl;
|
|
3646
3646
|
}
|
|
3647
3647
|
/**
|
|
3648
|
-
* Deprecated since `25.3`. Use
|
|
3648
|
+
* Deprecated since `25.3`. Use `Viewer.options()` instead to change Viewer parameters.
|
|
3649
3649
|
*/
|
|
3650
3650
|
get options() {
|
|
3651
3651
|
console.warn("Client.options has been deprecated since 25.3 and will be removed in a future release, use Viewer.options instead.");
|
|
@@ -3716,7 +3716,7 @@
|
|
|
3716
3716
|
.then((data) => ({
|
|
3717
3717
|
...data,
|
|
3718
3718
|
server: data.version,
|
|
3719
|
-
client: "25.3.
|
|
3719
|
+
client: "25.3.21",
|
|
3720
3720
|
}));
|
|
3721
3721
|
}
|
|
3722
3722
|
/**
|
|
@@ -4393,7 +4393,7 @@
|
|
|
4393
4393
|
}
|
|
4394
4394
|
|
|
4395
4395
|
///////////////////////////////////////////////////////////////////////////////
|
|
4396
|
-
const version = "25.3.
|
|
4396
|
+
const version = "25.3.21";
|
|
4397
4397
|
|
|
4398
4398
|
exports.Assembly = Assembly;
|
|
4399
4399
|
exports.ClashTest = ClashTest;
|