open-plant 1.2.6 → 1.2.7
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/README.md +7 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1222 -1195
- package/dist/index.js.map +1 -1
- package/dist/types/react/draw-layer.d.ts +12 -1
- package/dist/types/react/draw-layer.d.ts.map +1 -1
- package/dist/types/react/wsi-viewer-canvas.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -149,6 +149,11 @@ import { WsiViewerCanvas } from "open-plant";
|
|
|
149
149
|
clipMode="worker"
|
|
150
150
|
onClipStats={(s) => console.log(s.mode, s.durationMs)}
|
|
151
151
|
drawTool="stamp-rectangle-4096px"
|
|
152
|
+
brushOptions={{
|
|
153
|
+
radius: 32,
|
|
154
|
+
edgeDetail: 1.6, // 값이 클수록 더 둥글고 섬세한 브러시 경계
|
|
155
|
+
clickSelectRoi: true, // brush에서 "클릭만" 하면 ROI 선택 우선
|
|
156
|
+
}}
|
|
152
157
|
stampOptions={{
|
|
153
158
|
rectangleAreaMm2: 2,
|
|
154
159
|
circleAreaMm2: 0.2, // HPF 예시
|
|
@@ -182,6 +187,8 @@ import { WsiViewerCanvas } from "open-plant";
|
|
|
182
187
|
|
|
183
188
|
`rotationDeg`는 뷰포트 회전 각도(도 단위)이며, `Ctrl/Cmd + drag`로 조작하거나 `viewState`로 직접 제어할 수 있습니다.
|
|
184
189
|
|
|
190
|
+
`brushOptions.clickSelectRoi`를 `true`로 두면 브러시 모드에서 클릭(드래그 없음) 시 ROI hit-test로 선택을 시도하고, ROI 밖 클릭은 기존 브러시 점찍기 동작을 유지합니다.
|
|
191
|
+
|
|
185
192
|
### `<DrawLayer>`
|
|
186
193
|
|
|
187
194
|
Freehand, Rectangle, Circular + Stamp(사각형/원) 드로잉 오버레이.
|