useLabelConfig
ts
Returns the reactive LabelConfigMap state of a label map.
Subscribes to onLabelConfigChanged
Parameters
| Parameter | Type | Description |
|---|---|---|
labelMap | SharedImageSet | null | The label map to observe |
Returns
ts
The current label config state as a Map<number, LabelConfig>, a function to change the whole map and a function to change individual entries
| Name | Type |
|---|---|
labelConfigs | | Map<number, LabelConfig> | undefined |
setLabelConfigs() | (labelConfigMap: Map<number, LabelConfig>) => void |
setLabelConfig() | (labelValue: number, labelConfig: LabelConfig) => void |
Throws
If called outside of an ImFusionProvider
Throws
If called before the SDK has finished initializing
Example
tsx