@ohif/static-cs-lite

0.0.3 • Public • Published

@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)

Package Sidebar

Install

npm i @ohif/static-cs-lite

Weekly Downloads

3

Version

0.0.3

License

ISC

Unpacked Size

31.4 kB

Total Files

34

Last publish

Collaborators

  • sedghi
  • zaidsafadi
  • swederik
  • andrebot
  • brunoalvesdefaria
  • chafey
  • lscoder
  • evren217
  • dannyrb