mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-19 22:19:45 +02:00
fix: remove diagram-specific mindmap shapes from global shape registry
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
@@ -201,7 +201,6 @@ This Markdown should be kept.
|
||||
| Manual File | Flipped Triangle | \`flip-tri\` | Manual file operation | \`flipped-triangle\`, \`manual-file\` |
|
||||
| Manual Input | Sloped Rectangle | \`sl-rect\` | Manual input step | \`manual-input\`, \`sloped-rectangle\` |
|
||||
| Manual Operation | Trapezoid Base Top | \`trap-t\` | Represents a manual task | \`inv-trapezoid\`, \`manual\`, \`trapezoid-top\` |
|
||||
| Mindmap Circle | mindmapCircle | \`mindmap-circle\` | mindmapCircle | \`mindmap-circle\` |
|
||||
| Multi-Document | Stacked Document | \`docs\` | Multiple documents | \`documents\`, \`st-doc\`, \`stacked-document\` |
|
||||
| Multi-Process | Stacked Rectangle | \`st-rect\` | Multiple processes | \`processes\`, \`procs\`, \`stacked-rectangle\` |
|
||||
| Odd | Odd | \`odd\` | Odd shape | |
|
||||
|
@@ -224,7 +224,7 @@ export class MindmapDB {
|
||||
const getShapeFromType = (type: number) => {
|
||||
switch (type) {
|
||||
case nodeType.CIRCLE:
|
||||
return 'mindmap-circle';
|
||||
return 'mindmapCircle';
|
||||
case nodeType.RECT:
|
||||
return 'rect';
|
||||
case nodeType.ROUNDED_RECT:
|
||||
|
@@ -155,14 +155,6 @@ export const shapesDefs = [
|
||||
aliases: ['default-mindmap', 'defaultMindmapNode'],
|
||||
handler: defaultMindmapNode,
|
||||
},
|
||||
{
|
||||
semanticName: 'Mindmap Circle',
|
||||
name: 'mindmapCircle',
|
||||
shortName: 'mindmap-circle',
|
||||
description: 'mindmapCircle',
|
||||
aliases: ['mindmap-circle'],
|
||||
handler: mindmapCircle,
|
||||
},
|
||||
{
|
||||
semanticName: 'Cloud',
|
||||
name: 'Cloud',
|
||||
@@ -512,6 +504,9 @@ const generateShapeMap = () => {
|
||||
// Kanban diagram
|
||||
kanbanItem,
|
||||
|
||||
//Mindmap diagram
|
||||
mindmapCircle,
|
||||
|
||||
// class diagram
|
||||
classBox,
|
||||
|
||||
|
Reference in New Issue
Block a user