File tree Expand file tree Collapse file tree 7 files changed +21
-11
lines changed Expand file tree Collapse file tree 7 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const url = 'http://localhost:8080/dicomweb';
4141const client = new DICOMwebClient.api.DICOMwebClient ({url});
4242const studyInstanceUID = ' 1.2.3.4' ;
4343const seriesInstanceUID = ' 1.2.3.5' ;
44- const viewer = new DICOMMicroscopyViewer.api.MicroscopyViewer ({
44+ const viewer = new DICOMMicroscopyViewer.api.DICOMMicroscopyViewer ({
4545 client,
4646 studyInstanceUID,
4747 seriesInstanceUID
Original file line number Diff line number Diff line change 11(function (global, factory) {
22 typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
33 typeof define === 'function' && define.amd ? define(['exports'], factory) :
4- (factory((global.MicroscopyViewer = {})));
4+ (factory((global.DICOMMicroscopyViewer = {})));
55}(this, (function (exports) { 'use strict';
66
77 /**
@@ -49441,15 +49441,25 @@
4944149441 });
4944249442 }
4944349443
49444- class MicroscopyViewer {
49444+ class DICOMMicroscopyViewer {
4944549445
49446+ /*
49447+ * options:
49448+ * client - an instance of DICOMwebClient
49449+ * studyInstanceUID - DICOM Study Instance UID
49450+ * seriesInstanceUID - DICOM Study Instance UID
49451+ */
4944649452 constructor(options) {
4944749453 this.client = options.client;
4944849454 this.studyInstanceUID = options.studyInstanceUID;
4944949455 this.seriesInstanceUID = options.seriesInstanceUID;
4945049456 this.map = null;
4945149457 }
4945249458
49459+ /*
49460+ * options:
49461+ * container - name of an HTML document element
49462+ */
4945349463 render(options) {
4945449464 console.log('render images using microscopy viewer');
4945549465 const studyInstanceUID = this.studyInstanceUID;
4981349823 }
4981449824
4981549825 let api = {
49816- MicroscopyViewer ,
49826+ DICOMMicroscopyViewer ,
4981749827 };
4981849828
4981949829 exports.api = api;
Original file line number Diff line number Diff line change 11{
22 "name" : " dicom-microscopy-viewer" ,
3- "version" : " 0.0.1 " ,
3+ "version" : " 0.0.2 " ,
44 "description" : " Web-based viewer for DICOM Visible Light Whole Slide Microscopy Images" ,
55 "main" : " build/dicom-microscopy-viewer.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default {
99 {
1010 file : 'build/dicom-microscopy-viewer.js' ,
1111 format : 'umd' ,
12- name : 'MicroscopyViewer ' ,
12+ name : 'DICOMMicroscopyViewer ' ,
1313 sourceMap : true
1414 } ,
1515 ] ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { getCenter } from 'ol/extent.js';
1515import { formatImageMetadata } from './metadata.js' ;
1616
1717
18- class MicroscopyViewer {
18+ class DICOMMicroscopyViewer {
1919
2020 /*
2121 * options:
@@ -406,4 +406,4 @@ class MicroscopyViewer {
406406
407407}
408408
409- export { MicroscopyViewer } ;
409+ export { DICOMMicroscopyViewer } ;
Original file line number Diff line number Diff line change 1- import { MicroscopyViewer } from './api.js' ;
1+ import { DICOMMicroscopyViewer } from './api.js' ;
22
33let api = {
4- MicroscopyViewer ,
4+ DICOMMicroscopyViewer ,
55} ;
66
77export { api } ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const chai = require('chai');
22chai . should ( ) ;
33
44const dicomMicroscopyViewer = require ( '../build/dicom-microscopy-viewer.js' ) ;
5- const viewer = new dicomMicroscopyViewer . api . MicroscopyViewer ( {
5+ const viewer = new dicomMicroscopyViewer . api . DICOMMicroscopyViewer ( {
66 client : 'foo' ,
77 studyInstanceUID : '1.2.3.4' ,
88 seriesInstanceUID : '1.2.3.5'
You can’t perform that action at this time.
0 commit comments