mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-24 08:24:14 +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 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 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\` |
|
| 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-Document | Stacked Document | \`docs\` | Multiple documents | \`documents\`, \`st-doc\`, \`stacked-document\` |
|
||||||
| Multi-Process | Stacked Rectangle | \`st-rect\` | Multiple processes | \`processes\`, \`procs\`, \`stacked-rectangle\` |
|
| Multi-Process | Stacked Rectangle | \`st-rect\` | Multiple processes | \`processes\`, \`procs\`, \`stacked-rectangle\` |
|
||||||
| Odd | Odd | \`odd\` | Odd shape | |
|
| Odd | Odd | \`odd\` | Odd shape | |
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ export class MindmapDB {
|
|||||||
const getShapeFromType = (type: number) => {
|
const getShapeFromType = (type: number) => {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case nodeType.CIRCLE:
|
case nodeType.CIRCLE:
|
||||||
return 'mindmap-circle';
|
return 'mindmapCircle';
|
||||||
case nodeType.RECT:
|
case nodeType.RECT:
|
||||||
return 'rect';
|
return 'rect';
|
||||||
case nodeType.ROUNDED_RECT:
|
case nodeType.ROUNDED_RECT:
|
||||||
|
|||||||
@@ -155,14 +155,6 @@ export const shapesDefs = [
|
|||||||
aliases: ['default-mindmap', 'defaultMindmapNode'],
|
aliases: ['default-mindmap', 'defaultMindmapNode'],
|
||||||
handler: defaultMindmapNode,
|
handler: defaultMindmapNode,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
semanticName: 'Mindmap Circle',
|
|
||||||
name: 'mindmapCircle',
|
|
||||||
shortName: 'mindmap-circle',
|
|
||||||
description: 'mindmapCircle',
|
|
||||||
aliases: ['mindmap-circle'],
|
|
||||||
handler: mindmapCircle,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
semanticName: 'Cloud',
|
semanticName: 'Cloud',
|
||||||
name: 'Cloud',
|
name: 'Cloud',
|
||||||
@@ -512,6 +504,9 @@ const generateShapeMap = () => {
|
|||||||
// Kanban diagram
|
// Kanban diagram
|
||||||
kanbanItem,
|
kanbanItem,
|
||||||
|
|
||||||
|
//Mindmap diagram
|
||||||
|
mindmapCircle,
|
||||||
|
|
||||||
// class diagram
|
// class diagram
|
||||||
classBox,
|
classBox,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user