move PieDiagramConfig into pieTypes

This commit is contained in:
Yokozuna59 2023-06-18 01:45:21 +03:00
parent 9145a9e69e
commit 95e01b4935
3 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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;