mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-21 06:53:17 +08:00
move PieDiagramConfig
into pieTypes
This commit is contained in:
parent
9145a9e69e
commit
95e01b4935
@ -1,6 +1,7 @@
|
||||
// TODO: This was auto generated from defaultConfig. Needs to be verified.
|
||||
|
||||
import DOMPurify from 'dompurify';
|
||||
import { PieDiagramConfig } from './diagrams/pie/pieTypes.js';
|
||||
|
||||
export interface MermaidConfig {
|
||||
theme?: string;
|
||||
@ -223,10 +224,6 @@ export interface MindmapDiagramConfig extends BaseDiagramConfig {
|
||||
maxNodeWidth: number;
|
||||
}
|
||||
|
||||
export interface PieDiagramConfig extends BaseDiagramConfig {
|
||||
textPosition?: number;
|
||||
}
|
||||
|
||||
export interface QuadrantChartConfig extends BaseDiagramConfig {
|
||||
chartWidth: number;
|
||||
chartHeight: number;
|
||||
|
@ -12,8 +12,7 @@ import {
|
||||
clear as commonClear,
|
||||
} from '../../commonDb.js';
|
||||
import type { ParseDirectiveDefinition } from '../../diagram-api/types.js';
|
||||
import type { PieFields, PieDb, Sections } from './pieTypes.js';
|
||||
import type { PieDiagramConfig } from '../../config.type.js';
|
||||
import type { PieFields, PieDb, Sections, PieDiagramConfig } from './pieTypes.js';
|
||||
|
||||
export const DEFAULT_PIE_CONFIG: PieDiagramConfig = {
|
||||
useMaxWidth: true,
|
||||
|
@ -1,6 +1,10 @@
|
||||
import type { PieDiagramConfig } from '../../config.type.js';
|
||||
import type { BaseDiagramConfig } from '../../config.type.js';
|
||||
import type { DiagramDB, ParseDirectiveDefinition } from '../../diagram-api/types.js';
|
||||
|
||||
export interface PieDiagramConfig extends BaseDiagramConfig {
|
||||
textPosition?: number;
|
||||
}
|
||||
|
||||
export interface PieFields {
|
||||
sections: Sections;
|
||||
showData: boolean;
|
||||
|
Loading…
x
Reference in New Issue
Block a user