@imfusion/sdk-react 1.3.1-dev.1.g3f06a0fc → 1.3.1-dev.3.g6b212baa
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 +4 -4
- package/dist/useLabelConfig.d.ts +1 -1
- package/dist/useLabelConfig.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ImFusion
|
|
1
|
+
# ImFusion React SDK
|
|
2
2
|
|
|
3
3
|
React components and hooks for using the ImFusion Web SDK in React applications. This package
|
|
4
4
|
provides a canvas, SDK lifecycle components, and hooks for working with medical image data.
|
|
@@ -6,14 +6,14 @@ It builds on [@imfusion/sdk](https://www.npmjs.com/package/@imfusion/sdk).
|
|
|
6
6
|
|
|
7
7
|
Documentation: [docs.imfusion.com/websdk](https://docs.imfusion.com/websdk).
|
|
8
8
|
|
|
9
|
-
##
|
|
10
|
-
|
|
11
|
-
Install both packages in your React application:
|
|
9
|
+
## Installation
|
|
12
10
|
|
|
13
11
|
```sh
|
|
14
12
|
npm install @imfusion/sdk @imfusion/sdk-react
|
|
15
13
|
```
|
|
16
14
|
|
|
15
|
+
## Getting Started
|
|
16
|
+
|
|
17
17
|
Wrap your app with `ImFusionProvider`, add a canvas, and use the lifecycle components:
|
|
18
18
|
|
|
19
19
|
```tsx
|
package/dist/useLabelConfig.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { LabelConfig, SharedImageSet } from '@imfusion/sdk';
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns the reactive `LabelConfigMap` state of a label map.
|
|
4
4
|
*
|
|
5
|
-
* Subscribes to {@link @imfusion/sdk!
|
|
5
|
+
* Subscribes to {@link @imfusion/sdk!Bindings.onLabelConfigChanged | onLabelConfigChanged}
|
|
6
6
|
*
|
|
7
7
|
* @param labelMap - The label map to observe
|
|
8
8
|
* @returns The current label config state as a `Map<number, LabelConfig>`, a function to change the whole map and a function to change individual entries
|
package/dist/useLabelConfig.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useStableHandle } from './useStableHandle.js';
|
|
|
4
4
|
/**
|
|
5
5
|
* Returns the reactive `LabelConfigMap` state of a label map.
|
|
6
6
|
*
|
|
7
|
-
* Subscribes to {@link @imfusion/sdk!
|
|
7
|
+
* Subscribes to {@link @imfusion/sdk!Bindings.onLabelConfigChanged | onLabelConfigChanged}
|
|
8
8
|
*
|
|
9
9
|
* @param labelMap - The label map to observe
|
|
10
10
|
* @returns The current label config state as a `Map<number, LabelConfig>`, a function to change the whole map and a function to change individual entries
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imfusion/sdk-react",
|
|
3
|
-
"version": "1.3.1-dev.
|
|
3
|
+
"version": "1.3.1-dev.3.g6b212baa",
|
|
4
4
|
"description": "React bindings for ImFusion Web SDK",
|
|
5
5
|
"homepage": "https://docs.imfusion.com/websdk",
|
|
6
6
|
"author": "ImFusion GmbH",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"LICENSE.txt"
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@imfusion/sdk": "1.3.1-dev.
|
|
33
|
+
"@imfusion/sdk": "1.3.1-dev.3.g6b212baa",
|
|
34
34
|
"react": ">=18"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|