mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-12 03:49:43 +02:00
revert adding kanban section to shape
This commit is contained in:
@@ -129,8 +129,8 @@ const addNode = (level: number, id: string, descr: string, type: number, shapeDa
|
|||||||
throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
|
throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if shape is defined in the yaml data, use it if it is a valid shape kanbanItem or kanbanSection
|
// if shape is defined in the yaml data, use it if it is a valid shape kanbanItem
|
||||||
if (doc?.shape && (doc.shape === 'kanbanItem' || doc.shape === 'kanbanSection')) {
|
if (doc?.shape && doc.shape === 'kanbanItem') {
|
||||||
node.shape = doc?.shape;
|
node.shape = doc?.shape;
|
||||||
}
|
}
|
||||||
if (doc?.label) {
|
if (doc?.label) {
|
||||||
|
@@ -280,7 +280,7 @@ const roundedWithTitle = async (parent, node) => {
|
|||||||
|
|
||||||
return { cluster: shapeSvg, labelBBox: bbox };
|
return { cluster: shapeSvg, labelBBox: bbox };
|
||||||
};
|
};
|
||||||
export const kanbanSection = async (parent, node) => {
|
const kanbanSection = async (parent, node) => {
|
||||||
log.info('Creating subgraph rect for ', node.id, node);
|
log.info('Creating subgraph rect for ', node.id, node);
|
||||||
const siteConfig = getConfig();
|
const siteConfig = getConfig();
|
||||||
const { themeVariables, handDrawnSeed } = siteConfig;
|
const { themeVariables, handDrawnSeed } = siteConfig;
|
||||||
|
@@ -59,7 +59,6 @@ import { waveRectangle } from './shapes/waveRectangle.js';
|
|||||||
import { windowPane } from './shapes/windowPane.js';
|
import { windowPane } from './shapes/windowPane.js';
|
||||||
import { classBox } from './shapes/classBox.js';
|
import { classBox } from './shapes/classBox.js';
|
||||||
import { kanbanItem } from './shapes/kanbanItem.js';
|
import { kanbanItem } from './shapes/kanbanItem.js';
|
||||||
import { kanbanSection } from './clusters.js';
|
|
||||||
|
|
||||||
type ShapeHandler = <T extends SVGGraphicsElement>(
|
type ShapeHandler = <T extends SVGGraphicsElement>(
|
||||||
parent: D3Selection<T>,
|
parent: D3Selection<T>,
|
||||||
@@ -479,7 +478,6 @@ const generateShapeMap = () => {
|
|||||||
iconRounded,
|
iconRounded,
|
||||||
imageSquare,
|
imageSquare,
|
||||||
kanbanItem,
|
kanbanItem,
|
||||||
kanbanSection,
|
|
||||||
anchor,
|
anchor,
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user