open-plant 1.2.11 → 1.2.13
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 +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1269 -1256
- package/dist/index.js.map +1 -1
- package/dist/types/react/draw-layer.d.ts +1 -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
|
@@ -150,7 +150,7 @@ import { WsiViewerCanvas } from "open-plant";
|
|
|
150
150
|
onClipStats={(s) => console.log(s.mode, s.durationMs)}
|
|
151
151
|
drawTool="stamp-rectangle-4096px"
|
|
152
152
|
brushOptions={{
|
|
153
|
-
radius: 32, //
|
|
153
|
+
radius: 32, // HTML/CSS px (zoom이 바뀌어도 화면에서 고정)
|
|
154
154
|
edgeDetail: 1.6, // 값이 클수록 더 둥글고 섬세한 브러시 경계
|
|
155
155
|
edgeSmoothing: 2, // 계단 현상 감소(0~4)
|
|
156
156
|
clickSelectRoi: true, // brush에서 "클릭만" 하면 ROI 선택 우선
|
|
@@ -190,7 +190,7 @@ import { WsiViewerCanvas } from "open-plant";
|
|
|
190
190
|
|
|
191
191
|
`brushOptions.clickSelectRoi`를 `true`로 두면 브러시 모드에서 클릭(드래그 없음) 시 ROI hit-test로 선택을 시도하고, ROI 밖 클릭은 기존 브러시 점찍기 동작을 유지합니다.
|
|
192
192
|
`brushOptions.edgeDetail`/`edgeSmoothing`으로 브러시 경계의 해상도와 스무딩 정도를 조절할 수 있습니다.
|
|
193
|
-
`brushOptions.radius`는 world 좌표가 아니라
|
|
193
|
+
`brushOptions.radius`는 world 좌표가 아니라 HTML/CSS px 단위이며, 줌 변화와 무관하게 on-screen 크기가 고정됩니다.
|
|
194
194
|
`pointData.fillModes`(선택, `Uint8Array`)를 주면 포인트별 렌더 모드를 제어할 수 있습니다. `0`은 ring(stroked), `1`은 solid(fill)이며 `0`이 아닌 값은 solid로 처리됩니다.
|
|
195
195
|
`roiRegions[].coordinates`는 단일 링뿐 아니라 hole이 포함된 Polygon(`[[outer],[hole1], ...]`)과 MultiPolygon(`[[[...]], [[...]], ...]`)도 지원합니다.
|
|
196
196
|
|