@kitware/vtk.js 25.13.3 → 25.13.4
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/Rendering/OpenGL/ImageMapper.js +4 -8
- package/Rendering/OpenGL/PolyDataMapper.js +4 -8
- package/macros.js +2 -2
- package/package.json +2 -1
- package/_vendor/available-typed-arrays/index.js_commonjs-proxy.js +0 -1
- package/_vendor/call-bind/callBound.js_commonjs-proxy.js +0 -1
- package/_vendor/call-bind/index.js_commonjs-module.js +0 -3
- package/_vendor/call-bind/index.js_commonjs-proxy.js +0 -1
- package/_vendor/deep-equal/node_modules/isarray/index.js_commonjs-proxy.js +0 -1
- package/_vendor/define-properties/index.js_commonjs-proxy.js +0 -1
- package/_vendor/es-abstract/helpers/getOwnPropertyDescriptor.js_commonjs-proxy.js +0 -1
- package/_vendor/es-get-iterator/index.js_commonjs-module.js +0 -3
- package/_vendor/es-get-iterator/index.js_commonjs-proxy.js +0 -1
- package/_vendor/es-get-iterator/node_modules/isarray/index.js_commonjs-proxy.js +0 -1
- package/_vendor/foreach/index.js_commonjs-proxy.js +0 -1
- package/_vendor/function-bind/implementation.js_commonjs-proxy.js +0 -1
- package/_vendor/function-bind/index.js_commonjs-proxy.js +0 -1
- package/_vendor/get-intrinsic/index.js_commonjs-proxy.js +0 -1
- package/_vendor/has/src/index.js_commonjs-proxy.js +0 -1
- package/_vendor/has-bigints/index.js_commonjs-proxy.js +0 -1
- package/_vendor/has-symbols/index.js_commonjs-proxy.js +0 -1
- package/_vendor/has-symbols/shams.js_commonjs-proxy.js +0 -1
- package/_vendor/has-tostringtag/shams.js_commonjs-proxy.js +0 -1
- package/_vendor/is-arguments/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-bigint/index.js_commonjs-module.js +0 -3
- package/_vendor/is-bigint/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-boolean-object/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-date-object/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-map/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-number-object/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-regex/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-set/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-string/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-symbol/index.js_commonjs-module.js +0 -3
- package/_vendor/is-symbol/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-typed-array/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-weakmap/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-weakset/index.js_commonjs-proxy.js +0 -1
- package/_vendor/object-inspect/index.js_commonjs-proxy.js +0 -1
- package/_vendor/object-is/implementation.js_commonjs-proxy.js +0 -1
- package/_vendor/object-is/index.js_commonjs-proxy.js +0 -1
- package/_vendor/object-is/polyfill.js_commonjs-proxy.js +0 -1
- package/_vendor/object-is/shim.js_commonjs-proxy.js +0 -1
- package/_vendor/object-keys/implementation.js_commonjs-proxy.js +0 -1
- package/_vendor/object-keys/index.js_commonjs-proxy.js +0 -1
- package/_vendor/object-keys/isArguments.js_commonjs-proxy.js +0 -1
- package/_vendor/object.assign/implementation.js_commonjs-proxy.js +0 -1
- package/_vendor/object.assign/index.js_commonjs-proxy.js +0 -1
- package/_vendor/object.assign/polyfill.js_commonjs-proxy.js +0 -1
- package/_vendor/object.assign/shim.js_commonjs-proxy.js +0 -2
- package/_vendor/regexp.prototype.flags/implementation.js_commonjs-proxy.js +0 -1
- package/_vendor/regexp.prototype.flags/index.js_commonjs-proxy.js +0 -1
- package/_vendor/regexp.prototype.flags/polyfill.js_commonjs-proxy.js +0 -1
- package/_vendor/regexp.prototype.flags/shim.js_commonjs-proxy.js +0 -1
- package/_vendor/side-channel/index.js_commonjs-proxy.js +0 -1
- package/_vendor/which-boxed-primitive/index.js_commonjs-proxy.js +0 -5
- package/_vendor/which-collection/index.js_commonjs-proxy.js +0 -4
- package/_vendor/which-typed-array/index.js_commonjs-proxy.js +0 -1
- package/_virtual/_node-resolve_empty.js_commonjs-proxy.js +0 -6
- package/_virtual/commonjsHelpers.js +0 -18
- package/_virtual/node-resolve_empty.js +0 -8
- package/_virtual/polyfill-node.global.js +0 -5
- package/_virtual/polyfill-node.process.js +0 -225
- package/vendor/available-typed-arrays/index.js +0 -29
- package/vendor/call-bind/callBound.js +0 -19
- package/vendor/call-bind/index.js +0 -52
- package/vendor/deep-equal/index.js +0 -379
- package/vendor/deep-equal/node_modules/isarray/index.js +0 -7
- package/vendor/define-properties/index.js +0 -60
- package/vendor/es-abstract/helpers/getOwnPropertyDescriptor.js +0 -17
- package/vendor/es-get-iterator/index.js +0 -217
- package/vendor/es-get-iterator/node_modules/isarray/index.js +0 -7
- package/vendor/foreach/index.js +0 -22
- package/vendor/function-bind/implementation.js +0 -52
- package/vendor/function-bind/index.js +0 -7
- package/vendor/get-intrinsic/index.js +0 -334
- package/vendor/has/src/index.js +0 -7
- package/vendor/has-bigints/index.js +0 -12
- package/vendor/has-symbols/index.js +0 -15
- package/vendor/has-symbols/shams.js +0 -42
- package/vendor/has-tostringtag/shams.js +0 -9
- package/vendor/is-arguments/index.js +0 -36
- package/vendor/is-bigint/index.js +0 -39
- package/vendor/is-boolean-object/index.js +0 -29
- package/vendor/is-date-object/index.js +0 -22
- package/vendor/is-map/index.js +0 -42
- package/vendor/is-number-object/index.js +0 -26
- package/vendor/is-regex/index.js +0 -61
- package/vendor/is-set/index.js +0 -42
- package/vendor/is-string/index.js +0 -26
- package/vendor/is-symbol/index.js +0 -36
- package/vendor/is-typed-array/index.js +0 -67
- package/vendor/is-weakmap/index.js +0 -42
- package/vendor/is-weakset/index.js +0 -42
- package/vendor/object-inspect/index.js +0 -515
- package/vendor/object-is/implementation.js +0 -18
- package/vendor/object-is/index.js +0 -25
- package/vendor/object-is/polyfill.js +0 -9
- package/vendor/object-is/shim.js +0 -17
- package/vendor/object-keys/implementation.js +0 -124
- package/vendor/object-keys/index.js +0 -35
- package/vendor/object-keys/isArguments.js +0 -17
- package/vendor/object.assign/implementation.js +0 -46
- package/vendor/object.assign/index.js +0 -29
- package/vendor/object.assign/polyfill.js +0 -57
- package/vendor/object.assign/shim.js +0 -17
- package/vendor/regexp.prototype.flags/implementation.js +0 -30
- package/vendor/regexp.prototype.flags/index.js +0 -25
- package/vendor/regexp.prototype.flags/polyfill.js +0 -23
- package/vendor/regexp.prototype.flags/shim.js +0 -29
- package/vendor/side-channel/index.js +0 -128
- package/vendor/which-boxed-primitive/index.js +0 -38
- package/vendor/which-collection/index.js +0 -29
- package/vendor/which-typed-array/index.js +0 -63
|
@@ -97,7 +97,8 @@ function vtkOpenGLImageMapper(publicAPI, model) {
|
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
publicAPI.buildShaders = function (shaders, ren, actor) {
|
|
100
|
-
publicAPI.getShaderTemplate(shaders, ren, actor);
|
|
100
|
+
publicAPI.getShaderTemplate(shaders, ren, actor);
|
|
101
|
+
model.lastRenderPassShaderReplacement = model.currentRenderPass ? model.currentRenderPass.getShaderReplacement() : null; // apply any renderPassReplacements
|
|
101
102
|
|
|
102
103
|
if (model.lastRenderPassShaderReplacement) {
|
|
103
104
|
model.lastRenderPassShaderReplacement(shaders);
|
|
@@ -250,18 +251,13 @@ function vtkOpenGLImageMapper(publicAPI, model) {
|
|
|
250
251
|
// property modified (representation interpolation and lighting)
|
|
251
252
|
// input modified
|
|
252
253
|
// light complexity changed
|
|
254
|
+
// render pass shader replacement changed
|
|
253
255
|
var tNumComp = model.openGLTexture.getComponents();
|
|
254
256
|
var iComp = actor.getProperty().getIndependentComponents(); // has the render pass shader replacement changed? Two options
|
|
255
257
|
|
|
256
258
|
var needRebuild = false;
|
|
257
259
|
|
|
258
|
-
if (!model.currentRenderPass && model.lastRenderPassShaderReplacement) {
|
|
259
|
-
needRebuild = true;
|
|
260
|
-
model.lastRenderPassShaderReplacement = null;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
if (model.currentRenderPass && model.currentRenderPass.getShaderReplacement() !== model.lastRenderPassShaderReplacement) {
|
|
264
|
-
model.lastRenderPassShaderReplacement = model.currentRenderPass.getShaderReplacement();
|
|
260
|
+
if (!model.currentRenderPass && model.lastRenderPassShaderReplacement || model.currentRenderPass && model.currentRenderPass.getShaderReplacement() !== model.lastRenderPassShaderReplacement) {
|
|
265
261
|
needRebuild = true;
|
|
266
262
|
}
|
|
267
263
|
|
|
@@ -104,7 +104,8 @@ function vtkOpenGLPolyDataMapper(publicAPI, model) {
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
publicAPI.buildShaders = function (shaders, ren, actor) {
|
|
107
|
-
publicAPI.getShaderTemplate(shaders, ren, actor);
|
|
107
|
+
publicAPI.getShaderTemplate(shaders, ren, actor);
|
|
108
|
+
model.lastRenderPassShaderReplacement = model.currentRenderPass ? model.currentRenderPass.getShaderReplacement() : null; // apply any renderPassReplacements
|
|
108
109
|
|
|
109
110
|
if (model.lastRenderPassShaderReplacement) {
|
|
110
111
|
model.lastRenderPassShaderReplacement(shaders);
|
|
@@ -649,19 +650,14 @@ function vtkOpenGLPolyDataMapper(publicAPI, model) {
|
|
|
649
650
|
} // has the render pass shader replacement changed? Two options
|
|
650
651
|
|
|
651
652
|
|
|
652
|
-
if (!model.currentRenderPass && model.lastRenderPassShaderReplacement) {
|
|
653
|
-
needRebuild = true;
|
|
654
|
-
model.lastRenderPassShaderReplacement = null;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
if (model.currentRenderPass && model.currentRenderPass.getShaderReplacement() !== model.lastRenderPassShaderReplacement) {
|
|
658
|
-
model.lastRenderPassShaderReplacement = model.currentRenderPass.getShaderReplacement();
|
|
653
|
+
if (!model.currentRenderPass && model.lastRenderPassShaderReplacement || model.currentRenderPass && model.currentRenderPass.getShaderReplacement() !== model.lastRenderPassShaderReplacement) {
|
|
659
654
|
needRebuild = true;
|
|
660
655
|
} // has something changed that would require us to recreate the shader?
|
|
661
656
|
// candidates are
|
|
662
657
|
// property modified (representation interpolation and lighting)
|
|
663
658
|
// input modified
|
|
664
659
|
// light complexity changed
|
|
660
|
+
// render pass shader replacement changed
|
|
665
661
|
|
|
666
662
|
|
|
667
663
|
if (model.lastHaveSeenDepthRequest !== model.haveSeenDepthRequest || cellBO.getShaderSourceTime().getMTime() < model.renderable.getMTime() || cellBO.getShaderSourceTime().getMTime() < model.currentInput.getMTime() || cellBO.getShaderSourceTime().getMTime() < model.selectionStateChanged.getMTime() || needRebuild) {
|
package/macros.js
CHANGED
|
@@ -3,7 +3,7 @@ import _typeof from '@babel/runtime/helpers/typeof';
|
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
5
5
|
import _construct from '@babel/runtime/helpers/construct';
|
|
6
|
-
import
|
|
6
|
+
import DeepEqual from 'fast-deep-equal';
|
|
7
7
|
import vtk, { vtkGlobal } from './vtk.js';
|
|
8
8
|
import ClassHierarchy from './Common/Core/ClassHierarchy.js';
|
|
9
9
|
|
|
@@ -514,7 +514,7 @@ var objectSetterMap = {
|
|
|
514
514
|
},
|
|
515
515
|
object: function object(publicAPI, model, field) {
|
|
516
516
|
return function (value) {
|
|
517
|
-
if (!
|
|
517
|
+
if (!DeepEqual(model[field.name], value)) {
|
|
518
518
|
model[field.name] = value;
|
|
519
519
|
publicAPI.modified();
|
|
520
520
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitware/vtk.js",
|
|
3
|
-
"version": "25.13.
|
|
3
|
+
"version": "25.13.4",
|
|
4
4
|
"description": "Visualization Toolkit for the Web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"3d",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@babel/runtime": "7.17.9",
|
|
34
34
|
"commander": "9.2.0",
|
|
35
35
|
"d3-scale": "4.0.2",
|
|
36
|
+
"fast-deep-equal": "^3.1.3",
|
|
36
37
|
"fflate": "0.7.3",
|
|
37
38
|
"gl-matrix": "3.4.3",
|
|
38
39
|
"globalthis": "1.0.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/call-bind/callBound.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/call-bind/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/define-properties/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/es-get-iterator/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/get-intrinsic/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../../vendor/has/src/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/has-bigints/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-arguments/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-bigint/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-boolean-object/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-map/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-number-object/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-regex/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-set/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-string/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-symbol/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-typed-array/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-weakmap/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/is-weakset/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/object-is/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/define-properties/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/object-keys/implementation.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/object-keys/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/object.assign/implementation.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/object.assign/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/object.assign/implementation.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/regexp.prototype.flags/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/define-properties/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/define-properties/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/side-channel/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../vendor/which-typed-array/index.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
-
|
|
3
|
-
function getAugmentedNamespace(n) {
|
|
4
|
-
if (n.__esModule) return n;
|
|
5
|
-
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
6
|
-
Object.keys(n).forEach(function (k) {
|
|
7
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
8
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () {
|
|
11
|
-
return n[k];
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
return a;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { commonjsGlobal as c, getAugmentedNamespace as g };
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { g as global } from './polyfill-node.global.js';
|
|
2
|
-
|
|
3
|
-
// shim for using process in browser
|
|
4
|
-
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
5
|
-
|
|
6
|
-
function defaultSetTimout() {
|
|
7
|
-
throw new Error('setTimeout has not been defined');
|
|
8
|
-
}
|
|
9
|
-
function defaultClearTimeout () {
|
|
10
|
-
throw new Error('clearTimeout has not been defined');
|
|
11
|
-
}
|
|
12
|
-
var cachedSetTimeout = defaultSetTimout;
|
|
13
|
-
var cachedClearTimeout = defaultClearTimeout;
|
|
14
|
-
if (typeof global.setTimeout === 'function') {
|
|
15
|
-
cachedSetTimeout = setTimeout;
|
|
16
|
-
}
|
|
17
|
-
if (typeof global.clearTimeout === 'function') {
|
|
18
|
-
cachedClearTimeout = clearTimeout;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function runTimeout(fun) {
|
|
22
|
-
if (cachedSetTimeout === setTimeout) {
|
|
23
|
-
//normal enviroments in sane situations
|
|
24
|
-
return setTimeout(fun, 0);
|
|
25
|
-
}
|
|
26
|
-
// if setTimeout wasn't available but was latter defined
|
|
27
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
28
|
-
cachedSetTimeout = setTimeout;
|
|
29
|
-
return setTimeout(fun, 0);
|
|
30
|
-
}
|
|
31
|
-
try {
|
|
32
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
33
|
-
return cachedSetTimeout(fun, 0);
|
|
34
|
-
} catch(e){
|
|
35
|
-
try {
|
|
36
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
37
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
38
|
-
} catch(e){
|
|
39
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
40
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
function runClearTimeout(marker) {
|
|
47
|
-
if (cachedClearTimeout === clearTimeout) {
|
|
48
|
-
//normal enviroments in sane situations
|
|
49
|
-
return clearTimeout(marker);
|
|
50
|
-
}
|
|
51
|
-
// if clearTimeout wasn't available but was latter defined
|
|
52
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
53
|
-
cachedClearTimeout = clearTimeout;
|
|
54
|
-
return clearTimeout(marker);
|
|
55
|
-
}
|
|
56
|
-
try {
|
|
57
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
58
|
-
return cachedClearTimeout(marker);
|
|
59
|
-
} catch (e){
|
|
60
|
-
try {
|
|
61
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
62
|
-
return cachedClearTimeout.call(null, marker);
|
|
63
|
-
} catch (e){
|
|
64
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
65
|
-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
66
|
-
return cachedClearTimeout.call(this, marker);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
var queue = [];
|
|
74
|
-
var draining = false;
|
|
75
|
-
var currentQueue;
|
|
76
|
-
var queueIndex = -1;
|
|
77
|
-
|
|
78
|
-
function cleanUpNextTick() {
|
|
79
|
-
if (!draining || !currentQueue) {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
draining = false;
|
|
83
|
-
if (currentQueue.length) {
|
|
84
|
-
queue = currentQueue.concat(queue);
|
|
85
|
-
} else {
|
|
86
|
-
queueIndex = -1;
|
|
87
|
-
}
|
|
88
|
-
if (queue.length) {
|
|
89
|
-
drainQueue();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function drainQueue() {
|
|
94
|
-
if (draining) {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
98
|
-
draining = true;
|
|
99
|
-
|
|
100
|
-
var len = queue.length;
|
|
101
|
-
while(len) {
|
|
102
|
-
currentQueue = queue;
|
|
103
|
-
queue = [];
|
|
104
|
-
while (++queueIndex < len) {
|
|
105
|
-
if (currentQueue) {
|
|
106
|
-
currentQueue[queueIndex].run();
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
queueIndex = -1;
|
|
110
|
-
len = queue.length;
|
|
111
|
-
}
|
|
112
|
-
currentQueue = null;
|
|
113
|
-
draining = false;
|
|
114
|
-
runClearTimeout(timeout);
|
|
115
|
-
}
|
|
116
|
-
function nextTick(fun) {
|
|
117
|
-
var args = new Array(arguments.length - 1);
|
|
118
|
-
if (arguments.length > 1) {
|
|
119
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
120
|
-
args[i - 1] = arguments[i];
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
queue.push(new Item(fun, args));
|
|
124
|
-
if (queue.length === 1 && !draining) {
|
|
125
|
-
runTimeout(drainQueue);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
// v8 likes predictible objects
|
|
129
|
-
function Item(fun, array) {
|
|
130
|
-
this.fun = fun;
|
|
131
|
-
this.array = array;
|
|
132
|
-
}
|
|
133
|
-
Item.prototype.run = function () {
|
|
134
|
-
this.fun.apply(null, this.array);
|
|
135
|
-
};
|
|
136
|
-
var title = 'browser';
|
|
137
|
-
var platform = 'browser';
|
|
138
|
-
var browser = true;
|
|
139
|
-
var env = {};
|
|
140
|
-
var argv = [];
|
|
141
|
-
var version = ''; // empty string to avoid regexp issues
|
|
142
|
-
var versions = {};
|
|
143
|
-
var release = {};
|
|
144
|
-
var config = {};
|
|
145
|
-
|
|
146
|
-
function noop() {}
|
|
147
|
-
|
|
148
|
-
var on = noop;
|
|
149
|
-
var addListener = noop;
|
|
150
|
-
var once = noop;
|
|
151
|
-
var off = noop;
|
|
152
|
-
var removeListener = noop;
|
|
153
|
-
var removeAllListeners = noop;
|
|
154
|
-
var emit = noop;
|
|
155
|
-
|
|
156
|
-
function binding(name) {
|
|
157
|
-
throw new Error('process.binding is not supported');
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
function cwd () { return '/' }
|
|
161
|
-
function chdir (dir) {
|
|
162
|
-
throw new Error('process.chdir is not supported');
|
|
163
|
-
}function umask() { return 0; }
|
|
164
|
-
|
|
165
|
-
// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
166
|
-
var performance = global.performance || {};
|
|
167
|
-
var performanceNow =
|
|
168
|
-
performance.now ||
|
|
169
|
-
performance.mozNow ||
|
|
170
|
-
performance.msNow ||
|
|
171
|
-
performance.oNow ||
|
|
172
|
-
performance.webkitNow ||
|
|
173
|
-
function(){ return (new Date()).getTime() };
|
|
174
|
-
|
|
175
|
-
// generate timestamp or delta
|
|
176
|
-
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
177
|
-
function hrtime(previousTimestamp){
|
|
178
|
-
var clocktime = performanceNow.call(performance)*1e-3;
|
|
179
|
-
var seconds = Math.floor(clocktime);
|
|
180
|
-
var nanoseconds = Math.floor((clocktime%1)*1e9);
|
|
181
|
-
if (previousTimestamp) {
|
|
182
|
-
seconds = seconds - previousTimestamp[0];
|
|
183
|
-
nanoseconds = nanoseconds - previousTimestamp[1];
|
|
184
|
-
if (nanoseconds<0) {
|
|
185
|
-
seconds--;
|
|
186
|
-
nanoseconds += 1e9;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
return [seconds,nanoseconds]
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
var startTime = new Date();
|
|
193
|
-
function uptime() {
|
|
194
|
-
var currentTime = new Date();
|
|
195
|
-
var dif = currentTime - startTime;
|
|
196
|
-
return dif / 1000;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
var browser$1 = {
|
|
200
|
-
nextTick: nextTick,
|
|
201
|
-
title: title,
|
|
202
|
-
browser: browser,
|
|
203
|
-
env: env,
|
|
204
|
-
argv: argv,
|
|
205
|
-
version: version,
|
|
206
|
-
versions: versions,
|
|
207
|
-
on: on,
|
|
208
|
-
addListener: addListener,
|
|
209
|
-
once: once,
|
|
210
|
-
off: off,
|
|
211
|
-
removeListener: removeListener,
|
|
212
|
-
removeAllListeners: removeAllListeners,
|
|
213
|
-
emit: emit,
|
|
214
|
-
binding: binding,
|
|
215
|
-
cwd: cwd,
|
|
216
|
-
chdir: chdir,
|
|
217
|
-
umask: umask,
|
|
218
|
-
hrtime: hrtime,
|
|
219
|
-
platform: platform,
|
|
220
|
-
release: release,
|
|
221
|
-
config: config,
|
|
222
|
-
uptime: uptime
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
export { browser$1 as b };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { c as commonjsGlobal } from '../../_virtual/commonjsHelpers.js';
|
|
2
|
-
|
|
3
|
-
var possibleNames = [
|
|
4
|
-
'BigInt64Array',
|
|
5
|
-
'BigUint64Array',
|
|
6
|
-
'Float32Array',
|
|
7
|
-
'Float64Array',
|
|
8
|
-
'Int16Array',
|
|
9
|
-
'Int32Array',
|
|
10
|
-
'Int8Array',
|
|
11
|
-
'Uint16Array',
|
|
12
|
-
'Uint32Array',
|
|
13
|
-
'Uint8Array',
|
|
14
|
-
'Uint8ClampedArray'
|
|
15
|
-
];
|
|
16
|
-
|
|
17
|
-
var g = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
|
|
18
|
-
|
|
19
|
-
var availableTypedArrays = function availableTypedArrays() {
|
|
20
|
-
var out = [];
|
|
21
|
-
for (var i = 0; i < possibleNames.length; i++) {
|
|
22
|
-
if (typeof g[possibleNames[i]] === 'function') {
|
|
23
|
-
out[out.length] = possibleNames[i];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return out;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export { availableTypedArrays as a };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { g as getIntrinsic } from '../get-intrinsic/index.js';
|
|
2
|
-
import './index.js';
|
|
3
|
-
import { c as callBind$1 } from '../../_vendor/call-bind/index.js_commonjs-module.js';
|
|
4
|
-
|
|
5
|
-
var GetIntrinsic = getIntrinsic;
|
|
6
|
-
|
|
7
|
-
var callBind = callBind$1.exports;
|
|
8
|
-
|
|
9
|
-
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
10
|
-
|
|
11
|
-
var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
12
|
-
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
13
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
14
|
-
return callBind(intrinsic);
|
|
15
|
-
}
|
|
16
|
-
return intrinsic;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { callBound as c };
|