@particle-academy/fancy-echarts 2.0.2 → 3.0.1

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.cts CHANGED
@@ -1,4 +1,4 @@
1
- import React$1, { RefObject } from 'react';
1
+ import React$1, { RefObject, ReactNode } from 'react';
2
2
  import { EChartsOption } from 'echarts';
3
3
  export { ECharts as EChartsInstance, EChartsOption } from 'echarts';
4
4
  import { EChartsType } from 'echarts/core';
@@ -6,6 +6,7 @@ import { LineChart, BarChart, PieChart, ScatterChart, RadarChart, HeatmapChart,
6
6
  export { BarChart, BoxplotChart, CandlestickChart, CustomChart, EffectScatterChart, FunnelChart, GaugeChart, GraphChart, HeatmapChart, LineChart, MapChart, ParallelChart, PictorialBarChart, PieChart, RadarChart, SankeyChart, ScatterChart, SunburstChart, ThemeRiverChart, TreemapChart } from 'echarts/charts';
7
7
  import { GridComponent, TooltipComponent, TitleComponent, LegendComponent, DataZoomComponent, ToolboxComponent, VisualMapComponent, GeoComponent, ParallelComponent, CalendarComponent, GraphicComponent, PolarComponent, RadarComponent, DatasetComponent, MarkLineComponent, MarkPointComponent, MarkAreaComponent, TimelineComponent, BrushComponent, SingleAxisComponent } from 'echarts/components';
8
8
  export { CalendarComponent, DataZoomComponent, DatasetComponent, GeoComponent, GraphicComponent, GridComponent, LegendComponent, PolarComponent, TitleComponent, ToolboxComponent, TooltipComponent, VisualMapComponent } from 'echarts/components';
9
+ import * as react_jsx_runtime from 'react/jsx-runtime';
9
10
  export { CanvasRenderer, SVGRenderer } from 'echarts/renderers';
10
11
 
11
12
  interface EChartBaseProps {
@@ -224,4 +225,248 @@ declare function registerTheme(name: string, theme: object): void;
224
225
  /** Register all built-in theme presets */
225
226
  declare function registerBuiltinThemes(): void;
226
227
 
227
- export { type ChartDivProps, EChart, EChart3D, type EChartBaseProps, type EChartComponentProps, EChartGraphic, type EChartGraphicProps, type GraphicElement, type SeriesComponentProps, type UseEChartsOptions, type UseEChartsReturn, darkTheme, pastelTheme, registerAll, registerBuiltinThemes, registerCharts, registerComponents, registerTheme, useECharts, useResizeObserver, vintageTheme };
228
+ interface ViewportState {
229
+ panX: number;
230
+ panY: number;
231
+ zoom: number;
232
+ }
233
+
234
+ type DiagramType = "erd" | "flowchart" | "general";
235
+ /** ERD/UML shorthand — sets fromMarker/toMarker (and lineStyle for some). */
236
+ type RelationType = "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | "association" | "aggregation" | "composition" | "inheritance" | "implementation" | "dependency" | "custom";
237
+ /** Shape painted at each line endpoint. Strings prefixed `emoji:` render the
238
+ * rest of the string as text at the endpoint (e.g. `emoji:🎯`). */
239
+ type MarkerType = "none" | "arrow" | "arrow-open" | "circle" | "circle-open" | "square" | "square-open" | "diamond" | "diamond-open" | "triangle" | "triangle-open" | "one" | "many" | "optional-one" | "optional-many" | "cross" | (string & {});
240
+ type LineStyle = "solid" | "dashed" | "dotted";
241
+ type RoutingMode = "manhattan" | "bezier" | "straight";
242
+ type ExportFormat = "erd" | "uml" | "dfd";
243
+ interface DiagramFieldData {
244
+ name: string;
245
+ type?: string;
246
+ primary?: boolean;
247
+ foreign?: boolean;
248
+ nullable?: boolean;
249
+ }
250
+ interface DiagramEntityData {
251
+ /** Unique identifier. Defaults to `name` if omitted. */
252
+ id?: string;
253
+ name: string;
254
+ fields?: DiagramFieldData[];
255
+ x?: number;
256
+ y?: number;
257
+ }
258
+ interface DiagramRelationData {
259
+ /** Unique identifier. Auto-generated if omitted. */
260
+ id?: string;
261
+ from: string;
262
+ to: string;
263
+ fromField?: string;
264
+ toField?: string;
265
+ type: RelationType;
266
+ fromMarker?: MarkerType;
267
+ toMarker?: MarkerType;
268
+ lineStyle?: LineStyle;
269
+ routing?: RoutingMode;
270
+ color?: string;
271
+ label?: string;
272
+ }
273
+ interface DiagramSchema {
274
+ entities: DiagramEntityData[];
275
+ relations: DiagramRelationData[];
276
+ }
277
+ interface DiagramContextValue {
278
+ diagramType: DiagramType;
279
+ schema: DiagramSchema;
280
+ downloadableRef: React.RefObject<boolean>;
281
+ importableRef: React.RefObject<boolean>;
282
+ exportFormats: ExportFormat[];
283
+ onImport?: (schema: DiagramSchema) => void;
284
+ }
285
+ interface DiagramProps {
286
+ children?: ReactNode;
287
+ schema?: DiagramSchema;
288
+ type?: DiagramType;
289
+ viewport?: ViewportState;
290
+ defaultViewport?: ViewportState;
291
+ onViewportChange?: (viewport: ViewportState) => void;
292
+ downloadable?: boolean;
293
+ importable?: boolean;
294
+ exportFormats?: ExportFormat[];
295
+ onImport?: (schema: DiagramSchema) => void;
296
+ minimap?: boolean;
297
+ className?: string;
298
+ }
299
+ interface DiagramEntityProps {
300
+ children?: ReactNode;
301
+ /** Unique identifier. Defaults to `name` if omitted. */
302
+ id?: string;
303
+ name: string;
304
+ x?: number;
305
+ y?: number;
306
+ color?: string;
307
+ /** Allow drag-to-move */
308
+ draggable?: boolean;
309
+ /** Called when the entity is dragged to a new position */
310
+ onPositionChange?: (x: number, y: number) => void;
311
+ className?: string;
312
+ }
313
+ interface DiagramFieldProps {
314
+ name: string;
315
+ type?: string;
316
+ primary?: boolean;
317
+ foreign?: boolean;
318
+ nullable?: boolean;
319
+ className?: string;
320
+ }
321
+ interface DiagramRelationProps {
322
+ from: string;
323
+ to: string;
324
+ fromField?: string;
325
+ toField?: string;
326
+ /** ERD/UML shorthand. Provides defaults for fromMarker/toMarker/lineStyle. */
327
+ type?: RelationType;
328
+ /** Override start endpoint marker. */
329
+ fromMarker?: MarkerType;
330
+ /** Override end endpoint marker. */
331
+ toMarker?: MarkerType;
332
+ /** Line style — solid (default), dashed, dotted. */
333
+ lineStyle?: LineStyle;
334
+ /** Routing algorithm — manhattan (default), bezier, straight. */
335
+ routing?: RoutingMode;
336
+ /** Stroke color. Defaults to a zinc gray. */
337
+ color?: string;
338
+ /** Stroke width. Default 2. */
339
+ strokeWidth?: number;
340
+ label?: string;
341
+ className?: string;
342
+ }
343
+ interface DiagramToolbarProps {
344
+ className?: string;
345
+ }
346
+
347
+ declare function DiagramEntity({ children, id: idProp, name, x, y, color, draggable, onPositionChange, className, }: DiagramEntityProps): react_jsx_runtime.JSX.Element;
348
+ declare namespace DiagramEntity {
349
+ var displayName: string;
350
+ }
351
+
352
+ declare function DiagramField({ name, type, primary, foreign, nullable, className, }: DiagramFieldProps): react_jsx_runtime.JSX.Element;
353
+ declare namespace DiagramField {
354
+ var displayName: string;
355
+ }
356
+
357
+ declare function DiagramRelation({ from, to, fromField: fromFieldProp, toField: toFieldProp, type, fromMarker: fromMarkerProp, toMarker: toMarkerProp, lineStyle: lineStyleProp, routing, color, strokeWidth, label, }: DiagramRelationProps): react_jsx_runtime.JSX.Element | null;
358
+ declare namespace DiagramRelation {
359
+ var _isCanvasEdge: boolean;
360
+ var displayName: string;
361
+ }
362
+
363
+ declare function DiagramToolbar({ className }: DiagramToolbarProps): react_jsx_runtime.JSX.Element | null;
364
+ declare namespace DiagramToolbar {
365
+ var displayName: string;
366
+ }
367
+
368
+ declare function DiagramRoot({ children, schema, type, viewport, defaultViewport, onViewportChange, downloadable, importable, exportFormats, onImport, minimap, className, }: DiagramProps): react_jsx_runtime.JSX.Element;
369
+ declare const Diagram: typeof DiagramRoot & {
370
+ Entity: typeof DiagramEntity;
371
+ Field: typeof DiagramField;
372
+ Relation: typeof DiagramRelation;
373
+ Toolbar: typeof DiagramToolbar;
374
+ };
375
+
376
+ declare function useDiagram(): DiagramContextValue;
377
+
378
+ /**
379
+ * ERD/UML preset of {@link Diagram}. Pre-applies the most common defaults for
380
+ * data-modeling diagrams: type="erd", downloadable, ERD + UML export formats,
381
+ * minimap on. Pass any DiagramProps to override.
382
+ */
383
+ declare function DataDiagram(props: DiagramProps): react_jsx_runtime.JSX.Element;
384
+ declare namespace DataDiagram {
385
+ var Entity: typeof DiagramEntity;
386
+ var Field: typeof DiagramField;
387
+ var Relation: typeof DiagramRelation;
388
+ var Toolbar: typeof DiagramToolbar;
389
+ var displayName: string;
390
+ }
391
+
392
+ interface FlowchartNode {
393
+ id: string;
394
+ label: string;
395
+ x?: number;
396
+ y?: number;
397
+ color?: string;
398
+ }
399
+ interface FlowchartEdge {
400
+ from: string;
401
+ to: string;
402
+ /** Defaults to "association" (line with arrow on `to` end). */
403
+ type?: RelationType;
404
+ label?: string;
405
+ }
406
+ interface FlowchartProps {
407
+ nodes: FlowchartNode[];
408
+ edges: FlowchartEdge[];
409
+ /** Defaults to "manhattan". */
410
+ routing?: RoutingMode;
411
+ downloadable?: boolean;
412
+ minimap?: boolean;
413
+ className?: string;
414
+ }
415
+ /**
416
+ * Boxes-and-arrows flowchart. Thin schema adapter over {@link Diagram} —
417
+ * each node becomes a label-only entity, each edge becomes a relation.
418
+ */
419
+ declare function Flowchart({ nodes, edges, routing, downloadable, minimap, className, }: FlowchartProps): react_jsx_runtime.JSX.Element;
420
+ declare namespace Flowchart {
421
+ var displayName: string;
422
+ }
423
+
424
+ interface MindmapNode {
425
+ id: string;
426
+ label: string;
427
+ color?: string;
428
+ children?: MindmapNode[];
429
+ }
430
+
431
+ interface MindmapProps {
432
+ root: MindmapNode;
433
+ /** Override the default ring radii (level 0 is always center). */
434
+ radii?: number[];
435
+ downloadable?: boolean;
436
+ minimap?: boolean;
437
+ className?: string;
438
+ }
439
+ /**
440
+ * Radial mindmap. Root at center; children fan outward on concentric rings
441
+ * using bezier-routed connectors. Angular wedges are sized by subtree leaf
442
+ * count so dense branches get more room than sparse ones.
443
+ */
444
+ declare function Mindmap({ root, radii, downloadable, minimap, className, }: MindmapProps): react_jsx_runtime.JSX.Element;
445
+ declare namespace Mindmap {
446
+ var displayName: string;
447
+ }
448
+
449
+ interface OrgChartNode {
450
+ id: string;
451
+ label: string;
452
+ color?: string;
453
+ children?: OrgChartNode[];
454
+ }
455
+
456
+ interface OrgChartProps {
457
+ root: OrgChartNode;
458
+ downloadable?: boolean;
459
+ minimap?: boolean;
460
+ className?: string;
461
+ }
462
+ /**
463
+ * Top-down hierarchy diagram. Each parent sits centered over the span of its
464
+ * descendants; manhattan-routed connectors with an open triangle on the
465
+ * child end give it a UML-inheritance feel.
466
+ */
467
+ declare function OrgChart({ root, downloadable, minimap, className, }: OrgChartProps): react_jsx_runtime.JSX.Element;
468
+ declare namespace OrgChart {
469
+ var displayName: string;
470
+ }
471
+
472
+ export { type ChartDivProps, DataDiagram, Diagram, type DiagramContextValue, type DiagramEntityData, type DiagramEntityProps, type DiagramFieldData, type DiagramFieldProps, type DiagramProps, type DiagramRelationData, type DiagramRelationProps, type DiagramSchema, type DiagramToolbarProps, type DiagramType, EChart, EChart3D, type EChartBaseProps, type EChartComponentProps, EChartGraphic, type EChartGraphicProps, type ExportFormat, Flowchart, type FlowchartEdge, type FlowchartNode, type FlowchartProps, type GraphicElement, type LineStyle, type MarkerType, Mindmap, type MindmapNode, type MindmapProps, OrgChart, type OrgChartNode, type OrgChartProps, type RelationType, type RoutingMode, type SeriesComponentProps, type UseEChartsOptions, type UseEChartsReturn, type ViewportState, darkTheme, pastelTheme, registerAll, registerBuiltinThemes, registerCharts, registerComponents, registerTheme, useDiagram, useECharts, useResizeObserver, vintageTheme };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React$1, { RefObject } from 'react';
1
+ import React$1, { RefObject, ReactNode } from 'react';
2
2
  import { EChartsOption } from 'echarts';
3
3
  export { ECharts as EChartsInstance, EChartsOption } from 'echarts';
4
4
  import { EChartsType } from 'echarts/core';
@@ -6,6 +6,7 @@ import { LineChart, BarChart, PieChart, ScatterChart, RadarChart, HeatmapChart,
6
6
  export { BarChart, BoxplotChart, CandlestickChart, CustomChart, EffectScatterChart, FunnelChart, GaugeChart, GraphChart, HeatmapChart, LineChart, MapChart, ParallelChart, PictorialBarChart, PieChart, RadarChart, SankeyChart, ScatterChart, SunburstChart, ThemeRiverChart, TreemapChart } from 'echarts/charts';
7
7
  import { GridComponent, TooltipComponent, TitleComponent, LegendComponent, DataZoomComponent, ToolboxComponent, VisualMapComponent, GeoComponent, ParallelComponent, CalendarComponent, GraphicComponent, PolarComponent, RadarComponent, DatasetComponent, MarkLineComponent, MarkPointComponent, MarkAreaComponent, TimelineComponent, BrushComponent, SingleAxisComponent } from 'echarts/components';
8
8
  export { CalendarComponent, DataZoomComponent, DatasetComponent, GeoComponent, GraphicComponent, GridComponent, LegendComponent, PolarComponent, TitleComponent, ToolboxComponent, TooltipComponent, VisualMapComponent } from 'echarts/components';
9
+ import * as react_jsx_runtime from 'react/jsx-runtime';
9
10
  export { CanvasRenderer, SVGRenderer } from 'echarts/renderers';
10
11
 
11
12
  interface EChartBaseProps {
@@ -224,4 +225,248 @@ declare function registerTheme(name: string, theme: object): void;
224
225
  /** Register all built-in theme presets */
225
226
  declare function registerBuiltinThemes(): void;
226
227
 
227
- export { type ChartDivProps, EChart, EChart3D, type EChartBaseProps, type EChartComponentProps, EChartGraphic, type EChartGraphicProps, type GraphicElement, type SeriesComponentProps, type UseEChartsOptions, type UseEChartsReturn, darkTheme, pastelTheme, registerAll, registerBuiltinThemes, registerCharts, registerComponents, registerTheme, useECharts, useResizeObserver, vintageTheme };
228
+ interface ViewportState {
229
+ panX: number;
230
+ panY: number;
231
+ zoom: number;
232
+ }
233
+
234
+ type DiagramType = "erd" | "flowchart" | "general";
235
+ /** ERD/UML shorthand — sets fromMarker/toMarker (and lineStyle for some). */
236
+ type RelationType = "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | "association" | "aggregation" | "composition" | "inheritance" | "implementation" | "dependency" | "custom";
237
+ /** Shape painted at each line endpoint. Strings prefixed `emoji:` render the
238
+ * rest of the string as text at the endpoint (e.g. `emoji:🎯`). */
239
+ type MarkerType = "none" | "arrow" | "arrow-open" | "circle" | "circle-open" | "square" | "square-open" | "diamond" | "diamond-open" | "triangle" | "triangle-open" | "one" | "many" | "optional-one" | "optional-many" | "cross" | (string & {});
240
+ type LineStyle = "solid" | "dashed" | "dotted";
241
+ type RoutingMode = "manhattan" | "bezier" | "straight";
242
+ type ExportFormat = "erd" | "uml" | "dfd";
243
+ interface DiagramFieldData {
244
+ name: string;
245
+ type?: string;
246
+ primary?: boolean;
247
+ foreign?: boolean;
248
+ nullable?: boolean;
249
+ }
250
+ interface DiagramEntityData {
251
+ /** Unique identifier. Defaults to `name` if omitted. */
252
+ id?: string;
253
+ name: string;
254
+ fields?: DiagramFieldData[];
255
+ x?: number;
256
+ y?: number;
257
+ }
258
+ interface DiagramRelationData {
259
+ /** Unique identifier. Auto-generated if omitted. */
260
+ id?: string;
261
+ from: string;
262
+ to: string;
263
+ fromField?: string;
264
+ toField?: string;
265
+ type: RelationType;
266
+ fromMarker?: MarkerType;
267
+ toMarker?: MarkerType;
268
+ lineStyle?: LineStyle;
269
+ routing?: RoutingMode;
270
+ color?: string;
271
+ label?: string;
272
+ }
273
+ interface DiagramSchema {
274
+ entities: DiagramEntityData[];
275
+ relations: DiagramRelationData[];
276
+ }
277
+ interface DiagramContextValue {
278
+ diagramType: DiagramType;
279
+ schema: DiagramSchema;
280
+ downloadableRef: React.RefObject<boolean>;
281
+ importableRef: React.RefObject<boolean>;
282
+ exportFormats: ExportFormat[];
283
+ onImport?: (schema: DiagramSchema) => void;
284
+ }
285
+ interface DiagramProps {
286
+ children?: ReactNode;
287
+ schema?: DiagramSchema;
288
+ type?: DiagramType;
289
+ viewport?: ViewportState;
290
+ defaultViewport?: ViewportState;
291
+ onViewportChange?: (viewport: ViewportState) => void;
292
+ downloadable?: boolean;
293
+ importable?: boolean;
294
+ exportFormats?: ExportFormat[];
295
+ onImport?: (schema: DiagramSchema) => void;
296
+ minimap?: boolean;
297
+ className?: string;
298
+ }
299
+ interface DiagramEntityProps {
300
+ children?: ReactNode;
301
+ /** Unique identifier. Defaults to `name` if omitted. */
302
+ id?: string;
303
+ name: string;
304
+ x?: number;
305
+ y?: number;
306
+ color?: string;
307
+ /** Allow drag-to-move */
308
+ draggable?: boolean;
309
+ /** Called when the entity is dragged to a new position */
310
+ onPositionChange?: (x: number, y: number) => void;
311
+ className?: string;
312
+ }
313
+ interface DiagramFieldProps {
314
+ name: string;
315
+ type?: string;
316
+ primary?: boolean;
317
+ foreign?: boolean;
318
+ nullable?: boolean;
319
+ className?: string;
320
+ }
321
+ interface DiagramRelationProps {
322
+ from: string;
323
+ to: string;
324
+ fromField?: string;
325
+ toField?: string;
326
+ /** ERD/UML shorthand. Provides defaults for fromMarker/toMarker/lineStyle. */
327
+ type?: RelationType;
328
+ /** Override start endpoint marker. */
329
+ fromMarker?: MarkerType;
330
+ /** Override end endpoint marker. */
331
+ toMarker?: MarkerType;
332
+ /** Line style — solid (default), dashed, dotted. */
333
+ lineStyle?: LineStyle;
334
+ /** Routing algorithm — manhattan (default), bezier, straight. */
335
+ routing?: RoutingMode;
336
+ /** Stroke color. Defaults to a zinc gray. */
337
+ color?: string;
338
+ /** Stroke width. Default 2. */
339
+ strokeWidth?: number;
340
+ label?: string;
341
+ className?: string;
342
+ }
343
+ interface DiagramToolbarProps {
344
+ className?: string;
345
+ }
346
+
347
+ declare function DiagramEntity({ children, id: idProp, name, x, y, color, draggable, onPositionChange, className, }: DiagramEntityProps): react_jsx_runtime.JSX.Element;
348
+ declare namespace DiagramEntity {
349
+ var displayName: string;
350
+ }
351
+
352
+ declare function DiagramField({ name, type, primary, foreign, nullable, className, }: DiagramFieldProps): react_jsx_runtime.JSX.Element;
353
+ declare namespace DiagramField {
354
+ var displayName: string;
355
+ }
356
+
357
+ declare function DiagramRelation({ from, to, fromField: fromFieldProp, toField: toFieldProp, type, fromMarker: fromMarkerProp, toMarker: toMarkerProp, lineStyle: lineStyleProp, routing, color, strokeWidth, label, }: DiagramRelationProps): react_jsx_runtime.JSX.Element | null;
358
+ declare namespace DiagramRelation {
359
+ var _isCanvasEdge: boolean;
360
+ var displayName: string;
361
+ }
362
+
363
+ declare function DiagramToolbar({ className }: DiagramToolbarProps): react_jsx_runtime.JSX.Element | null;
364
+ declare namespace DiagramToolbar {
365
+ var displayName: string;
366
+ }
367
+
368
+ declare function DiagramRoot({ children, schema, type, viewport, defaultViewport, onViewportChange, downloadable, importable, exportFormats, onImport, minimap, className, }: DiagramProps): react_jsx_runtime.JSX.Element;
369
+ declare const Diagram: typeof DiagramRoot & {
370
+ Entity: typeof DiagramEntity;
371
+ Field: typeof DiagramField;
372
+ Relation: typeof DiagramRelation;
373
+ Toolbar: typeof DiagramToolbar;
374
+ };
375
+
376
+ declare function useDiagram(): DiagramContextValue;
377
+
378
+ /**
379
+ * ERD/UML preset of {@link Diagram}. Pre-applies the most common defaults for
380
+ * data-modeling diagrams: type="erd", downloadable, ERD + UML export formats,
381
+ * minimap on. Pass any DiagramProps to override.
382
+ */
383
+ declare function DataDiagram(props: DiagramProps): react_jsx_runtime.JSX.Element;
384
+ declare namespace DataDiagram {
385
+ var Entity: typeof DiagramEntity;
386
+ var Field: typeof DiagramField;
387
+ var Relation: typeof DiagramRelation;
388
+ var Toolbar: typeof DiagramToolbar;
389
+ var displayName: string;
390
+ }
391
+
392
+ interface FlowchartNode {
393
+ id: string;
394
+ label: string;
395
+ x?: number;
396
+ y?: number;
397
+ color?: string;
398
+ }
399
+ interface FlowchartEdge {
400
+ from: string;
401
+ to: string;
402
+ /** Defaults to "association" (line with arrow on `to` end). */
403
+ type?: RelationType;
404
+ label?: string;
405
+ }
406
+ interface FlowchartProps {
407
+ nodes: FlowchartNode[];
408
+ edges: FlowchartEdge[];
409
+ /** Defaults to "manhattan". */
410
+ routing?: RoutingMode;
411
+ downloadable?: boolean;
412
+ minimap?: boolean;
413
+ className?: string;
414
+ }
415
+ /**
416
+ * Boxes-and-arrows flowchart. Thin schema adapter over {@link Diagram} —
417
+ * each node becomes a label-only entity, each edge becomes a relation.
418
+ */
419
+ declare function Flowchart({ nodes, edges, routing, downloadable, minimap, className, }: FlowchartProps): react_jsx_runtime.JSX.Element;
420
+ declare namespace Flowchart {
421
+ var displayName: string;
422
+ }
423
+
424
+ interface MindmapNode {
425
+ id: string;
426
+ label: string;
427
+ color?: string;
428
+ children?: MindmapNode[];
429
+ }
430
+
431
+ interface MindmapProps {
432
+ root: MindmapNode;
433
+ /** Override the default ring radii (level 0 is always center). */
434
+ radii?: number[];
435
+ downloadable?: boolean;
436
+ minimap?: boolean;
437
+ className?: string;
438
+ }
439
+ /**
440
+ * Radial mindmap. Root at center; children fan outward on concentric rings
441
+ * using bezier-routed connectors. Angular wedges are sized by subtree leaf
442
+ * count so dense branches get more room than sparse ones.
443
+ */
444
+ declare function Mindmap({ root, radii, downloadable, minimap, className, }: MindmapProps): react_jsx_runtime.JSX.Element;
445
+ declare namespace Mindmap {
446
+ var displayName: string;
447
+ }
448
+
449
+ interface OrgChartNode {
450
+ id: string;
451
+ label: string;
452
+ color?: string;
453
+ children?: OrgChartNode[];
454
+ }
455
+
456
+ interface OrgChartProps {
457
+ root: OrgChartNode;
458
+ downloadable?: boolean;
459
+ minimap?: boolean;
460
+ className?: string;
461
+ }
462
+ /**
463
+ * Top-down hierarchy diagram. Each parent sits centered over the span of its
464
+ * descendants; manhattan-routed connectors with an open triangle on the
465
+ * child end give it a UML-inheritance feel.
466
+ */
467
+ declare function OrgChart({ root, downloadable, minimap, className, }: OrgChartProps): react_jsx_runtime.JSX.Element;
468
+ declare namespace OrgChart {
469
+ var displayName: string;
470
+ }
471
+
472
+ export { type ChartDivProps, DataDiagram, Diagram, type DiagramContextValue, type DiagramEntityData, type DiagramEntityProps, type DiagramFieldData, type DiagramFieldProps, type DiagramProps, type DiagramRelationData, type DiagramRelationProps, type DiagramSchema, type DiagramToolbarProps, type DiagramType, EChart, EChart3D, type EChartBaseProps, type EChartComponentProps, EChartGraphic, type EChartGraphicProps, type ExportFormat, Flowchart, type FlowchartEdge, type FlowchartNode, type FlowchartProps, type GraphicElement, type LineStyle, type MarkerType, Mindmap, type MindmapNode, type MindmapProps, OrgChart, type OrgChartNode, type OrgChartProps, type RelationType, type RoutingMode, type SeriesComponentProps, type UseEChartsOptions, type UseEChartsReturn, type ViewportState, darkTheme, pastelTheme, registerAll, registerBuiltinThemes, registerCharts, registerComponents, registerTheme, useDiagram, useECharts, useResizeObserver, vintageTheme };