Skip to content

Commit a4792ce

Browse files
author
hackermd
committed
Rename viewer class to DICOMMicroscopyViewer
1 parent 589f09f commit a4792ce

File tree

7 files changed

+21
-11
lines changed

7 files changed

+21
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const url = 'http://localhost:8080/dicomweb';
4141
const client = new DICOMwebClient.api.DICOMwebClient({url});
4242
const studyInstanceUID = '1.2.3.4';
4343
const 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

build/dicom-microscopy-viewer.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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;
@@ -49813,7 +49823,7 @@
4981349823
}
4981449824

4981549825
let api = {
49816-
MicroscopyViewer,
49826+
DICOMMicroscopyViewer,
4981749827
};
4981849828

4981949829
exports.api = api;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
],

src/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { getCenter } from 'ol/extent.js';
1515
import { 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 };

src/dicom-microscopy-viewer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { MicroscopyViewer } from './api.js';
1+
import { DICOMMicroscopyViewer } from './api.js';
22

33
let api = {
4-
MicroscopyViewer,
4+
DICOMMicroscopyViewer,
55
};
66

77
export { api };

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const chai = require('chai');
22
chai.should();
33

44
const 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'

0 commit comments

Comments
 (0)