2.0.8 • Published 11 months ago
ecg-dicom-web-viewer v2.0.8
ecg-dicom-web-viewer
This library allows viewing an ECG file in DICOM format in web view.
Installation
This module is distributed via npm which is bundled with node and
should be installed as one of your project's dependencies
:
// To install the newest version
npm install --save ecg-dicom-web-viewer
Example
- Once installed import the project.
// Import
import {
ReadECG, //Optional.
Constants, //Optional.
DicomECGViewer, //Principal.
} from "ecg-dicom-web-viewer";
- Instantiate the new class with the necessary data and create the view.
//Load view:
let viewer = new DicomECGViewer(
byteArray, //Data array ECG (XMLHttpRequest response array or...local open data)
divView, //Div where to draw the view
viewportIndex //View number, since you can have several views.
);
viewer.loadCanvas(); // Load canvas view.
Result
Documentation
Currently it works: