-
Notifications
You must be signed in to change notification settings - Fork 598
/
Copy pathindex.js
244 lines (235 loc) · 6.91 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
// Internal (some of these are from old internal/legacy expose)
import { default as EVENTS, events } from './events.js';
import {
addEnabledElement,
getEnabledElement,
getEnabledElements,
getEnabledElementsByImageId
} from './enabledElements.js';
import {
addLayer,
getActiveLayer,
getLayer,
getLayers,
getVisibleLayers,
purgeLayers,
removeLayer,
setActiveLayer,
setLayerImage
} from './layers.js';
import {
convertImageToFalseColorImage,
convertToFalseColorImage,
restoreImage
} from './falseColorMapping.js';
import { getElementData, removeElementData } from './enabledElementData.js';
import {
loadAndCacheImage,
loadImage,
registerImageLoader,
registerUnknownImageLoader
} from './imageLoader.js';
import imageLoadPoolManager from './requestPool/imageLoadPoolManager.ts';
import imageRetrievalPoolManager from './requestPool/imageRetrievalPoolManager.ts';
import { RequestPoolManager } from './requestPool/RequestPoolManager.ts';
import { default as canvasToPixel } from './canvasToPixel.js';
import { default as colors } from './colors/index.js';
import { default as disable } from './disable.js';
import { default as displayImage } from './displayImage.js';
import { default as draw } from './draw.js';
import { default as drawImage } from './internal/drawImage.js';
import { default as drawInvalidated } from './drawInvalidated.js';
import { default as enable } from './enable.js';
import { default as fitToWindow } from './fitToWindow.js';
import { default as generateLut } from './internal/generateLut.js';
import { default as getDefaultViewport } from './internal/getDefaultViewport.js';
import { default as getDefaultViewportForImage } from './getDefaultViewportForImage.js';
import { default as getDisplayedArea } from './internal/getDisplayedArea.js';
import { default as getImage } from './getImage.js';
import { default as getPixels } from './getPixels.js';
import { default as getStoredPixels } from './getStoredPixels.js';
import { default as getViewport } from './getViewport.js';
import { default as imageCache } from './imageCache.js';
import { default as internal } from './internal/index.js';
import { default as invalidate } from './invalidate.js';
import { default as invalidateImageId } from './invalidateImageId.js';
import { default as metaData } from './metaData.js';
import { default as pageToPixel } from './pageToPixel.js';
import { default as pixelDataToFalseColorData } from './pixelDataToFalseColorData.js';
import { default as pixelToCanvas } from './pixelToCanvas.js';
import { renderColorImage } from './rendering/renderColorImage.js';
import { renderGrayscaleImage } from './rendering/renderGrayscaleImage.js';
import { renderLabelMapImage } from './rendering/renderLabelMapImage.js';
import { renderPseudoColorImage } from './rendering/renderPseudoColorImage.js';
import { default as renderToCanvas } from './rendering/renderToCanvas.js';
import { renderWebImage } from './rendering/renderWebImage.js';
import { default as rendering } from './rendering/index.js';
import { default as requestAnimationFrame } from './internal/requestAnimationFrame.js';
import { default as reset } from './reset.js';
import { default as resize } from './resize.js';
import { default as setDefaultViewport } from './internal/setDefaultViewport.js';
import { default as setToPixelCoordinateSystem } from './setToPixelCoordinateSystem.js';
import { default as setViewport } from './setViewport.js';
import { default as storedColorPixelDataToCanvasImageData } from './internal/storedColorPixelDataToCanvasImageData.js';
import { default as storedPixelDataToCanvasImageData } from './internal/storedPixelDataToCanvasImageData.js';
import { default as storedPixelDataToCanvasImageDataColorLUT } from './internal/storedPixelDataToCanvasImageDataColorLUT.js';
import { default as storedPixelDataToCanvasImageDataPseudocolorLUT } from './internal/storedPixelDataToCanvasImageDataPseudocolorLUT.js';
import { default as triggerEvent } from './triggerEvent.js';
import { default as updateImage } from './updateImage.js';
import { default as webGL } from './webgl/index.js';
// Rendering
/**
* @module PixelCoordinateSystem
*/
/**
* @module ViewportSettings
*/
const cornerstone = {
drawImage,
generateLut,
getDefaultViewport,
requestAnimationFrame,
storedPixelDataToCanvasImageData,
storedColorPixelDataToCanvasImageData,
storedPixelDataToCanvasImageDataColorLUT,
storedPixelDataToCanvasImageDataPseudocolorLUT,
internal,
renderLabelMapImage,
renderPseudoColorImage,
renderColorImage,
renderGrayscaleImage,
renderWebImage,
renderToCanvas,
canvasToPixel,
disable,
displayImage,
draw,
drawInvalidated,
enable,
getElementData,
removeElementData,
getEnabledElement,
addEnabledElement,
getEnabledElementsByImageId,
getEnabledElements,
addLayer,
removeLayer,
getLayer,
getLayers,
getVisibleLayers,
setActiveLayer,
getActiveLayer,
purgeLayers,
setLayerImage,
fitToWindow,
getDefaultViewportForImage,
getDisplayedArea,
setDefaultViewport,
getImage,
getPixels,
getStoredPixels,
getViewport,
loadImage,
loadAndCacheImage,
registerImageLoader,
registerUnknownImageLoader,
invalidate,
invalidateImageId,
pageToPixel,
pixelToCanvas,
reset,
resize,
setToPixelCoordinateSystem,
setViewport,
updateImage,
pixelDataToFalseColorData,
rendering,
imageCache,
metaData,
webGL,
colors,
convertImageToFalseColorImage,
convertToFalseColorImage,
restoreImage,
EVENTS,
events,
triggerEvent,
imageLoadPoolManager,
imageRetrievalPoolManager,
RequestPoolManager
};
export {
drawImage,
generateLut,
getDefaultViewport,
setDefaultViewport,
requestAnimationFrame,
storedPixelDataToCanvasImageData,
storedColorPixelDataToCanvasImageData,
storedPixelDataToCanvasImageDataColorLUT,
storedPixelDataToCanvasImageDataPseudocolorLUT,
internal,
renderLabelMapImage,
renderPseudoColorImage,
renderColorImage,
renderGrayscaleImage,
renderWebImage,
renderToCanvas,
canvasToPixel,
disable,
displayImage,
draw,
drawInvalidated,
enable,
getElementData,
removeElementData,
getEnabledElement,
addEnabledElement,
getEnabledElementsByImageId,
getEnabledElements,
addLayer,
removeLayer,
getLayer,
getLayers,
getVisibleLayers,
setActiveLayer,
getActiveLayer,
purgeLayers,
setLayerImage,
fitToWindow,
getDefaultViewportForImage,
getDisplayedArea,
getImage,
getPixels,
getStoredPixels,
getViewport,
loadImage,
loadAndCacheImage,
registerImageLoader,
registerUnknownImageLoader,
invalidate,
invalidateImageId,
pageToPixel,
pixelToCanvas,
reset,
resize,
setToPixelCoordinateSystem,
setViewport,
updateImage,
pixelDataToFalseColorData,
rendering,
imageCache,
metaData,
webGL,
colors,
convertImageToFalseColorImage,
convertToFalseColorImage,
restoreImage,
EVENTS,
events,
triggerEvent,
imageLoadPoolManager,
imageRetrievalPoolManager,
RequestPoolManager
};
export default cornerstone;