hellfire 0.24.1 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [0.25.1](http://10.16.100.57/diffusion/115/paladin/compare/v0.25.0...v0.25.1) (2023-01-13)
6
+
7
+
8
+
9
+ # [0.25.0](http://10.16.100.57/diffusion/115/paladin/compare/v0.24.1...v0.25.0) (2022-09-29)
10
+
11
+
12
+
5
13
  ## [0.24.1](http://10.16.100.57/diffusion/115/paladin/compare/v0.24.0...v0.24.1) (2022-09-01)
6
14
 
7
15
 
package/README.md CHANGED
@@ -1,28 +1,32 @@
1
- ### Paladin
1
+ ### Paladin (hellfire)
2
2
  ---
3
3
 
4
- 承泽本地渲染引擎
4
+ 云图本地渲染引擎
5
5
 
6
6
  ### Usage
7
7
 
8
8
  Example:
9
9
 
10
10
  ```
11
- import DicomView from 'paladin';
11
+ import DicomView from 'hellfire';
12
12
  const Example = ()=> (
13
13
  <DicomView
14
+ ref='dicomViewLocal'
14
15
  study={study}
16
+ token={token}
15
17
  options={options}
16
18
  toolSortChange={this.toolSortChange}
19
+ ...
17
20
  />
18
21
  )
19
22
  ```
20
23
 
21
24
  ### API documentation
22
25
 
23
- Paladin允许传入参数为 `study`, `options`, `toolSortChange`
26
+ > 1.DicomView允许传入的参数
24
27
 
25
28
  <b>`study`</b>
29
+
26
30
  ```
27
31
  [
28
32
  {
@@ -38,9 +42,11 @@ Paladin允许传入参数为 `study`, `options`, `toolSortChange`
38
42
  }
39
43
  ]
40
44
  ```
45
+
41
46
  需要按此格式传入的检查相关数据集
42
47
 
43
48
  <b>`options`</b>
49
+
44
50
  ```
45
51
  {
46
52
  layout: {
@@ -51,15 +57,129 @@ Paladin允许传入参数为 `study`, `options`, `toolSortChange`
51
57
  toolbarSize: 20
52
58
  }
53
59
  ```
54
- 传入配置项,控制布局和工具栏等
60
+
61
+ 传入配置项,控制布局和工具栏等(用于早期的单列工具栏)
55
62
 
56
63
  - <b>layout</b> :传入初始化布局,不传则默认2*2
57
64
  - <b>tools</b> :传入初始化工具栏顺序
58
65
  - <b>toolbarSize</b> :传入初始化工具栏图标大小
59
66
 
67
+ <b>`helpLink`</b>
68
+
69
+ ```
70
+ helpLink = {'http://www.baidu.com'}
71
+ ```
72
+
73
+ 工具栏"使用帮助"跳转的链接
74
+
75
+ <b>`aiResult`</b>
76
+
77
+ ```
78
+ aiResult = {}
79
+ ```
80
+
81
+ ai结果在影像上打的标记
82
+
83
+ <b>`showAIResult`</b>
84
+
85
+ ```
86
+ showAIResult: boolean
87
+ ```
88
+
89
+ 是否在影像上显示ai结果标记
90
+
91
+ <b>`windowSetting`</b>
92
+
93
+ ```
94
+ windowSetting = {}
95
+ ```
96
+
97
+ 初始化窗值的配置
98
+
99
+ <b>`onLoadReady`</b>
100
+
101
+ ```
102
+ onLoadReady: ()=> void
103
+ ```
104
+
105
+ 所有序列图像加载完毕触发
106
+
107
+ <b>`changeWindowSet`</b>
108
+
109
+ ```
110
+ changeWindowSet: (key, body, index)=> void
111
+ ```
112
+
113
+ 触发自定义窗值 key有:add update delete
114
+
115
+ <b>`operateServerToolState`</b>
116
+
117
+ ```
118
+ operateServerToolState: (key, data) => void
119
+ ```
120
+
121
+ 触发测量工具保存 key有:save delete clear
122
+
123
+ <b>`operateCentesisPath`</b>
124
+
125
+ ```
126
+ operateCentesisPath: (key, data) => void
127
+ ```
128
+
129
+ 触发手术路径规划数据的保存 key有:save
130
+
131
+ <b>`onRefresh`</b>
132
+
133
+ ```
134
+ onRefresh: () => void
135
+ ```
136
+
137
+ 界面下方的重新加载触发的方法(在reload之前)
138
+
60
139
  <b>`toolSortChange`</b>
140
+
61
141
  ```
62
142
  toolSortChange: ()=> void
63
143
  ```
64
- 传入工具栏自定义排序的回调函数
144
+
145
+ 传入工具栏自定义排序的回调函数(用于早期的单列工具栏)
146
+
147
+ > 2.DicomView提供给父组件调用的方法
148
+
149
+ <b>`addStudy(data)`</b>
150
+
151
+ 添加序列,data格式参考study
152
+
153
+ <b>`scrollSeriesImageToIndex(SeriesInstanceUID, SOPInstanceUID)`</b>
154
+
155
+ 指定某个序列跳转到某个图像上
156
+
157
+ <b>`emitImageResize()`</b>
158
+
159
+ 视窗大小的改变
160
+
161
+ <b>`cornerstoneActionEmit({type:xxx,data:xxx})`</b>
162
+
163
+ 模拟触发paladin内的各种操作行为(提供给同屏使用)
164
+
165
+ > 3.paladin对外暴露的对象
166
+
167
+ 用法:
168
+ ```
169
+ import { reducers as hellfireReducer, paladinUtils} from 'hellfire'
170
+ ```
171
+
172
+ <b>`reducers`</b>
173
+
174
+ 暴露给外部hellfire的redux数据
175
+
176
+ <b>`paladinUtils`</b>
177
+
178
+ - getMultiImageDataFromWodo:将wodo url生成base64的image数据
179
+ ```
180
+ paladinUtils.getMultiImageDataFromWodo({
181
+ wodoList
182
+ })
183
+ ```
184
+
65
185