@servantcdh/ez-planet-labeling 0.3.1 → 0.3.3

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 CHANGED
@@ -826,20 +826,30 @@ export declare interface NavigationSchema {
826
826
  }
827
827
 
828
828
  export declare interface NumberContent {
829
- mode: 'line' | 'bar';
830
- xAxis: {
829
+ mode?: 'line' | 'bar';
830
+ xAxis?: {
831
831
  label: string;
832
832
  ticks: unknown[];
833
833
  };
834
- yAxis: {
834
+ yAxis?: {
835
835
  label: string;
836
836
  series: unknown[];
837
837
  };
838
838
  source: {
839
- rows: unknown[];
840
- columns: unknown[];
839
+ columns: string[] | Array<{
840
+ key: string;
841
+ label: string;
842
+ }>;
843
+ rows: unknown[][] | Array<Record<string, unknown>>;
841
844
  };
842
- canRender: boolean;
845
+ canRender?: boolean;
846
+ segments?: Array<{
847
+ id: string;
848
+ start: number;
849
+ end: number;
850
+ color: string;
851
+ opacity?: number;
852
+ }>;
843
853
  }
844
854
 
845
855
  declare interface NumberLabelingTool {
@@ -980,8 +990,19 @@ declare interface TextAutoHighlightState {
980
990
  }
981
991
 
982
992
  export declare interface TextContent {
983
- value: string;
993
+ /** The text string to display. Use `text` or `value`. */
994
+ text?: string;
995
+ /** @deprecated Use `text` instead */
996
+ value?: string;
984
997
  elementId?: string;
998
+ segments?: Array<{
999
+ id: string;
1000
+ start: number;
1001
+ end: number;
1002
+ label?: string;
1003
+ color: string;
1004
+ opacity?: number;
1005
+ }>;
985
1006
  }
986
1007
 
987
1008
  declare interface TextLabelingTool {
@@ -1298,7 +1319,7 @@ export declare const useTextToolStore: UseBoundStore<StoreApi<TextToolState>>;
1298
1319
  * Manages tool lifecycle: calls tool.init(config) when the tool changes,
1299
1320
  * and runs the cleanup function returned by init when unmounting or switching.
1300
1321
  */
1301
- export declare function useToolInit(currentTool: LabelingTool | null, config: ToolInitConfig): {
1322
+ export declare function useToolInit(currentTool: LabelingTool | null, config: ToolInitConfig, canvasReady?: boolean): {
1302
1323
  activeToolId: string | null;
1303
1324
  };
1304
1325