@vertexvis/viewer 0.24.5-canary.2 → 0.24.5-canary.3
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/cjs/vertex-viewer.cjs.entry.js +1 -9
- package/dist/cjs/vertex-viewer.cjs.entry.js.map +1 -1
- package/dist/collection/lib/meters.js +1 -2
- package/dist/collection/lib/meters.js.map +1 -1
- package/dist/collection/lib/types/index.js +0 -1
- package/dist/collection/lib/types/index.js.map +1 -1
- package/dist/components/vertex-viewer.js +1 -9
- package/dist/components/vertex-viewer.js.map +1 -1
- package/dist/esm/vertex-viewer.entry.js +1 -9
- package/dist/esm/vertex-viewer.entry.js.map +1 -1
- package/dist/types/lib/types/index.d.ts +0 -1
- package/dist/viewer/p-95b1cbf3.entry.js +5 -0
- package/dist/viewer/p-95b1cbf3.entry.js.map +1 -0
- package/dist/viewer/viewer.esm.js +1 -1
- package/package.json +7 -7
- package/dist/collection/lib/types/typeGuards.js +0 -11
- package/dist/collection/lib/types/typeGuards.js.map +0 -1
- package/dist/types/lib/types/typeGuards.d.ts +0 -1
- package/dist/viewer/p-ff619a62.entry.js +0 -5
- package/dist/viewer/p-ff619a62.entry.js.map +0 -1
|
@@ -246,14 +246,6 @@ class StencilBuffer {
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
function isPromise(obj) {
|
|
250
|
-
return (obj != null &&
|
|
251
|
-
obj['then'] instanceof Function &&
|
|
252
|
-
obj['catch'] instanceof Function &&
|
|
253
|
-
// NOTE: Should be removed if we do not target ES2018.
|
|
254
|
-
obj['finally'] instanceof Function);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
249
|
function delay(milliseconds) {
|
|
258
250
|
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
259
251
|
}
|
|
@@ -2124,7 +2116,7 @@ class TimingMeter {
|
|
|
2124
2116
|
this.perf.clearMeasures(this.name);
|
|
2125
2117
|
}
|
|
2126
2118
|
measure(target) {
|
|
2127
|
-
if (
|
|
2119
|
+
if (target instanceof Promise) {
|
|
2128
2120
|
const mark = this.begin();
|
|
2129
2121
|
return target.finally(() => this.end(mark));
|
|
2130
2122
|
}
|