@servantcdh/ez-planet-labeling 1.0.8 → 1.0.10
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 +4 -0
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -157,6 +157,8 @@ declare interface CommonItemType {
|
|
|
157
157
|
className?: string;
|
|
158
158
|
disabled?: boolean;
|
|
159
159
|
id?: string;
|
|
160
|
+
/** Custom icon renderer. When provided, takes precedence over iconType. */
|
|
161
|
+
renderIcon?: () => ReactNode;
|
|
160
162
|
}
|
|
161
163
|
|
|
162
164
|
declare interface ContentDTO {
|
|
@@ -313,6 +315,8 @@ export declare interface ExtensionSubMenuItem {
|
|
|
313
315
|
shortcut?: LabelingShortcutSpec;
|
|
314
316
|
disabled?: boolean;
|
|
315
317
|
onClick: () => void;
|
|
318
|
+
/** Custom icon renderer. When provided, takes precedence over iconType. */
|
|
319
|
+
renderIcon?: () => ReactNode;
|
|
316
320
|
}
|
|
317
321
|
|
|
318
322
|
declare interface FabricLabelEntry {
|
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.10",
|
|
3593
3593
|
author: LIB_AUTHOR,
|
|
3594
3594
|
contact: LIB_CONTACT,
|
|
3595
3595
|
license: "Proprietary — See LICENSE"
|
|
@@ -18547,7 +18547,7 @@ const LABELING_SHORTCUTS = {
|
|
|
18547
18547
|
common: {
|
|
18548
18548
|
selection: createShortcut("v"),
|
|
18549
18549
|
layerToggle: createShortcut("\\"),
|
|
18550
|
-
navigationToggle: createShortcut("
|
|
18550
|
+
navigationToggle: createShortcut("n")
|
|
18551
18551
|
},
|
|
18552
18552
|
image: {
|
|
18553
18553
|
boundingBox: createShortcut("u"),
|
|
@@ -18701,6 +18701,7 @@ const useImageLabelingUIMeta = ({
|
|
|
18701
18701
|
const extItems = extensionSubMenuItems.map((ext) => ({
|
|
18702
18702
|
variant: "button",
|
|
18703
18703
|
iconType: ext.iconType,
|
|
18704
|
+
renderIcon: ext.renderIcon,
|
|
18704
18705
|
tooltip: formatShortcutTitle(ext.name, ext.shortcut),
|
|
18705
18706
|
disabled: ext.disabled ?? false,
|
|
18706
18707
|
className: activePanelId === ext.id ? "active" : void 0,
|