Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

ecg-dicom-web-viewer

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecg-dicom-web-viewer - npm Package Compare versions

Comparing version 1.0.6 to 2.0.0

tsconfig.json

7

CHANGELOG.md

@@ -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 @@

2

dist/index.umd.js.LICENSE.txt

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc