@inweb/client 27.1.6 → 27.1.7
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 +2 -80
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +2 -80
- package/dist/client.module.js.map +1 -1
- package/lib/Api/Assembly.d.ts +2 -11
- package/lib/Api/Client.d.ts +0 -8
- package/lib/Api/File.d.ts +5 -15
- package/lib/Api/IFile.d.ts +4 -4
- package/lib/Api/Model.d.ts +1 -13
- package/package.json +2 -2
- package/src/Api/Assembly.ts +2 -30
- package/src/Api/Client.ts +1 -50
- package/src/Api/File.ts +5 -34
- package/src/Api/IFile.ts +4 -4
- package/src/Api/Model.ts +1 -49
package/dist/client.js
CHANGED
|
@@ -222,30 +222,6 @@
|
|
|
222
222
|
downloadResourceRange(dataId, requestId, ranges, onProgress, signal) {
|
|
223
223
|
return this._file.downloadResourceRange(dataId, requestId, ranges, onProgress, signal);
|
|
224
224
|
}
|
|
225
|
-
partialDownloadResource(dataId, onProgress, signal) {
|
|
226
|
-
console.warn("Model.partialDownloadResource() has been deprecated since 25.3 and will be removed in a future release, use Model.downloadResource() instead.");
|
|
227
|
-
return this.downloadResource(dataId, onProgress, signal);
|
|
228
|
-
}
|
|
229
|
-
async downloadFileRange(requestId, records, dataId, onProgress, signal) {
|
|
230
|
-
if (!records)
|
|
231
|
-
return;
|
|
232
|
-
let ranges = [];
|
|
233
|
-
if (records.length) {
|
|
234
|
-
ranges = records.map((record) => ({
|
|
235
|
-
begin: Number(record.begin),
|
|
236
|
-
end: Number(record.end),
|
|
237
|
-
requestId: record.reqId,
|
|
238
|
-
}));
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
for (let i = 0; i < records.size(); i++) {
|
|
242
|
-
const record = records.get(i);
|
|
243
|
-
ranges.push({ begin: Number(record.begin), end: Number(record.end), requestId });
|
|
244
|
-
record.delete();
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
await this.downloadResourceRange(dataId, requestId, ranges, onProgress, signal);
|
|
248
|
-
}
|
|
249
225
|
getReferences(signal) {
|
|
250
226
|
return this._file.getReferences(signal);
|
|
251
227
|
}
|
|
@@ -562,13 +538,6 @@
|
|
|
562
538
|
.downloadFileRange(this.getEndpointPath(`/downloads/${dataId}${requestId ? "?requestId=" + requestId : ""}`), requestId, ranges, onProgress, { signal, headers: this.headers })
|
|
563
539
|
.then((response) => response.arrayBuffer());
|
|
564
540
|
}
|
|
565
|
-
partialDownloadResource(dataId, onProgress, signal) {
|
|
566
|
-
console.warn("Assembly.partialDownloadResource() has been deprecated since 25.3 and will be removed in a future release, use Assembly.downloadResource() instead.");
|
|
567
|
-
return this.downloadResource(dataId, onProgress, signal);
|
|
568
|
-
}
|
|
569
|
-
async downloadFileRange(requestId, records, dataId, onProgress, signal) {
|
|
570
|
-
await this.downloadResourceRange(dataId, requestId, records, onProgress, signal);
|
|
571
|
-
}
|
|
572
541
|
async getReferences(signal) {
|
|
573
542
|
const files = new Endpoint("/files", this.httpClient, this.headers);
|
|
574
543
|
const references = await Promise.all(this.associatedFiles
|
|
@@ -1300,13 +1269,6 @@
|
|
|
1300
1269
|
.downloadFileRange(this.getEndpointPath(`/downloads/${dataId}${requestId ? "?requestId=" + requestId : ""}`), requestId, ranges, onProgress, { signal, headers: this.headers })
|
|
1301
1270
|
.then((response) => response.arrayBuffer());
|
|
1302
1271
|
}
|
|
1303
|
-
partialDownloadResource(dataId, onProgress, signal) {
|
|
1304
|
-
console.warn("File.partialDownloadResource() has been deprecated since 25.3 and will be removed in a future release, use File.downloadResource() instead.");
|
|
1305
|
-
return this.downloadResource(dataId, onProgress, signal);
|
|
1306
|
-
}
|
|
1307
|
-
async downloadFileRange(requestId, records, dataId, onProgress, signal) {
|
|
1308
|
-
await this.downloadResourceRange(dataId, requestId, records, onProgress, signal);
|
|
1309
|
-
}
|
|
1310
1272
|
getReferences(signal) {
|
|
1311
1273
|
return this.get("/references", signal).then((response) => response.json());
|
|
1312
1274
|
}
|
|
@@ -2188,46 +2150,6 @@
|
|
|
2188
2150
|
get httpClient() {
|
|
2189
2151
|
return this._httpClient;
|
|
2190
2152
|
}
|
|
2191
|
-
get options() {
|
|
2192
|
-
console.warn("Client.options has been deprecated since 25.3 and will be removed in a future release, use Viewer.options instead.");
|
|
2193
|
-
const data = {
|
|
2194
|
-
showWCS: true,
|
|
2195
|
-
cameraAnimation: true,
|
|
2196
|
-
antialiasing: true,
|
|
2197
|
-
groundShadow: false,
|
|
2198
|
-
shadows: false,
|
|
2199
|
-
cameraAxisXSpeed: 4,
|
|
2200
|
-
cameraAxisYSpeed: 1,
|
|
2201
|
-
ambientOcclusion: false,
|
|
2202
|
-
enableStreamingMode: true,
|
|
2203
|
-
enablePartialMode: false,
|
|
2204
|
-
memoryLimit: 3294967296,
|
|
2205
|
-
cuttingPlaneFillColor: { red: 0xff, green: 0x98, blue: 0x00 },
|
|
2206
|
-
edgesColor: { r: 0xff, g: 0x98, b: 0x00 },
|
|
2207
|
-
facesColor: { r: 0xff, g: 0x98, b: 0x00 },
|
|
2208
|
-
edgesVisibility: true,
|
|
2209
|
-
edgesOverlap: true,
|
|
2210
|
-
facesOverlap: false,
|
|
2211
|
-
facesTransparancy: 200,
|
|
2212
|
-
enableCustomHighlight: true,
|
|
2213
|
-
sceneGraph: false,
|
|
2214
|
-
edgeModel: true,
|
|
2215
|
-
reverseZoomWheel: false,
|
|
2216
|
-
enableZoomWheel: true,
|
|
2217
|
-
enableGestures: true,
|
|
2218
|
-
geometryType: "vsfx",
|
|
2219
|
-
rulerUnit: "Default",
|
|
2220
|
-
cameraMode: "perspective",
|
|
2221
|
-
};
|
|
2222
|
-
return {
|
|
2223
|
-
...data,
|
|
2224
|
-
data,
|
|
2225
|
-
defaults: () => data,
|
|
2226
|
-
resetToDefaults: () => { },
|
|
2227
|
-
saveToStorage: () => { },
|
|
2228
|
-
loadFromStorage: () => { },
|
|
2229
|
-
};
|
|
2230
|
-
}
|
|
2231
2153
|
configure(params) {
|
|
2232
2154
|
this._serverUrl = (params.serverUrl || "").replace(/\/+$/, "");
|
|
2233
2155
|
this._httpClient.serverUrl = this.serverUrl;
|
|
@@ -2241,7 +2163,7 @@
|
|
|
2241
2163
|
.then((data) => ({
|
|
2242
2164
|
...data,
|
|
2243
2165
|
server: data.version,
|
|
2244
|
-
client: "27.1.
|
|
2166
|
+
client: "27.1.7",
|
|
2245
2167
|
}));
|
|
2246
2168
|
}
|
|
2247
2169
|
registerUser(email, password, userName) {
|
|
@@ -2725,7 +2647,7 @@
|
|
|
2725
2647
|
}
|
|
2726
2648
|
}
|
|
2727
2649
|
|
|
2728
|
-
const version = "27.1.
|
|
2650
|
+
const version = "27.1.7";
|
|
2729
2651
|
|
|
2730
2652
|
exports.Assembly = Assembly;
|
|
2731
2653
|
exports.ClashTest = ClashTest;
|