From 0cf0b684cf6a057604e69922935d8e1d6a7935e3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:48:29 -0400 Subject: [PATCH 01/99] link: add custom icons Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/syntax/architecture.md | 2 +- docs/syntax/flowchart.md | 2 +- packages/mermaid/src/docs/syntax/architecture.md | 2 +- packages/mermaid/src/docs/syntax/flowchart.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/syntax/architecture.md b/docs/syntax/architecture.md index f0f0e9ac7..36a878328 100644 --- a/docs/syntax/architecture.md +++ b/docs/syntax/architecture.md @@ -194,7 +194,7 @@ architecture-beta ## Icons By default, architecture diagram supports the following icons: `cloud`, `database`, `disk`, `internet`, `server`. -Users can use any of the 200,000+ icons available in iconify.design, or add their own custom icons, by following the steps [here](../config/icons.md). +Users can use any of the 200,000+ icons available in iconify.design, or [add custom icons](../config/icons.md). After the icons are installed, they can be used in the architecture diagram by using the format "name:icon-name", where name is the value used when registering the icon pack. diff --git a/docs/syntax/flowchart.md b/docs/syntax/flowchart.md index 20808c765..b65ebfd29 100644 --- a/docs/syntax/flowchart.md +++ b/docs/syntax/flowchart.md @@ -932,7 +932,7 @@ Mermaid also introduces 2 special shapes to enhance your flowcharts: **icon** an ### Icon Shape -You can use the `icon` shape to include an icon in your flowchart. To use icons, you need to register the icon pack first. Follow the instructions provided [here](../config/icons.md). The syntax for defining an icon shape is as follows: +You can use the `icon` shape to include an icon in your flowchart. To use icons, you need to register the icon pack first. Follow the instructions to [add custom icons](../config/icons.md). The syntax for defining an icon shape is as follows: ```mermaid-example flowchart TD diff --git a/packages/mermaid/src/docs/syntax/architecture.md b/packages/mermaid/src/docs/syntax/architecture.md index 3fc5629f4..26fdfb150 100644 --- a/packages/mermaid/src/docs/syntax/architecture.md +++ b/packages/mermaid/src/docs/syntax/architecture.md @@ -156,7 +156,7 @@ architecture-beta ## Icons By default, architecture diagram supports the following icons: `cloud`, `database`, `disk`, `internet`, `server`. -Users can use any of the 200,000+ icons available in iconify.design, or add their own custom icons, by following the steps [here](../config/icons.md). +Users can use any of the 200,000+ icons available in iconify.design, or [add custom icons](../config/icons.md). After the icons are installed, they can be used in the architecture diagram by using the format "name:icon-name", where name is the value used when registering the icon pack. diff --git a/packages/mermaid/src/docs/syntax/flowchart.md b/packages/mermaid/src/docs/syntax/flowchart.md index f13dafba4..d8a7ba6a7 100644 --- a/packages/mermaid/src/docs/syntax/flowchart.md +++ b/packages/mermaid/src/docs/syntax/flowchart.md @@ -548,7 +548,7 @@ Mermaid also introduces 2 special shapes to enhance your flowcharts: **icon** an ### Icon Shape -You can use the `icon` shape to include an icon in your flowchart. To use icons, you need to register the icon pack first. Follow the instructions provided [here](../config/icons.md). The syntax for defining an icon shape is as follows: +You can use the `icon` shape to include an icon in your flowchart. To use icons, you need to register the icon pack first. Follow the instructions to [add custom icons](../config/icons.md). The syntax for defining an icon shape is as follows: ```mermaid-example flowchart TD From 607e9ab989906144978b5e3ef9c7892bad6f29eb Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:49:20 -0400 Subject: [PATCH 02/99] link: implementation in the live editor Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/syntax/mindmap.md | 2 +- docs/syntax/timeline.md | 2 +- packages/mermaid/src/docs/syntax/mindmap.md | 2 +- packages/mermaid/src/docs/syntax/timeline.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/syntax/mindmap.md b/docs/syntax/mindmap.md index dfdcdbdac..b9960244f 100644 --- a/docs/syntax/mindmap.md +++ b/docs/syntax/mindmap.md @@ -308,7 +308,7 @@ From version 9.4.0 you can simplify this code to: ``` -You can also refer the implementation in the live editor [here](https://github.com/mermaid-js/mermaid-live-editor/blob/develop/src/lib/util/mermaid.ts) to see how the async loading is done. +You can also refer the [implementation in the live editor](https://github.com/mermaid-js/mermaid-live-editor/blob/develop/src/lib/util/mermaid.ts) to see how the async loading is done. State1 State1 --> State2 diff --git a/cypress/integration/rendering/stateDiagram.spec.js b/cypress/integration/rendering/stateDiagram.spec.js index 9be1f2322..b4c5fa8c1 100644 --- a/cypress/integration/rendering/stateDiagram.spec.js +++ b/cypress/integration/rendering/stateDiagram.spec.js @@ -129,8 +129,8 @@ describe('State diagram', () => { imgSnapshotTest( ` stateDiagram - State1: This a a single line description - State2: This a a multi line description + State1: This a single line description + State2: This a multi line description State2: here comes the multi part [*] --> State1 State1 --> State2 diff --git a/packages/mermaid/src/diagrams/architecture/architecture.spec.ts b/packages/mermaid/src/diagrams/architecture/architecture.spec.ts index 45c19e23e..d0405d025 100644 --- a/packages/mermaid/src/diagrams/architecture/architecture.spec.ts +++ b/packages/mermaid/src/diagrams/architecture/architecture.spec.ts @@ -24,7 +24,7 @@ describe('architecture diagrams', () => { await expect(parser.parse(str)).resolves.not.toThrow(); }); - it('should handle an simple radar definition', async () => { + it('should handle a simple radar definition', async () => { const str = `architecture-beta service db `; diff --git a/packages/mermaid/src/diagrams/block/parser/block.spec.ts b/packages/mermaid/src/diagrams/block/parser/block.spec.ts index 1bb8691c1..2a710ef0e 100644 --- a/packages/mermaid/src/diagrams/block/parser/block.spec.ts +++ b/packages/mermaid/src/diagrams/block/parser/block.spec.ts @@ -3,7 +3,7 @@ import block from './block.jison'; import db from '../blockDB.js'; describe('Block diagram', function () { - describe('when parsing an block diagram graph it should handle > ', function () { + describe('when parsing a block diagram graph it should handle > ', function () { beforeEach(function () { block.parser.yy = db; block.parser.yy.clear(); diff --git a/packages/mermaid/src/diagrams/c4/svgDraw.js b/packages/mermaid/src/diagrams/c4/svgDraw.js index 6bff267f6..5cd8998ae 100644 --- a/packages/mermaid/src/diagrams/c4/svgDraw.js +++ b/packages/mermaid/src/diagrams/c4/svgDraw.js @@ -111,7 +111,7 @@ export const drawRels = (elem, rels, conf) => { }; /** - * Draws an boundary in the diagram + * Draws a boundary in the diagram * * @param {any} elem - The diagram we'll draw to. * @param {any} boundary - The boundary to draw. diff --git a/packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js b/packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js index de602530c..d367d26a5 100644 --- a/packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js +++ b/packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js @@ -969,13 +969,13 @@ describe('when parsing ER diagram it...', function () { expect(rels[0].roleA).toBe(''); }); - it('should allow an non-empty quoted label', function () { + it('should allow a non-empty quoted label', function () { erDiagram.parser.parse('erDiagram\nCUSTOMER ||--|{ ORDER : "places"'); const rels = erDb.getRelationships(); expect(rels[0].roleA).toBe('places'); }); - it('should allow an non-empty unquoted label', function () { + it('should allow a non-empty unquoted label', function () { erDiagram.parser.parse('erDiagram\nCUSTOMER ||--|{ ORDER : places'); const rels = erDb.getRelationships(); expect(rels[0].roleA).toBe('places'); diff --git a/packages/mermaid/src/diagrams/flowchart/flowDb.ts b/packages/mermaid/src/diagrams/flowchart/flowDb.ts index de926f294..03806222f 100644 --- a/packages/mermaid/src/diagrams/flowchart/flowDb.ts +++ b/packages/mermaid/src/diagrams/flowchart/flowDb.ts @@ -315,7 +315,7 @@ You have to call mermaid.initialize.` log.info('addLink', _start, _end, id); - // for a group syntax like A e1@--> B & C, only the first edge should have an the userDefined id + // for a group syntax like A e1@--> B & C, only the first edge should have a userDefined id // the rest of the edges should have auto generated ids for (const start of _start) { for (const end of _end) { diff --git a/packages/mermaid/src/diagrams/gantt/ganttRenderer.js b/packages/mermaid/src/diagrams/gantt/ganttRenderer.js index a10eb100f..683fdbe1b 100644 --- a/packages/mermaid/src/diagrams/gantt/ganttRenderer.js +++ b/packages/mermaid/src/diagrams/gantt/ganttRenderer.js @@ -467,7 +467,7 @@ export const draw = function (text, id, version, diagObj) { const securityLevel = getConfig().securityLevel; - // Wrap the tasks in an a tag for working links without javascript + // Wrap the tasks in a tag for working links without javascript if (securityLevel === 'sandbox') { let sandboxElement; sandboxElement = select('#i' + id); diff --git a/packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts b/packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts index 389171d3c..84bb15b15 100644 --- a/packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts +++ b/packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts @@ -232,7 +232,7 @@ interface NoteModel { } /** - * Draws an note in the diagram with the attached line + * Draws a note in the diagram with the attached line * * @param elem - The diagram to draw to. * @param noteModel - Note model options. diff --git a/packages/mermaid/src/diagrams/state/shapes.js b/packages/mermaid/src/diagrams/state/shapes.js index 5fa964a4a..c21020e7c 100644 --- a/packages/mermaid/src/diagrams/state/shapes.js +++ b/packages/mermaid/src/diagrams/state/shapes.js @@ -136,7 +136,7 @@ export const drawDescrState = (g, stateDef) => { /** Adds the creates a box around the existing content and adds a panel for the id on top of the content. */ /** - * Function that creates an title row and a frame around a substate for a composite state diagram. + * Function that creates a title row and a frame around a substate for a composite state diagram. * The function returns a new d3 svg object with updated width and height properties; * * @param {any} g The d3 svg object for the substate to framed diff --git a/packages/mermaid/src/tests/MockedD3.ts b/packages/mermaid/src/tests/MockedD3.ts index d0d67773f..019aed124 100644 --- a/packages/mermaid/src/tests/MockedD3.ts +++ b/packages/mermaid/src/tests/MockedD3.ts @@ -51,7 +51,7 @@ export class MockedD3 { }); // NOTE: The d3 implementation allows for a selector ('beforeSelector' arg below). - // With this mocked implementation, we assume it will always refer to an node id + // With this mocked implementation, we assume it will always refer to a node id // and will always be of the form "#[id of the node to insert before]". // To keep this simple, any leading '#' is removed and the resulting string is the node id searched. insert = (type: string, beforeSelector?: string, id = this.id + '-inserted'): MockedD3 => { From de9eb670402c6129ca5a20da8ebba69ed8eb09a2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:50:21 -0400 Subject: [PATCH 09/99] spelling: accessibilities Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/architecture.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/rendering/architecture.spec.ts b/cypress/integration/rendering/architecture.spec.ts index ec74a5dd5..997a6654e 100644 --- a/cypress/integration/rendering/architecture.spec.ts +++ b/cypress/integration/rendering/architecture.spec.ts @@ -19,7 +19,7 @@ describe.skip('architecture diagram', () => { ` ); }); - it('should render a simple architecture diagram with titleAndAccessabilities', () => { + it('should render a simple architecture diagram with titleAndAccessibilities', () => { imgSnapshotTest( `architecture-beta title Simple Architecture Diagram From f5fa0ae8761ce3572fcb0c510f974161f783c710 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:56:02 -0400 Subject: [PATCH 10/99] spelling: an Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid-example-diagram/src/exampleDiagramRenderer.js | 2 +- packages/mermaid/src/diagrams/info/infoRenderer.ts | 2 +- packages/mermaid/src/diagrams/state/shapes.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mermaid-example-diagram/src/exampleDiagramRenderer.js b/packages/mermaid-example-diagram/src/exampleDiagramRenderer.js index 9b3854aaf..b24a3a237 100644 --- a/packages/mermaid-example-diagram/src/exampleDiagramRenderer.js +++ b/packages/mermaid-example-diagram/src/exampleDiagramRenderer.js @@ -3,7 +3,7 @@ import { select } from 'd3'; import { log, getConfig, setupGraphViewbox } from './mermaidUtils.js'; /** - * Draws a an info picture in the tag with id: id based on the graph definition in text. + * Draws an info picture in the tag with id: id based on the graph definition in text. * * @param {any} text * @param {any} id diff --git a/packages/mermaid/src/diagrams/info/infoRenderer.ts b/packages/mermaid/src/diagrams/info/infoRenderer.ts index a8314eb72..7e79fc3b1 100644 --- a/packages/mermaid/src/diagrams/info/infoRenderer.ts +++ b/packages/mermaid/src/diagrams/info/infoRenderer.ts @@ -4,7 +4,7 @@ import { selectSvgElement } from '../../rendering-util/selectSvgElement.js'; import { configureSvgSize } from '../../setupGraphViewbox.js'; /** - * Draws a an info picture in the tag with id: id based on the graph definition in text. + * Draws an info picture in the tag with id: id based on the graph definition in text. * * @param text - The text of the diagram. * @param id - The id of the diagram which will be used as a DOM element id. diff --git a/packages/mermaid/src/diagrams/state/shapes.js b/packages/mermaid/src/diagrams/state/shapes.js index c21020e7c..419d2a76e 100644 --- a/packages/mermaid/src/diagrams/state/shapes.js +++ b/packages/mermaid/src/diagrams/state/shapes.js @@ -37,7 +37,7 @@ export const drawDivider = (g) => .attr('y2', 0); /** - * Draws a an end state as a black circle + * Draws an end state as a black circle * * @param {any} g * @param {any} stateDef From 5919d39812f861f342b3bf9f5686e6706a93fbef Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:34:25 -0400 Subject: [PATCH 11/99] spelling: and Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid-layout-elk/src/render.ts | 2 +- packages/mermaid/src/dagre-wrapper/edges.js | 2 +- packages/mermaid/src/diagrams/flowchart/flowDb.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mermaid-layout-elk/src/render.ts b/packages/mermaid-layout-elk/src/render.ts index 59b97c557..dc9ccee8e 100644 --- a/packages/mermaid-layout-elk/src/render.ts +++ b/packages/mermaid-layout-elk/src/render.ts @@ -713,7 +713,7 @@ export const render = async ( // check if point is inside the boundary rect if (!outsideNode(bounds, point) && !isInside) { // First point inside the rect found - // Calc the intersection coord between the point anf the last point outside the rect + // Calc the intersection coord between the point and the last point outside the rect let inter; if (isDiamond) { diff --git a/packages/mermaid/src/dagre-wrapper/edges.js b/packages/mermaid/src/dagre-wrapper/edges.js index 1a72328e8..e88457fcd 100644 --- a/packages/mermaid/src/dagre-wrapper/edges.js +++ b/packages/mermaid/src/dagre-wrapper/edges.js @@ -324,7 +324,7 @@ const cutPathAtIntersect = (_points, boundaryNode) => { // check if point is inside the boundary rect if (!outsideNode(boundaryNode, point) && !isInside) { // First point inside the rect found - // Calc the intersection coord between the point anf the last point outside the rect + // Calc the intersection coord between the point and the last point outside the rect const inter = intersection(boundaryNode, lastPointOutside, point); // // Check case where the intersection is the same as the last point diff --git a/packages/mermaid/src/diagrams/flowchart/flowDb.ts b/packages/mermaid/src/diagrams/flowchart/flowDb.ts index 03806222f..3eb1b13a7 100644 --- a/packages/mermaid/src/diagrams/flowchart/flowDb.ts +++ b/packages/mermaid/src/diagrams/flowchart/flowDb.ts @@ -319,7 +319,7 @@ You have to call mermaid.initialize.` // the rest of the edges should have auto generated ids for (const start of _start) { for (const end of _end) { - //use the id only for last node in _start and and first node in _end + //use the id only for last node in _start and first node in _end const isLastStart = start === _start[_start.length - 1]; const isFirstEnd = end === _end[0]; if (isLastStart && isFirstEnd) { From 00e9ed2024b808cd665904ffa871eccd46d0e758 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:52:00 -0400 Subject: [PATCH 12/99] spelling: assignments Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/kanban.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/rendering/kanban.spec.ts b/cypress/integration/rendering/kanban.spec.ts index 6293776d6..e924c20c0 100644 --- a/cypress/integration/rendering/kanban.spec.ts +++ b/cypress/integration/rendering/kanban.spec.ts @@ -62,7 +62,7 @@ describe('Kanban diagram', () => { {} ); }); - it('6: should handle assigments', () => { + it('6: should handle assignments', () => { imgSnapshotTest( `kanban id1[Todo] From 9133fcb9a8b5dc1bf4e0bc9cc33ceb928fdbe906 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 14:21:30 -0400 Subject: [PATCH 13/99] spelling: axis name Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/diagrams/xychart/parser/xychart.jison.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mermaid/src/diagrams/xychart/parser/xychart.jison.spec.ts b/packages/mermaid/src/diagrams/xychart/parser/xychart.jison.spec.ts index 2c2c0b4b9..d7de15f66 100644 --- a/packages/mermaid/src/diagrams/xychart/parser/xychart.jison.spec.ts +++ b/packages/mermaid/src/diagrams/xychart/parser/xychart.jison.spec.ts @@ -128,7 +128,7 @@ describe('Testing xychart jison file', () => { expect(mockDB.setXAxisRangeData).toHaveBeenCalledWith(45.5, 0.34); }); - it('parse x-axis without axisname and range data', () => { + it('parse x-axis without axis name and range data', () => { const str = 'xychart-beta \nx-axis 45.5 --> 1.34 \n'; expect(parserFnConstructor(str)).not.toThrow(); expect(mockDB.setXAxisTitle).toHaveBeenCalledWith({ @@ -154,7 +154,7 @@ describe('Testing xychart jison file', () => { ]); }); - it('parse x-axis without axisname and category data', () => { + it('parse x-axis without axis name and category data', () => { const str = 'xychart-beta \nx-axis [ "cat1" , cat2a ] \n '; expect(parserFnConstructor(str)).not.toThrow(); expect(mockDB.setXAxisTitle).toHaveBeenCalledWith({ @@ -244,7 +244,7 @@ describe('Testing xychart jison file', () => { expect(mockDB.setYAxisTitle).toHaveBeenCalledWith({ text: 'yAxisName', type: 'text' }); expect(mockDB.setYAxisRangeData).toHaveBeenCalledWith(45.5, 33); }); - it('parse y-axis without axisname with range data', () => { + it('parse y-axis without axis name with range data', () => { const str = 'xychart-beta \ny-axis 45.5 --> 33 \n'; expect(parserFnConstructor(str)).not.toThrow(); expect(mockDB.setYAxisTitle).toHaveBeenCalledWith({ text: '', type: 'text' }); From a79a50b77f6feab3c3b5d408902ad799cb4212cd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:52:18 -0400 Subject: [PATCH 14/99] spelling: axis Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/quadrantChart.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/integration/rendering/quadrantChart.spec.js b/cypress/integration/rendering/quadrantChart.spec.js index 4830db656..3a1e768aa 100644 --- a/cypress/integration/rendering/quadrantChart.spec.js +++ b/cypress/integration/rendering/quadrantChart.spec.js @@ -45,7 +45,7 @@ describe('Quadrant Chart', () => { {} ); }); - it('should able to render y-axix on right side', () => { + it('should able to render y-axis on right side', () => { imgSnapshotTest( ` %%{init: {"quadrantChart": {"yAxisPosition": "right"}}}%% @@ -61,7 +61,7 @@ describe('Quadrant Chart', () => { {} ); }); - it('should able to render x-axix on bottom', () => { + it('should able to render x-axis on bottom', () => { imgSnapshotTest( ` %%{init: {"quadrantChart": {"xAxisPosition": "bottom"}}}%% @@ -77,7 +77,7 @@ describe('Quadrant Chart', () => { {} ); }); - it('should able to render x-axix on bottom and y-axis on right', () => { + it('should able to render x-axis on bottom and y-axis on right', () => { imgSnapshotTest( ` %%{init: {"quadrantChart": {"xAxisPosition": "bottom", "yAxisPosition": "right"}}}%% From e2bf95c922d1c7bb33ef1f0b06e4db6d9c1c08be Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:52:31 -0400 Subject: [PATCH 15/99] spelling: backslash Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../mermaid/src/diagrams/flowchart/parser/flow-text.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/flowchart/parser/flow-text.spec.js b/packages/mermaid/src/diagrams/flowchart/parser/flow-text.spec.js index 606414a11..6439fb356 100644 --- a/packages/mermaid/src/diagrams/flowchart/parser/flow-text.spec.js +++ b/packages/mermaid/src/diagrams/flowchart/parser/flow-text.spec.js @@ -429,7 +429,7 @@ describe('[Text] when parsing', () => { expect(vert.get('C').text).toBe('ะะฐั‡ะฐะปะพ'); }); - it('should handle backslask', function () { + it('should handle backslash', function () { const res = flow.parser.parse('graph TD;A-->C(c:\\windows);'); const vert = flow.parser.yy.getVertices(); From c7714fd6663c356f0f9392a69ee11e8ececa9d33 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:52:49 -0400 Subject: [PATCH 16/99] spelling: backticked Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/diagrams/class/classDiagram.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/diagrams/class/classDiagram.spec.ts b/packages/mermaid/src/diagrams/class/classDiagram.spec.ts index 35a37f903..7c88f2e41 100644 --- a/packages/mermaid/src/diagrams/class/classDiagram.spec.ts +++ b/packages/mermaid/src/diagrams/class/classDiagram.spec.ts @@ -138,7 +138,7 @@ describe('given a basic class diagram, ', function () { expect(relations[0].title).toBe('manages'); }); - it('should handle backquoted class names', function () { + it('should handle backticked class names', function () { const str = 'classDiagram\n' + 'class `Car`'; parser.parse(str); @@ -1207,7 +1207,7 @@ describe('given a class diagram with relationships, ', function () { parser.parse(str); }); - it('should handle backquoted class name', function () { + it('should handle backticked class name', function () { const str = 'classDiagram\n' + '`Class1` <|-- Class02\n' + From fc3d4859dbd766a1117e299a15426062e8bb2b82 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:34:39 -0400 Subject: [PATCH 17/99] spelling: been Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .github/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/stale.yml b/.github/stale.yml index 30c4ca4a0..94a16dfbd 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -15,5 +15,5 @@ markComment: > If you are still interested in this issue and it is still relevant you can comment to revive it. # Comment to post when closing a stale issue. Set to `false` to disable closeComment: > - This issue has been been automatically closed due to a lack of activity. + This issue has been automatically closed due to a lack of activity. This is done to maintain a clean list of issues that the community is interested in developing. From 0c2d222aa6799d23b3871a38cabc4623ad137448 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:53:03 -0400 Subject: [PATCH 18/99] spelling: beginning Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/diagrams/flowchart/parser/flow-vertice-chaining.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/flowchart/parser/flow-vertice-chaining.spec.js b/packages/mermaid/src/diagrams/flowchart/parser/flow-vertice-chaining.spec.js index 5a560b7dd..32cbcee2b 100644 --- a/packages/mermaid/src/diagrams/flowchart/parser/flow-vertice-chaining.spec.js +++ b/packages/mermaid/src/diagrams/flowchart/parser/flow-vertice-chaining.spec.js @@ -57,7 +57,7 @@ describe('when parsing flowcharts', function () { expect(edges[1].type).toBe('arrow_point'); expect(edges[1].text).toBe(''); }); - it('should multiple vertices in link statement in the begining', function () { + it('should multiple vertices in link statement in the beginning', function () { const res = flow.parser.parse(` graph TD A-->B & C; From c4c55277cb34f95b0d1abddb6ebeb3f0690ae0ac Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 10:12:14 -0400 Subject: [PATCH 19/99] spelling: boundaries Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/diagrams/c4/c4Renderer.js | 4 ++-- .../src/diagrams/c4/parser/c4Boundary.spec.js | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/mermaid/src/diagrams/c4/c4Renderer.js b/packages/mermaid/src/diagrams/c4/c4Renderer.js index 58dd808fd..87211b24f 100644 --- a/packages/mermaid/src/diagrams/c4/c4Renderer.js +++ b/packages/mermaid/src/diagrams/c4/c4Renderer.js @@ -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); diff --git a/packages/mermaid/src/diagrams/c4/parser/c4Boundary.spec.js b/packages/mermaid/src/diagrams/c4/parser/c4Boundary.spec.js index f43f00748..20735eeb0 100644 --- a/packages/mermaid/src/diagrams/c4/parser/c4Boundary.spec.js +++ b/packages/mermaid/src/diagrams/c4/parser/c4Boundary.spec.js @@ -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', From 206cc51578663e5979dc1a99ef9f5ac45a342c2b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:55:22 -0400 Subject: [PATCH 20/99] spelling: bronze Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/timeline.spec.ts | 2 +- cypress/platform/ashish2.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/rendering/timeline.spec.ts b/cypress/integration/rendering/timeline.spec.ts index c748b54d3..388ac1edf 100644 --- a/cypress/integration/rendering/timeline.spec.ts +++ b/cypress/integration/rendering/timeline.spec.ts @@ -35,7 +35,7 @@ describe('Timeline diagram', () => { section Stone Age 7600 BC : Britain's oldest known house was built in Orkney, Scotland 6000 BC : Sea levels rise and Britain becomes an island.
The people who live here are hunter-gatherers. - section Broze Age + section Bronze Age 2300 BC : People arrive from Europe and settle in Britain.
They bring farming and metalworking. : New styles of pottery and ways of burying the dead appear. 2200 BC : The last major building works are completed at Stonehenge.
People now bury their dead in stone circles. diff --git a/cypress/platform/ashish2.html b/cypress/platform/ashish2.html index 351dcabc2..3a4a848e0 100644 --- a/cypress/platform/ashish2.html +++ b/cypress/platform/ashish2.html @@ -93,7 +93,7 @@ section Stone Age 7600 BC : Britain's oldest known house was built in Orkney, Scotland 6000 BC : Sea levels rise and Britain becomes an island. The people who live here are hunter-gatherers. - section Broze Age + section Bronze Age 2300 BC : People arrive from Europe and settle in Britain. They bring farming and metalworking. : New styles of pottery and ways of burying the dead appear. 2200 BC : The last major building works are completed at Stonehenge. People now bury their dead in stone circles. From 2215bf6aaa953f722b0bd7d2bbdc883d8641d5e0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:55:48 -0400 Subject: [PATCH 21/99] spelling: bullet Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/platform/ashish2.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/platform/ashish2.html b/cypress/platform/ashish2.html index 3a4a848e0..dc99d16be 100644 --- a/cypress/platform/ashish2.html +++ b/cypress/platform/ashish2.html @@ -77,11 +77,11 @@ timeline title MermaidChart 2023 Timeline section 2023 Q1
Release Personal Tier - Buttet 1 : sub-point 1a : sub-point 1b + Bullet 1 : sub-point 1a : sub-point 1b : sub-point 1c Bullet 2 : sub-point 2a : sub-point 2b section 2023 Q2
Release XYZ Tier - Buttet 3 : sub-point
3a : sub-point 3b + Bullet 3 : sub-point
3a : sub-point 3b : sub-point 3c Bullet 4 : sub-point 4a : sub-point 4b From 2bb77406fbab8ea056a99806f7acb7ebf41cae80 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:54:20 -0400 Subject: [PATCH 22/99] spelling: bypass Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/diagrams/common/common.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/common/common.spec.ts b/packages/mermaid/src/diagrams/common/common.spec.ts index 9af244406..3c7e0fdb8 100644 --- a/packages/mermaid/src/diagrams/common/common.spec.ts +++ b/packages/mermaid/src/diagrams/common/common.spec.ts @@ -28,7 +28,7 @@ describe('when securityLevel is antiscript, all script must be removed', () => { it('should remove all javascript urls', () => { compareRemoveScript( `This is a clean link + clean link - and me too`, + and me too`, `This is a clean link + clean link and me too` ); From 0507fe114ed391a495ed4c0a7e099a4e98c0fb28 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 21:00:12 -0400 Subject: [PATCH 23/99] spelling: cannot Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- README.md | 2 +- docs/intro/index.md | 2 +- docs/syntax/entityRelationshipDiagram.md | 2 +- docs/syntax/stateDiagram.md | 2 +- packages/mermaid/src/dagre-wrapper/GraphObjects.md | 2 +- packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js | 4 ++-- packages/mermaid/src/docs/intro/index.md | 2 +- packages/mermaid/src/docs/syntax/entityRelationshipDiagram.md | 2 +- packages/mermaid/src/docs/syntax/stateDiagram.md | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8e6e70697..760ce0f25 100644 --- a/README.md +++ b/README.md @@ -451,7 +451,7 @@ For public sites, it can be precarious to retrieve text from users on the intern As an extra level of security for sites with external users we are happy to introduce a new security level in which the diagram is rendered in a sandboxed iframe preventing javascript in the code from being executed. This is a great step forward for better security. -_Unfortunately you can not have a cake and eat it at the same time which in this case means that some of the interactive functionality gets blocked along with the possible malicious code._ +_Unfortunately you cannot have a cake and eat it at the same time which in this case means that some of the interactive functionality gets blocked along with the possible malicious code._ ## Reporting vulnerabilities diff --git a/docs/intro/index.md b/docs/intro/index.md index f6cf81075..06a408268 100644 --- a/docs/intro/index.md +++ b/docs/intro/index.md @@ -437,7 +437,7 @@ For public sites, it can be precarious to retrieve text from users on the intern As an extra level of security for sites with external users we are happy to introduce a new security level in which the diagram is rendered in a sandboxed iframe preventing JavaScript in the code from being executed. This is a great step forward for better security. -_Unfortunately you can not have a cake and eat it at the same time which in this case means that some of the interactive functionality gets blocked along with the possible malicious code._ +_Unfortunately you cannot have a cake and eat it at the same time which in this case means that some of the interactive functionality gets blocked along with the possible malicious code._ ## Reporting vulnerabilities diff --git a/docs/syntax/entityRelationshipDiagram.md b/docs/syntax/entityRelationshipDiagram.md index 4ec776c10..e31a00eb2 100644 --- a/docs/syntax/entityRelationshipDiagram.md +++ b/docs/syntax/entityRelationshipDiagram.md @@ -171,7 +171,7 @@ Cardinality is a property that describes how many elements of another entity can ### Identification -Relationships may be classified as either _identifying_ or _non-identifying_ and these are rendered with either solid or dashed lines respectively. This is relevant when one of the entities in question can not have independent existence without the other. For example a firm that insures people to drive cars might need to store data on `NAMED-DRIVER`s. In modelling this we might start out by observing that a `CAR` can be driven by many `PERSON` instances, and a `PERSON` can drive many `CAR`s - both entities can exist without the other, so this is a non-identifying relationship that we might specify in Mermaid as: `PERSON }|..|{ CAR : "driver"`. Note the two dots in the middle of the relationship that will result in a dashed line being drawn between the two entities. But when this many-to-many relationship is resolved into two one-to-many relationships, we observe that a `NAMED-DRIVER` cannot exist without both a `PERSON` and a `CAR` - the relationships become identifying and would be specified using hyphens, which translate to a solid line: +Relationships may be classified as either _identifying_ or _non-identifying_ and these are rendered with either solid or dashed lines respectively. This is relevant when one of the entities in question cannot have independent existence without the other. For example a firm that insures people to drive cars might need to store data on `NAMED-DRIVER`s. In modelling this we might start out by observing that a `CAR` can be driven by many `PERSON` instances, and a `PERSON` can drive many `CAR`s - both entities can exist without the other, so this is a non-identifying relationship that we might specify in Mermaid as: `PERSON }|..|{ CAR : "driver"`. Note the two dots in the middle of the relationship that will result in a dashed line being drawn between the two entities. But when this many-to-many relationship is resolved into two one-to-many relationships, we observe that a `NAMED-DRIVER` cannot exist without both a `PERSON` and a `CAR` - the relationships become identifying and would be specified using hyphens, which translate to a solid line: | Value | Alias for | | :---: | :---------------: | diff --git a/docs/syntax/stateDiagram.md b/docs/syntax/stateDiagram.md index e532678f0..c9ca956f2 100644 --- a/docs/syntax/stateDiagram.md +++ b/docs/syntax/stateDiagram.md @@ -278,7 +278,7 @@ stateDiagram-v2 } ``` -_You can not define transitions between internal states belonging to different composite states_ +_You cannot define transitions between internal states belonging to different composite states_ ## Choice diff --git a/packages/mermaid/src/dagre-wrapper/GraphObjects.md b/packages/mermaid/src/dagre-wrapper/GraphObjects.md index 4620adeec..f138c7511 100644 --- a/packages/mermaid/src/dagre-wrapper/GraphObjects.md +++ b/packages/mermaid/src/dagre-wrapper/GraphObjects.md @@ -32,7 +32,7 @@ When rendering this diagram it is being rendered recursively. The diagram is ren _Data for a clusterNode_ -When a cluster has edges to or from some of its nodes leading outside the cluster the approach of recursive rendering can not be used as the layout of the graph needs to take responsibility for nodes outside of the cluster. +When a cluster has edges to or from some of its nodes leading outside the cluster the approach of recursive rendering cannot be used as the layout of the graph needs to take responsibility for nodes outside of the cluster. ```mermaid flowchart diff --git a/packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js b/packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js index d367d26a5..fd1d2a9e5 100644 --- a/packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js +++ b/packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js @@ -40,7 +40,7 @@ describe('when parsing ER diagram it...', function () { allowed.forEach((allowedChar) => { const singleOccurrence = `Blo${allowedChar}rf`; const repeatedOccurrence = `Blo${allowedChar}${allowedChar}rf`; - const cannontStartWith = `${allowedChar}Blorf`; + const cannotStartWith = `${allowedChar}Blorf`; const endsWith = `Blorf${allowedChar}`; it(`${singleOccurrence} fails if not surrounded by quotes`, function () { @@ -73,7 +73,7 @@ describe('when parsing ER diagram it...', function () { expect(entities.has(name)).toBe(true); }); - it(`"${cannontStartWith}" cannot start with the character`, function () { + it(`"${cannotStartWith}" cannot start with the character`, function () { const name = repeatedOccurrence; expect(() => { erDiagram.parser.parse(`erDiagram\n "${name}"\n`); diff --git a/packages/mermaid/src/docs/intro/index.md b/packages/mermaid/src/docs/intro/index.md index d6cd9e58f..ff37d549b 100644 --- a/packages/mermaid/src/docs/intro/index.md +++ b/packages/mermaid/src/docs/intro/index.md @@ -192,7 +192,7 @@ For public sites, it can be precarious to retrieve text from users on the intern As an extra level of security for sites with external users we are happy to introduce a new security level in which the diagram is rendered in a sandboxed iframe preventing JavaScript in the code from being executed. This is a great step forward for better security. -_Unfortunately you can not have a cake and eat it at the same time which in this case means that some of the interactive functionality gets blocked along with the possible malicious code._ +_Unfortunately you cannot have a cake and eat it at the same time which in this case means that some of the interactive functionality gets blocked along with the possible malicious code._ ## Reporting vulnerabilities diff --git a/packages/mermaid/src/docs/syntax/entityRelationshipDiagram.md b/packages/mermaid/src/docs/syntax/entityRelationshipDiagram.md index 600d50723..f9ed8df9b 100644 --- a/packages/mermaid/src/docs/syntax/entityRelationshipDiagram.md +++ b/packages/mermaid/src/docs/syntax/entityRelationshipDiagram.md @@ -125,7 +125,7 @@ Cardinality is a property that describes how many elements of another entity can ### Identification -Relationships may be classified as either _identifying_ or _non-identifying_ and these are rendered with either solid or dashed lines respectively. This is relevant when one of the entities in question can not have independent existence without the other. For example a firm that insures people to drive cars might need to store data on `NAMED-DRIVER`s. In modelling this we might start out by observing that a `CAR` can be driven by many `PERSON` instances, and a `PERSON` can drive many `CAR`s - both entities can exist without the other, so this is a non-identifying relationship that we might specify in Mermaid as: `PERSON }|..|{ CAR : "driver"`. Note the two dots in the middle of the relationship that will result in a dashed line being drawn between the two entities. But when this many-to-many relationship is resolved into two one-to-many relationships, we observe that a `NAMED-DRIVER` cannot exist without both a `PERSON` and a `CAR` - the relationships become identifying and would be specified using hyphens, which translate to a solid line: +Relationships may be classified as either _identifying_ or _non-identifying_ and these are rendered with either solid or dashed lines respectively. This is relevant when one of the entities in question cannot have independent existence without the other. For example a firm that insures people to drive cars might need to store data on `NAMED-DRIVER`s. In modelling this we might start out by observing that a `CAR` can be driven by many `PERSON` instances, and a `PERSON` can drive many `CAR`s - both entities can exist without the other, so this is a non-identifying relationship that we might specify in Mermaid as: `PERSON }|..|{ CAR : "driver"`. Note the two dots in the middle of the relationship that will result in a dashed line being drawn between the two entities. But when this many-to-many relationship is resolved into two one-to-many relationships, we observe that a `NAMED-DRIVER` cannot exist without both a `PERSON` and a `CAR` - the relationships become identifying and would be specified using hyphens, which translate to a solid line: | Value | Alias for | | :---: | :---------------: | diff --git a/packages/mermaid/src/docs/syntax/stateDiagram.md b/packages/mermaid/src/docs/syntax/stateDiagram.md index 9d99ab93b..ca95bd4bb 100644 --- a/packages/mermaid/src/docs/syntax/stateDiagram.md +++ b/packages/mermaid/src/docs/syntax/stateDiagram.md @@ -160,7 +160,7 @@ stateDiagram-v2 } ``` -_You can not define transitions between internal states belonging to different composite states_ +_You cannot define transitions between internal states belonging to different composite states_ ## Choice From d6e1541bc8caa55cfd589f26acc09609de38d61f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:58:10 -0400 Subject: [PATCH 24/99] spelling: cluster Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/dagre-wrapper/mermaid-graphlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/dagre-wrapper/mermaid-graphlib.js b/packages/mermaid/src/dagre-wrapper/mermaid-graphlib.js index ef0c2caa7..3873f8f81 100644 --- a/packages/mermaid/src/dagre-wrapper/mermaid-graphlib.js +++ b/packages/mermaid/src/dagre-wrapper/mermaid-graphlib.js @@ -351,7 +351,7 @@ export const extractor = (graph, depth) => { return; } // For clusters without incoming and/or outgoing edges, create a new cluster-node - // containing the nodes and edges in the custer in a new graph + // containing the nodes and edges in the cluster in a new graph // for (let i = 0;) let nodes = graph.nodes(); let hasChildren = false; From 4b12ebee511c1c1ce6bd08352b2f9d9626950abc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:56:41 -0400 Subject: [PATCH 25/99] spelling: code paths Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 266b68dda..bd343b278 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -91,7 +91,7 @@ // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ - // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ + // "noImplicitReturns": true, /* Enable error reporting for code paths that do not explicitly return in a function. */ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ From 4ed4756220a7742f7ba19f4f174f1da211c229b5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:56:49 -0400 Subject: [PATCH 26/99] spelling: columns Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/block.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/integration/rendering/block.spec.js b/cypress/integration/rendering/block.spec.js index f5d5103e8..233b97d36 100644 --- a/cypress/integration/rendering/block.spec.js +++ b/cypress/integration/rendering/block.spec.js @@ -14,7 +14,7 @@ describe('Block diagram', () => { ); }); - it('BL2: should handle colums statement in sub-blocks', () => { + it('BL2: should handle columns statement in sub-blocks', () => { imgSnapshotTest( `block-beta id1["Hello"] @@ -30,7 +30,7 @@ describe('Block diagram', () => { ); }); - it('BL3: should align block widths and handle colums statement in sub-blocks', () => { + it('BL3: should align block widths and handle columns statement in sub-blocks', () => { imgSnapshotTest( `block-beta block @@ -46,7 +46,7 @@ describe('Block diagram', () => { ); }); - it('BL4: should align block widths and handle colums statements in deeper sub-blocks then 1 level', () => { + it('BL4: should align block widths and handle columns statements in deeper sub-blocks then 1 level', () => { imgSnapshotTest( `block-beta columns 1 @@ -66,7 +66,7 @@ describe('Block diagram', () => { ); }); - it('BL5: should align block widths and handle colums statements in deeper sub-blocks then 1 level (alt)', () => { + it('BL5: should align block widths and handle columns statements in deeper sub-blocks then 1 level (alt)', () => { imgSnapshotTest( `block-beta columns 1 From b9c472e091921c915860d7434b52272550277ad7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:56:56 -0400 Subject: [PATCH 27/99] spelling: compound Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/stateDiagram-v2.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/rendering/stateDiagram-v2.spec.js b/cypress/integration/rendering/stateDiagram-v2.spec.js index 60bfeb171..24ef245d7 100644 --- a/cypress/integration/rendering/stateDiagram-v2.spec.js +++ b/cypress/integration/rendering/stateDiagram-v2.spec.js @@ -345,7 +345,7 @@ stateDiagram } ); }); - it('v2 width of compond state should grow with title if title is wider', () => { + it('v2 width of compound state should grow with title if title is wider', () => { imgSnapshotTest( ` stateDiagram-v2 From a6c9ab04dc997b34949093c47598ffc8d45e7eb5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:57:09 -0400 Subject: [PATCH 28/99] spelling: corresponding Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/diagrams/timeline/timeline.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/timeline/timeline.spec.js b/packages/mermaid/src/diagrams/timeline/timeline.spec.js index a7005cada..6a4e287d3 100644 --- a/packages/mermaid/src/diagrams/timeline/timeline.spec.js +++ b/packages/mermaid/src/diagrams/timeline/timeline.spec.js @@ -30,7 +30,7 @@ describe('when parsing a timeline ', function () { }); }); - it('should handle a two section and two coressponding tasks', function () { + it('should handle a two section and two corresponding tasks', function () { let str = `timeline section abc-123 task1 From 0103da0179a55194807baec551ded8731d77c32e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 10:14:17 -0400 Subject: [PATCH 29/99] spelling: cspell:ignore Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .cspell/code-terms.txt | 1 - packages/mermaid/src/diagrams/c4/c4Db.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.cspell/code-terms.txt b/.cspell/code-terms.txt index f4862006f..285b66365 100644 --- a/.cspell/code-terms.txt +++ b/.cspell/code-terms.txt @@ -53,7 +53,6 @@ frontmatter funs gantt GENERICTYPE -getBoundarys grammr graphtype halign diff --git a/packages/mermaid/src/diagrams/c4/c4Db.js b/packages/mermaid/src/diagrams/c4/c4Db.js index 70248fcc4..db17da9ff 100644 --- a/packages/mermaid/src/diagrams/c4/c4Db.js +++ b/packages/mermaid/src/diagrams/c4/c4Db.js @@ -705,6 +705,7 @@ export const getBoundaries = function (parentBoundary) { } }; +// cspell:ignore getBoundarys /** * @deprecated Use {@link getBoundaries} instead */ From 7caf37796330f71404cad505a3bb425cadc72768 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:58:40 -0400 Subject: [PATCH 30/99] spelling: definition Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/diagram.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagram.spec.ts b/packages/mermaid/src/diagram.spec.ts index 873fada14..8e7759d6d 100644 --- a/packages/mermaid/src/diagram.spec.ts +++ b/packages/mermaid/src/diagram.spec.ts @@ -85,7 +85,7 @@ describe('diagram detection', () => { ); }); - test('should consider entity codes when present in diagram defination', async () => { + test('should consider entity codes when present in diagram definition', async () => { const diagram = await Diagram.fromText(`sequenceDiagram A->>B: I #9829; you! B->>A: I #9829; you #infin; times more!`); From 08951dbbf09b61aac87e860ffeb7d0206f983218 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 07:59:44 -0400 Subject: [PATCH 31/99] spelling: delegate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- demos/quadrantchart.html | 2 +- .../quadrant-chart/parser/quadrant.jison.spec.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/demos/quadrantchart.html b/demos/quadrantchart.html index 7b6291742..aec759d86 100644 --- a/demos/quadrantchart.html +++ b/demos/quadrantchart.html @@ -22,7 +22,7 @@ y-axis Not Important --> important quadrant-1 Plan quadrant-2 Do - quadrant-3 Deligate + quadrant-3 Delegate quadrant-4 Delete diff --git a/packages/mermaid/src/diagrams/quadrant-chart/parser/quadrant.jison.spec.ts b/packages/mermaid/src/diagrams/quadrant-chart/parser/quadrant.jison.spec.ts index bf1d1f2ec..f1957679b 100644 --- a/packages/mermaid/src/diagrams/quadrant-chart/parser/quadrant.jison.spec.ts +++ b/packages/mermaid/src/diagrams/quadrant-chart/parser/quadrant.jison.spec.ts @@ -160,20 +160,20 @@ describe('Testing quadrantChart jison file', () => { }); it('should be able to parse quadrant3 text', () => { - let str = 'quadrantChart\nquadrant-3 deligate'; + let str = 'quadrantChart\nquadrant-3 delegate'; expect(parserFnConstructor(str)).not.toThrow(); - expect(mockDB.setQuadrant3Text).toHaveBeenCalledWith({ text: 'deligate', type: 'text' }); + expect(mockDB.setQuadrant3Text).toHaveBeenCalledWith({ text: 'delegate', type: 'text' }); clearMocks(); - str = 'QuadRantChart \n QuaDrant-3 Deligate '; + str = 'QuadRantChart \n QuaDrant-3 Delegate '; expect(parserFnConstructor(str)).not.toThrow(); - expect(mockDB.setQuadrant3Text).toHaveBeenCalledWith({ text: 'Deligate ', type: 'text' }); + expect(mockDB.setQuadrant3Text).toHaveBeenCalledWith({ text: 'Delegate ', type: 'text' }); clearMocks(); - str = 'QuadRantChart \n QuaDrant-3 "Deligate(* +=[โค"'; + str = 'QuadRantChart \n QuaDrant-3 "Delegate(* +=[โค"'; expect(parserFnConstructor(str)).not.toThrow(); expect(mockDB.setQuadrant3Text).toHaveBeenCalledWith({ - text: 'Deligate(* +=[โค', + text: 'Delegate(* +=[โค', type: 'text', }); }); From 5f35d70ce2865b484f3e58c0a7459d64ad8b46f8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:00:00 -0400 Subject: [PATCH 32/99] spelling: detected Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/diagram-api/diagram-orchestration.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagram-api/diagram-orchestration.spec.ts b/packages/mermaid/src/diagram-api/diagram-orchestration.spec.ts index 4517ff622..3ec2d861f 100644 --- a/packages/mermaid/src/diagram-api/diagram-orchestration.spec.ts +++ b/packages/mermaid/src/diagram-api/diagram-orchestration.spec.ts @@ -9,7 +9,7 @@ describe('diagram-orchestration', () => { expect(detectType('graph TD; A-->B')).toBe('flowchart'); }); - describe('proper diagram types should be detetced', () => { + describe('proper diagram types should be detected', () => { beforeAll(() => { addDiagrams(); }); From 08085b88217a8ff33996a3f2eebb4ae0886846db Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:01:05 -0400 Subject: [PATCH 33/99] spelling: distinguish Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/diagrams/kanban/kanban.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/kanban/kanban.spec.ts b/packages/mermaid/src/diagrams/kanban/kanban.spec.ts index 58fdab0e6..2d798ab2e 100644 --- a/packages/mermaid/src/diagrams/kanban/kanban.spec.ts +++ b/packages/mermaid/src/diagrams/kanban/kanban.spec.ts @@ -56,7 +56,7 @@ describe('when parsing a kanban ', function () { expect(sections[0].label).toEqual('root'); }); - it('KNBN-4 should not dsitinguis between deeper hierachial levels in thr kanban definition', function () { + it('KNBN-4 should not distinguish between deeper hierachial levels in thr kanban definition', function () { const str = `kanban root child1 From 78ded6452f45f6acc5f759055da4ff34dcf84fe4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:01:54 -0400 Subject: [PATCH 34/99] spelling: even though Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .github/lychee.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/lychee.toml b/.github/lychee.toml index 8032bbf98..b4e8ba0fb 100644 --- a/.github/lychee.toml +++ b/.github/lychee.toml @@ -46,7 +46,7 @@ exclude = [ # Drupal 403 "https://(www.)?drupal.org", -# Swimm returns 404, eventhough the link is valid +# Swimm returns 404, even though the link is valid "https://docs.swimm.io", # Timeout From 075f0f580f80d4fd27336373a36f7d3adb4c0709 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:02:02 -0400 Subject: [PATCH 35/99] spelling: excluding Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/gantt.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/rendering/gantt.spec.js b/cypress/integration/rendering/gantt.spec.js index a0c2dbcb9..82aeb7ecd 100644 --- a/cypress/integration/rendering/gantt.spec.js +++ b/cypress/integration/rendering/gantt.spec.js @@ -573,7 +573,7 @@ describe('Gantt diagram', () => { ` ); }); - it('should render a gantt diagram exculding friday and saturday', () => { + it('should render a gantt diagram excluding friday and saturday', () => { imgSnapshotTest( `gantt title A Gantt Diagram @@ -584,7 +584,7 @@ describe('Gantt diagram', () => { A task :a1, 2024-02-28, 10d` ); }); - it('should render a gantt diagram exculding saturday and sunday', () => { + it('should render a gantt diagram excluding saturday and sunday', () => { imgSnapshotTest( `gantt title A Gantt Diagram From 0474a8422b7f414b6ecc657b5bb8a010544a98c5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:46:51 -0400 Subject: [PATCH 36/99] spelling: for example Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/CHANGELOG.md b/packages/mermaid/CHANGELOG.md index 0c8f66aca..b57b83b6a 100644 --- a/packages/mermaid/CHANGELOG.md +++ b/packages/mermaid/CHANGELOG.md @@ -110,7 +110,7 @@ ### Patch Changes - [#5849](https://github.com/mermaid-js/mermaid/pull/5849) [`6c5b7ce`](https://github.com/mermaid-js/mermaid/commit/6c5b7ce9f41c0fbd59fe03dbefc8418d97697f0a) Thanks [@ReneLombard](https://github.com/ReneLombard)! - Fixed an issue when the mermaid classdiagram crashes when adding a . to the namespace. - Forexample + For example ```mermaid From 20098b287b6f7f87f4785c4735a269a27d54419d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 15:41:43 -0400 Subject: [PATCH 37/99] spelling: for Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/community/contributing.md | 2 +- packages/mermaid/src/docs/community/contributing.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/community/contributing.md b/docs/community/contributing.md index b545d03b0..a44b6d221 100644 --- a/docs/community/contributing.md +++ b/docs/community/contributing.md @@ -497,7 +497,7 @@ This is a danger alert ### Navigation -If you want to propose changes to how the documentation is _organized_, such as adding a new section or re-arranging or renaming a section, you must update the **sidebar navigation**, which is defined in [the vitepress config](../.vitepress/config.ts). The same goes to **topbar**. +If you want to propose changes to how the documentation is _organized_, such as adding a new section or re-arranging or renaming a section, you must update the **sidebar navigation**, which is defined in [the vitepress config](../.vitepress/config.ts). The same goes for **topbar**. ### Build Docs diff --git a/packages/mermaid/src/docs/community/contributing.md b/packages/mermaid/src/docs/community/contributing.md index a962907df..12050dcab 100644 --- a/packages/mermaid/src/docs/community/contributing.md +++ b/packages/mermaid/src/docs/community/contributing.md @@ -497,7 +497,7 @@ This is a danger alert ### Navigation -If you want to propose changes to how the documentation is _organized_, such as adding a new section or re-arranging or renaming a section, you must update the **sidebar navigation**, which is defined in [the vitepress config](../.vitepress/config.ts). The same goes to **topbar**. +If you want to propose changes to how the documentation is _organized_, such as adding a new section or re-arranging or renaming a section, you must update the **sidebar navigation**, which is defined in [the vitepress config](../.vitepress/config.ts). The same goes for **topbar**. ### Build Docs From 1ca6ff93ff3bd3dd2eab6a1ea998137b918080fe Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:35:21 -0400 Subject: [PATCH 38/99] spelling: from Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/rendering-util/rendering-elements/intersect/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/rendering-util/rendering-elements/intersect/index.js b/packages/mermaid/src/rendering-util/rendering-elements/intersect/index.js index e33b6dd51..47f71747d 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/intersect/index.js +++ b/packages/mermaid/src/rendering-util/rendering-elements/intersect/index.js @@ -1,5 +1,5 @@ /* - * Borrowed with love from from dagre-d3. Many thanks to cpettitt! + * Borrowed with love from dagre-d3. Many thanks to cpettitt! */ import node from './intersect-node.js'; From 8564ebbdbdd525591c8a41f4ba26986da97b1ee3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:02:41 -0400 Subject: [PATCH 39/99] spelling: fundamentals Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/syntax/block.md | 2 +- packages/mermaid/src/docs/syntax/block.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/syntax/block.md b/docs/syntax/block.md index 7048ef352..a506c5e7a 100644 --- a/docs/syntax/block.md +++ b/docs/syntax/block.md @@ -663,7 +663,7 @@ block-beta ``` **Correction**: -Ensure that links between blocks are correctly specified with arrows (--> or ---) to define the direction and type of connection. Also remember that one of the fundaments for block diagram is to give the author full control of where the boxes are positioned so in the example you need to add a space between the boxes: +Ensure that links between blocks are correctly specified with arrows (--> or ---) to define the direction and type of connection. Also remember that one of the fundamentals for block diagram is to give the author full control of where the boxes are positioned so in the example you need to add a space between the boxes: ```mermaid-example block-beta diff --git a/packages/mermaid/src/docs/syntax/block.md b/packages/mermaid/src/docs/syntax/block.md index 5b8aa1c99..81b085cde 100644 --- a/packages/mermaid/src/docs/syntax/block.md +++ b/packages/mermaid/src/docs/syntax/block.md @@ -458,7 +458,7 @@ block-beta ``` **Correction**: -Ensure that links between blocks are correctly specified with arrows (--> or ---) to define the direction and type of connection. Also remember that one of the fundaments for block diagram is to give the author full control of where the boxes are positioned so in the example you need to add a space between the boxes: +Ensure that links between blocks are correctly specified with arrows (--> or ---) to define the direction and type of connection. Also remember that one of the fundamentals for block diagram is to give the author full control of where the boxes are positioned so in the example you need to add a space between the boxes: ```mermaid-example block-beta From 92132ad4f1d773b4a029e3de96b255e69bce956f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 14:35:37 -0400 Subject: [PATCH 40/99] spelling: gitgraph Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/config/accessibility.md | 10 +++++----- docs/syntax/gitgraph.md | 4 ++-- packages/mermaid/src/docs/.vitepress/config.ts | 2 +- packages/mermaid/src/docs/config/accessibility.md | 6 +++--- packages/mermaid/src/docs/syntax/gitgraph.md | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/config/accessibility.md b/docs/config/accessibility.md index c7ca26ede..8ff105594 100644 --- a/docs/config/accessibility.md +++ b/docs/config/accessibility.md @@ -251,12 +251,12 @@ Here is the HTML generated for the SVG element: _(Note that some of the SVG attr ``` -##### Gitgraph +##### GitGraph ```mermaid-example gitGraph - accTitle: My Gitgraph Accessibility Title - accDescr: My Gitgraph Accessibility Description + accTitle: My GitGraph Accessibility Title + accDescr: My GitGraph Accessibility Description commit commit @@ -273,8 +273,8 @@ Here is the HTML generated for the SVG element: _(Note that some of the SVG attr ```mermaid gitGraph - accTitle: My Gitgraph Accessibility Title - accDescr: My Gitgraph Accessibility Description + accTitle: My GitGraph Accessibility Title + accDescr: My GitGraph Accessibility Description commit commit diff --git a/docs/syntax/gitgraph.md b/docs/syntax/gitgraph.md index f2dacddab..ffd8df3c3 100644 --- a/docs/syntax/gitgraph.md +++ b/docs/syntax/gitgraph.md @@ -4,7 +4,7 @@ > > ## Please edit the corresponding file in [/packages/mermaid/src/docs/syntax/gitgraph.md](../../packages/mermaid/src/docs/syntax/gitgraph.md). -# Gitgraph Diagrams +# GitGraph Diagrams > A Git Graph is a pictorial representation of git commits and git actions(commands) on various branches. @@ -413,7 +413,7 @@ Let see an example: commit id:"C" ``` -## Gitgraph specific configuration options +## GitGraph specific configuration options In Mermaid, you have the option to configure the gitgraph diagram. You can configure the following options: diff --git a/packages/mermaid/src/docs/.vitepress/config.ts b/packages/mermaid/src/docs/.vitepress/config.ts index d3f4a9aee..a07d1aea3 100644 --- a/packages/mermaid/src/docs/.vitepress/config.ts +++ b/packages/mermaid/src/docs/.vitepress/config.ts @@ -148,7 +148,7 @@ function sidebarSyntax() { { text: 'Pie Chart', link: '/syntax/pie' }, { text: 'Quadrant Chart', link: '/syntax/quadrantChart' }, { text: 'Requirement Diagram', link: '/syntax/requirementDiagram' }, - { text: 'Gitgraph (Git) Diagram', link: '/syntax/gitgraph' }, + { text: 'GitGraph (Git) Diagram', link: '/syntax/gitgraph' }, { text: 'C4 Diagram ๐Ÿฆบโš ๏ธ', link: '/syntax/c4' }, { text: 'Mindmaps', link: '/syntax/mindmap' }, { text: 'Timeline', link: '/syntax/timeline' }, diff --git a/packages/mermaid/src/docs/config/accessibility.md b/packages/mermaid/src/docs/config/accessibility.md index b53567f73..c4f019aa4 100644 --- a/packages/mermaid/src/docs/config/accessibility.md +++ b/packages/mermaid/src/docs/config/accessibility.md @@ -190,12 +190,12 @@ Here is the HTML generated for the SVG element: _(Note that some of the SVG attr ``` -##### Gitgraph +##### GitGraph ```mermaid-example gitGraph - accTitle: My Gitgraph Accessibility Title - accDescr: My Gitgraph Accessibility Description + accTitle: My GitGraph Accessibility Title + accDescr: My GitGraph Accessibility Description commit commit diff --git a/packages/mermaid/src/docs/syntax/gitgraph.md b/packages/mermaid/src/docs/syntax/gitgraph.md index 5257a5f52..66bb2de41 100644 --- a/packages/mermaid/src/docs/syntax/gitgraph.md +++ b/packages/mermaid/src/docs/syntax/gitgraph.md @@ -1,4 +1,4 @@ -# Gitgraph Diagrams +# GitGraph Diagrams > A Git Graph is a pictorial representation of git commits and git actions(commands) on various branches. @@ -271,7 +271,7 @@ Let see an example: commit id:"C" ``` -## Gitgraph specific configuration options +## GitGraph specific configuration options In Mermaid, you have the option to configure the gitgraph diagram. You can configure the following options: From c82579097c3569bd2578bcb9d9f06d5753f2879c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 21:01:26 -0400 Subject: [PATCH 41/99] spelling: github Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 4 ++-- docs/community/contributing.md | 4 ++-- packages/mermaid/src/docs/community/contributing.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ede5e19ad..1b0285976 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -833,7 +833,7 @@ mermaid.run({ - Merge pull request \#1 from knsv/master [\#96](https://github.com/knsv/mermaid/pull/96) ([gkchic](https://github.com/gkchic)) - Removed duplicated section in flowchart docs [\#94](https://github.com/knsv/mermaid/pull/94) ([kaime](https://github.com/kaime)) - Grammar changes to sequence page [\#93](https://github.com/knsv/mermaid/pull/93) ([gkchic](https://github.com/gkchic)) -- Github buttons [\#89](https://github.com/knsv/mermaid/pull/89) ([gkchic](https://github.com/gkchic)) +- GitHub buttons [\#89](https://github.com/knsv/mermaid/pull/89) ([gkchic](https://github.com/gkchic)) - Template change [\#88](https://github.com/knsv/mermaid/pull/88) ([gkchic](https://github.com/gkchic)) ## [0.3.1](https://github.com/knsv/mermaid/tree/0.3.1) (2015-01-05) @@ -1002,4 +1002,4 @@ mermaid.run({ ## [0.1.0](https://github.com/knsv/mermaid/tree/0.1.0) (2014-11-16) -\* _This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)_ +\* _This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/GitHub-Changelog-Generator)_ diff --git a/docs/community/contributing.md b/docs/community/contributing.md index a44b6d221..596b26430 100644 --- a/docs/community/contributing.md +++ b/docs/community/contributing.md @@ -501,10 +501,10 @@ If you want to propose changes to how the documentation is _organized_, such as ### Build Docs -The content of `/docs` folder is built with Github Actions. +The content of `/docs` folder is built with GitHub Actions. > **Warning** -> So as to allow automatic compilation of documentation pages you have to enable Github Actions on your fork first +> So as to allow automatic compilation of documentation pages you have to enable GitHub Actions on your fork first ## Submit your pull request diff --git a/packages/mermaid/src/docs/community/contributing.md b/packages/mermaid/src/docs/community/contributing.md index 12050dcab..62d06f72f 100644 --- a/packages/mermaid/src/docs/community/contributing.md +++ b/packages/mermaid/src/docs/community/contributing.md @@ -501,10 +501,10 @@ If you want to propose changes to how the documentation is _organized_, such as ### Build Docs -The content of `/docs` folder is built with Github Actions. +The content of `/docs` folder is built with GitHub Actions. ```warning -So as to allow automatic compilation of documentation pages you have to enable Github Actions on your fork first +So as to allow automatic compilation of documentation pages you have to enable GitHub Actions on your fork first ``` ## Submit your pull request From 82646432a1b04fec62d8bccaf0955c6a7702e5a7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:03:26 -0400 Subject: [PATCH 42/99] spelling: grammar Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/diagrams/state/parser/stateDiagram.jison | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/state/parser/stateDiagram.jison b/packages/mermaid/src/diagrams/state/parser/stateDiagram.jison index e3bc51235..bfaf5a62a 100644 --- a/packages/mermaid/src/diagrams/state/parser/stateDiagram.jison +++ b/packages/mermaid/src/diagrams/state/parser/stateDiagram.jison @@ -3,7 +3,7 @@ * (c) 2014-2021 Knut Sveidqvist * MIT license. * - * Based on js sequence diagrams jison grammr + * Based on js sequence diagrams jison grammar * https://bramp.github.io/js-sequence-diagrams/ * (c) 2012-2013 Andrew Brampton (bramp.net) * Simplified BSD license. From ccdd0f014626ce1d3d9615d46eae7f1635461844 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:00:51 -0400 Subject: [PATCH 43/99] spelling: handdrawn Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/platform/yari.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/platform/yari.html b/cypress/platform/yari.html index 501541c3b..390218344 100644 --- a/cypress/platform/yari.html +++ b/cypress/platform/yari.html @@ -50,7 +50,7 @@ setPoints(List~int~ points) getPoints() List~int~ } - + Square : -List~string~ messages Square : +setMessages(List~string~ messages) Square : +getMessages() List~string~ @@ -88,7 +88,7 @@ --- classDiagram class Duck { - + } @@ -127,8 +127,8 @@ -attribute:type - attribute : type test - - + GetAttribute() type + + + GetAttribute() type + GetAttribute() type } @@ -449,7 +449,7 @@ --- config: theme: forest - look: handDrawns + look: handDrawn layout: elk --- classDiagram From bf83262d7c951389f4686e1c095dfa5c9fd01f5a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:04:01 -0400 Subject: [PATCH 44/99] spelling: handle huge Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../mermaid/src/diagrams/flowchart/parser/flow-huge.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/flowchart/parser/flow-huge.spec.js b/packages/mermaid/src/diagrams/flowchart/parser/flow-huge.spec.js index e512ba86a..5c4bc0d07 100644 --- a/packages/mermaid/src/diagrams/flowchart/parser/flow-huge.spec.js +++ b/packages/mermaid/src/diagrams/flowchart/parser/flow-huge.spec.js @@ -14,7 +14,7 @@ describe('[Text] when parsing', () => { describe('it should handle huge files', function () { // skipped because this test takes like 2 minutes or more! - it.skip('it should handlehuge diagrams', function () { + it.skip('it should handle huge diagrams', function () { const nodes = ('A-->B;B-->A;'.repeat(415) + 'A-->B;').repeat(57) + 'A-->B;B-->A;'.repeat(275); flow.parser.parse(`graph LR;${nodes}`); From 4bfd0f753d20b70da3a90db9836a6857f41d1de2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:35:27 -0400 Subject: [PATCH 45/99] spelling: have Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/dagre-wrapper/GraphObjects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/dagre-wrapper/GraphObjects.md b/packages/mermaid/src/dagre-wrapper/GraphObjects.md index f138c7511..32e8af6fa 100644 --- a/packages/mermaid/src/dagre-wrapper/GraphObjects.md +++ b/packages/mermaid/src/dagre-wrapper/GraphObjects.md @@ -22,7 +22,7 @@ flowchart C1 --> C2 ``` -The new nodes C1 and C2 are a special type of nodes, clusterNodes. ClusterNodes have have the nodes in the cluster including the cluster attached in a graph object. +The new nodes C1 and C2 are a special type of nodes, clusterNodes. ClusterNodes have the nodes in the cluster including the cluster attached in a graph object. When rendering this diagram it is being rendered recursively. The diagram is rendered by the dagre-mermaid:render function which in turn will be used to render the node C1 and the node C2. The result of those renderings will be inserted as nodes in the "root" diagram. With this recursive approach it would be possible to have different layout direction for each cluster. From 6a0fb67ab7ef949801aeeafcce40d5f104d57b62 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:04:21 -0400 Subject: [PATCH 46/99] spelling: hierarchical Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/diagrams/kanban/kanban.spec.ts | 4 ++-- packages/mermaid/src/diagrams/mindmap/mindmap.spec.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/mermaid/src/diagrams/kanban/kanban.spec.ts b/packages/mermaid/src/diagrams/kanban/kanban.spec.ts index 2d798ab2e..f3e0c4422 100644 --- a/packages/mermaid/src/diagrams/kanban/kanban.spec.ts +++ b/packages/mermaid/src/diagrams/kanban/kanban.spec.ts @@ -21,7 +21,7 @@ describe('when parsing a kanban ', function () { expect(sections.length).toEqual(1); expect(sections[0].label).toEqual('root'); }); - it('KNBN-2 should handle a hierachial kanban definition', function () { + it('KNBN-2 should handle a hierarchical kanban definition', function () { const str = `kanban root child1 @@ -56,7 +56,7 @@ describe('when parsing a kanban ', function () { expect(sections[0].label).toEqual('root'); }); - it('KNBN-4 should not distinguish between deeper hierachial levels in thr kanban definition', function () { + it('KNBN-4 should not distinguish between deeper hierarchical levels in thr kanban definition', function () { const str = `kanban root child1 diff --git a/packages/mermaid/src/diagrams/mindmap/mindmap.spec.ts b/packages/mermaid/src/diagrams/mindmap/mindmap.spec.ts index 2d67fc600..9a23f0368 100644 --- a/packages/mermaid/src/diagrams/mindmap/mindmap.spec.ts +++ b/packages/mermaid/src/diagrams/mindmap/mindmap.spec.ts @@ -19,7 +19,7 @@ describe('when parsing a mindmap ', function () { // console.log('Time for checks', mindmap.yy.getMindmap().descr); expect(mindmap.yy.getMindmap().descr).toEqual('root'); }); - it('MMP-2 should handle a hierachial mindmap definition', function () { + it('MMP-2 should handle a hierarchical mindmap definition', function () { const str = `mindmap root child1 @@ -43,7 +43,7 @@ describe('when parsing a mindmap ', function () { expect(mindmap.yy.getMindmap().descr).toEqual('root'); }); - it('MMP-4 should handle a deeper hierachial mindmap definition', function () { + it('MMP-4 should handle a deeper hierarchical mindmap definition', function () { const str = `mindmap root child1 From cba4d733f035c2c64c47d5307f55c25f62b4f2a7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:04:13 -0400 Subject: [PATCH 47/99] spelling: hierarchy Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/diagrams/kanban/kanban.spec.ts | 2 +- packages/mermaid/src/diagrams/mindmap/mindmap.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/diagrams/kanban/kanban.spec.ts b/packages/mermaid/src/diagrams/kanban/kanban.spec.ts index f3e0c4422..4e37deb7e 100644 --- a/packages/mermaid/src/diagrams/kanban/kanban.spec.ts +++ b/packages/mermaid/src/diagrams/kanban/kanban.spec.ts @@ -11,7 +11,7 @@ describe('when parsing a kanban ', function () { kanban.yy.clear(); setLogLevel('trace'); }); - describe('hiearchy', function () { + describe('hierarchy', function () { it('KNBN-1 should handle a simple root definition abc122', function () { const str = `kanban root`; diff --git a/packages/mermaid/src/diagrams/mindmap/mindmap.spec.ts b/packages/mermaid/src/diagrams/mindmap/mindmap.spec.ts index 9a23f0368..d4f2d316e 100644 --- a/packages/mermaid/src/diagrams/mindmap/mindmap.spec.ts +++ b/packages/mermaid/src/diagrams/mindmap/mindmap.spec.ts @@ -10,7 +10,7 @@ describe('when parsing a mindmap ', function () { mindmap.yy.clear(); setLogLevel('trace'); }); - describe('hiearchy', function () { + describe('hierarchy', function () { it('MMP-1 should handle a simple root definition abc122', function () { const str = `mindmap root`; From 16167a64e5a775b6de8016c86387a2c26e63a627 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:30:22 -0400 Subject: [PATCH 48/99] spelling: html Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/syntax/gantt.md | 2 +- packages/mermaid/src/docs/syntax/gantt.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/syntax/gantt.md b/docs/syntax/gantt.md index ff6be97aa..41cf8d6c5 100644 --- a/docs/syntax/gantt.md +++ b/docs/syntax/gantt.md @@ -526,7 +526,7 @@ click taskId href URL - taskId is the id of the task - callback is the name of a javascript function defined on the page displaying the graph, the function will be called with the taskId as the parameter if no other arguments are specified. -Beginner's tipโ€”a full example using interactive links in an html context: +Beginner's tipโ€”a full example using interactive links in an HTML context: ```html diff --git a/packages/mermaid/src/docs/syntax/gantt.md b/packages/mermaid/src/docs/syntax/gantt.md index eab35d09f..0d7e0aa08 100644 --- a/packages/mermaid/src/docs/syntax/gantt.md +++ b/packages/mermaid/src/docs/syntax/gantt.md @@ -416,7 +416,7 @@ click taskId href URL - taskId is the id of the task - callback is the name of a javascript function defined on the page displaying the graph, the function will be called with the taskId as the parameter if no other arguments are specified. -Beginner's tipโ€”a full example using interactive links in an html context: +Beginner's tipโ€”a full example using interactive links in an HTML context: ```html From c81f63b462a17a8f036a7295a5576d979c6ecf64 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 21:53:01 -0400 Subject: [PATCH 49/99] spelling: id Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/gitGraph.spec.js | 14 +++++++------- demos/classchart.html | 10 +++++----- docs/syntax/requirementDiagram.md | 2 +- packages/mermaid-layout-elk/src/render.ts | 6 +++--- packages/mermaid/src/dagre-wrapper/GraphObjects.md | 2 +- packages/mermaid/src/diagrams/class/classDb.ts | 8 ++++---- packages/mermaid/src/diagrams/git/gitGraph.spec.ts | 6 +++--- packages/mermaid/src/diagrams/git/gitGraphAst.ts | 2 +- .../src/diagrams/mindmap/mindmapRenderer.ts | 2 +- .../mermaid/src/docs/syntax/requirementDiagram.md | 2 +- .../rendering-elements/shapes/requirementBox.ts | 2 +- 11 files changed, 28 insertions(+), 28 deletions(-) diff --git a/cypress/integration/rendering/gitGraph.spec.js b/cypress/integration/rendering/gitGraph.spec.js index 249febd08..42dc57439 100644 --- a/cypress/integration/rendering/gitGraph.spec.js +++ b/cypress/integration/rendering/gitGraph.spec.js @@ -11,7 +11,7 @@ describe('Git Graph diagram', () => { {} ); }); - it('2: should render a simple gitgraph with commit on main branch with Id', () => { + it('2: should render a simple gitgraph with commit on main branch with id', () => { imgSnapshotTest( `gitGraph commit id: "One" @@ -253,7 +253,7 @@ describe('Git Graph diagram', () => { ` gitGraph checkout main - %% Make sure to manually set the ID of all commits, for consistent visual tests + %% Make sure to manually set the id of all commits, for consistent visual tests commit id: "1-abcdefg" checkout main branch branch1 @@ -343,7 +343,7 @@ gitGraph {} ); }); - it('16: should render a simple gitgraph with commit on main branch with Id | Vertical Branch', () => { + it('16: should render a simple gitgraph with commit on main branch with id | Vertical Branch', () => { imgSnapshotTest( `gitGraph TB: commit id: "One" @@ -585,7 +585,7 @@ gitGraph ` gitGraph TB: checkout main - %% Make sure to manually set the ID of all commits, for consistent visual tests + %% Make sure to manually set the id of all commits, for consistent visual tests commit id: "1-abcdefg" checkout main branch branch1 @@ -1024,7 +1024,7 @@ gitGraph TB: {} ); }); - it('51: should render a simple gitgraph with commit on main branch with Id | Vertical Branch - Bottom-to-top', () => { + it('51: should render a simple gitgraph with commit on main branch with id | Vertical Branch - Bottom-to-top', () => { imgSnapshotTest( `gitGraph BT: commit id: "One" @@ -1266,7 +1266,7 @@ gitGraph TB: ` gitGraph BT: checkout main - %% Make sure to manually set the ID of all commits, for consistent visual tests + %% Make sure to manually set the id of all commits, for consistent visual tests commit id: "1-abcdefg" checkout main branch branch1 @@ -1491,7 +1491,7 @@ gitGraph TB: ` gitGraph switch main - %% Make sure to manually set the ID of all commits, for consistent visual tests + %% Make sure to manually set the id of all commits, for consistent visual tests commit id: "1-abcdefg" switch main branch branch1 diff --git a/demos/classchart.html b/demos/classchart.html index 980ea5098..10d8e6b70 100644 --- a/demos/classchart.html +++ b/demos/classchart.html @@ -148,7 +148,7 @@
     classDiagram
       class Person {
-        +Id : Guid
+        +ID : Guid
         +FirstName : string
         +LastName : string
         -privateProperty : string
@@ -218,10 +218,10 @@
           +double side
         }
       }
-      
+
       Shape <|-- Circle
       Shape <|-- Square
-      
+
       namespace Vehicles {
         class Vehicle {
           +String brand
@@ -233,12 +233,12 @@
           +boolean hasGears
         }
       }
-      
+
       Vehicle <|-- Car
       Vehicle <|-- Bike
       Car --> Circle : "Logo Shape"
       Bike --> Square : "Logo Shape"
-                  
+
     
From e46c7ae99682883ea309c29b651665c32ca2b313 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:15:34 -0400 Subject: [PATCH 82/99] spelling: string Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/classDiagram.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/integration/rendering/classDiagram.spec.js b/cypress/integration/rendering/classDiagram.spec.js index a98a359ed..e7d201b5d 100644 --- a/cypress/integration/rendering/classDiagram.spec.js +++ b/cypress/integration/rendering/classDiagram.spec.js @@ -429,7 +429,7 @@ describe('Class diagram', () => { classDiagram class \`This\nTitle\nHas\nMany\nNewlines\` { +String Also - -Stirng Many + -String Many #int Members +And() -Many() @@ -443,7 +443,7 @@ describe('Class diagram', () => { classDiagram class \`This\nTitle\nHas\nMany\nNewlines\` { +String Also - -Stirng Many + -String Many #int Members +And() -Many() @@ -459,7 +459,7 @@ describe('Class diagram', () => { namespace testingNamespace { class \`This\nTitle\nHas\nMany\nNewlines\` { +String Also - -Stirng Many + -String Many #int Members +And() -Many() From a7d76b2695090c780b71af0caa981a6aefffe11c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:38:41 -0400 Subject: [PATCH 83/99] spelling: style Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b0285976..8a4c0a414 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -256,7 +256,7 @@ mermaid.run({ - Problem showing graph with php on localhost [\#502](https://github.com/knsv/mermaid/issues/502) - logLevel's option doesnt work at 7.0.0 [\#501](https://github.com/knsv/mermaid/issues/501) - How do I get the log for a render or parse attempt? [\#500](https://github.com/knsv/mermaid/issues/500) -- Mermaid neutral style style to built in latest release [\#499](https://github.com/knsv/mermaid/issues/499) +- Mermaid neutral style to built in latest release [\#499](https://github.com/knsv/mermaid/issues/499) - Any plans for adding a typescript definition file? [\#495](https://github.com/knsv/mermaid/issues/495) - Gantt diagrams too narrow [\#493](https://github.com/knsv/mermaid/issues/493) - Flowchart edge labels placement [\#490](https://github.com/knsv/mermaid/issues/490) From 90c0908ed54ce93fa3cc5fd291a0355a42d9e4ed Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:17:04 -0400 Subject: [PATCH 84/99] spelling: subgraphs Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/stateDiagram-v2.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/rendering/stateDiagram-v2.spec.js b/cypress/integration/rendering/stateDiagram-v2.spec.js index 12e6311ae..83190dbc7 100644 --- a/cypress/integration/rendering/stateDiagram-v2.spec.js +++ b/cypress/integration/rendering/stateDiagram-v2.spec.js @@ -565,7 +565,7 @@ style AState fill:#636,border:1px solid red,color:white; { logLevel: 0, fontFamily: 'courier' } ); }); - it(' should allow styles to take effect in stubgraphs', () => { + it(' should allow styles to take effect in subgraphs', () => { imgSnapshotTest( ` stateDiagram From 02b997f4e43d0c71f2a8099f441736f1eb1985c5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:30:34 -0400 Subject: [PATCH 85/99] spelling: svg Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/mermaid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/mermaid.ts b/packages/mermaid/src/mermaid.ts index e9fc9196a..3ab31ee25 100644 --- a/packages/mermaid/src/mermaid.ts +++ b/packages/mermaid/src/mermaid.ts @@ -367,7 +367,7 @@ const parse: typeof mermaidAPI.parse = async (text, parseOptions) => { }; /** - * Function that renders an svg with a graph from a chart definition. Usage example below. + * Function that renders an SVG with a graph from a chart definition. Usage example below. * * ```javascript * element = document.querySelector('#graphDiv'); From de41669320ee609183d921a86cb378e9614b91ec Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:17:35 -0400 Subject: [PATCH 86/99] spelling: syntax Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/flowchart-v2.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/rendering/flowchart-v2.spec.js b/cypress/integration/rendering/flowchart-v2.spec.js index 57e90a5e1..b762e28f0 100644 --- a/cypress/integration/rendering/flowchart-v2.spec.js +++ b/cypress/integration/rendering/flowchart-v2.spec.js @@ -1076,7 +1076,7 @@ end ); }); }); - describe('New @ sytax for node metadata edge cases', () => { + describe('New @ syntax for node metadata edge cases', () => { it('should be possible to use @ syntax to add labels on multi nodes', () => { imgSnapshotTest( `flowchart TB From 2a6da199562c3b370227414b248b2ae7a2f4d320 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:35:07 -0400 Subject: [PATCH 87/99] spelling: task Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/platform/ashish2.html | 4 ++-- packages/mermaid/src/diagrams/gantt/ganttDb.spec.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/platform/ashish2.html b/cypress/platform/ashish2.html index a61315cf6..e2f138afe 100644 --- a/cypress/platform/ashish2.html +++ b/cypress/platform/ashish2.html @@ -70,8 +70,8 @@ 1960 : India fights poverty, looses war to China and gets nuclear weapons from USA and USSR 1970 : Green Revolution comes to india section Another section with no tasks - I am a big big big tasks - I am not so big tasks + I am a big big big task + I am not so big task
  timeline
diff --git a/packages/mermaid/src/diagrams/gantt/ganttDb.spec.ts b/packages/mermaid/src/diagrams/gantt/ganttDb.spec.ts
index 6f2c8c1af..d2d38e86d 100644
--- a/packages/mermaid/src/diagrams/gantt/ganttDb.spec.ts
+++ b/packages/mermaid/src/diagrams/gantt/ganttDb.spec.ts
@@ -219,7 +219,7 @@ describe('when using the ganttDb', function () {
     ganttDb.addTask('test3', 'id3,after id2,7d');
     ganttDb.addTask('test4', 'id4,2019-02-01,2019-02-20'); // Fixed endTime
     ganttDb.addTask('test5', 'id5,after id4,1d');
-    ganttDb.addSection('full ending taks on last day');
+    ganttDb.addSection('full ending task on last day');
     ganttDb.addTask('test6', 'id6,2019-02-13,2d');
     ganttDb.addTask('test7', 'id7,after id6,1d');
 

From ae564f30af71000fdde90d61dab619167e5bccb8 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Wed, 16 Apr 2025 20:38:51 -0400
Subject: [PATCH 88/99] spelling: text

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
 cypress/platform/yari2.html   | 8 ++++----
 packages/mermaid/src/utils.ts | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cypress/platform/yari2.html b/cypress/platform/yari2.html
index bd5ddffc2..53eefe5ba 100644
--- a/cypress/platform/yari2.html
+++ b/cypress/platform/yari2.html
@@ -41,7 +41,7 @@
 
             CAR:::someclass
             PERSON:::anotherclass,someclass
-        
+
             classDef someclass fill:#f96
             classDef anotherclass color:blue
         
@@ -90,7 +90,7 @@ erDiagram CAR ||--o{ NAMED-DRIVER : allows CAR { - test test PK "comment" + text text PK "comment" string make string model string[] parts @@ -108,7 +108,7 @@ string carRegistrationNumber PK, FK string driverLicence PK, FK } - MANUFACTURER only one to zero or more CAR : makes + MANUFACTURER only one to zero or more CAR : makes
@@ -129,7 +129,7 @@ string email } p ||--o| a : has - +
diff --git a/packages/mermaid/src/utils.ts b/packages/mermaid/src/utils.ts index 5a5c57039..6ed935cf6 100644 --- a/packages/mermaid/src/utils.ts +++ b/packages/mermaid/src/utils.ts @@ -645,7 +645,7 @@ const breakString: ( * This calculates the text's height, taking into account the wrap breaks and both the statically * configured height, width, and the length of the text (in pixels). * - * If the wrapped text text has greater height, we extend the height, so it's value won't overflow. + * If the wrapped text has greater height, we extend the height, so it's value won't overflow. * * @param text - The text to measure * @param config - The config for fontSize, fontFamily, and fontWeight all impacting the From d8efe9a55d8245785ce0f3962127fdd5cd677c92 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 21:06:56 -0400 Subject: [PATCH 89/99] spelling: than Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/dagre-wrapper/edges.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/dagre-wrapper/edges.spec.js b/packages/mermaid/src/dagre-wrapper/edges.spec.js index 9b2772ecd..dfe4c7901 100644 --- a/packages/mermaid/src/dagre-wrapper/edges.spec.js +++ b/packages/mermaid/src/dagre-wrapper/edges.spec.js @@ -30,7 +30,7 @@ describe('Graphlib decorations', () => { expect(int.x).toBeCloseTo(192.4609375); expect(int.y).toBeCloseTo(145.15711441743503); }); - it('case 3 - intersection on top of box outside point greater then inside point', function () { + it('case 3 - intersection on top of box outside point greater than inside point', function () { const o = { x: 157, y: 39 }; const i = { x: 104, y: 105 }; const node2 = { @@ -44,7 +44,7 @@ describe('Graphlib decorations', () => { expect(int.y).toBeCloseTo(76); // expect(int.y).toBeCloseTo(67.833) }); - it('case 4 - intersection on top of box inside point greater then inside point', function () { + it('case 4 - intersection on top of box inside point greater than inside point', function () { const o = { x: 144, y: 38 }; const i = { x: 198, y: 105 }; const node2 = { From 2bdecc2842c064b4ebdd0d7e89cb531c58c63ae6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:38:59 -0400 Subject: [PATCH 90/99] spelling: the Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/syntax/kanban.md | 2 +- .../src/diagrams/flowchart/parser/flow-node-data.spec.js | 2 +- packages/mermaid/src/diagrams/kanban/kanban.spec.ts | 2 +- packages/mermaid/src/docs/syntax/kanban.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/syntax/kanban.md b/docs/syntax/kanban.md index b12d05ebd..718be1bea 100644 --- a/docs/syntax/kanban.md +++ b/docs/syntax/kanban.md @@ -86,7 +86,7 @@ todo[Todo] ## Configuration Options -You can customize the Kanban diagram using a configuration block at the beginning of your markdown file. This is useful for setting global settings like a base URL for tickets. Currently there is one configuration option for kanban diagrams `ticketBaseUrl`. This can be set as in the the following example: +You can customize the Kanban diagram using a configuration block at the beginning of your markdown file. This is useful for setting global settings like a base URL for tickets. Currently there is one configuration option for kanban diagrams `ticketBaseUrl`. This can be set as in the following example: ```yaml --- diff --git a/packages/mermaid/src/diagrams/flowchart/parser/flow-node-data.spec.js b/packages/mermaid/src/diagrams/flowchart/parser/flow-node-data.spec.js index f6b1c2cad..0aeccd776 100644 --- a/packages/mermaid/src/diagrams/flowchart/parser/flow-node-data.spec.js +++ b/packages/mermaid/src/diagrams/flowchart/parser/flow-node-data.spec.js @@ -124,7 +124,7 @@ describe('when parsing directions', function () { expect(data4Layout.nodes[0].label).toEqual('D'); }); - it('should be forgiving with many spaces before teh end', function () { + it('should be forgiving with many spaces before the end', function () { const res = flow.parser.parse(`flowchart TB D@{ shape: rounded }`); diff --git a/packages/mermaid/src/diagrams/kanban/kanban.spec.ts b/packages/mermaid/src/diagrams/kanban/kanban.spec.ts index 4e37deb7e..3f4f5ab27 100644 --- a/packages/mermaid/src/diagrams/kanban/kanban.spec.ts +++ b/packages/mermaid/src/diagrams/kanban/kanban.spec.ts @@ -56,7 +56,7 @@ describe('when parsing a kanban ', function () { expect(sections[0].label).toEqual('root'); }); - it('KNBN-4 should not distinguish between deeper hierarchical levels in thr kanban definition', function () { + it('KNBN-4 should not distinguish between deeper hierarchical levels in the kanban definition', function () { const str = `kanban root child1 diff --git a/packages/mermaid/src/docs/syntax/kanban.md b/packages/mermaid/src/docs/syntax/kanban.md index c049df308..3eae43782 100644 --- a/packages/mermaid/src/docs/syntax/kanban.md +++ b/packages/mermaid/src/docs/syntax/kanban.md @@ -64,7 +64,7 @@ todo[Todo] ## Configuration Options -You can customize the Kanban diagram using a configuration block at the beginning of your markdown file. This is useful for setting global settings like a base URL for tickets. Currently there is one configuration option for kanban diagrams `ticketBaseUrl`. This can be set as in the the following example: +You can customize the Kanban diagram using a configuration block at the beginning of your markdown file. This is useful for setting global settings like a base URL for tickets. Currently there is one configuration option for kanban diagrams `ticketBaseUrl`. This can be set as in the following example: ```yaml --- From 5267f7c6ea9f6fe8e24b372bd01d57e75250df89 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 15:36:37 -0400 Subject: [PATCH 91/99] spelling: themeable Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/flowchart-elk.spec.js | 2 +- cypress/integration/rendering/flowchart-v2.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/rendering/flowchart-elk.spec.js b/cypress/integration/rendering/flowchart-elk.spec.js index f113b1dae..27af2c40c 100644 --- a/cypress/integration/rendering/flowchart-elk.spec.js +++ b/cypress/integration/rendering/flowchart-elk.spec.js @@ -443,7 +443,7 @@ flowchart-elk TD { htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' } ); }); - it('63-elk: title on subgraphs should be themable', () => { + it('63-elk: title on subgraphs should be themeable', () => { imgSnapshotTest( ` %%{init:{"theme":"base", "themeVariables": {"primaryColor":"#411d4e", "titleColor":"white", "darkMode":true}}}%% diff --git a/cypress/integration/rendering/flowchart-v2.spec.js b/cypress/integration/rendering/flowchart-v2.spec.js index b762e28f0..2e30d7a0c 100644 --- a/cypress/integration/rendering/flowchart-v2.spec.js +++ b/cypress/integration/rendering/flowchart-v2.spec.js @@ -433,7 +433,7 @@ flowchart TD { htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' } ); }); - it('63: title on subgraphs should be themable', () => { + it('63: title on subgraphs should be themeable', () => { imgSnapshotTest( ` %%{init:{"theme":"base", "themeVariables": {"primaryColor":"#411d4e", "titleColor":"white", "darkMode":true}}}%% From a463d11e575b4a04c305bfc66a349e2dad6bb258 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 09:55:33 -0400 Subject: [PATCH 92/99] spelling: threshold Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .github/codecov.yaml | 2 +- cypress/helpers/util.ts | 2 +- cypress/support/commands.js | 4 ++-- docs/syntax/gitgraph.md | 2 +- packages/mermaid/src/docs/syntax/gitgraph.md | 2 +- scripts/compare-timings.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/codecov.yaml b/.github/codecov.yaml index f9af5bc30..945043085 100644 --- a/.github/codecov.yaml +++ b/.github/codecov.yaml @@ -14,5 +14,5 @@ coverage: off # Turing off for now as code coverage isn't stable and causes unnecessary build failures. # default: - # threshould: 2% + # threshold: 2% patch: off diff --git a/cypress/helpers/util.ts b/cypress/helpers/util.ts index 335a3bdd5..81b7036af 100644 --- a/cypress/helpers/util.ts +++ b/cypress/helpers/util.ts @@ -126,7 +126,7 @@ export const verifyScreenshot = (name: string): void => { cy.eyesClose(); } else if (useArgos) { cy.argosScreenshot(name, { - threshould: 0.01, + threshold: 0.01, }); } else { cy.matchImageSnapshot(name); diff --git a/cypress/support/commands.js b/cypress/support/commands.js index ea042a35f..6fc1fe17d 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -30,8 +30,8 @@ import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command'; // SSIM actually does not catch minute changes in the image, so it is not as accurate as pixelmatch. // addMatchImageSnapshotCommand({ // comparisonMethod: 'ssim', -// failureThreshould: 0.01, -// failureThreshouldType: 'percent', +// failureThreshold: 0.01, +// failureThresholdType: 'percent', // customDiffConfig: { // ssim: 'fast', // }, diff --git a/docs/syntax/gitgraph.md b/docs/syntax/gitgraph.md index 19daed03a..ffd8df3c3 100644 --- a/docs/syntax/gitgraph.md +++ b/docs/syntax/gitgraph.md @@ -1699,7 +1699,7 @@ config: > #### IMPORTANT: > -> Mermaid supports the theme variables to override the default values for **up to 8 branches**, i.e., you can set the color/styling of up to 8 branches using theme variables. After this threshould of 8 branches, the theme variables are reused in the cyclic manner, i.e. the 9th branch will use the color/styling of the 1st branch, or the branch at index position '8' will use the color/styling of the branch at index position '0'. +> Mermaid supports the theme variables to override the default values for **up to 8 branches**, i.e., you can set the color/styling of up to 8 branches using theme variables. After this threshold of 8 branches, the theme variables are reused in the cyclic manner, i.e. the 9th branch will use the color/styling of the 1st branch, or the branch at index position '8' will use the color/styling of the branch at index position '0'. > _More on this in the next section. See examples on **Customizing branch label colors** below_ ### Customizing branch colors diff --git a/packages/mermaid/src/docs/syntax/gitgraph.md b/packages/mermaid/src/docs/syntax/gitgraph.md index 2d3e0daf5..66bb2de41 100644 --- a/packages/mermaid/src/docs/syntax/gitgraph.md +++ b/packages/mermaid/src/docs/syntax/gitgraph.md @@ -987,7 +987,7 @@ config: > #### IMPORTANT: > -> Mermaid supports the theme variables to override the default values for **up to 8 branches**, i.e., you can set the color/styling of up to 8 branches using theme variables. After this threshould of 8 branches, the theme variables are reused in the cyclic manner, i.e. the 9th branch will use the color/styling of the 1st branch, or the branch at index position '8' will use the color/styling of the branch at index position '0'. +> Mermaid supports the theme variables to override the default values for **up to 8 branches**, i.e., you can set the color/styling of up to 8 branches using theme variables. After this threshold of 8 branches, the theme variables are reused in the cyclic manner, i.e. the 9th branch will use the color/styling of the 1st branch, or the branch at index position '8' will use the color/styling of the branch at index position '0'. > _More on this in the next section. See examples on **Customizing branch label colors** below_ ### Customizing branch colors diff --git a/scripts/compare-timings.ts b/scripts/compare-timings.ts index 87cd696a1..1dbfc41d0 100644 --- a/scripts/compare-timings.ts +++ b/scripts/compare-timings.ts @@ -100,7 +100,7 @@ function compareTimings(): void { const significantChanges = timingChanges.filter((t) => t.change > 5000 && t.changePercent >= 0.2); if (significantChanges.length === 0) { - log('No significant timing changes detected (threshould: 5s and 20%)'); + log('No significant timing changes detected (threshold: 5s and 20%)'); return cleanupFiles({ keepNew: false, reason: 'No significant timing changes' }); } From 866b29c050e8db615e365b411d0ba76de97917c9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:18:45 -0400 Subject: [PATCH 93/99] spelling: to Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/rendering-util/createText.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/rendering-util/createText.ts b/packages/mermaid/src/rendering-util/createText.ts index 46f490642..7d31101e9 100644 --- a/packages/mermaid/src/rendering-util/createText.ts +++ b/packages/mermaid/src/rendering-util/createText.ts @@ -190,7 +190,7 @@ export function replaceIconSubstring(text: string) { ); } -// Note when using from flowcharts converting the API isNode means classes should be set accordingly. When using htmlLabels => to set classes to'nodeLabel' when isNode=true otherwise 'edgeLabel' +// Note when using from flowcharts converting the API isNode means classes should be set accordingly. When using htmlLabels => to set classes to 'nodeLabel' when isNode=true otherwise 'edgeLabel' // When not using htmlLabels => to set classes to 'title-row' when isTitle=true otherwise 'title-row' export const createText = async ( el, From ff217957fc90339f282cd503c5e19b1802457ac4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:18:53 -0400 Subject: [PATCH 94/99] spelling: tooltip Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/diagrams/flowchart/parser/flow-interactions.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/diagrams/flowchart/parser/flow-interactions.spec.js b/packages/mermaid/src/diagrams/flowchart/parser/flow-interactions.spec.js index 1b75803af..d45c7d4dc 100644 --- a/packages/mermaid/src/diagrams/flowchart/parser/flow-interactions.spec.js +++ b/packages/mermaid/src/diagrams/flowchart/parser/flow-interactions.spec.js @@ -36,7 +36,7 @@ describe('[Interactions] when parsing', () => { expect(flowDb.setClickEvent).toHaveBeenCalledWith('A', 'callback'); }); - it('should be possible to use click to a callback with toolip', function () { + it('should be possible to use click to a callback with tooltip', function () { spyOn(flowDb, 'setClickEvent'); spyOn(flowDb, 'setTooltip'); const res = flow.parser.parse('graph TD\nA-->B\nclick A callback "tooltip"'); @@ -48,7 +48,7 @@ describe('[Interactions] when parsing', () => { expect(flowDb.setTooltip).toHaveBeenCalledWith('A', 'tooltip'); }); - it('should be possible to use click to a click and call callback with toolip', function () { + it('should be possible to use click to a click and call callback with tooltip', function () { spyOn(flowDb, 'setClickEvent'); spyOn(flowDb, 'setTooltip'); const res = flow.parser.parse('graph TD\nA-->B\nclick A call callback() "tooltip"'); From 4d2e424c30a86b082f1548cbca8550addf972fc0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 16 Apr 2025 21:10:37 -0400 Subject: [PATCH 95/99] spelling: typescript Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/scripts/create-types-from-json-schema.mts | 6 +++--- packages/mermaid/src/mermaidAPI.spec.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/mermaid/scripts/create-types-from-json-schema.mts b/packages/mermaid/scripts/create-types-from-json-schema.mts index df8cc71be..4ffc73f4f 100644 --- a/packages/mermaid/scripts/create-types-from-json-schema.mts +++ b/packages/mermaid/scripts/create-types-from-json-schema.mts @@ -85,7 +85,7 @@ function validateSchema(jsonSchema: unknown): asserts jsonSchema is JSONSchemaTy * * @param mermaidConfigSchema - The input JSON Schema. */ -async function generateTypescript(mermaidConfigSchema: JSONSchemaType) { +async function generateTypeScript(mermaidConfigSchema: JSONSchemaType) { /** * Replace all usages of `allOf` with `extends`. * @@ -108,7 +108,7 @@ async function generateTypescript(mermaidConfigSchema: JSONSchemaType { diff --git a/packages/mermaid/src/mermaidAPI.spec.ts b/packages/mermaid/src/mermaidAPI.spec.ts index 6b112b90e..3e28dbfd4 100644 --- a/packages/mermaid/src/mermaidAPI.spec.ts +++ b/packages/mermaid/src/mermaidAPI.spec.ts @@ -610,7 +610,7 @@ describe('mermaidAPI', () => { let error: any = { message: '' }; try { - // @ts-ignore This is a read-only property. Typescript will not allow assignment, but regular javascript might. + // @ts-ignore This is a read-only property. TypeScript will not allow assignment, but regular javascript might. mermaidAPI.defaultConfig = config; } catch (e) { error = e; From 6dad2ab327400df2f3f9d24455d51c44309404a3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:28:46 -0400 Subject: [PATCH 96/99] spelling: very Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/platform/ashish2.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/platform/ashish2.html b/cypress/platform/ashish2.html index e2f138afe..dac39edb6 100644 --- a/cypress/platform/ashish2.html +++ b/cypress/platform/ashish2.html @@ -70,7 +70,7 @@ 1960 : India fights poverty, looses war to China and gets nuclear weapons from USA and USSR 1970 : Green Revolution comes to india section Another section with no tasks - I am a big big big task + I am a very, very big task I am not so big task

From e0f3f2bd5a0b3c88ceeb9a253521a0380bdf483c Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Thu, 17 Apr 2025 08:19:42 -0400
Subject: [PATCH 97/99] spelling: withdrawal

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
 cypress/platform/class.html     | 4 ++--
 cypress/platform/git-graph.html | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cypress/platform/class.html b/cypress/platform/class.html
index edf74e1b6..b649d1184 100644
--- a/cypress/platform/class.html
+++ b/cypress/platform/class.html
@@ -37,7 +37,7 @@
         +String owner
         +BigDecimal balance
         +deposit(amount) bool
-        +withdrawl(amount) int
+        +withdrawal(amount) int
        }
        cssClass "BankAccount" customCss
 
@@ -56,7 +56,7 @@ classE o-- classF : aggregation
           +String owner
           +BigDecimal balance
           +deposit(amount) bool
-          +withdrawl(amount) int
+          +withdrawal(amount) int
         }
           Class01~T~ <|-- AveryLongClass : Cool
           Class03~T~ *-- Class04~T~
diff --git a/cypress/platform/git-graph.html b/cypress/platform/git-graph.html
index 64b0c9b71..44776036a 100644
--- a/cypress/platform/git-graph.html
+++ b/cypress/platform/git-graph.html
@@ -38,7 +38,7 @@
         +String owner
         +BigDecimal balance
         +deposit(amount) bool
-        +withdrawl(amount) int
+        +withdrawal(amount) int
        }
        cssClass "BankAccount" customCss
     
From 334294c6af17750828147c57c20fbcc18273eb73 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:19:50 -0400 Subject: [PATCH 98/99] spelling: without Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- packages/mermaid/src/diagrams/block/parser/block.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/block/parser/block.spec.ts b/packages/mermaid/src/diagrams/block/parser/block.spec.ts index 2a710ef0e..4bf3290d8 100644 --- a/packages/mermaid/src/diagrams/block/parser/block.spec.ts +++ b/packages/mermaid/src/diagrams/block/parser/block.spec.ts @@ -125,7 +125,7 @@ describe('Block diagram', function () { const blocks = db.getBlocks(); expect(blocks.length).toBe(1); }); - it('a diagram withput column statements', () => { + it('a diagram without column statements', () => { const str = `block-beta block1["Block 1"] `; From 8ce1f700667960b8382e5ccfb85e3167008dee43 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Apr 2025 08:20:12 -0400 Subject: [PATCH 99/99] spelling: youtube Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cypress/integration/rendering/timeline.spec.ts | 16 ++++++++-------- cypress/platform/ashish2.html | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cypress/integration/rendering/timeline.spec.ts b/cypress/integration/rendering/timeline.spec.ts index 388ac1edf..dc6fab364 100644 --- a/cypress/integration/rendering/timeline.spec.ts +++ b/cypress/integration/rendering/timeline.spec.ts @@ -7,7 +7,7 @@ describe('Timeline diagram', () => { title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google - 2005 : Youtube + 2005 : YouTube 2006 : Twitter `, {} @@ -51,7 +51,7 @@ describe('Timeline diagram', () => { title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google - 2005 : Youtube + 2005 : YouTube 2006 : Twitter `, {} @@ -68,7 +68,7 @@ describe('Timeline diagram', () => { title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google - 2005 : Youtube + 2005 : YouTube 2006 : Twitter 2007 : Tumblr 2008 : Instagram @@ -84,7 +84,7 @@ describe('Timeline diagram', () => { title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google - 2005 : Youtube + 2005 : YouTube 2006 : Twitter 2007 : Tumblr 2008 : Instagram @@ -101,7 +101,7 @@ describe('Timeline diagram', () => { title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google - 2005 : Youtube + 2005 : YouTube 2006 : Twitter 2007 : Tumblr 2008 : Instagram @@ -118,7 +118,7 @@ describe('Timeline diagram', () => { title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google - 2005 : Youtube + 2005 : YouTube 2006 : Twitter 2007 : Tumblr 2008 : Instagram @@ -135,7 +135,7 @@ describe('Timeline diagram', () => { title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google - 2005 : Youtube + 2005 : YouTube 2006 : Twitter 2007 : Tumblr 2008 : Instagram @@ -152,7 +152,7 @@ describe('Timeline diagram', () => { title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google - 2005 : Youtube + 2005 : YouTube 2006 : Twitter 2007 : Tumblr 2008 : Instagram diff --git a/cypress/platform/ashish2.html b/cypress/platform/ashish2.html index dac39edb6..30584295d 100644 --- a/cypress/platform/ashish2.html +++ b/cypress/platform/ashish2.html @@ -106,7 +106,7 @@ title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google : Pixar - 2005 : Youtube + 2005 : YouTube 2006 : Twitter 2007 : Tumblr 2008s : Instagram @@ -122,7 +122,7 @@ title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google : Pixar - 2005 : Youtube + 2005 : YouTube 2006 : Twitter 2007 : Tumblr 2008s : Instagram @@ -139,7 +139,7 @@ title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google - 2005 : Youtube + 2005 : YouTube 2006 : Twitter 2007 : Tumblr 2008 : Instagram @@ -152,7 +152,7 @@ title History of Social Media Platform 2002 : LinkedIn 2004 : Facebook : Google - 2005 : Youtube + 2005 : YouTube 2006 : Twitter 2007 : Tumblr 2008s : Instagram