@kitware/vtk.js 25.8.4 → 25.8.6

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 (119) hide show
  1. package/Interaction/Manipulators/MouseRangeManipulator.js +6 -6
  2. package/Rendering/Core/Follower.js +1 -1
  3. package/Rendering/Core/Prop3D.js +6 -1
  4. package/Rendering/OpenGL/ShaderProgram.js +13 -20
  5. package/Widgets/Representations/WidgetRepresentation.js +23 -7
  6. package/Widgets/SVG/SVGLandmarkRepresentation.js +13 -1
  7. package/_vendor/available-typed-arrays/index.js_commonjs-proxy.js +1 -0
  8. package/_vendor/call-bind/callBound.js_commonjs-proxy.js +1 -0
  9. package/_vendor/call-bind/index.js_commonjs-module.js +3 -0
  10. package/_vendor/call-bind/index.js_commonjs-proxy.js +1 -0
  11. package/_vendor/deep-equal/node_modules/isarray/index.js_commonjs-proxy.js +1 -0
  12. package/_vendor/define-properties/index.js_commonjs-proxy.js +1 -0
  13. package/_vendor/es-abstract/helpers/getOwnPropertyDescriptor.js_commonjs-proxy.js +1 -0
  14. package/_vendor/es-get-iterator/index.js_commonjs-module.js +3 -0
  15. package/_vendor/es-get-iterator/index.js_commonjs-proxy.js +1 -0
  16. package/_vendor/es-get-iterator/node_modules/isarray/index.js_commonjs-proxy.js +1 -0
  17. package/_vendor/foreach/index.js_commonjs-proxy.js +1 -0
  18. package/_vendor/function-bind/implementation.js_commonjs-proxy.js +1 -0
  19. package/_vendor/function-bind/index.js_commonjs-proxy.js +1 -0
  20. package/_vendor/get-intrinsic/index.js_commonjs-proxy.js +1 -0
  21. package/_vendor/has/src/index.js_commonjs-proxy.js +1 -0
  22. package/_vendor/has-bigints/index.js_commonjs-proxy.js +1 -0
  23. package/_vendor/has-symbols/index.js_commonjs-proxy.js +1 -0
  24. package/_vendor/has-symbols/shams.js_commonjs-proxy.js +1 -0
  25. package/_vendor/has-tostringtag/shams.js_commonjs-proxy.js +1 -0
  26. package/_vendor/is-arguments/index.js_commonjs-proxy.js +1 -0
  27. package/_vendor/is-bigint/index.js_commonjs-module.js +3 -0
  28. package/_vendor/is-bigint/index.js_commonjs-proxy.js +1 -0
  29. package/_vendor/is-boolean-object/index.js_commonjs-proxy.js +1 -0
  30. package/_vendor/is-date-object/index.js_commonjs-proxy.js +1 -0
  31. package/_vendor/is-map/index.js_commonjs-proxy.js +1 -0
  32. package/_vendor/is-number-object/index.js_commonjs-proxy.js +1 -0
  33. package/_vendor/is-regex/index.js_commonjs-proxy.js +1 -0
  34. package/_vendor/is-set/index.js_commonjs-proxy.js +1 -0
  35. package/_vendor/is-string/index.js_commonjs-proxy.js +1 -0
  36. package/_vendor/is-symbol/index.js_commonjs-module.js +3 -0
  37. package/_vendor/is-symbol/index.js_commonjs-proxy.js +1 -0
  38. package/_vendor/is-typed-array/index.js_commonjs-proxy.js +1 -0
  39. package/_vendor/is-weakmap/index.js_commonjs-proxy.js +1 -0
  40. package/_vendor/is-weakset/index.js_commonjs-proxy.js +1 -0
  41. package/_vendor/object-inspect/index.js_commonjs-proxy.js +1 -0
  42. package/_vendor/object-is/implementation.js_commonjs-proxy.js +1 -0
  43. package/_vendor/object-is/index.js_commonjs-proxy.js +1 -0
  44. package/_vendor/object-is/polyfill.js_commonjs-proxy.js +1 -0
  45. package/_vendor/object-is/shim.js_commonjs-proxy.js +1 -0
  46. package/_vendor/object-keys/implementation.js_commonjs-proxy.js +1 -0
  47. package/_vendor/object-keys/index.js_commonjs-proxy.js +1 -0
  48. package/_vendor/object-keys/isArguments.js_commonjs-proxy.js +1 -0
  49. package/_vendor/object.assign/implementation.js_commonjs-proxy.js +1 -0
  50. package/_vendor/object.assign/index.js_commonjs-proxy.js +1 -0
  51. package/_vendor/object.assign/polyfill.js_commonjs-proxy.js +1 -0
  52. package/_vendor/object.assign/shim.js_commonjs-proxy.js +2 -0
  53. package/_vendor/regexp.prototype.flags/implementation.js_commonjs-proxy.js +1 -0
  54. package/_vendor/regexp.prototype.flags/index.js_commonjs-proxy.js +1 -0
  55. package/_vendor/regexp.prototype.flags/polyfill.js_commonjs-proxy.js +1 -0
  56. package/_vendor/regexp.prototype.flags/shim.js_commonjs-proxy.js +1 -0
  57. package/_vendor/side-channel/index.js_commonjs-proxy.js +1 -0
  58. package/_vendor/which-boxed-primitive/index.js_commonjs-proxy.js +5 -0
  59. package/_vendor/which-collection/index.js_commonjs-proxy.js +4 -0
  60. package/_vendor/which-typed-array/index.js_commonjs-proxy.js +1 -0
  61. package/_virtual/_node-resolve_empty.js_commonjs-proxy.js +6 -0
  62. package/_virtual/commonjsHelpers.js +18 -0
  63. package/_virtual/node-resolve_empty.js +8 -0
  64. package/_virtual/polyfill-node.global.js +5 -0
  65. package/_virtual/polyfill-node.process.js +225 -0
  66. package/macros.d.ts +5 -3
  67. package/macros.js +28 -3
  68. package/package.json +1 -1
  69. package/vendor/available-typed-arrays/index.js +29 -0
  70. package/vendor/call-bind/callBound.js +19 -0
  71. package/vendor/call-bind/index.js +52 -0
  72. package/vendor/deep-equal/index.js +379 -0
  73. package/vendor/deep-equal/node_modules/isarray/index.js +7 -0
  74. package/vendor/define-properties/index.js +60 -0
  75. package/vendor/es-abstract/helpers/getOwnPropertyDescriptor.js +17 -0
  76. package/vendor/es-get-iterator/index.js +217 -0
  77. package/vendor/es-get-iterator/node_modules/isarray/index.js +7 -0
  78. package/vendor/foreach/index.js +22 -0
  79. package/vendor/function-bind/implementation.js +52 -0
  80. package/vendor/function-bind/index.js +7 -0
  81. package/vendor/get-intrinsic/index.js +334 -0
  82. package/vendor/has/src/index.js +7 -0
  83. package/vendor/has-bigints/index.js +12 -0
  84. package/vendor/has-symbols/index.js +15 -0
  85. package/vendor/has-symbols/shams.js +42 -0
  86. package/vendor/has-tostringtag/shams.js +9 -0
  87. package/vendor/is-arguments/index.js +36 -0
  88. package/vendor/is-bigint/index.js +39 -0
  89. package/vendor/is-boolean-object/index.js +29 -0
  90. package/vendor/is-date-object/index.js +22 -0
  91. package/vendor/is-map/index.js +42 -0
  92. package/vendor/is-number-object/index.js +26 -0
  93. package/vendor/is-regex/index.js +61 -0
  94. package/vendor/is-set/index.js +42 -0
  95. package/vendor/is-string/index.js +26 -0
  96. package/vendor/is-symbol/index.js +36 -0
  97. package/vendor/is-typed-array/index.js +67 -0
  98. package/vendor/is-weakmap/index.js +42 -0
  99. package/vendor/is-weakset/index.js +42 -0
  100. package/vendor/object-inspect/index.js +515 -0
  101. package/vendor/object-is/implementation.js +18 -0
  102. package/vendor/object-is/index.js +25 -0
  103. package/vendor/object-is/polyfill.js +9 -0
  104. package/vendor/object-is/shim.js +17 -0
  105. package/vendor/object-keys/implementation.js +124 -0
  106. package/vendor/object-keys/index.js +35 -0
  107. package/vendor/object-keys/isArguments.js +17 -0
  108. package/vendor/object.assign/implementation.js +46 -0
  109. package/vendor/object.assign/index.js +29 -0
  110. package/vendor/object.assign/polyfill.js +57 -0
  111. package/vendor/object.assign/shim.js +17 -0
  112. package/vendor/regexp.prototype.flags/implementation.js +30 -0
  113. package/vendor/regexp.prototype.flags/index.js +25 -0
  114. package/vendor/regexp.prototype.flags/polyfill.js +23 -0
  115. package/vendor/regexp.prototype.flags/shim.js +29 -0
  116. package/vendor/side-channel/index.js +128 -0
  117. package/vendor/which-boxed-primitive/index.js +38 -0
  118. package/vendor/which-collection/index.js +29 -0
  119. package/vendor/which-typed-array/index.js +63 -0
@@ -0,0 +1,63 @@
1
+ import { c as commonjsGlobal } from '../../_virtual/commonjsHelpers.js';
2
+ import { f as foreach } from '../foreach/index.js';
3
+ import { a as availableTypedArrays$1 } from '../available-typed-arrays/index.js';
4
+ import { c as callBound$1 } from '../call-bind/callBound.js';
5
+ import { s as shams } from '../has-tostringtag/shams.js';
6
+ import { g as getOwnPropertyDescriptor } from '../es-abstract/helpers/getOwnPropertyDescriptor.js';
7
+ import { i as isTypedArray$1 } from '../is-typed-array/index.js';
8
+
9
+ var forEach = foreach;
10
+ var availableTypedArrays = availableTypedArrays$1;
11
+ var callBound = callBound$1;
12
+
13
+ var $toString = callBound('Object.prototype.toString');
14
+ var hasToStringTag = shams();
15
+
16
+ var g = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
17
+ var typedArrays = availableTypedArrays();
18
+
19
+ var $slice = callBound('String.prototype.slice');
20
+ var toStrTags = {};
21
+ var gOPD = getOwnPropertyDescriptor;
22
+ var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
23
+ if (hasToStringTag && gOPD && getPrototypeOf) {
24
+ forEach(typedArrays, function (typedArray) {
25
+ if (typeof g[typedArray] === 'function') {
26
+ var arr = new g[typedArray]();
27
+ if (Symbol.toStringTag in arr) {
28
+ var proto = getPrototypeOf(arr);
29
+ var descriptor = gOPD(proto, Symbol.toStringTag);
30
+ if (!descriptor) {
31
+ var superProto = getPrototypeOf(proto);
32
+ descriptor = gOPD(superProto, Symbol.toStringTag);
33
+ }
34
+ toStrTags[typedArray] = descriptor.get;
35
+ }
36
+ }
37
+ });
38
+ }
39
+
40
+ var tryTypedArrays = function tryAllTypedArrays(value) {
41
+ var foundName = false;
42
+ forEach(toStrTags, function (getter, typedArray) {
43
+ if (!foundName) {
44
+ try {
45
+ var name = getter.call(value);
46
+ if (name === typedArray) {
47
+ foundName = name;
48
+ }
49
+ } catch (e) {}
50
+ }
51
+ });
52
+ return foundName;
53
+ };
54
+
55
+ var isTypedArray = isTypedArray$1;
56
+
57
+ var whichTypedArray = function whichTypedArray(value) {
58
+ if (!isTypedArray(value)) { return false; }
59
+ if (!hasToStringTag || !(Symbol.toStringTag in value)) { return $slice($toString(value), 8, -1); }
60
+ return tryTypedArrays(value);
61
+ };
62
+
63
+ export { whichTypedArray as w };