@kitware/vtk.js 25.9.1 → 26.0.0-beta.1

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.
Files changed (183) hide show
  1. package/Common/Core/CellArray.d.ts +0 -6
  2. package/Common/Core/CellArray.js +21 -12
  3. package/Common/Core/ClassHierarchy.js +11 -6
  4. package/Common/Core/DataArray.d.ts +20 -0
  5. package/Common/Core/DataArray.js +21 -4
  6. package/Proxy/Core/ViewProxy.js +17 -9
  7. package/Rendering/Core/Prop3D.js +1 -6
  8. package/Rendering/Core/RenderWindow.js +9 -6
  9. package/Rendering/Core/VolumeProperty.js +2 -3
  10. package/Rendering/Misc/CanvasView.js +6 -5
  11. package/Rendering/Misc/GenericRenderWindow.js +12 -7
  12. package/Rendering/OpenGL/Actor.js +4 -4
  13. package/Rendering/OpenGL/Actor2D.js +4 -4
  14. package/Rendering/OpenGL/Camera.js +7 -4
  15. package/Rendering/OpenGL/CubeAxesActor.js +7 -5
  16. package/Rendering/OpenGL/ForwardPass.js +1 -1
  17. package/Rendering/OpenGL/Glyph3DMapper.js +4 -4
  18. package/Rendering/OpenGL/ImageMapper.js +9 -5
  19. package/Rendering/OpenGL/ImageSlice.js +3 -3
  20. package/Rendering/OpenGL/PixelSpaceCallbackMapper.js +9 -5
  21. package/Rendering/OpenGL/PolyDataMapper.js +22 -14
  22. package/Rendering/OpenGL/PolyDataMapper2D.js +17 -10
  23. package/Rendering/OpenGL/ScalarBarActor.js +6 -4
  24. package/Rendering/OpenGL/Skybox.js +10 -6
  25. package/Rendering/OpenGL/Texture.js +6 -5
  26. package/Rendering/OpenGL/Volume.js +2 -2
  27. package/Rendering/OpenGL/VolumeMapper.js +11 -11
  28. package/Rendering/OpenGL/glsl/vtkVolumeFS.glsl.js +1 -1
  29. package/Rendering/SceneGraph/RenderPass.js +3 -2
  30. package/Rendering/WebGPU/ForwardPass.js +1 -1
  31. package/Rendering/WebGPU/HardwareSelectionPass.js +1 -1
  32. package/Rendering/WebGPU/HardwareSelector.js +14 -13
  33. package/Rendering/WebGPU/OpaquePass.js +1 -1
  34. package/Rendering/WebGPU/OrderIndependentTranslucentPass.js +1 -1
  35. package/Rendering/WebGPU/VolumePass.js +1 -1
  36. package/Utilities/config/rules-tests.js +28 -0
  37. package/Widgets/Core/AbstractWidgetFactory.js +1 -0
  38. package/Widgets/Core/StateBuilder/color3Mixin.js +22 -0
  39. package/Widgets/Core/StateBuilder/colorMixin.js +7 -0
  40. package/Widgets/Core/StateBuilder.js +2 -0
  41. package/Widgets/Representations/ArrowHandleRepresentation.js +28 -110
  42. package/Widgets/Representations/CircleContextRepresentation.js +43 -165
  43. package/Widgets/Representations/ContextRepresentation.js +0 -3
  44. package/Widgets/Representations/ConvexFaceContextRepresentation.js +11 -11
  45. package/Widgets/Representations/CroppingOutlineRepresentation.js +5 -12
  46. package/Widgets/Representations/CubeHandleRepresentation.js +15 -104
  47. package/Widgets/Representations/GlyphRepresentation.js +320 -0
  48. package/Widgets/Representations/HandleRepresentation.js +0 -5
  49. package/Widgets/Representations/ImplicitPlaneRepresentation.js +68 -49
  50. package/Widgets/Representations/LineHandleRepresentation.js +116 -0
  51. package/Widgets/Representations/PolyLineRepresentation.js +52 -49
  52. package/Widgets/Representations/RectangleContextRepresentation.js +16 -21
  53. package/Widgets/Representations/SphereContextRepresentation.js +30 -109
  54. package/Widgets/Representations/SphereHandleRepresentation.js +13 -110
  55. package/Widgets/Representations/SplineContextRepresentation.js +53 -36
  56. package/Widgets/Representations/WidgetRepresentation.d.ts +52 -1
  57. package/Widgets/Representations/WidgetRepresentation.js +140 -78
  58. package/Widgets/Representations.js +6 -0
  59. package/Widgets/SVG/SVGLandmarkRepresentation.js +1 -13
  60. package/Widgets/Widgets3D/AngleWidget.js +1 -4
  61. package/Widgets/Widgets3D/EllipseWidget/state.js +1 -1
  62. package/Widgets/Widgets3D/ResliceCursorWidget/Constants.js +15 -3
  63. package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +93 -36
  64. package/Widgets/Widgets3D/ResliceCursorWidget/helpers.js +75 -82
  65. package/Widgets/Widgets3D/ResliceCursorWidget/state.js +49 -170
  66. package/Widgets/Widgets3D/ResliceCursorWidget.js +61 -23
  67. package/index.d.ts +0 -1
  68. package/macros.d.ts +3 -5
  69. package/macros.js +4 -35
  70. package/package.json +2 -2
  71. package/Widgets/Representations/ResliceCursorContextRepresentation/Constants.js +0 -12
  72. package/Widgets/Representations/ResliceCursorContextRepresentation.d.ts +0 -54
  73. package/Widgets/Representations/ResliceCursorContextRepresentation.js +0 -357
  74. package/_vendor/available-typed-arrays/index.js_commonjs-proxy.js +0 -1
  75. package/_vendor/call-bind/callBound.js_commonjs-proxy.js +0 -1
  76. package/_vendor/call-bind/index.js_commonjs-module.js +0 -3
  77. package/_vendor/call-bind/index.js_commonjs-proxy.js +0 -1
  78. package/_vendor/deep-equal/node_modules/isarray/index.js_commonjs-proxy.js +0 -1
  79. package/_vendor/define-properties/index.js_commonjs-proxy.js +0 -1
  80. package/_vendor/es-abstract/helpers/getOwnPropertyDescriptor.js_commonjs-proxy.js +0 -1
  81. package/_vendor/es-get-iterator/index.js_commonjs-module.js +0 -3
  82. package/_vendor/es-get-iterator/index.js_commonjs-proxy.js +0 -1
  83. package/_vendor/es-get-iterator/node_modules/isarray/index.js_commonjs-proxy.js +0 -1
  84. package/_vendor/foreach/index.js_commonjs-proxy.js +0 -1
  85. package/_vendor/function-bind/implementation.js_commonjs-proxy.js +0 -1
  86. package/_vendor/function-bind/index.js_commonjs-proxy.js +0 -1
  87. package/_vendor/get-intrinsic/index.js_commonjs-proxy.js +0 -1
  88. package/_vendor/has/src/index.js_commonjs-proxy.js +0 -1
  89. package/_vendor/has-bigints/index.js_commonjs-proxy.js +0 -1
  90. package/_vendor/has-symbols/index.js_commonjs-proxy.js +0 -1
  91. package/_vendor/has-symbols/shams.js_commonjs-proxy.js +0 -1
  92. package/_vendor/has-tostringtag/shams.js_commonjs-proxy.js +0 -1
  93. package/_vendor/is-arguments/index.js_commonjs-proxy.js +0 -1
  94. package/_vendor/is-bigint/index.js_commonjs-module.js +0 -3
  95. package/_vendor/is-bigint/index.js_commonjs-proxy.js +0 -1
  96. package/_vendor/is-boolean-object/index.js_commonjs-proxy.js +0 -1
  97. package/_vendor/is-date-object/index.js_commonjs-proxy.js +0 -1
  98. package/_vendor/is-map/index.js_commonjs-proxy.js +0 -1
  99. package/_vendor/is-number-object/index.js_commonjs-proxy.js +0 -1
  100. package/_vendor/is-regex/index.js_commonjs-proxy.js +0 -1
  101. package/_vendor/is-set/index.js_commonjs-proxy.js +0 -1
  102. package/_vendor/is-string/index.js_commonjs-proxy.js +0 -1
  103. package/_vendor/is-symbol/index.js_commonjs-module.js +0 -3
  104. package/_vendor/is-symbol/index.js_commonjs-proxy.js +0 -1
  105. package/_vendor/is-typed-array/index.js_commonjs-proxy.js +0 -1
  106. package/_vendor/is-weakmap/index.js_commonjs-proxy.js +0 -1
  107. package/_vendor/is-weakset/index.js_commonjs-proxy.js +0 -1
  108. package/_vendor/object-inspect/index.js_commonjs-proxy.js +0 -1
  109. package/_vendor/object-is/implementation.js_commonjs-proxy.js +0 -1
  110. package/_vendor/object-is/index.js_commonjs-proxy.js +0 -1
  111. package/_vendor/object-is/polyfill.js_commonjs-proxy.js +0 -1
  112. package/_vendor/object-is/shim.js_commonjs-proxy.js +0 -1
  113. package/_vendor/object-keys/implementation.js_commonjs-proxy.js +0 -1
  114. package/_vendor/object-keys/index.js_commonjs-proxy.js +0 -1
  115. package/_vendor/object-keys/isArguments.js_commonjs-proxy.js +0 -1
  116. package/_vendor/object.assign/implementation.js_commonjs-proxy.js +0 -1
  117. package/_vendor/object.assign/index.js_commonjs-proxy.js +0 -1
  118. package/_vendor/object.assign/polyfill.js_commonjs-proxy.js +0 -1
  119. package/_vendor/object.assign/shim.js_commonjs-proxy.js +0 -2
  120. package/_vendor/regexp.prototype.flags/implementation.js_commonjs-proxy.js +0 -1
  121. package/_vendor/regexp.prototype.flags/index.js_commonjs-proxy.js +0 -1
  122. package/_vendor/regexp.prototype.flags/polyfill.js_commonjs-proxy.js +0 -1
  123. package/_vendor/regexp.prototype.flags/shim.js_commonjs-proxy.js +0 -1
  124. package/_vendor/side-channel/index.js_commonjs-proxy.js +0 -1
  125. package/_vendor/which-boxed-primitive/index.js_commonjs-proxy.js +0 -5
  126. package/_vendor/which-collection/index.js_commonjs-proxy.js +0 -4
  127. package/_vendor/which-typed-array/index.js_commonjs-proxy.js +0 -1
  128. package/_virtual/_node-resolve_empty.js_commonjs-proxy.js +0 -6
  129. package/_virtual/commonjsHelpers.js +0 -18
  130. package/_virtual/node-resolve_empty.js +0 -8
  131. package/_virtual/polyfill-node.global.js +0 -5
  132. package/_virtual/polyfill-node.process.js +0 -225
  133. package/vendor/available-typed-arrays/index.js +0 -29
  134. package/vendor/call-bind/callBound.js +0 -19
  135. package/vendor/call-bind/index.js +0 -52
  136. package/vendor/deep-equal/index.js +0 -379
  137. package/vendor/deep-equal/node_modules/isarray/index.js +0 -7
  138. package/vendor/define-properties/index.js +0 -60
  139. package/vendor/es-abstract/helpers/getOwnPropertyDescriptor.js +0 -17
  140. package/vendor/es-get-iterator/index.js +0 -217
  141. package/vendor/es-get-iterator/node_modules/isarray/index.js +0 -7
  142. package/vendor/foreach/index.js +0 -22
  143. package/vendor/function-bind/implementation.js +0 -52
  144. package/vendor/function-bind/index.js +0 -7
  145. package/vendor/get-intrinsic/index.js +0 -334
  146. package/vendor/has/src/index.js +0 -7
  147. package/vendor/has-bigints/index.js +0 -12
  148. package/vendor/has-symbols/index.js +0 -15
  149. package/vendor/has-symbols/shams.js +0 -42
  150. package/vendor/has-tostringtag/shams.js +0 -9
  151. package/vendor/is-arguments/index.js +0 -36
  152. package/vendor/is-bigint/index.js +0 -39
  153. package/vendor/is-boolean-object/index.js +0 -29
  154. package/vendor/is-date-object/index.js +0 -22
  155. package/vendor/is-map/index.js +0 -42
  156. package/vendor/is-number-object/index.js +0 -26
  157. package/vendor/is-regex/index.js +0 -61
  158. package/vendor/is-set/index.js +0 -42
  159. package/vendor/is-string/index.js +0 -26
  160. package/vendor/is-symbol/index.js +0 -36
  161. package/vendor/is-typed-array/index.js +0 -67
  162. package/vendor/is-weakmap/index.js +0 -42
  163. package/vendor/is-weakset/index.js +0 -42
  164. package/vendor/object-inspect/index.js +0 -515
  165. package/vendor/object-is/implementation.js +0 -18
  166. package/vendor/object-is/index.js +0 -25
  167. package/vendor/object-is/polyfill.js +0 -9
  168. package/vendor/object-is/shim.js +0 -17
  169. package/vendor/object-keys/implementation.js +0 -124
  170. package/vendor/object-keys/index.js +0 -35
  171. package/vendor/object-keys/isArguments.js +0 -17
  172. package/vendor/object.assign/implementation.js +0 -46
  173. package/vendor/object.assign/index.js +0 -29
  174. package/vendor/object.assign/polyfill.js +0 -57
  175. package/vendor/object.assign/shim.js +0 -17
  176. package/vendor/regexp.prototype.flags/implementation.js +0 -30
  177. package/vendor/regexp.prototype.flags/index.js +0 -25
  178. package/vendor/regexp.prototype.flags/polyfill.js +0 -23
  179. package/vendor/regexp.prototype.flags/shim.js +0 -29
  180. package/vendor/side-channel/index.js +0 -128
  181. package/vendor/which-boxed-primitive/index.js +0 -38
  182. package/vendor/which-collection/index.js +0 -29
  183. package/vendor/which-typed-array/index.js +0 -63
@@ -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,2 +0,0 @@
1
- import '../../vendor/define-properties/index.js';
2
- import '../../vendor/object.assign/implementation.js';
@@ -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,5 +0,0 @@
1
- import '../../vendor/is-string/index.js';
2
- import '../../vendor/is-number-object/index.js';
3
- import '../../vendor/is-boolean-object/index.js';
4
- import '../../vendor/is-symbol/index.js';
5
- import '../../vendor/is-bigint/index.js';
@@ -1,4 +0,0 @@
1
- import '../../vendor/is-map/index.js';
2
- import '../../vendor/is-set/index.js';
3
- import '../../vendor/is-weakmap/index.js';
4
- import '../../vendor/is-weakset/index.js';
@@ -1 +0,0 @@
1
- import '../../vendor/which-typed-array/index.js';
@@ -1,6 +0,0 @@
1
- import { _ as _nodeResolve_empty } from './node-resolve_empty.js';
2
- import { g as getAugmentedNamespace } from './commonjsHelpers.js';
3
-
4
- var require$$0 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty);
5
-
6
- export { require$$0 as r };
@@ -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,8 +0,0 @@
1
- var _nodeResolve_empty = {};
2
-
3
- var _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
4
- __proto__: null,
5
- 'default': _nodeResolve_empty
6
- });
7
-
8
- export { _nodeResolve_empty$1 as _ };
@@ -1,5 +0,0 @@
1
- var global$1 = (typeof global !== "undefined" ? global :
2
- typeof self !== "undefined" ? self :
3
- typeof window !== "undefined" ? window : {});
4
-
5
- export { global$1 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 };
@@ -1,52 +0,0 @@
1
- import { c as callBind } from '../../_vendor/call-bind/index.js_commonjs-module.js';
2
- import { f as functionBind } from '../function-bind/index.js';
3
- import { g as getIntrinsic } from '../get-intrinsic/index.js';
4
-
5
- (function (module) {
6
-
7
- var bind = functionBind;
8
- var GetIntrinsic = getIntrinsic;
9
-
10
- var $apply = GetIntrinsic('%Function.prototype.apply%');
11
- var $call = GetIntrinsic('%Function.prototype.call%');
12
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
13
-
14
- var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
15
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
16
- var $max = GetIntrinsic('%Math.max%');
17
-
18
- if ($defineProperty) {
19
- try {
20
- $defineProperty({}, 'a', { value: 1 });
21
- } catch (e) {
22
- // IE 8 has a broken defineProperty
23
- $defineProperty = null;
24
- }
25
- }
26
-
27
- module.exports = function callBind(originalFunction) {
28
- var func = $reflectApply(bind, $call, arguments);
29
- if ($gOPD && $defineProperty) {
30
- var desc = $gOPD(func, 'length');
31
- if (desc.configurable) {
32
- // original length, plus the receiver, minus any additional arguments (after the receiver)
33
- $defineProperty(
34
- func,
35
- 'length',
36
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
37
- );
38
- }
39
- }
40
- return func;
41
- };
42
-
43
- var applyBind = function applyBind() {
44
- return $reflectApply(bind, $apply, arguments);
45
- };
46
-
47
- if ($defineProperty) {
48
- $defineProperty(module.exports, 'apply', { value: applyBind });
49
- } else {
50
- module.exports.apply = applyBind;
51
- }
52
- }(callBind));