mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-21 06:53:17 +08:00
chore: apply review changes
This commit is contained in:
parent
4c43bae92d
commit
692a7471c1
@ -1,4 +1,4 @@
|
||||
import type { Pie, PieSection } from 'mermaid-parser';
|
||||
import type { Pie } from 'mermaid-parser';
|
||||
import { parse } from 'mermaid-parser';
|
||||
|
||||
import { log } from '../../logger.js';
|
||||
@ -10,9 +10,7 @@ import { db } from './pieDb.js';
|
||||
function populateDb(ast: Pie, db: PieDB) {
|
||||
populateCommonDb(ast, db);
|
||||
db.setShowData(ast.showData);
|
||||
ast.sections.map((section: PieSection) => {
|
||||
db.addSection(section);
|
||||
});
|
||||
ast.sections.map(db.addSection);
|
||||
}
|
||||
|
||||
export const parser: ParserDefinition = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user