larvitar 2.4.0 → 2.4.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/README.md +2 -2
- package/dist/imaging/imageRendering.d.ts +3 -2
- package/dist/larvitar.js +9 -5
- package/dist/larvitar.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
## Dicom Image Toolkit for CornerstoneJS
|
|
10
10
|
|
|
11
|
-
### Current version: 2.4.
|
|
11
|
+
### Current version: 2.4.2
|
|
12
12
|
|
|
13
|
-
### Latest Published Release: 2.4.
|
|
13
|
+
### Latest Published Release: 2.4.2
|
|
14
14
|
|
|
15
15
|
This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornerstone-js environment.
|
|
16
16
|
|
|
@@ -125,8 +125,9 @@ export declare const resetViewports: (elementIds: string[], keys?: Array<"contra
|
|
|
125
125
|
* Update viewport data in store
|
|
126
126
|
* @instance
|
|
127
127
|
* @function updateViewportData
|
|
128
|
-
* @param {
|
|
129
|
-
* @param {
|
|
128
|
+
* @param {string} elementId - The html div id used for rendering or its DOM HTMLElement
|
|
129
|
+
* @param {Viewport} viewportData - The new viewport data
|
|
130
|
+
* @param {string} activeTool - The active tool on the viewport
|
|
130
131
|
*/
|
|
131
132
|
export declare const updateViewportData: (elementId: string, viewportData: Viewport, activeTool: string) => void;
|
|
132
133
|
/**
|
package/dist/larvitar.js
CHANGED
|
@@ -157149,7 +157149,7 @@ const exportImageToBase64OriginalSizes = function (imageId) {
|
|
|
157149
157149
|
// You can use OpenCV functions here
|
|
157150
157150
|
}
|
|
157151
157151
|
else {
|
|
157152
|
-
console.error('OpenCV has not been imported.
|
|
157152
|
+
console.error('OpenCV has not been imported. ExportImageToBase64OriginalSizes function will not work. Please import src="https://docs.opencv.org/4.5.4/opencv.js" in your HTML');
|
|
157153
157153
|
}
|
|
157154
157154
|
let t0 = performance.now();
|
|
157155
157155
|
let canvas = document.createElement("canvas");
|
|
@@ -158875,8 +158875,9 @@ exports.resetViewports = resetViewports;
|
|
|
158875
158875
|
* Update viewport data in store
|
|
158876
158876
|
* @instance
|
|
158877
158877
|
* @function updateViewportData
|
|
158878
|
-
* @param {
|
|
158879
|
-
* @param {
|
|
158878
|
+
* @param {string} elementId - The html div id used for rendering or its DOM HTMLElement
|
|
158879
|
+
* @param {Viewport} viewportData - The new viewport data
|
|
158880
|
+
* @param {string} activeTool - The active tool on the viewport
|
|
158880
158881
|
*/
|
|
158881
158882
|
const updateViewportData = function (elementId, viewportData, activeTool) {
|
|
158882
158883
|
let element = document.getElementById(elementId);
|
|
@@ -158889,6 +158890,8 @@ const updateViewportData = function (elementId, viewportData, activeTool) {
|
|
|
158889
158890
|
if (isValidTool === true) {
|
|
158890
158891
|
switch (activeTool) {
|
|
158891
158892
|
case "WwwcRegion":
|
|
158893
|
+
case "Wwwc":
|
|
158894
|
+
case "Wwwl":
|
|
158892
158895
|
if (viewportData.voi) {
|
|
158893
158896
|
(0, imageStore_1.set)([
|
|
158894
158897
|
"contrast",
|
|
@@ -158930,6 +158933,7 @@ const updateViewportData = function (elementId, viewportData, activeTool) {
|
|
|
158930
158933
|
}
|
|
158931
158934
|
break;
|
|
158932
158935
|
default:
|
|
158936
|
+
// console.warn("unhandled tool: " + activeTool);
|
|
158933
158937
|
break;
|
|
158934
158938
|
}
|
|
158935
158939
|
}
|
|
@@ -165311,7 +165315,7 @@ class WSToggleTool extends BaseBrushTool {
|
|
|
165311
165315
|
// You can use OpenCV functions here
|
|
165312
165316
|
}
|
|
165313
165317
|
else {
|
|
165314
|
-
console.error('OpenCV has not been imported. Tool will not work. Please import src="https://docs.opencv.org/4.5.4/opencv.js" in your HTML');
|
|
165318
|
+
console.error('OpenCV has not been imported. Watershed Segmentation Tool will not work. Please import src="https://docs.opencv.org/4.5.4/opencv.js" in your HTML');
|
|
165315
165319
|
}
|
|
165316
165320
|
this._handleMouseMove = this._handleMouseMove.bind(this);
|
|
165317
165321
|
document.addEventListener("mousemove", this._handleMouseMove);
|
|
@@ -169109,7 +169113,7 @@ module.exports = JSON.parse('{"x00000000":{"tag":"x00000000","vr":"UL","vm":"1",
|
|
|
169109
169113
|
/***/ ((module) => {
|
|
169110
169114
|
|
|
169111
169115
|
"use strict";
|
|
169112
|
-
module.exports = JSON.parse('{"name":"larvitar","keywords":["DICOM","imaging","medical","cornerstone"],"version":"2.4.
|
|
169116
|
+
module.exports = JSON.parse('{"name":"larvitar","keywords":["DICOM","imaging","medical","cornerstone"],"version":"2.4.2","description":"typescript library for parsing, loading, rendering and interacting with DICOM images","repository":{"url":"https://github.com/dvisionlab/Larvitar.git","type":"git"},"main":"dist/larvitar.js","types":"dist/index.d.ts","files":["dist","imaging/**/*.d.ts"],"scripts":{"coverage":"typescript-coverage-report","generate-docs":"node_modules/.bin/jsdoc -c jsdoc.json","build":"webpack --config ./bundler/webpack.prod.js && cp ./dist/larvitar.js ./docs/examples/larvitar.js","dev":"webpack --progress --config ./bundler/webpack.dev.js && cp ./dist/larvitar.js ./docs/examples/larvitar.js","dev-wip":"webpack serve --config ./bundler/webpack.dev-wip.js"},"author":"Simone Manini <simone.manini@dvisionlab.com> (https://www.dvisionlab.com)","contributors":["Mattia Ronzoni <mattia.ronzoni@dvisionlab.com> (https://www.dvisionlab.com)","Sara Zanchi <sara.zanchi@dvisionlab.com> (https://www.dvisionlab.com)","Ale Re <ale.re@dvisionlab.com> (https://www.dvisionlab.com)","Laura Borghesi Re <laura.borghesi@dvisionlab.com> (https://www.dvisionlab.com)"],"license":"MIT","dependencies":{"@rollup/plugin-commonjs":"^17.1.0","cornerstone-core":"^2.6.1","cornerstone-file-image-loader":"^0.3.0","cornerstone-tools":"^6.0.7","cornerstone-wado-image-loader":"^4.13.2","cornerstone-web-image-loader":"^2.1.1","crypto-js":"^4.1.1","dicom-character-set":"^1.0.3","dicom-parser":"^1.8.13","docdash":"^1.2.0","hammerjs":"^2.0.8","jpeg-lossless-decoder-js":"^2.0.7","keycode-js":"^3.1.0","lodash":"^4.17.15","pako":"^1.0.10","papaparse":"^5.3.0","pdfjs-dist":"^3.8.162","plotly.js-dist-min":"^2.27.1","uuid":"^8.3.2"},"devDependencies":{"@babel/core":"^7.21.8","@types/cornerstone-core":"^2.3.0","@types/crypto-js":"^4.1.1","@types/hammerjs":"^2.0.41","@types/lodash":"^4.14.192","@types/papaparse":"^5.3.7","@types/pdfjs-dist":"^2.10.378","@types/plotly.js":"^2.12.30","@types/plotly.js-dist-min":"^2.3.4","@types/uuid":"^9.0.1","babel-loader":"^9.1.2","clean-webpack-plugin":"^4.0.0","copy-webpack-plugin":"^11.0.0","fs":"^0.0.1-security","html-loader":"^4.2.0","html-webpack-plugin":"^5.5.0","ip":"^1.1.8","jsdoc":"^3.6.4","portfinder-sync":"^0.0.2","ts-loader":"^9.4.2","typescript":"^5.0.2","typescript-coverage-report":"^0.7.0","webpack":"^5.76.3","webpack-bundle-analyzer":"^4.8.0","webpack-cli":"^5.0.1","webpack-dev-server":"^4.13.1"}}');
|
|
169113
169117
|
|
|
169114
169118
|
/***/ })
|
|
169115
169119
|
|