Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
87 matches across 8 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | packages/mermaid/src/diagrams/sequence/sequenceDb.ts | 228 | this.state.records.currentBox.actorKeys.push(id); |
| CRITICAL | packages/mermaid/src/diagrams/sequence/sequenceDb.ts | 263 | id: this.state.records.messages.length.toString(), |
| CRITICAL | packages/mermaid/src/diagrams/sequence/sequenceDb.ts | 298 | id: this.state.records.messages.length.toString(), |
| CRITICAL | packages/mermaid/src/diagrams/sequence/sequenceDb.ts | 442 | id: this.state.records.messages.length.toString(), |
| CRITICAL | packages/mermaid/src/diagrams/sequence/sequenceDb.ts | 566 | id: this.state.records.messages.length.toString(), |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | cypress/integration/rendering/railroad/railroad.spec.ts | 3 | function shouldHaveRailroadContent($svg: JQuery<SVGSVGElement>) { |
| LOW | packages/mermaid-layout-tidy-tree/src/layout.ts | 166 | function convertNodeToTidyTreeTransposed( |
| LOW | packages/mermaid-layout-tidy-tree/src/layout.ts | 298 | function positionLeftTreeBidirectional( |
| LOW | packages/mermaid-layout-tidy-tree/src/layout.ts | 332 | function positionRightTreeBidirectional( |
| LOW | packages/mermaid-layout-tidy-tree/src/layout.ts | 369 | function computeCircleEdgeIntersection(circle: Bounds, lineStart: Point, lineEnd: Point): Point { |
| LOW | packages/parser/tests/test-util.ts | 40 | export function expectNoErrorsOrAlternatives(result: ParseResult) { |
| LOW | packages/parser/tests/test-util.ts | 62 | export function createArchitectureTestServices() { |
| LOW | packages/parser/tests/test-util.ts | 106 | export function createGitGraphTestServices() { |
| LOW | packages/parser/tests/test-util.ts | 118 | export function createEventModelingTestServices() { |
| LOW | packages/parser/tests/test-util.ts | 128 | export function createTreeViewTestServices() { |
| LOW | packages/parser/src/language/architecture/module.ts | 65 | export function createArchitectureServices( |
| LOW | packages/parser/src/language/eventmodeling/module.ts | 44 | export function createEventModelingServices( |
| LOW | packages/parser/src/language/railroad-ebnf/module.ts | 41 | export function createRailroadEbnfServices( |
| LOW | packages/parser/src/language/railroad-abnf/module.ts | 41 | export function createRailroadAbnfServices( |
| LOW | packages/parser/src/language/railroad-peg/module.ts | 41 | export function createRailroadPegServices( |
| LOW | packages/mermaid-layout-elk/src/render.ts | 58 | export function buildSubgraphLayoutOptions( |
| LOW | packages/mermaid/src/mermaidAPI.ts | 71 | function processAndSetConfigs(text: string) { |
| LOW | packages/mermaid/src/utils.ts | 398 | function calcTerminalLabelPosition( |
| LOW | packages/mermaid/src/styles.spec.ts | 37 | function checkValidStylisCSSStyleSheet(stylisString: string) { |
| LOW | packages/mermaid/src/rendering-util/createText.ts | 224 | function updateTextContentAndStyles( |
| LOW | packages/mermaid/src/rendering-util/splitText.ts | 46 | function splitWordToFitWidthRecursion( |
| LOW | packages/mermaid/src/rendering-util/splitText.ts | 90 | function splitLineToFitWidthRecursion( |
| LOW | …mermaid/src/rendering-util/rendering-elements/edges.js | 924 | function applyMarkerOffsetsToPoints(points, edge) { |
| LOW | …d/src/rendering-util/rendering-elements/shapes/util.ts | 186 | export function generateFullSineWavePoints( |
| LOW | …ages/mermaid/src/diagrams/cynefin/cynefinBoundaries.ts | 94 | export function generateHorizontalBoundary( |
| LOW | packages/mermaid/src/diagrams/xychart/xychartDb.ts | 42 | function getChartDefaultThemeConfig(): XYChartThemeConfig { |
| LOW | packages/mermaid/src/diagrams/xychart/xychartDb.ts | 112 | function setYAxisRangeFromPlotData(data: number[]) { |
| LOW | packages/mermaid/src/diagrams/xychart/xychartDb.ts | 125 | function transformDataWithoutCategory(data: number[]): SimplePlotDataType { |
| LOW | packages/mermaid/src/diagrams/eventmodeling/db.ts | 280 | function calculateEntityVisualProps(frame: EmFrame): VisualProps { |
| LOW | …ages/mermaid/src/diagrams/sequence/sequenceRenderer.ts | 945 | function adjustCreatedDestroyedData( |
| LOW | …ages/mermaid/src/diagrams/sequence/sequenceRenderer.ts | 1487 | async function getMaxMessageWidthPerActor( |
| LOW | packages/mermaid/src/docs/.vitepress/ossHeroClass.ts | 16 | export function applyOssHomeHeroNameClipClass({ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | netlify.toml | 1 | # Settings in the [build] context are global and are applied to |
| LOW | tsconfig.json | 21 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in sour |
| LOW | tsconfig.json | 41 | "resolveJsonModule": true /* Enable importing .json files */, |
| LOW | tsconfig.json | 61 | // "sourceRoot": "", /* Specify the root path for debuggers to find the reference so |
| LOW | tsconfig.json | 81 | /* Type Checking */ |
| LOW | cypress/integration/rendering/appli.spec.js | 41 | |
| LOW | cypress/integration/rendering/appli.spec.js | 61 | // target: 'window', |
| LOW | …press/integration/rendering/class/classDiagram.spec.js | 341 | // it('17: should render a class diagram when useMaxWidth is true (default)', () => { |
| LOW | …press/integration/rendering/class/classDiagram.spec.js | 361 | // const style = svg.attr('style'); |
| LOW | …press/integration/rendering/class/classDiagram.spec.js | 381 | // { class: { useMaxWidth: false } } |
| LOW | cypress/platform/gitgraph2.html | 101 | <script type="module"> |
| LOW | cypress/platform/knsv2.html | 581 | // theme: 'default', |
| LOW | cypress/platform/saurabh.html | 101 | window.callback = function () { |
| LOW | cypress/platform/gitgraph.html | 141 | commitLabelColor: '#9400D3', |
| LOW | cypress/support/commands.js | 1 | // *********************************************** |
| LOW | cypress/support/commands.js | 21 | // Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) |
| LOW | cypress/support/e2e.js | 1 | // *********************************************************** |
| LOW | packages/mermaid-layout-elk/src/render.ts | 761 | // 'spacing.edgeEdge': 10, |
| LOW | packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts | 101 | const labelStyle = conf?.labelStyle ?? defaultSankeyConfig.labelStyle ?? 'legacy'; |
| LOW | packages/mermaid/src/diagrams/state/shapes.js | 181 | // stateDef.id, |
| LOW | packages/mermaid/src/diagrams/state/shapes.js | 501 | .attr('class', 'box') |
| LOW | …es/mermaid/src/diagrams/architecture/architectureDb.ts | 421 | // return db.getConfig()[field]; |
| LOW | packages/mermaid/src/diagrams/er/erRenderer.js | 581 | erMarkers.insertMarkers(svg, conf); |
| LOW | packages/mermaid/src/schemas/config.schema.yaml | 1 | # Used for VS Code's YAML plugin to automatically error on invalid types |
| LOW | packages/mermaid/src/dagre-wrapper/index.js | 181 | adjustClustersAndEdges(graph); |
| LOW | packages/mermaid/src/themes/theme-redux-dark-color.js | 221 | |
| LOW | .github/FUNDING.yml | 1 | # These are supported funding model platforms |
| LOW | .github/lychee.toml | 81 | # Exclude all private IPs from checking. |
| LOW | .github/workflows/codeql.yml | 41 | config-file: ./.github/codeql/codeql-config.yml |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | docs/syntax/sankey.md | 0 | ,193.026 pumped heat,"heating and cooling, ""commercial |
| HIGH | docs/syntax/sankey.md | 0 | ,193.026 pumped heat,"heating and cooling, ""commercial |
| HIGH | packages/mermaid/src/docs/syntax/sankey.md | 0 | ,193.026 pumped heat,"heating and cooling, ""commercial |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/mermaid-layout-tidy-tree/src/render.ts | 51 | // Step 1: Insert nodes into DOM to get their actual dimensions |
| LOW | packages/mermaid-layout-tidy-tree/src/render.ts | 90 | // Step 2: Run the bidirectional tidy-tree layout algorithm |
| LOW | packages/mermaid-layout-tidy-tree/src/render.ts | 106 | // Step 3: Position the nodes based on bidirectional layout results |
| LOW | packages/mermaid-layout-tidy-tree/src/render.ts | 121 | // Step 3: Position the nodes based on bidirectional layout results |
| LOW | …endering-util/layout-algorithms/cose-bilkent/render.ts | 51 | // Step 1: Insert nodes into DOM to get their actual dimensions |
| LOW | …endering-util/layout-algorithms/cose-bilkent/render.ts | 86 | // Step 2: Run the cose-bilkent layout algorithm |
| LOW | …endering-util/layout-algorithms/cose-bilkent/render.ts | 104 | // Step 3: Position the nodes based on layout results |
| LOW | …endering-util/layout-algorithms/cose-bilkent/render.ts | 137 | // Step 4: Insert and position edges |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/mermaid/src/diagrams/kanban/samples.md | 71 | descr: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolor |
| LOW | packages/mermaid/src/diagrams/kanban/samples.md | 71 | descr: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolor |
| LOW | packages/mermaid/src/diagrams/kanban/samples.md | 99 | descr: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolor |
| LOW | packages/mermaid/src/diagrams/kanban/samples.md | 99 | descr: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolor |
| LOW | demos/xychart.html | 212 | x-axis "this is x axis" [category1, "Lorem ipsum dolor sit amet, qui minim labore adipisicing minim sint cillum sint |
| LOW | demos/xychart.html | 212 | x-axis "this is x axis" [category1, "Lorem ipsum dolor sit amet, qui minim labore adipisicing minim sint cillum sint |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/workflows/lint.yml | 55 | # make sure to return an error exitcode so that GitHub actions shows a red-cross |
| LOW | .github/workflows/lint.yml | 68 | # make sure to return an error exitcode so that GitHub actions shows a red-cross |
| LOW | .github/workflows/lint.yml | 82 | # make sure to return an error exitcode so that GitHub actions shows a red-cross |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | packages/mermaid/src/schemas/config.schema.yaml | 4 | # This file defines the MermaidConfig JSON Schema as a YAML file. |