mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Revert "add shape datastore
(for nodes of data flow diagram)"
This reverts commit cd427ab8ba7ada02f33870720be9b28ee8674ed5.
This commit is contained in:
parent
ee3680eb6d
commit
86810e04bd
@ -176,24 +176,6 @@ function subroutine(parent, bbox, node) {
|
||||
return shapeSvg;
|
||||
}
|
||||
|
||||
function datastore(parent, bbox, node) {
|
||||
const shapeSvg = parent
|
||||
.insert('rect', ':first-child')
|
||||
.attr('class', 'basic label-container')
|
||||
.attr('style', node.style)
|
||||
.attr('rx', node.rx)
|
||||
.attr('ry', node.ry)
|
||||
.attr('x', -bbox.width / 2)
|
||||
.attr('y', -bbox.height / 2)
|
||||
.attr('width', bbox.width)
|
||||
.attr('height', bbox.height)
|
||||
.attr('stroke-dasharray', bbox.width + ' ' + bbox.height);
|
||||
node.intersect = function (point) {
|
||||
return dagreD3.intersect.rect(node, point);
|
||||
};
|
||||
return shapeSvg;
|
||||
}
|
||||
|
||||
function cylinder(parent, bbox, node) {
|
||||
const w = bbox.width;
|
||||
const rx = w / 2;
|
||||
@ -262,7 +244,6 @@ export function addToRender(render) {
|
||||
render.shapes().hexagon = hexagon;
|
||||
render.shapes().stadium = stadium;
|
||||
render.shapes().subroutine = subroutine;
|
||||
render.shapes().datastore = datastore;
|
||||
render.shapes().cylinder = cylinder;
|
||||
|
||||
// Add custom shape for box with inverted arrow on left side
|
||||
@ -289,7 +270,6 @@ export function addToRenderV2(addShape) {
|
||||
addShape({ hexagon });
|
||||
addShape({ stadium });
|
||||
addShape({ subroutine });
|
||||
addShape({ datastore });
|
||||
addShape({ cylinder });
|
||||
|
||||
// Add custom shape for box with inverted arrow on left side
|
||||
|
@ -123,9 +123,6 @@ export const addVertices = function (vert, g, svgId) {
|
||||
case 'subroutine':
|
||||
_shape = 'subroutine';
|
||||
break;
|
||||
case 'datastore':
|
||||
_shape = 'datastore';
|
||||
break;
|
||||
case 'cylinder':
|
||||
_shape = 'cylinder';
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user