0.0.3 • Published 3 years ago
@ohif/static-cs-lite v0.0.3
@ohif/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('@ohif/static-cs-lite');
...
const doneCallback = (imageBuffer) => {
// write on disk imageBuffer (thumbnail)
}
// simulate image rendering on server side
staticCsLite.simulateRendering(transferSyntaxUid,
decodedPixelData,
rawDataset,
doneCallback)