@inweb/client 25.3.18 → 25.3.19
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 +12 -12
- package/dist/client.module.js.map +1 -1
- package/lib/Api/Assembly.d.ts +2 -2
- package/lib/Api/File.d.ts +2 -2
- package/lib/Api/HttpClient.d.ts +1 -1
- package/lib/Api/IHttpClient.d.ts +1 -1
- package/lib/Api/Model.d.ts +2 -2
- package/package.json +2 -2
- package/src/Api/Assembly.ts +3 -3
- package/src/Api/File.ts +3 -3
- package/src/Api/HttpClient.ts +1 -0
- package/src/Api/IHttpClient.ts +1 -0
- package/src/Api/Model.ts +3 -3
- package/lib/ConvetMath.d.ts +0 -28
- package/src/ConvetMath.ts +0 -372
package/dist/client.js
CHANGED
|
@@ -243,8 +243,8 @@
|
|
|
243
243
|
* ="_blank">AbortSignal</a> object instance. Allows to communicate with a fetch request
|
|
244
244
|
* and abort it if desired.
|
|
245
245
|
*/
|
|
246
|
-
downloadResourceRange(dataId,
|
|
247
|
-
return this._file.downloadResourceRange(dataId,
|
|
246
|
+
downloadResourceRange(dataId, requestId, ranges, onProgress, signal) {
|
|
247
|
+
return this._file.downloadResourceRange(dataId, requestId, ranges, onProgress, signal);
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
250
|
* Deprecated since `25.3`. Use {@link Model.downloadResource()} instead.
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
record.delete();
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
await this.downloadResourceRange(dataId,
|
|
277
|
+
await this.downloadResourceRange(dataId, requestId, ranges, onProgress, signal);
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
280
280
|
* Returns a list of references to files used to extract geometry data.
|
|
@@ -1081,10 +1081,10 @@
|
|
|
1081
1081
|
* ="_blank">AbortSignal</a> object instance. Allows to communicate with a fetch request
|
|
1082
1082
|
* and abort it if desired.
|
|
1083
1083
|
*/
|
|
1084
|
-
downloadResourceRange(dataId,
|
|
1084
|
+
downloadResourceRange(dataId, requestId, ranges, onProgress, signal) {
|
|
1085
1085
|
const relativePath = this.appendVersionParam(`/downloads/${dataId}?requestId=${requestId}`);
|
|
1086
1086
|
return this.httpClient
|
|
1087
|
-
.downloadFileRange(`${this.path}${relativePath}`, ranges, onProgress, signal)
|
|
1087
|
+
.downloadFileRange(`${this.path}${relativePath}`, requestId, ranges, onProgress, signal)
|
|
1088
1088
|
.then((response) => response.arrayBuffer());
|
|
1089
1089
|
}
|
|
1090
1090
|
/**
|
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
* Deprecated since `25.3`. Use {@link Assembly.downloadResourceRange()} instead.
|
|
1099
1099
|
*/
|
|
1100
1100
|
async downloadFileRange(requestId, records, dataId, onProgress, signal) {
|
|
1101
|
-
await this.downloadResourceRange(dataId,
|
|
1101
|
+
await this.downloadResourceRange(dataId, requestId, records, onProgress, signal);
|
|
1102
1102
|
}
|
|
1103
1103
|
// Reserved for future use
|
|
1104
1104
|
getReferences(signal) {
|
|
@@ -1468,7 +1468,7 @@
|
|
|
1468
1468
|
},
|
|
1469
1469
|
}));
|
|
1470
1470
|
}
|
|
1471
|
-
async downloadFileRange(relativePath, ranges, onProgress, signal) {
|
|
1471
|
+
async downloadFileRange(relativePath, requestId, ranges, onProgress, signal) {
|
|
1472
1472
|
const headers = { ...this.headers };
|
|
1473
1473
|
headers["Range"] = "bytes=" + ranges.map((x) => `${x.begin}-${x.end}`).join(",");
|
|
1474
1474
|
const response = await $fetch(`${this.serverUrl}${relativePath}`, { method: "GET", headers, signal });
|
|
@@ -2369,10 +2369,10 @@
|
|
|
2369
2369
|
* ="_blank">AbortSignal</a> object instance. Allows to communicate with a fetch request
|
|
2370
2370
|
* and abort it if desired.
|
|
2371
2371
|
*/
|
|
2372
|
-
downloadResourceRange(dataId,
|
|
2372
|
+
downloadResourceRange(dataId, requestId, ranges, onProgress, signal) {
|
|
2373
2373
|
const relativePath = this.appendVersionParam(`/downloads/${dataId}?requestId=${requestId}`);
|
|
2374
2374
|
return this.httpClient
|
|
2375
|
-
.downloadFileRange(`${this.path}${relativePath}`, ranges, onProgress, signal)
|
|
2375
|
+
.downloadFileRange(`${this.path}${relativePath}`, requestId, ranges, onProgress, signal)
|
|
2376
2376
|
.then((response) => response.arrayBuffer());
|
|
2377
2377
|
}
|
|
2378
2378
|
/**
|
|
@@ -2386,7 +2386,7 @@
|
|
|
2386
2386
|
* Deprecated since `25.3`. Use {@link File.downloadResourceRange()} instead.
|
|
2387
2387
|
*/
|
|
2388
2388
|
async downloadFileRange(requestId, records, dataId, onProgress, signal) {
|
|
2389
|
-
await this.downloadResourceRange(dataId,
|
|
2389
|
+
await this.downloadResourceRange(dataId, requestId, records, onProgress, signal);
|
|
2390
2390
|
}
|
|
2391
2391
|
/**
|
|
2392
2392
|
* Returns a list of references to files used to correct rendering of the current file.
|
|
@@ -3717,7 +3717,7 @@
|
|
|
3717
3717
|
.then((data) => ({
|
|
3718
3718
|
...data,
|
|
3719
3719
|
server: data.version,
|
|
3720
|
-
client: "25.3.
|
|
3720
|
+
client: "25.3.19",
|
|
3721
3721
|
}));
|
|
3722
3722
|
}
|
|
3723
3723
|
/**
|
|
@@ -4394,7 +4394,7 @@
|
|
|
4394
4394
|
}
|
|
4395
4395
|
|
|
4396
4396
|
///////////////////////////////////////////////////////////////////////////////
|
|
4397
|
-
const version = "25.3.
|
|
4397
|
+
const version = "25.3.19";
|
|
4398
4398
|
|
|
4399
4399
|
exports.Assembly = Assembly;
|
|
4400
4400
|
exports.ClashTest = ClashTest;
|