@servantcdh/ez-planet-labeling 0.5.19 → 0.5.21
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 +15 -0
- package/dist/index.js +272 -202
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -269,6 +269,13 @@ declare interface ElementStatus {
|
|
|
269
269
|
/** An error-state placeholder. */
|
|
270
270
|
export declare function errorData<T>(error: unknown): AsyncData<T>;
|
|
271
271
|
|
|
272
|
+
declare interface ExtensionFloatingPanelState {
|
|
273
|
+
activePanelId: string | null;
|
|
274
|
+
openPanel: (id: string) => void;
|
|
275
|
+
closePanel: () => void;
|
|
276
|
+
togglePanel: (id: string) => void;
|
|
277
|
+
}
|
|
278
|
+
|
|
272
279
|
/**
|
|
273
280
|
* Context object passed to every extension render function, giving it
|
|
274
281
|
* access to the current workspace state and canvas interaction.
|
|
@@ -1304,6 +1311,12 @@ export declare interface LabelingExtension {
|
|
|
1304
1311
|
* Use this for canvas-based tools (e.g. SAM point/box input).
|
|
1305
1312
|
*/
|
|
1306
1313
|
renderToolbarAction?: (ctx: ExtensionRenderContext) => ReactNode;
|
|
1314
|
+
/**
|
|
1315
|
+
* Renders a floating panel above the floating toolbar.
|
|
1316
|
+
* Activated via `useExtensionFloatingPanelStore.openPanel(id)`.
|
|
1317
|
+
* Styled to match the floating toolbar (dark theme).
|
|
1318
|
+
*/
|
|
1319
|
+
renderFloatingPanel?: (ctx: ExtensionRenderContext) => ReactNode;
|
|
1307
1320
|
}
|
|
1308
1321
|
|
|
1309
1322
|
export declare interface LabelingMutationContextValue {
|
|
@@ -1696,6 +1709,8 @@ declare interface UIType<TSize extends string = "xs" | "sm" | "md" | "lg" | "xl"
|
|
|
1696
1709
|
style?: TStyle;
|
|
1697
1710
|
}
|
|
1698
1711
|
|
|
1712
|
+
export declare const useExtensionFloatingPanelStore: UseBoundStore<StoreApi<ExtensionFloatingPanelState>>;
|
|
1713
|
+
|
|
1699
1714
|
export declare const useFilterStore: UseBoundStore<StoreApi<FilterState>>;
|
|
1700
1715
|
|
|
1701
1716
|
export declare const useImageLabelHistoryStore: UseBoundStore<Omit<StoreApi<TemporalHistoryState<ImageLabelHistorySnapshot>>, "temporal"> & {
|