mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 00:40:22 +02:00
Changed C4 stereotype braces to «»
This commit is contained in:
@@ -220,7 +220,7 @@ export const drawC4ShapeArray = function (currentBounds, diagram, c4ShapeArray,
|
|||||||
let c4ShapeTypeConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
|
let c4ShapeTypeConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
|
||||||
c4ShapeTypeConf.fontSize = c4ShapeTypeConf.fontSize - 2;
|
c4ShapeTypeConf.fontSize = c4ShapeTypeConf.fontSize - 2;
|
||||||
c4Shape.typeC4Shape.width = calculateTextWidth(
|
c4Shape.typeC4Shape.width = calculateTextWidth(
|
||||||
'<<' + c4Shape.typeC4Shape.text + '>>',
|
'«' + c4Shape.typeC4Shape.text + '»',
|
||||||
c4ShapeTypeConf
|
c4ShapeTypeConf
|
||||||
);
|
);
|
||||||
c4Shape.typeC4Shape.height = c4ShapeTypeConf.fontSize + 2;
|
c4Shape.typeC4Shape.height = c4ShapeTypeConf.fontSize + 2;
|
||||||
@@ -665,13 +665,13 @@ export const draw = function (_text, id, _version, diagObj) {
|
|||||||
diagram.attr(
|
diagram.attr(
|
||||||
'viewBox',
|
'viewBox',
|
||||||
box.startx -
|
box.startx -
|
||||||
conf.diagramMarginX +
|
conf.diagramMarginX +
|
||||||
' -' +
|
' -' +
|
||||||
(conf.diagramMarginY + extraVertForTitle) +
|
(conf.diagramMarginY + extraVertForTitle) +
|
||||||
' ' +
|
' ' +
|
||||||
width +
|
width +
|
||||||
' ' +
|
' ' +
|
||||||
(height + extraVertForTitle)
|
(height + extraVertForTitle)
|
||||||
);
|
);
|
||||||
|
|
||||||
log.debug(`models:`, box);
|
log.debug(`models:`, box);
|
||||||
|
Reference in New Issue
Block a user