ecg-dicom-web-viewer
Advanced tools
Comparing version 1.0.6 to 2.0.0
@@ -6,4 +6,9 @@ # Change Log | ||
## [1.0.6](https://github.com/ArturRod/ecg-dicom-web-viewer) (2022-08-04) | ||
## [2.0.0](https://github.com/ArturRod/ecg-dicom-web-viewer) (2022-08-24) | ||
**Note:** The view and rendering with canvas is implemented. This allows to change the amplitude and the time (mm/mV, mm/s) It is also allowed to pan, and zoom. | ||
Rendering is faster and allows more options for the future. The project is passed to Typescript. | ||
## [1.0.6](https://github.com/ArturRod/ecg-dicom-web-viewer) (2022-08-09) | ||
**Note:** It is no longer necessary to pass the user data, these will be read from the arraybyte file itself. | ||
@@ -10,0 +15,0 @@ |
@@ -1,3 +0,1 @@ | ||
/* @license C3.js v0.7.20 | (c) C3 Team and other contributors | http://c3js.org/ */ | ||
/*! dicom-parser - 1.8.12 - 2022-02-07 | (c) 2017 Chris Hafey | https://github.com/cornerstonejs/dicomParser */ |
{ | ||
"name": "ecg-dicom-web-viewer", | ||
"version": "1.0.6", | ||
"version": "2.0.0", | ||
"author": "Arturo Rodrigo (https://github.com/ArturRod)", | ||
@@ -8,3 +8,3 @@ "license": "MIT", | ||
"main": "dist/index.umd.js", | ||
"module": "src/index.js", | ||
"module": "src/index.ts", | ||
"engines": { | ||
@@ -33,12 +33,13 @@ "node": ">=10", | ||
"dependencies": { | ||
"babel-loader": "^8.2.5", | ||
"c3": "^0.7.20", | ||
"dicom-parser": "^1.8.13" | ||
}, | ||
"devDependencies": { | ||
"source-map-loader": "^4.0.0", | ||
"ts-loader": "^9.3.1", | ||
"typescript": "^4.7.4", | ||
"webpack": "^5.74.0", | ||
"webpack-cli": "^4.10.0", | ||
"css-loader": "^6.7.1", | ||
"style-loader": "^3.3.1", | ||
"webpack": "^5.74.0", | ||
"webpack-cli": "^4.10.0" | ||
"style-loader": "^3.3.1" | ||
} | ||
} |
@@ -24,6 +24,5 @@ # ecg-dicom-web-viewer | ||
import { | ||
ReadECGData, | ||
DrawGraphs, | ||
Constants, | ||
DicomECGViewer, | ||
ReadECGData, //Optional. | ||
Constants, //Optional. | ||
DicomECGViewer, //Principal. | ||
} from "ecg-dicom-web-viewer"; | ||
@@ -41,3 +40,3 @@ ``` | ||
); | ||
viewer.loadECG(); // Create ECG View. | ||
viewer.loadCanvas(); // Load canvas view. | ||
``` | ||
@@ -47,3 +46,3 @@ | ||
<img src="https://user-images.githubusercontent.com/86238895/182796938-24c66b88-0225-4756-95fd-523554d65e57.png"/> | ||
<img src="https://user-images.githubusercontent.com/86238895/186395831-a460b9b7-89d9-4ba7-a4b6-c12867bd5a4d.png"/> | ||
@@ -61,2 +60,9 @@ ## Documentation | ||
The next available classes are as follows: | ||
<li><strong>Class DicomECGViewer</strong></li> | ||
<h6> - <strong>constructor(dataDICOMarrayBuffer, idView, nameView)</strong></h4> | ||
<p><strong>dataDICOMarrayBuffer</strong> DICOM DCM ECG Array Buffer.</p> | ||
<p><strong>idView</strong> Draw ID View. Recomended a div.</p> | ||
<p><strong>nameView</strong> Identifier of the view you want to put, in case you have several views, default 0.</p> | ||
<h6> - <strong>loadCanvas()</strong></h4> | ||
<p>Main method, draws the canvas and its entire view.</p> | ||
<li><strong>Class ReadECGData</strong></li> | ||
@@ -67,31 +73,16 @@ <h6> - <strong>readData(dataSet)</strong></h4> | ||
<p>Read the arraydicombuffer and return dataSet.</p> | ||
<li><strong>Class DrawGraphs</strong></li> | ||
<h6> - <strong>drawData()</strong></h6> | ||
<p>Allows you to draw the ECG graph.</p> | ||
<h6> - <strong>noCompatible()</strong></h6> | ||
<p>If the ECG is not compatible it will draw an incompatibility view.</p> | ||
<h6> - <strong>drawLoader() & removeLoader()</strong></h6> | ||
<p>Draw or erase a spinner while loading data.</p> | ||
<h6> - <strong>addDOMChart()</strong></h6> | ||
<p>Draws the data structure in the DOM.</p> | ||
<h6> - <strong>drawLine()</strong></h6> | ||
<p>Draw the lines of the ECG.</p> | ||
<h6> - <strong>bindChart(chartId, channelData, yAxis)</strong></h6> | ||
<p>Create and generate the line with the c3 library.</p> | ||
<li><strong>Static Constants</strong></li> | ||
<p>SOP UID of ECG types and graph measurements.</p> | ||
<li><strong>Class DicomECGViewer</strong></li> | ||
<h6> - <strong>constructor(dataDICOMarrayBuffer, canvas, patientData, nameView)</strong></h4> | ||
<p><strong>dataDICOMarrayBuffer</strong> DICOM DCM ECG Array Buffer.</p> | ||
<p><strong>canvas</strong> Draw ID View.</p> | ||
<p><strong>patientData</strong> Patient Data, default null: patientData = { NAME, PATIENT_ID, BIRTH, SEX, DATE, DESCRIPTION }</p> | ||
<p><strong>nameView</strong> Identifier of the view you want to put, in case you have several views, default 0.</p> | ||
<h6> - <strong>createView()</strong></h4> | ||
<p>Generates the DOM structure.</p> | ||
<h6> - <strong>loadECG()</strong></h4> | ||
<p>Load the data of the graph and draw the content, it is the main method.</p> | ||
<p>ECG references, maximum and minimum amplitudes.</p> | ||
<li><strong>Class GenericCanvas</strong></li> | ||
<p>It is the generic class for the canvas, it contains the values of the number of views, canvas size, rows, columns, grid size...</p> | ||
<li><strong>Class DrawECGCanvas extends GenericCanvas</strong></li> | ||
<p>This class renders the data, both the grid and the view, it also contains the button events.</p> | ||
## Features | ||
<ul> | ||
<li><strong>Generate the graph instead of using the c3 library (since it takes time to load), generate a canvas with the most personalized graph and actions such as scrolling or others. | ||
Calibrate Sop12LeadECGWaveformStorage and GeneralECGWaveformStorage to make it look good. | ||
<li><strong>Display more information such as beats per minute.</strong></li> | ||
<li><strong>Improve canvas scrolling performance.</strong></li> | ||
<li><strong>Support SOP AmbulatoryECGWaveformStorage.</strong></li> | ||
</ul> |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1
7
14
0
59287
7
84
- Removedbabel-loader@^8.2.5
- Removedc3@^0.7.20
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@babel/code-frame@7.25.9(transitive)
- Removed@babel/compat-data@7.25.9(transitive)
- Removed@babel/core@7.25.9(transitive)
- Removed@babel/generator@7.25.9(transitive)
- Removed@babel/helper-compilation-targets@7.25.9(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-module-transforms@7.25.9(transitive)
- Removed@babel/helper-simple-access@7.25.9(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/helper-validator-option@7.25.9(transitive)
- Removed@babel/helpers@7.25.9(transitive)
- Removed@babel/highlight@7.25.9(transitive)
- Removed@babel/parser@7.25.9(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.25.9(transitive)
- Removed@babel/types@7.25.9(transitive)
- Removed@jridgewell/gen-mapping@0.3.5(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/source-map@0.3.6(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removed@types/estree@1.0.6(transitive)
- Removed@types/json-schema@7.0.15(transitive)
- Removed@types/node@22.7.9(transitive)
- Removed@webassemblyjs/ast@1.12.1(transitive)
- Removed@webassemblyjs/floating-point-hex-parser@1.11.6(transitive)
- Removed@webassemblyjs/helper-api-error@1.11.6(transitive)
- Removed@webassemblyjs/helper-buffer@1.12.1(transitive)
- Removed@webassemblyjs/helper-numbers@1.11.6(transitive)
- Removed@webassemblyjs/helper-wasm-bytecode@1.11.6(transitive)
- Removed@webassemblyjs/helper-wasm-section@1.12.1(transitive)
- Removed@webassemblyjs/ieee754@1.11.6(transitive)
- Removed@webassemblyjs/leb128@1.11.6(transitive)
- Removed@webassemblyjs/utf8@1.11.6(transitive)
- Removed@webassemblyjs/wasm-edit@1.12.1(transitive)
- Removed@webassemblyjs/wasm-gen@1.12.1(transitive)
- Removed@webassemblyjs/wasm-opt@1.12.1(transitive)
- Removed@webassemblyjs/wasm-parser@1.12.1(transitive)
- Removed@webassemblyjs/wast-printer@1.12.1(transitive)
- Removed@xtuc/ieee754@1.2.0(transitive)
- Removed@xtuc/long@4.2.2(transitive)
- Removedacorn@8.13.0(transitive)
- Removedacorn-import-attributes@1.9.5(transitive)
- Removedajv@6.12.6(transitive)
- Removedajv-keywords@3.5.2(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedbabel-loader@8.4.1(transitive)
- Removedbig.js@5.2.2(transitive)
- Removedbrowserslist@4.24.2(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedc3@0.7.20(transitive)
- Removedcaniuse-lite@1.0.30001669(transitive)
- Removedchalk@2.4.2(transitive)
- Removedchrome-trace-event@1.0.4(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcommondir@1.0.1(transitive)
- Removedconvert-source-map@2.0.0(transitive)
- Removedd3@5.16.0(transitive)
- Removedd3-array@1.2.4(transitive)
- Removedd3-axis@1.0.12(transitive)
- Removedd3-brush@1.1.6(transitive)
- Removedd3-chord@1.0.6(transitive)
- Removedd3-collection@1.0.7(transitive)
- Removedd3-color@1.4.1(transitive)
- Removedd3-contour@1.3.2(transitive)
- Removedd3-dispatch@1.0.6(transitive)
- Removedd3-drag@1.2.5(transitive)
- Removedd3-dsv@1.2.0(transitive)
- Removedd3-ease@1.0.7(transitive)
- Removedd3-fetch@1.2.0(transitive)
- Removedd3-force@1.2.1(transitive)
- Removedd3-format@1.4.5(transitive)
- Removedd3-geo@1.12.1(transitive)
- Removedd3-hierarchy@1.1.9(transitive)
- Removedd3-interpolate@1.4.0(transitive)
- Removedd3-path@1.0.9(transitive)
- Removedd3-polygon@1.0.6(transitive)
- Removedd3-quadtree@1.0.7(transitive)
- Removedd3-random@1.1.2(transitive)
- Removedd3-scale@2.2.2(transitive)
- Removedd3-scale-chromatic@1.5.0(transitive)
- Removedd3-selection@1.4.2(transitive)
- Removedd3-shape@1.3.7(transitive)
- Removedd3-time@1.1.0(transitive)
- Removedd3-time-format@2.3.0(transitive)
- Removedd3-timer@1.0.10(transitive)
- Removedd3-transition@1.3.2(transitive)
- Removedd3-voronoi@1.1.4(transitive)
- Removedd3-zoom@1.8.3(transitive)
- Removeddebug@4.3.7(transitive)
- Removedelectron-to-chromium@1.5.45(transitive)
- Removedemojis-list@3.0.0(transitive)
- Removedenhanced-resolve@5.17.1(transitive)
- Removedes-module-lexer@1.5.4(transitive)
- Removedescalade@3.2.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedeslint-scope@5.1.1(transitive)
- Removedesrecurse@4.3.0(transitive)
- Removedestraverse@4.3.05.3.0(transitive)
- Removedevents@3.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedfind-cache-dir@3.3.2(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedglob-to-regexp@0.4.1(transitive)
- Removedglobals@11.12.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-flag@3.0.04.0.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedjest-worker@27.5.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjsesc@3.0.2(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson5@2.2.3(transitive)
- Removedloader-runner@4.3.0(transitive)
- Removedloader-utils@2.0.4(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedmake-dir@3.1.0(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedms@2.1.3(transitive)
- Removedneo-async@2.6.2(transitive)
- Removednode-releases@2.0.18(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpkg-dir@4.2.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedrandombytes@2.1.0(transitive)
- Removedrw@1.3.3(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedschema-utils@2.7.13.3.0(transitive)
- Removedsemver@6.3.1(transitive)
- Removedserialize-javascript@6.0.2(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-support@0.5.21(transitive)
- Removedsupports-color@5.5.08.1.1(transitive)
- Removedtapable@2.2.1(transitive)
- Removedterser@5.36.0(transitive)
- Removedterser-webpack-plugin@5.3.10(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedwatchpack@2.4.2(transitive)
- Removedwebpack@5.95.0(transitive)
- Removedwebpack-sources@3.2.3(transitive)
- Removedyallist@3.1.1(transitive)