@kitware/vtk.js 21.6.0 → 22.0.2
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/Common/Core/CellArray.js +2 -2
- package/Common/Core/DataArray.js +2 -2
- package/Common/Core/MatrixBuilder.d.ts +1 -1
- package/Common/Core/ScalarsToColors.js +12 -11
- package/Common/DataModel/BoundingBox.js +2 -2
- package/Common/DataModel/Box.js +2 -2
- package/Common/DataModel/CellTypes.js +2 -2
- package/Common/DataModel/Cylinder.js +2 -2
- package/Common/DataModel/DataSet.js +2 -2
- package/Common/DataModel/DataSetAttributes.js +2 -2
- package/Common/DataModel/ImplicitBoolean.js +2 -2
- package/Common/DataModel/Line.js +2 -2
- package/Common/DataModel/PiecewiseFunction.js +3 -3
- package/Common/DataModel/Plane.js +2 -2
- package/Common/DataModel/SelectionNode.js +2 -2
- package/Common/DataModel/Sphere.js +2 -2
- package/Common/DataModel/StructuredData.js +2 -2
- package/Common/DataModel/Triangle.js +2 -2
- package/Common/Transform/LandmarkTransform.js +2 -2
- package/Filters/Core/Cutter.js +2 -2
- package/Filters/General/Calculator.js +2 -2
- package/Filters/Sources/Arrow2DSource.js +2 -2
- package/Filters/Sources/CircleSource.js +2 -2
- package/IO/Core/DataAccessHelper/HtmlDataAccessHelper.js +6 -12
- package/IO/Core/DataAccessHelper/HttpDataAccessHelper.js +11 -19
- package/IO/Core/DataAccessHelper/JSZipDataAccessHelper.js +8 -15
- package/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.js +11 -19
- package/IO/Core/HttpSceneLoader.js +2 -2
- package/IO/Core/ImageStream/DefaultProtocol.js +2 -6
- package/IO/Geometry/PLYWriter/Constants.js +19 -0
- package/IO/Geometry/PLYWriter.d.ts +203 -0
- package/IO/Geometry/PLYWriter.js +323 -0
- package/IO/Geometry/STLWriter.js +2 -2
- package/IO/Geometry.js +3 -1
- package/IO/XML/XMLImageDataWriter.js +2 -2
- package/IO/XML/XMLPolyDataWriter.js +2 -2
- package/Imaging/Core/AbstractImageInterpolator/InterpolationInfo.js +2 -2
- package/Imaging/Core/AbstractImageInterpolator.js +2 -2
- package/Imaging/Core/ImageInterpolator.js +12 -12
- package/Imaging/Core/ImageReslice.js +10 -10
- package/Imaging/Hybrid/SampleFunction.js +2 -2
- package/Interaction/Animations/TimeStepBasedAnimationHandler.js +2 -2
- package/Interaction/Manipulators/MouseBoxSelectorManipulator.js +2 -2
- package/Interaction/Style/InteractorStyleManipulator.js +2 -2
- package/Interaction/Style/InteractorStyleRemoteMouse.js +2 -2
- package/Interaction/UI/FPSMonitor.js +2 -2
- package/Interaction/UI/Slider.js +2 -2
- package/Interaction/Widgets/AbstractWidget.js +2 -2
- package/Interaction/Widgets/DistanceRepresentation.js +2 -2
- package/Interaction/Widgets/DistanceWidget.js +2 -2
- package/Interaction/Widgets/HandleRepresentation.js +2 -2
- package/Interaction/Widgets/HandleWidget.js +2 -2
- package/Interaction/Widgets/ImageCroppingRegionsWidget.js +2 -2
- package/Interaction/Widgets/LabelRepresentation.js +2 -2
- package/Interaction/Widgets/LabelWidget.js +2 -2
- package/Interaction/Widgets/LineRepresentation.js +2 -2
- package/Interaction/Widgets/LineWidget.js +2 -2
- package/Interaction/Widgets/OrientationMarkerWidget.js +2 -2
- package/Interaction/Widgets/PiecewiseGaussianWidget.js +2 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursor.js +2 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorActor.js +2 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorPolyDataAlgorithm.js +2 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorWidget.js +2 -2
- package/Interaction/Widgets/SphereHandleRepresentation.js +2 -2
- package/Proxy/Core/PiecewiseFunctionProxy.js +2 -2
- package/Proxy/Core/ProxyManager/core.js +2 -2
- package/Proxy/Core/ProxyManager/properties.js +2 -2
- package/Proxy/Core/ProxyManager/state.js +2 -2
- package/Proxy/Representations/SliceRepresentationProxy.js +2 -2
- package/Rendering/Core/AbstractMapper.d.ts +4 -4
- package/Rendering/Core/AbstractMapper.js +18 -7
- package/Rendering/Core/Actor.js +2 -2
- package/Rendering/Core/AnnotatedCubeActor.js +2 -2
- package/Rendering/Core/AxesActor.js +2 -2
- package/Rendering/Core/CellPicker.js +2 -2
- package/Rendering/Core/ColorTransferFunction.js +2 -2
- package/Rendering/Core/Coordinate.js +2 -2
- package/Rendering/Core/CubeAxesActor.js +2 -2
- package/Rendering/Core/Follower.js +2 -2
- package/Rendering/Core/Glyph3DMapper.js +2 -2
- package/Rendering/Core/ImageMapper.js +2 -2
- package/Rendering/Core/InteractorObserver.js +2 -2
- package/Rendering/Core/InteractorStyle.js +2 -2
- package/Rendering/Core/Mapper.js +2 -2
- package/Rendering/Core/Picker.js +2 -2
- package/Rendering/Core/Property.js +2 -2
- package/Rendering/Core/RenderWindowInteractor.js +20 -11
- package/Rendering/Core/ScalarBarActor.js +2 -2
- package/Rendering/Core/VolumeMapper.js +1 -4
- package/Rendering/Core/VolumeProperty.js +2 -2
- package/Rendering/Core.js +2 -2
- package/Rendering/Misc/RenderWindowWithControlBar.js +2 -2
- package/Rendering/Misc/SynchronizableRenderWindow/vtkObjectManager.js +2 -2
- package/Rendering/Misc/SynchronizableRenderWindow.js +2 -2
- package/Rendering/OpenGL/BufferObject.js +5 -5
- package/Rendering/OpenGL/CellArrayBufferObject.js +2 -1
- package/Rendering/OpenGL/Glyph3DMapper.js +2 -2
- package/Rendering/OpenGL/HardwareSelector.js +2 -2
- package/Rendering/OpenGL/RenderWindow.js +1 -1
- package/Rendering/OpenGL/SphereMapper.js +2 -2
- package/Rendering/OpenGL/StickMapper.js +2 -2
- package/Rendering/OpenGL/SurfaceLIC/SurfaceLICMapper.js +2 -2
- package/Rendering/OpenGL/Texture.js +2 -2
- package/Rendering/OpenGL/VolumeMapper.js +11 -18
- package/Rendering/WebGPU/Buffer.js +2 -2
- package/Rendering/WebGPU/BufferManager.js +2 -2
- package/Rendering/WebGPU/Glyph3DMapper.js +2 -2
- package/Rendering/WebGPU/HardwareSelector.js +1 -1
- package/Rendering/WebGPU/MapperHelper.js +2 -1
- package/Rendering/WebGPU/PolyDataMapper.js +1 -1
- package/Rendering/WebGPU/StorageBuffer.js +1 -1
- package/Rendering/WebGPU/TextureManager.js +1 -1
- package/Rendering/WebGPU/UniformBuffer.js +69 -52
- package/Rendering/WebGPU/VolumePass.js +55 -12
- package/Rendering/WebGPU/VolumePassFSQ.js +4 -1
- package/Widgets/Core/AbstractWidgetFactory.js +2 -2
- package/Widgets/Representations/ArrowHandleRepresentation.js +2 -2
- package/Widgets/Representations/ContextRepresentation.js +2 -2
- package/Widgets/Representations/HandleRepresentation.js +2 -2
- package/Widgets/Representations/PolyLineRepresentation.js +2 -2
- package/Widgets/Representations/ResliceCursorContextRepresentation.js +2 -2
- package/Widgets/SVG/SVGLandmarkRepresentation.js +2 -2
- package/Widgets/Widgets3D/EllipseWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/EllipseWidget.js +2 -2
- package/Widgets/Widgets3D/InteractiveOrientationWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/LineWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/RectangleWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/RectangleWidget.js +2 -2
- package/Widgets/Widgets3D/ShapeWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/ShapeWidget.js +2 -2
- package/_virtual/rollup-plugin-worker-loader__module_Sources/Filters/General/PaintFilter/PaintFilter.worker.js +44 -44
- package/_virtual/rollup-plugin-worker-loader__module_Sources/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js +1 -1
- package/macros.js +16 -32
- package/package.json +52 -54
- package/vtk.js +2 -2
- package/Utilities/config/rules-linter.js +0 -13
|
@@ -335,9 +335,9 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
335
335
|
Z: 5
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
/**
|
|
339
|
-
* Common utilities
|
|
340
|
-
* @module glMatrix
|
|
338
|
+
/**
|
|
339
|
+
* Common utilities
|
|
340
|
+
* @module glMatrix
|
|
341
341
|
*/
|
|
342
342
|
var ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array;
|
|
343
343
|
if (!Math.hypot) Math.hypot = function () {
|
|
@@ -351,15 +351,15 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
351
351
|
return Math.sqrt(y);
|
|
352
352
|
};
|
|
353
353
|
|
|
354
|
-
/**
|
|
355
|
-
* 3 Dimensional Vector
|
|
356
|
-
* @module vec3
|
|
354
|
+
/**
|
|
355
|
+
* 3 Dimensional Vector
|
|
356
|
+
* @module vec3
|
|
357
357
|
*/
|
|
358
358
|
|
|
359
|
-
/**
|
|
360
|
-
* Creates a new, empty vec3
|
|
361
|
-
*
|
|
362
|
-
* @returns {vec3} a new 3D vector
|
|
359
|
+
/**
|
|
360
|
+
* Creates a new, empty vec3
|
|
361
|
+
*
|
|
362
|
+
* @returns {vec3} a new 3D vector
|
|
363
363
|
*/
|
|
364
364
|
|
|
365
365
|
function create() {
|
|
@@ -373,13 +373,13 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
373
373
|
|
|
374
374
|
return out;
|
|
375
375
|
}
|
|
376
|
-
/**
|
|
377
|
-
* Subtracts vector b from vector a
|
|
378
|
-
*
|
|
379
|
-
* @param {vec3} out the receiving vector
|
|
380
|
-
* @param {ReadonlyVec3} a the first operand
|
|
381
|
-
* @param {ReadonlyVec3} b the second operand
|
|
382
|
-
* @returns {vec3} out
|
|
376
|
+
/**
|
|
377
|
+
* Subtracts vector b from vector a
|
|
378
|
+
*
|
|
379
|
+
* @param {vec3} out the receiving vector
|
|
380
|
+
* @param {ReadonlyVec3} a the first operand
|
|
381
|
+
* @param {ReadonlyVec3} b the second operand
|
|
382
|
+
* @returns {vec3} out
|
|
383
383
|
*/
|
|
384
384
|
|
|
385
385
|
function subtract(out, a, b) {
|
|
@@ -388,13 +388,13 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
388
388
|
out[2] = a[2] - b[2];
|
|
389
389
|
return out;
|
|
390
390
|
}
|
|
391
|
-
/**
|
|
392
|
-
* Scales a vec3 by a scalar number
|
|
393
|
-
*
|
|
394
|
-
* @param {vec3} out the receiving vector
|
|
395
|
-
* @param {ReadonlyVec3} a the vector to scale
|
|
396
|
-
* @param {Number} b amount to scale the vector by
|
|
397
|
-
* @returns {vec3} out
|
|
391
|
+
/**
|
|
392
|
+
* Scales a vec3 by a scalar number
|
|
393
|
+
*
|
|
394
|
+
* @param {vec3} out the receiving vector
|
|
395
|
+
* @param {ReadonlyVec3} a the vector to scale
|
|
396
|
+
* @param {Number} b amount to scale the vector by
|
|
397
|
+
* @returns {vec3} out
|
|
398
398
|
*/
|
|
399
399
|
|
|
400
400
|
function scale(out, a, b) {
|
|
@@ -403,14 +403,14 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
403
403
|
out[2] = a[2] * b;
|
|
404
404
|
return out;
|
|
405
405
|
}
|
|
406
|
-
/**
|
|
407
|
-
* Adds two vec3's after scaling the second operand by a scalar value
|
|
408
|
-
*
|
|
409
|
-
* @param {vec3} out the receiving vector
|
|
410
|
-
* @param {ReadonlyVec3} a the first operand
|
|
411
|
-
* @param {ReadonlyVec3} b the second operand
|
|
412
|
-
* @param {Number} scale the amount to scale b by before adding
|
|
413
|
-
* @returns {vec3} out
|
|
406
|
+
/**
|
|
407
|
+
* Adds two vec3's after scaling the second operand by a scalar value
|
|
408
|
+
*
|
|
409
|
+
* @param {vec3} out the receiving vector
|
|
410
|
+
* @param {ReadonlyVec3} a the first operand
|
|
411
|
+
* @param {ReadonlyVec3} b the second operand
|
|
412
|
+
* @param {Number} scale the amount to scale b by before adding
|
|
413
|
+
* @returns {vec3} out
|
|
414
414
|
*/
|
|
415
415
|
|
|
416
416
|
function scaleAndAdd(out, a, b, scale) {
|
|
@@ -419,17 +419,17 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
419
419
|
out[2] = a[2] + b[2] * scale;
|
|
420
420
|
return out;
|
|
421
421
|
}
|
|
422
|
-
/**
|
|
423
|
-
* Perform some operation over an array of vec3s.
|
|
424
|
-
*
|
|
425
|
-
* @param {Array} a the array of vectors to iterate over
|
|
426
|
-
* @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed
|
|
427
|
-
* @param {Number} offset Number of elements to skip at the beginning of the array
|
|
428
|
-
* @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array
|
|
429
|
-
* @param {Function} fn Function to call for each vector in the array
|
|
430
|
-
* @param {Object} [arg] additional argument to pass to fn
|
|
431
|
-
* @returns {Array} a
|
|
432
|
-
* @function
|
|
422
|
+
/**
|
|
423
|
+
* Perform some operation over an array of vec3s.
|
|
424
|
+
*
|
|
425
|
+
* @param {Array} a the array of vectors to iterate over
|
|
426
|
+
* @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed
|
|
427
|
+
* @param {Number} offset Number of elements to skip at the beginning of the array
|
|
428
|
+
* @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array
|
|
429
|
+
* @param {Function} fn Function to call for each vector in the array
|
|
430
|
+
* @param {Object} [arg] additional argument to pass to fn
|
|
431
|
+
* @returns {Array} a
|
|
432
|
+
* @function
|
|
433
433
|
*/
|
|
434
434
|
|
|
435
435
|
(function () {
|
|
@@ -695,7 +695,7 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
695
695
|
return response;
|
|
696
696
|
});
|
|
697
697
|
|
|
698
|
-
}()
|
|
698
|
+
})();
|
|
699
699
|
}, null);
|
|
700
700
|
/* eslint-enable */
|
|
701
701
|
|
|
@@ -271,7 +271,7 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
271
271
|
return Promise.resolve(new registerWebworker.TransferableResponse(histogram, [histogram.buffer]));
|
|
272
272
|
});
|
|
273
273
|
|
|
274
|
-
}()
|
|
274
|
+
})();
|
|
275
275
|
}, null);
|
|
276
276
|
/* eslint-enable */
|
|
277
277
|
|
package/macros.js
CHANGED
|
@@ -6,9 +6,9 @@ import _construct from '@babel/runtime/helpers/construct';
|
|
|
6
6
|
import vtk, { vtkGlobal } from './vtk.js';
|
|
7
7
|
import ClassHierarchy from './Common/Core/ClassHierarchy.js';
|
|
8
8
|
|
|
9
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
9
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
10
|
|
|
11
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
12
|
var globalMTime = 0;
|
|
13
13
|
var VOID = Symbol('void');
|
|
14
14
|
|
|
@@ -702,12 +702,7 @@ function algo(publicAPI, model, numberOfInputs, numberOfOutputs) {
|
|
|
702
702
|
return model.inputConnection[port];
|
|
703
703
|
}
|
|
704
704
|
|
|
705
|
-
function
|
|
706
|
-
if (model.deleted) {
|
|
707
|
-
vtkErrorMacro('instance deleted - cannot call any method');
|
|
708
|
-
return;
|
|
709
|
-
}
|
|
710
|
-
|
|
705
|
+
function getPortToFill() {
|
|
711
706
|
var portToFill = model.numberOfInputs;
|
|
712
707
|
|
|
713
708
|
while (portToFill && !model.inputData[portToFill - 1] && !model.inputConnection[portToFill - 1]) {
|
|
@@ -718,26 +713,25 @@ function algo(publicAPI, model, numberOfInputs, numberOfOutputs) {
|
|
|
718
713
|
model.numberOfInputs++;
|
|
719
714
|
}
|
|
720
715
|
|
|
721
|
-
|
|
716
|
+
return portToFill;
|
|
722
717
|
}
|
|
723
718
|
|
|
724
|
-
function
|
|
719
|
+
function addInputConnection(outputPort) {
|
|
725
720
|
if (model.deleted) {
|
|
726
721
|
vtkErrorMacro('instance deleted - cannot call any method');
|
|
727
722
|
return;
|
|
728
723
|
}
|
|
729
724
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
while (portToFill && !model.inputData[portToFill - 1] && !model.inputConnection[portToFill - 1]) {
|
|
733
|
-
portToFill--;
|
|
734
|
-
}
|
|
725
|
+
setInputConnection(outputPort, getPortToFill());
|
|
726
|
+
}
|
|
735
727
|
|
|
736
|
-
|
|
737
|
-
|
|
728
|
+
function addInputData(dataset) {
|
|
729
|
+
if (model.deleted) {
|
|
730
|
+
vtkErrorMacro('instance deleted - cannot call any method');
|
|
731
|
+
return;
|
|
738
732
|
}
|
|
739
733
|
|
|
740
|
-
setInputData(dataset,
|
|
734
|
+
setInputData(dataset, getPortToFill());
|
|
741
735
|
}
|
|
742
736
|
|
|
743
737
|
function getOutputData() {
|
|
@@ -757,15 +751,11 @@ function algo(publicAPI, model, numberOfInputs, numberOfOutputs) {
|
|
|
757
751
|
|
|
758
752
|
publicAPI.shouldUpdate = function () {
|
|
759
753
|
var localMTime = publicAPI.getMTime();
|
|
760
|
-
var count = numberOfOutputs;
|
|
761
754
|
var minOutputMTime = Infinity;
|
|
755
|
+
var count = numberOfOutputs;
|
|
762
756
|
|
|
763
757
|
while (count--) {
|
|
764
|
-
if (!model.output[count]) {
|
|
765
|
-
return true;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
if (model.output[count].isDeleted()) {
|
|
758
|
+
if (!model.output[count] || model.output[count].isDeleted()) {
|
|
769
759
|
return true;
|
|
770
760
|
}
|
|
771
761
|
|
|
@@ -783,15 +773,9 @@ function algo(publicAPI, model, numberOfInputs, numberOfOutputs) {
|
|
|
783
773
|
count = model.numberOfInputs;
|
|
784
774
|
|
|
785
775
|
while (count--) {
|
|
786
|
-
|
|
787
|
-
return true;
|
|
788
|
-
}
|
|
789
|
-
}
|
|
776
|
+
var _model$inputConnectio, _publicAPI$getInputDa;
|
|
790
777
|
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
while (count--) {
|
|
794
|
-
if (publicAPI.getInputData(count) && publicAPI.getInputData(count).getMTime() > minOutputMTime) {
|
|
778
|
+
if ((_model$inputConnectio = model.inputConnection[count]) !== null && _model$inputConnectio !== void 0 && _model$inputConnectio.filter.shouldUpdate() || ((_publicAPI$getInputDa = publicAPI.getInputData(count)) === null || _publicAPI$getInputDa === void 0 ? void 0 : _publicAPI$getInputDa.getMTime()) > minOutputMTime) {
|
|
795
779
|
return true;
|
|
796
780
|
}
|
|
797
781
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitware/vtk.js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.2",
|
|
4
4
|
"description": "Visualization Toolkit for the Web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"3d",
|
|
@@ -30,69 +30,68 @@
|
|
|
30
30
|
"main": "./index.js",
|
|
31
31
|
"module": "./index.js",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@babel/runtime": "7.
|
|
34
|
-
"blueimp-md5": "2.
|
|
35
|
-
"commander": "8.
|
|
36
|
-
"d3-scale": "4.0.
|
|
37
|
-
"gl-matrix": "3.3
|
|
33
|
+
"@babel/runtime": "7.16.7",
|
|
34
|
+
"blueimp-md5": "2.19.0",
|
|
35
|
+
"commander": "8.3.0",
|
|
36
|
+
"d3-scale": "4.0.2",
|
|
37
|
+
"gl-matrix": "3.4.3",
|
|
38
38
|
"globalthis": "1.0.2",
|
|
39
39
|
"jszip": "3.7.1",
|
|
40
40
|
"pako": "2.0.4",
|
|
41
41
|
"patch-package": "6.4.7",
|
|
42
42
|
"seedrandom": "3.0.5",
|
|
43
43
|
"shader-loader": "1.3.1",
|
|
44
|
-
"shelljs": "0.8.
|
|
44
|
+
"shelljs": "0.8.5",
|
|
45
45
|
"stream-browserify": "3.0.0",
|
|
46
46
|
"webworker-promise": "0.4.4",
|
|
47
47
|
"worker-loader": "3.0.8",
|
|
48
48
|
"xmlbuilder2": "3.0.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@babel/core": "7.
|
|
52
|
-
"@babel/eslint-parser": "7.16.
|
|
53
|
-
"@babel/plugin-transform-runtime": "7.
|
|
54
|
-
"@babel/preset-env": "7.
|
|
55
|
-
"@commitlint/cli": "
|
|
56
|
-
"@commitlint/config-conventional": "
|
|
57
|
-
"@mapbox/node-pre-gyp": "1.0.
|
|
58
|
-
"@rollup/plugin-alias": "3.1.
|
|
51
|
+
"@babel/core": "7.16.7",
|
|
52
|
+
"@babel/eslint-parser": "7.16.5",
|
|
53
|
+
"@babel/plugin-transform-runtime": "7.16.7",
|
|
54
|
+
"@babel/preset-env": "7.16.7",
|
|
55
|
+
"@commitlint/cli": "16.0.2",
|
|
56
|
+
"@commitlint/config-conventional": "16.0.0",
|
|
57
|
+
"@mapbox/node-pre-gyp": "1.0.8",
|
|
58
|
+
"@rollup/plugin-alias": "3.1.9",
|
|
59
59
|
"@rollup/plugin-babel": "5.3.0",
|
|
60
|
-
"@rollup/plugin-commonjs": "
|
|
60
|
+
"@rollup/plugin-commonjs": "21.0.1",
|
|
61
61
|
"@rollup/plugin-eslint": "8.0.1",
|
|
62
62
|
"@rollup/plugin-json": "4.1.0",
|
|
63
|
-
"@rollup/plugin-node-resolve": "13.
|
|
64
|
-
"autoprefixer": "10.
|
|
65
|
-
"babel-loader": "8.2.
|
|
66
|
-
"babel-plugin-istanbul": "6.
|
|
63
|
+
"@rollup/plugin-node-resolve": "13.1.3",
|
|
64
|
+
"autoprefixer": "10.4.2",
|
|
65
|
+
"babel-loader": "8.2.3",
|
|
66
|
+
"babel-plugin-istanbul": "6.1.1",
|
|
67
67
|
"buffer": "6.0.3",
|
|
68
68
|
"commitizen": "4.2.4",
|
|
69
|
-
"concurrently": "
|
|
70
|
-
"copy-webpack-plugin": "
|
|
69
|
+
"concurrently": "7.0.0",
|
|
70
|
+
"copy-webpack-plugin": "10.2.0",
|
|
71
71
|
"cross-env": "7.0.3",
|
|
72
|
-
"css-loader": "6.
|
|
72
|
+
"css-loader": "6.5.1",
|
|
73
73
|
"dotenv": "10.0.0",
|
|
74
74
|
"dox": "0.9.0",
|
|
75
|
-
"eslint": "
|
|
76
|
-
"eslint-config-airbnb": "
|
|
75
|
+
"eslint": "8.6.0",
|
|
76
|
+
"eslint-config-airbnb": "19.0.4",
|
|
77
77
|
"eslint-config-prettier": "8.3.0",
|
|
78
|
-
"eslint-import-resolver-webpack": "0.13.
|
|
79
|
-
"eslint-
|
|
80
|
-
"eslint-plugin-
|
|
81
|
-
"eslint-plugin-jsx-a11y": "6.4.1",
|
|
78
|
+
"eslint-import-resolver-webpack": "0.13.2",
|
|
79
|
+
"eslint-plugin-import": "2.25.4",
|
|
80
|
+
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
82
81
|
"eslint-plugin-prettier": "4.0.0",
|
|
83
|
-
"eslint-webpack-plugin": "3.
|
|
84
|
-
"expose-loader": "3.
|
|
85
|
-
"glob": "7.
|
|
82
|
+
"eslint-webpack-plugin": "3.1.1",
|
|
83
|
+
"expose-loader": "3.1.0",
|
|
84
|
+
"glob": "7.2.0",
|
|
86
85
|
"handlebars": "4.7.7",
|
|
87
86
|
"hson-loader": "2.0.0",
|
|
88
|
-
"html-loader": "
|
|
89
|
-
"html-webpack-plugin": "5.
|
|
90
|
-
"husky": "7.0.
|
|
87
|
+
"html-loader": "3.1.0",
|
|
88
|
+
"html-webpack-plugin": "5.5.0",
|
|
89
|
+
"husky": "7.0.4",
|
|
91
90
|
"ignore-loader": "0.1.2",
|
|
92
|
-
"karma": "6.3.
|
|
91
|
+
"karma": "6.3.10",
|
|
93
92
|
"karma-chrome-launcher": "3.1.0",
|
|
94
|
-
"karma-coverage": "2.0
|
|
95
|
-
"karma-firefox-launcher": "2.1.
|
|
93
|
+
"karma-coverage": "2.1.0",
|
|
94
|
+
"karma-firefox-launcher": "2.1.2",
|
|
96
95
|
"karma-junit-reporter": "2.0.1",
|
|
97
96
|
"karma-webpack": "5.0.0",
|
|
98
97
|
"kw-doc": "3.1.2",
|
|
@@ -100,34 +99,33 @@
|
|
|
100
99
|
"magic-string": "0.25.7",
|
|
101
100
|
"moment": "2.29.1",
|
|
102
101
|
"pixelmatch": "5.2.1",
|
|
103
|
-
"postcss-loader": "6.
|
|
104
|
-
"prettier": "2.
|
|
102
|
+
"postcss-loader": "6.2.1",
|
|
103
|
+
"prettier": "2.5.1",
|
|
105
104
|
"process": "0.11.10",
|
|
106
105
|
"regenerator-runtime": "0.13.9",
|
|
107
|
-
"rollup": "2.
|
|
106
|
+
"rollup": "2.63.0",
|
|
108
107
|
"rollup-plugin-auto-external": "2.0.0",
|
|
109
108
|
"rollup-plugin-copy": "3.4.0",
|
|
110
109
|
"rollup-plugin-ignore": "1.0.10",
|
|
111
|
-
"rollup-plugin-polyfill-node": "0.
|
|
112
|
-
"rollup-plugin-postcss": "4.0.
|
|
110
|
+
"rollup-plugin-polyfill-node": "0.8.0",
|
|
111
|
+
"rollup-plugin-postcss": "4.0.2",
|
|
113
112
|
"rollup-plugin-string": "3.0.0",
|
|
114
113
|
"rollup-plugin-svgo": "1.1.0",
|
|
115
114
|
"rollup-plugin-web-worker-loader": "1.6.1",
|
|
116
|
-
"semantic-release": "
|
|
117
|
-
"string-replace-loader": "3.0
|
|
118
|
-
"style-loader": "3.
|
|
119
|
-
"tap-markdown": "1.2.1",
|
|
115
|
+
"semantic-release": "18.0.1",
|
|
116
|
+
"string-replace-loader": "3.1.0",
|
|
117
|
+
"style-loader": "3.3.1",
|
|
120
118
|
"tap-spec": "5.0.0",
|
|
121
|
-
"tape": "5.
|
|
119
|
+
"tape": "5.4.0",
|
|
122
120
|
"tape-catch": "1.0.6",
|
|
123
|
-
"webpack": "5.
|
|
124
|
-
"webpack-bundle-analyzer": "4.
|
|
125
|
-
"webpack-cli": "4.
|
|
121
|
+
"webpack": "5.65.0",
|
|
122
|
+
"webpack-bundle-analyzer": "4.5.0",
|
|
123
|
+
"webpack-cli": "4.9.1",
|
|
126
124
|
"webpack-dashboard": "3.3.6",
|
|
127
|
-
"webpack-dev-server": "4.2
|
|
125
|
+
"webpack-dev-server": "4.7.2",
|
|
128
126
|
"webpack-merge": "5.8.0",
|
|
129
|
-
"webpack-notifier": "1.
|
|
130
|
-
"wslink": "1.
|
|
127
|
+
"webpack-notifier": "1.15.0",
|
|
128
|
+
"wslink": "1.3.1",
|
|
131
129
|
"xml2js": "0.4.23"
|
|
132
130
|
},
|
|
133
131
|
"peerDependencies": {
|
package/vtk.js
CHANGED
|
@@ -2,9 +2,9 @@ import _typeof from '@babel/runtime/helpers/typeof';
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import globalThisShim from 'globalthis';
|
|
4
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
var vtkGlobal = globalThisShim(); // returns native globalThis if compliant
|
|
9
9
|
|
|
10
10
|
var factoryMapping = {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
const eslintrcPath = path.join(__dirname, '../../.eslintrc.js');
|
|
4
|
-
|
|
5
|
-
module.exports = [
|
|
6
|
-
{
|
|
7
|
-
test: /\.js$/,
|
|
8
|
-
loader: 'eslint-loader',
|
|
9
|
-
exclude: /node_modules/,
|
|
10
|
-
enforce: 'pre',
|
|
11
|
-
options: { configFile: eslintrcPath },
|
|
12
|
-
},
|
|
13
|
-
];
|