mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 23:09:49 +02:00
spelling: boundaries
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -542,7 +542,7 @@ function drawInsideBoundary(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
parentBoundaryAlias = currentBoundary.alias;
|
parentBoundaryAlias = currentBoundary.alias;
|
||||||
let nextCurrentBoundaries = diagObj.db.getBoundarys(parentBoundaryAlias);
|
let nextCurrentBoundaries = diagObj.db.getBoundaries(parentBoundaryAlias);
|
||||||
|
|
||||||
if (nextCurrentBoundaries.length > 0) {
|
if (nextCurrentBoundaries.length > 0) {
|
||||||
// draw boundary inside currentBoundary
|
// draw boundary inside currentBoundary
|
||||||
@@ -622,7 +622,7 @@ export const draw = function (_text, id, _version, diagObj) {
|
|||||||
globalBoundaryMaxY = conf.diagramMarginY;
|
globalBoundaryMaxY = conf.diagramMarginY;
|
||||||
|
|
||||||
const title = diagObj.db.getTitle();
|
const title = diagObj.db.getTitle();
|
||||||
let currentBoundaries = diagObj.db.getBoundarys('');
|
let currentBoundaries = diagObj.db.getBoundaries('');
|
||||||
// switch (c4type) {
|
// switch (c4type) {
|
||||||
// case 'C4Context':
|
// case 'C4Context':
|
||||||
drawInsideBoundary(diagram, '', screenBounds, currentBoundaries, diagObj);
|
drawInsideBoundary(diagram, '', screenBounds, currentBoundaries, diagObj);
|
||||||
|
@@ -21,7 +21,7 @@ System(SystemAA, "Internet Banking System")
|
|||||||
|
|
||||||
const yy = c4.parser.yy;
|
const yy = c4.parser.yy;
|
||||||
|
|
||||||
const boundaries = yy.getBoundarys();
|
const boundaries = yy.getBoundaries();
|
||||||
expect(boundaries.length).toBe(2);
|
expect(boundaries.length).toBe(2);
|
||||||
const boundary = boundaries[1];
|
const boundary = boundaries[1];
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ ${macroName}(b1, "BankBoundary") {
|
|||||||
System(SystemAA, "Internet Banking System")
|
System(SystemAA, "Internet Banking System")
|
||||||
}`);
|
}`);
|
||||||
|
|
||||||
expect(c4.parser.yy.getBoundarys()[1]).toMatchObject({
|
expect(c4.parser.yy.getBoundaries()[1]).toMatchObject({
|
||||||
alias: 'b1',
|
alias: 'b1',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -60,7 +60,7 @@ ${macroName}(b1, "BankBoundary") {
|
|||||||
System(SystemAA, "Internet Banking System")
|
System(SystemAA, "Internet Banking System")
|
||||||
}`);
|
}`);
|
||||||
|
|
||||||
expect(c4.parser.yy.getBoundarys()[1]).toMatchObject({
|
expect(c4.parser.yy.getBoundaries()[1]).toMatchObject({
|
||||||
label: {
|
label: {
|
||||||
text: 'BankBoundary',
|
text: 'BankBoundary',
|
||||||
},
|
},
|
||||||
@@ -73,7 +73,7 @@ ${macroName}(b1, "", "company") {
|
|||||||
System(SystemAA, "Internet Banking System")
|
System(SystemAA, "Internet Banking System")
|
||||||
}`);
|
}`);
|
||||||
|
|
||||||
expect(c4.parser.yy.getBoundarys()[1]).toMatchObject({
|
expect(c4.parser.yy.getBoundaries()[1]).toMatchObject({
|
||||||
type: { text: 'company' },
|
type: { text: 'company' },
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -84,7 +84,7 @@ ${macroName}(b1, $link="https://github.com/mermaidjs") {
|
|||||||
System(SystemAA, "Internet Banking System")
|
System(SystemAA, "Internet Banking System")
|
||||||
}`);
|
}`);
|
||||||
|
|
||||||
expect(c4.parser.yy.getBoundarys()[1]).toMatchObject({
|
expect(c4.parser.yy.getBoundaries()[1]).toMatchObject({
|
||||||
label: {
|
label: {
|
||||||
text: {
|
text: {
|
||||||
link: 'https://github.com/mermaidjs',
|
link: 'https://github.com/mermaidjs',
|
||||||
@@ -99,7 +99,7 @@ ${macroName}(b1, $tags="tag1,tag2") {
|
|||||||
System(SystemAA, "Internet Banking System")
|
System(SystemAA, "Internet Banking System")
|
||||||
}`);
|
}`);
|
||||||
|
|
||||||
expect(c4.parser.yy.getBoundarys()[1]).toMatchObject({
|
expect(c4.parser.yy.getBoundaries()[1]).toMatchObject({
|
||||||
label: {
|
label: {
|
||||||
text: {
|
text: {
|
||||||
tags: 'tag1,tag2',
|
tags: 'tag1,tag2',
|
||||||
|
Reference in New Issue
Block a user