Increase size limit of diagrams

This commit is contained in:
Ashish Jain
2025-01-24 12:18:49 +01:00
parent 2f525434fd
commit 2ef6760cbc
2 changed files with 22 additions and 1 deletions

View File

@@ -91,6 +91,27 @@
## Functions ## Functions
### calcIntersect
**calcIntersect**(`nodeId`, `point`): `Point` | `Promise`<`Point`>
#### Parameters
| Name | Type |
| :------- | :------- |
| `nodeId` | `string` |
| `point` | `Point` |
#### Returns
`Point` | `Promise`<`Point`>
#### Defined in
[packages/mermaid/src/rendering-util/layout-algorithms/fixed/index.js:172](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/layout-algorithms/fixed/index.js#L172)
---
### calcIntersections ### calcIntersections
**calcIntersections**(`startNodeId`, `endNodeId`, `startNodeSize`, `endNodeSize`): `IntersectionPoint`\[] **calcIntersections**(`startNodeId`, `endNodeId`, `startNodeSize`, `endNodeSize`): `IntersectionPoint`\[]

View File

@@ -27,7 +27,7 @@ import type { D3Element, ParseOptions, ParseResult, RenderResult } from './types
import { decodeEntities } from './utils.js'; import { decodeEntities } from './utils.js';
import { toBase64 } from './utils/base64.js'; import { toBase64 } from './utils/base64.js';
const MAX_TEXTLENGTH = 50_000; const MAX_TEXTLENGTH = 100_000;
const MAX_TEXTLENGTH_EXCEEDED_MSG = const MAX_TEXTLENGTH_EXCEEDED_MSG =
'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa'; 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';