@radicalimaging/static-cs-lite
v1.5.0
Published
Cornerstone core lite version that runs on server side
Downloads
200
Readme
@radicalimaging/static-cs-lite
Lite and simplified version of cornerstone package which allows simulating server rendering. It uses JSDOM to support cornerstone to use server rendering approach. The sandbox configuration MUST be revisited for each new cornerstone integration.
Pre-requisites
View root pre-requisites section pre-requisites
Development
View root development section development
Usage
const staticCsLite = require('@radicalimaging/static-cs-lite');
...
const doneCallback = (imageBuffer) => {
// write on disk imageBuffer (thumbnail)
}
// simulate image rendering on server side
staticCsLite.simulateRendering(transferSyntaxUid,
decodedPixelData,
rawDataset,
doneCallback)