spelling: boundaries

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2025-04-17 10:12:14 -04:00
parent 0c2d222aa6
commit c4c55277cb
2 changed files with 8 additions and 8 deletions

View File

@@ -542,7 +542,7 @@ function drawInsideBoundary(
);
}
parentBoundaryAlias = currentBoundary.alias;
let nextCurrentBoundaries = diagObj.db.getBoundarys(parentBoundaryAlias);
let nextCurrentBoundaries = diagObj.db.getBoundaries(parentBoundaryAlias);
if (nextCurrentBoundaries.length > 0) {
// draw boundary inside currentBoundary
@@ -622,7 +622,7 @@ export const draw = function (_text, id, _version, diagObj) {
globalBoundaryMaxY = conf.diagramMarginY;
const title = diagObj.db.getTitle();
let currentBoundaries = diagObj.db.getBoundarys('');
let currentBoundaries = diagObj.db.getBoundaries('');
// switch (c4type) {
// case 'C4Context':
drawInsideBoundary(diagram, '', screenBounds, currentBoundaries, diagObj);

View File

@@ -21,7 +21,7 @@ System(SystemAA, "Internet Banking System")
const yy = c4.parser.yy;
const boundaries = yy.getBoundarys();
const boundaries = yy.getBoundaries();
expect(boundaries.length).toBe(2);
const boundary = boundaries[1];
@@ -49,7 +49,7 @@ ${macroName}(b1, "BankBoundary") {
System(SystemAA, "Internet Banking System")
}`);
expect(c4.parser.yy.getBoundarys()[1]).toMatchObject({
expect(c4.parser.yy.getBoundaries()[1]).toMatchObject({
alias: 'b1',
});
});
@@ -60,7 +60,7 @@ ${macroName}(b1, "BankBoundary") {
System(SystemAA, "Internet Banking System")
}`);
expect(c4.parser.yy.getBoundarys()[1]).toMatchObject({
expect(c4.parser.yy.getBoundaries()[1]).toMatchObject({
label: {
text: 'BankBoundary',
},
@@ -73,7 +73,7 @@ ${macroName}(b1, "", "company") {
System(SystemAA, "Internet Banking System")
}`);
expect(c4.parser.yy.getBoundarys()[1]).toMatchObject({
expect(c4.parser.yy.getBoundaries()[1]).toMatchObject({
type: { text: 'company' },
});
});
@@ -84,7 +84,7 @@ ${macroName}(b1, $link="https://github.com/mermaidjs") {
System(SystemAA, "Internet Banking System")
}`);
expect(c4.parser.yy.getBoundarys()[1]).toMatchObject({
expect(c4.parser.yy.getBoundaries()[1]).toMatchObject({
label: {
text: {
link: 'https://github.com/mermaidjs',
@@ -99,7 +99,7 @@ ${macroName}(b1, $tags="tag1,tag2") {
System(SystemAA, "Internet Banking System")
}`);
expect(c4.parser.yy.getBoundarys()[1]).toMatchObject({
expect(c4.parser.yy.getBoundaries()[1]).toMatchObject({
label: {
text: {
tags: 'tag1,tag2',