README
Paladin
承泽本地渲染引擎
Usage
Example:
import DicomView from 'paladin';
const Example = ()=> (
<DicomView
study={study}
options={options}
toolSortChange={this.toolSortChange}
/>
)
API documentation
Paladin允许传入参数为 study, options, toolSortChange
study
[
{
"name": "study-name",
"studyDate": "20190510",
"series": [{
"currentImageIdIndex": 0,
"numberOfSeriesRelatedInstances": 20,
"seriesInstanceUID": "1.1.1",
"description": "描述",
"imageIds": ["wadouri://xxx",...]
}]
}
]
需要按此格式传入的检查相关数据集
options
{
layout: {
col: 2,
row: 2
},
tools: [...],
toolbarSize: 20
}
传入配置项,控制布局和工具栏等
- layout :传入初始化布局,不传则默认2*2
- tools :传入初始化工具栏顺序
- toolbarSize :传入初始化工具栏图标大小
toolSortChange
toolSortChange: ()=> void
传入工具栏自定义排序的回调函数