ngx-dicom-web-viewer

This library is a dicom web viewer coding by angular

Usage no npm install needed!

<script type="module">
  import ngxDicomWebViewer from 'https://cdn.skypack.dev/ngx-dicom-web-viewer';
</script>

README

NgxDicomWebViewer

This library is a dicom web viewer coding by angular

Before import DWV Module.

  • run npm i ngx-dicom-web-viewer

  • run npm i ng-zorro-antd & npm i dwv

  • add dwv-decoders & ng-zorro-antd's assets in your angular.json at

            "assets": [
            {
              "glob": "**/*",
              "input": "node_modules/dwv/decoders",
              "output": "/assets/dwv/decoders"
            },
            {
              "glob": "**/*",
              "input": "node_modules/@ant-design/  icons-angular/src/inline-svg/",
              "output": "/assets/"
            }
          ]
    

Usage

copy the dwv module to your angular project

    @NgModule({
    declarations: [],
    imports: [DwvModule],
    providers: [],
    bootstrap: [],
    })

in HTML

    <app-dwv [data]="data"></app-dwv>

API

属性

  • [data] : string image or dicom url