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.
|
// TODO: This was auto generated from defaultConfig. Needs to be verified.
|
||||||
|
|
||||||
import DOMPurify from 'dompurify';
|
import DOMPurify from 'dompurify';
|
||||||
|
import { PieDiagramConfig } from './diagrams/pie/pieTypes.js';
|
||||||
|
|
||||||
export interface MermaidConfig {
|
export interface MermaidConfig {
|
||||||
theme?: string;
|
theme?: string;
|
||||||
@ -223,10 +224,6 @@ export interface MindmapDiagramConfig extends BaseDiagramConfig {
|
|||||||
maxNodeWidth: number;
|
maxNodeWidth: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PieDiagramConfig extends BaseDiagramConfig {
|
|
||||||
textPosition?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface QuadrantChartConfig extends BaseDiagramConfig {
|
export interface QuadrantChartConfig extends BaseDiagramConfig {
|
||||||
chartWidth: number;
|
chartWidth: number;
|
||||||
chartHeight: number;
|
chartHeight: number;
|
||||||
|
@ -12,8 +12,7 @@ import {
|
|||||||
clear as commonClear,
|
clear as commonClear,
|
||||||
} from '../../commonDb.js';
|
} from '../../commonDb.js';
|
||||||
import type { ParseDirectiveDefinition } from '../../diagram-api/types.js';
|
import type { ParseDirectiveDefinition } from '../../diagram-api/types.js';
|
||||||
import type { PieFields, PieDb, Sections } from './pieTypes.js';
|
import type { PieFields, PieDb, Sections, PieDiagramConfig } from './pieTypes.js';
|
||||||
import type { PieDiagramConfig } from '../../config.type.js';
|
|
||||||
|
|
||||||
export const DEFAULT_PIE_CONFIG: PieDiagramConfig = {
|
export const DEFAULT_PIE_CONFIG: PieDiagramConfig = {
|
||||||
useMaxWidth: true,
|
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';
|
import type { DiagramDB, ParseDirectiveDefinition } from '../../diagram-api/types.js';
|
||||||
|
|
||||||
|
export interface PieDiagramConfig extends BaseDiagramConfig {
|
||||||
|
textPosition?: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface PieFields {
|
export interface PieFields {
|
||||||
sections: Sections;
|
sections: Sections;
|
||||||
showData: boolean;
|
showData: boolean;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user