@servantcdh/ez-planet-labeling 1.0.13 → 1.0.15
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/dist/index.d.ts +13 -0
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -151,6 +151,11 @@ export declare interface ClassificationValue {
|
|
|
151
151
|
className?: string;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
declare interface ClassMeta {
|
|
155
|
+
color?: string;
|
|
156
|
+
opacity?: number;
|
|
157
|
+
}
|
|
158
|
+
|
|
154
159
|
declare interface CommonItemType {
|
|
155
160
|
title?: string;
|
|
156
161
|
iconType?: IconName;
|
|
@@ -1463,6 +1468,12 @@ export declare interface LabelInsertData {
|
|
|
1463
1468
|
isLabeled?: boolean;
|
|
1464
1469
|
}
|
|
1465
1470
|
|
|
1471
|
+
declare interface LabelInsertPayloadState {
|
|
1472
|
+
payload: LabelInsertData | null;
|
|
1473
|
+
classMeta: ClassMeta | null;
|
|
1474
|
+
setPayload: (payload: LabelInsertData | null, classMeta?: ClassMeta | null) => void;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1466
1477
|
declare type LabelInsertWithOptionalId = LabelInsertData & {
|
|
1467
1478
|
id?: string;
|
|
1468
1479
|
};
|
|
@@ -1738,6 +1749,8 @@ export declare const useImageTypeLabelingToolSelectionStore: UseBoundStore<Store
|
|
|
1738
1749
|
|
|
1739
1750
|
export declare const useLabelBatchStore: UseBoundStore<StoreApi<LabelBatchState>>;
|
|
1740
1751
|
|
|
1752
|
+
export declare const useLabelInsertPayloadStore: UseBoundStore<StoreApi<LabelInsertPayloadState>>;
|
|
1753
|
+
|
|
1741
1754
|
export declare const useToolbarSubMenuItemsStore: UseBoundStore<StoreApi<ToolbarSubMenuItemsState>>;
|
|
1742
1755
|
|
|
1743
1756
|
export declare const useWorkspaceConfigStore: UseBoundStore<StoreApi<WorkspaceConfigState>>;
|
package/dist/index.js
CHANGED
|
@@ -3589,7 +3589,7 @@ const LIB_AUTHOR = "최동호";
|
|
|
3589
3589
|
const LIB_CONTACT = "servantcdh@naver.com";
|
|
3590
3590
|
const __EZ_PLANET_META__ = Object.freeze({
|
|
3591
3591
|
name: LIB_NAME,
|
|
3592
|
-
version: "1.0.
|
|
3592
|
+
version: "1.0.15",
|
|
3593
3593
|
author: LIB_AUTHOR,
|
|
3594
3594
|
contact: LIB_CONTACT,
|
|
3595
3595
|
license: "Proprietary — See LICENSE"
|
|
@@ -18402,6 +18402,7 @@ function WorkspaceFloatingToolbar({
|
|
|
18402
18402
|
if (item.variant === "checkbox") {
|
|
18403
18403
|
const {
|
|
18404
18404
|
iconType,
|
|
18405
|
+
renderIcon: _renderIcon,
|
|
18405
18406
|
title,
|
|
18406
18407
|
variant: _variant,
|
|
18407
18408
|
id,
|
|
@@ -18483,6 +18484,7 @@ function WorkspaceFloatingToolbar({
|
|
|
18483
18484
|
if (item.variant === "radio") {
|
|
18484
18485
|
const {
|
|
18485
18486
|
iconType,
|
|
18487
|
+
renderIcon: itemRenderIcon,
|
|
18486
18488
|
title,
|
|
18487
18489
|
variant: _variant,
|
|
18488
18490
|
id,
|
|
@@ -18514,7 +18516,7 @@ function WorkspaceFloatingToolbar({
|
|
|
18514
18516
|
...radioProps
|
|
18515
18517
|
}
|
|
18516
18518
|
),
|
|
18517
|
-
iconType
|
|
18519
|
+
itemRenderIcon ? /* @__PURE__ */ jsx("label", { htmlFor: id, children: itemRenderIcon() }) : iconType ? /* @__PURE__ */ jsx("label", { htmlFor: id, children: /* @__PURE__ */ jsx(Icon, { iconType, size: "sm" }) }) : null
|
|
18518
18520
|
]
|
|
18519
18521
|
},
|
|
18520
18522
|
`${id}_${index}`
|
|
@@ -26411,6 +26413,7 @@ export {
|
|
|
26411
26413
|
useImageLabelHistoryStore,
|
|
26412
26414
|
useImageTypeLabelingToolSelectionStore,
|
|
26413
26415
|
useLabelBatchStore,
|
|
26416
|
+
useLabelInsertPayloadStore,
|
|
26414
26417
|
useToolbarSubMenuItemsStore,
|
|
26415
26418
|
useWorkspaceConfigStore,
|
|
26416
26419
|
useWorkspaceNavigationDetailSelectionStore
|