MCPcopy Create free account

hub / github.com/mermaid-js/mermaid / functions

Functions2,815 in github.com/mermaid-js/mermaid

↓ 19 callersFunctionparserFnConstructor
(str)
packages/mermaid/src/diagrams/gantt/parser/gantt.spec.js:5
↓ 18 callersFunctionaddSVGa11yTitleDescription
( svg: D3Element, a11yTitle: string | undefined, a11yDesc: string | undefined, baseId: string )
packages/mermaid/src/accessibility.ts:45
↓ 18 callersFunctioncleanupComments
(text: string)
packages/mermaid/src/diagram-api/comments.ts:6
↓ 18 callersMethodgetDomains
()
packages/mermaid/src/diagrams/cynefin/types.ts:29
↓ 18 callersFunctiongetStyles
(options)
packages/mermaid/src/diagrams/requirement/styles.js:30
↓ 18 callersMethodgetTitle
(showTitle: boolean)
packages/mermaid/src/diagrams/quadrant-chart/quadrantBuilder.ts:588
↓ 18 callersFunctionhandleUndefinedAttr
( attrValue: Parameters<d3.Selection<BaseType, unknown, HTMLElement, any>['attr']>[1] | undefined )
packages/mermaid/src/utils.ts:959
↓ 18 callersFunctioninsertPolygonShape
(parent, w, h, points)
packages/mermaid/src/dagre-wrapper/shapes/util.js:101
↓ 18 callersFunctionloadDdltFixture
( name: string, options: LoadDdltFixtureOptions = {} )
packages/mermaid/src/rendering-util/layout-algorithms/ddlt/loadDdltFixture.ts:38
↓ 18 callersMethodrender
( layoutData: LayoutData, svg: SVG, helpers: InternalHelpers, options?: RenderOptions, pos
packages/mermaid/src/rendering-util/render.ts:15
↓ 18 callersMethodsetDiagramId
* Sets the diagram's SVG element ID, used to prefix domIds for uniqueness * across multiple diagrams on the same page.
packages/mermaid/src/diagrams/class/classDb.ts:153
↓ 17 callersFunctiondistance
(a: Point, b: Point)
packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts:145
↓ 17 callersFunctionformat
(level: Uppercase<LogLevel>)
packages/mermaid/src/logger.ts:86
↓ 17 callersMethodgetClasses
* Retrieval function for fetching the found class definitions after parsing has completed. *
packages/mermaid/src/diagrams/flowchart/flowDb.ts:601
↓ 17 callersFunctiongetConfig
()
packages/mermaid/src/diagrams/git/gitGraphAst.ts:41
↓ 17 callersFunctionparse
(input: string)
packages/parser/tests/treemap.test.ts:11
↓ 16 callersFunctionaddDiagrams
()
packages/mermaid/src/diagram-api/diagram-orchestration.ts:45
↓ 16 callersFunctionadjustClustersAndEdges
(graph, depth)
packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js:222
↓ 16 callersMethodarcTo
( rx: number, ry: number, rotation: number, largeArc: boolean, sweep: boolean, x: numb
packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:40
↓ 16 callersFunctioncalculatePoint
(points: Point[], distanceToTraverse: number)
packages/mermaid/src/utils.ts:333
↓ 16 callersFunctionfile
(name: string, icon?: string)
packages/mermaid/src/diagrams/treeView/icons.spec.ts:91
↓ 16 callersFunctionformatBytes
(bytes: number)
scripts/swimlanes-size.ts:73
↓ 16 callersFunctiongenerateCirclePoints
( centerX: number, centerY: number, radius: number, numPoints = 100, startAngle = 0, endAngle = 18
packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts:8
↓ 16 callersMethodgetEntity
(name: string)
packages/mermaid/src/diagrams/er/erDb.ts:76
↓ 16 callersMethodgetRelations
()
packages/mermaid/src/diagrams/class/classDb.ts:196
↓ 16 callersFunctionmkEdge
(id: string, start: string, end: string)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/__tests__/raykov.router.spec.ts:87
↓ 16 callersFunctionselectSvgElement
(id: string)
packages/mermaid/src/rendering-util/selectSvgElement.ts:11
↓ 15 callersMethodgetTransitions
()
packages/mermaid/src/diagrams/cynefin/types.ts:30
↓ 15 callersFunctionisArchitectureDirectionX
( x: ArchitectureDirection )
packages/mermaid/src/diagrams/architecture/architectureTypes.ts:65
↓ 15 callersFunctionresolve
(id: NodeId)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.options.ts:26
↓ 15 callersFunctionsetLogLevel
(level: keyof typeof LEVELS | number = 'fatal')
packages/mermaid/src/logger.ts:32
↓ 14 callersFunctioncreateLabel
(element, _vertexText, style, isTitle = false, isNode = false)
packages/mermaid/src/dagre-wrapper/createLabel.js:31
↓ 14 callersFunctiongetConfig
()
packages/mermaid/src/diagrams/eventmodeling/db.ts:73
↓ 14 callersFunctiongetParticipantLine
(name, type, alias)
cypress/integration/rendering/sequence/sequencediagram-v2.spec.js:21
↓ 14 callersMethodmoveTo
(x: number, y: number)
packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:20
↓ 14 callersFunctionoverlapLength
(a1: number, a2: number, b1: number, b2: number)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:135
↓ 14 callersFunctionpopulateCommonDb
(ast: DiagramAST, db: DiagramDB)
packages/mermaid/src/diagrams/common/populateCommonDb.ts:4
↓ 13 callersFunctioncalculateTextWidth
( text: Parameters<typeof calculateTextDimensions>[0], config: Parameters<typeof calculateTextDimensions>[
packages/mermaid/src/utils.ts:669
↓ 13 callersFunctioncomputeLabelTransform
(bbox: LabelBBox, useHtmlLabels: boolean)
packages/mermaid/src/rendering-util/labelTransform.ts:27
↓ 13 callersFunctiondecodeEntities
(text: string)
packages/mermaid/src/utils.ts:925
↓ 13 callersMethodgetClasses
()
packages/mermaid/src/diagrams/state/stateDb.ts:644
↓ 13 callersFunctiongetClassesFromNode
(node, otherClasses)
packages/mermaid/src/dagre-wrapper/nodes.js:17
↓ 13 callersMethodgetElements
()
packages/mermaid/src/diagrams/requirement/requirementDb.ts:188
↓ 13 callersMethodgetScaleValue
(value: string | number)
packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/index.ts:16
↓ 13 callersMethodinit
(diagObj)
packages/mermaid/src/diagrams/c4/c4Renderer.js:94
↓ 13 callersFunctionnormalizeGraph
(g: Graph)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase0.helpers.ts:5
↓ 13 callersFunctionorthogonalSegmentsStrictlyCross
( a1: Point, b1: Point, a2: Point, b2: Point, epsilon = EPS )
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:579
↓ 13 callersFunctionrectOfNodeBounds
(node: RectNodeInput)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:277
↓ 13 callersFunctionscoreLayout
( layout: LayoutData, thresholds?: Partial<Record<keyof LayoutScores, { min?: number; max?: number }>> )
packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts:503
↓ 12 callersFunctionadjustClustersAndEdges
(graph, depth)
packages/mermaid/src/dagre-wrapper/mermaid-graphlib.js:204
↓ 12 callersMethodbuild
()
packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:53
↓ 12 callersFunctioncountOrthogonalBends
(points: Point[], epsilon = EPS)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:170
↓ 12 callersMethodgetData
* Get structured data for layout algorithms * Following the pattern established by ER diagrams * @returns Structured data containing nodes, edge
packages/mermaid/src/diagrams/mindmap/mindmapDb.ts:345
↓ 12 callersMethodgetRelationships
()
packages/mermaid/src/diagrams/requirement/requirementDb.ts:212
↓ 12 callersMethodgetState
(id: string)
packages/mermaid/src/diagrams/state/stateDb.ts:475
↓ 12 callersFunctionisOnNodeBoundary
(point: Point, node: RectNode, tolerance = 1)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/__tests__/raykov.router.spec.ts:92
↓ 12 callersFunctionloadKey
(nodeId: string, side: SideT)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:511
↓ 12 callersFunctionmarkdownToLines
(markdown: string, config: MermaidConfig = {})
packages/mermaid/src/rendering-util/handle-markdown-text.ts:46
↓ 12 callersFunctionmkEdge
(id: string, start: string, end: string)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/__tests__/raykov.issues.spec.ts:120
↓ 12 callersFunctionmkNode
(id: string, x: number, y: number, opts?: Partial<TestNode>)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/__tests__/raykov.repro_crossing.spec.ts:64
↓ 12 callersFunctionnodeCenter
Get node center — node.x/y represent the center per rectForNode convention
packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts:65
↓ 12 callersMethodsplitClassNameAndType
(_id: string)
packages/mermaid/src/diagrams/class/classDb.ts:80
↓ 12 callersFunctionwithSeededRandom
(seed: number, fn: () => T)
packages/mermaid/src/diagrams/architecture/architectureSeed.ts:13
↓ 11 callersMethodaddVertex
* Function called by parser when a node definition has been found
packages/mermaid/src/diagrams/flowchart/flowDb.ts:127
↓ 11 callersFunctionassignLayers_LongestPath
(gAcyclic: Graph, opts?: LayeringOptions)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.longestPath.ts:12
↓ 11 callersFunctioncalcC4ShapeTextWH
* @param textType * @param c4Shape * @param c4ShapeTextWrap * @param textConf * @param textLimitWidth
packages/mermaid/src/diagrams/c4/c4Renderer.js:164
↓ 11 callersFunctiondetectIcon
(name: string, config?: IconDetectionConfig)
packages/mermaid/src/diagrams/treeView/icons.ts:43
↓ 11 callersFunctiongetThemeVariables
(userOverrides)
packages/mermaid/src/themes/theme-neo.js:399
↓ 11 callersFunctionmutateGlobalSpacing
(context: string)
packages/parser/tests/radar.test.ts:7
↓ 11 callersFunctionparseGenericTypes
(input: string)
packages/mermaid/src/diagrams/common/common.ts:210
↓ 11 callersFunctionresolveSeed
(configuredSeed: number | undefined, id: string)
packages/mermaid/src/diagrams/cynefin/cynefinBoundaries.ts:32
↓ 11 callersFunctionsamePoint
(a: Point, b: Point, epsilon = EPS)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:115
↓ 11 callersFunctionsimplifyPolyline
(pts: Point[])
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:675
↓ 10 callersFunctionMockD3
(name, parent)
packages/mermaid/src/diagrams/sequence/svgDraw.spec.js:15
↓ 10 callersFunctionadjustLoopHeightForWrap
(loopWidths, msg, preMargin, postMargin, addLoopFn)
packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:915
↓ 10 callersFunctionappendDivSvgG
( parentRoot: D3HtmlSelection<HTMLElement> | D3HtmlSelection<Element>, id: string, enclosingDivId: strin
packages/mermaid/src/mermaidAPI.ts:359
↓ 10 callersFunctioncalculateDeltaAndAngle
* Calculate the deltas and angle between two points * @param point1 - First point * @param point2 - Second point * @returns The angle, deltaX and d
packages/mermaid/src/utils/lineWithOffset.ts:33
↓ 10 callersMethodcalculateSpace
(availableSpace: Dimension)
packages/mermaid/src/diagrams/xychart/chartBuilder/interfaces.ts:24
↓ 10 callersFunctioncreateEdgeLabelNodes
(data: LayoutData)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/edgeLabelNodes.ts:38
↓ 10 callersFunctiondebugLog
(...args: unknown[])
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/__tests__/raykov.router.spec.ts:8
↓ 10 callersFunctionexecuteTidyTreeLayout
(data: LayoutData)
packages/mermaid-layout-tidy-tree/src/layout.ts:23
↓ 10 callersFunctionfindEdgeIntersections
(edges: EdgeGeom[])
packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts:136
↓ 10 callersFunctionfmt
(n: number)
packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts:188
↓ 10 callersMethodgetPacket
()
packages/mermaid/src/diagrams/packet/db.ts:32
↓ 10 callersFunctiongetSubGraphTitleMargins
({ flowchart, }: { flowchart: FlowchartDiagramConfig; })
packages/mermaid/src/utils/subGraphTitleMargins.ts:3
↓ 10 callersFunctionisAcyclic
(g: Graph)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase0.helpers.ts:117
↓ 10 callersFunctionmarkdownToHTML
(markdown: string, { markdownAutoWrap }: MermaidConfig = {})
packages/mermaid/src/rendering-util/handle-markdown-text.ts:120
↓ 10 callersFunctionparse
( diagramType: keyof typeof initializers, text: string )
packages/parser/src/parse.ts:133
↓ 10 callersFunctionpushOrthogonalCandidate
(candidates: PointLite[][], points: PointLite[])
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2166
↓ 10 callersFunctionrangeOverlap
Compute overlap length of two 1D ranges
packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts:223
↓ 10 callersFunctionrectForNode
(node: Node)
packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/helpers.ts:14
↓ 10 callersFunctionrunQueryProcessSwimlanes
()
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/query-process.ddlt.spec.ts:24
↓ 10 callersFunctiontopoSortIfAcyclic
(g: Graph)
packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase0.helpers.ts:149
↓ 9 callersMethodaddDescription
(id: string, descr: string)
packages/mermaid/src/diagrams/state/stateDb.ts:603
↓ 9 callersMethodaddNode
(node: WardleyNode)
packages/mermaid/src/diagrams/wardley/wardleyBuilder.ts:92
↓ 9 callersMethodaddState
* Function called by parser when a node definition has been found. * * @param descr - description for the state. Can be a string or a list or st
packages/mermaid/src/diagrams/state/stateDb.ts:388
↓ 9 callersFunctionaddText
( parentGroup: D3Selection<T>, inputText: string, yOffset: number, style = '' )
packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts:194
↓ 9 callersFunctionapplyLineJumpsToSvg
( edgePathsGroup: D3Selection<SVGGElement>, edges: EdgeGeom[], config: LineJumpConfig )
packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts:560
↓ 9 callersFunctionblock
(domain: string, items: { label: string }[] = [])
packages/mermaid/src/diagrams/cynefin/cynefin.spec.ts:15
↓ 9 callersFunctioncharTest
(char, result)
packages/mermaid/src/diagrams/flowchart/parser/flow.spec.js:82
← previousnext →101–200 of 2,815, ranked by callers