mirror of
https://github.com/apache/maka.git
synced 2026-10-28 08:54:38 +08:00
* feat(ui): render Mermaid diagrams with Pele Replace Mermaid.js with Pele while preserving source view, fullscreen, clipboard export, render budgets and safe SVG output. Use native zoom and CSS themes, retain bounded caches with one template per source, and embed fonts in PNG exports. Add real browser coverage and regression tests for cache eviction and untrusted diagrams, simplify the integration through ablation, and refresh the bundled dependency notices. Refs #6257 Generated-by: Codex Generated-by: Devin * fix(ui): lay out Mermaid diagrams once a resize settles Pele layout is synchronous, so laying every diagram out again on each ResizeObserver tick blocked the renderer while a window or pane was dragged. Apply width changes only after resizing settles; the mounted SVG keeps scaling with CSS meanwhile. Also skip relayout when the container is at least as wide as the diagram's natural layout or when the diagram does not adapt to width, matching Pele's own mount(). Generated-by: Codex Generated-by: Devin Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
17 lines
388 B
JSON
17 lines
388 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["ES2024", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler",
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"incremental": true,
|
|
"types": ["node"]
|
|
}
|
|
}
|