mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-02 23:26:44 +02:00
chore: Remove lazyLoadedDiagrams from config
This commit is contained in:
@@ -243,6 +243,7 @@ const checkConfig = (config: MermaidConfig) => {
|
|||||||
if (!config) {
|
if (!config) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// @ts-expect-error Properties were removed in v10. Warning should exist.
|
||||||
if (config.lazyLoadedDiagrams || config.loadExternalDiagramsAtStartup) {
|
if (config.lazyLoadedDiagrams || config.loadExternalDiagramsAtStartup) {
|
||||||
issueWarning('LAZY_LOAD_DEPRECATED');
|
issueWarning('LAZY_LOAD_DEPRECATED');
|
||||||
}
|
}
|
||||||
|
@@ -3,10 +3,6 @@
|
|||||||
import DOMPurify from 'dompurify';
|
import DOMPurify from 'dompurify';
|
||||||
|
|
||||||
export interface MermaidConfig {
|
export interface MermaidConfig {
|
||||||
/** @deprecated use mermaid.registerLazyDiagrams instead */
|
|
||||||
lazyLoadedDiagrams?: string[];
|
|
||||||
/** @deprecated use mermaid.registerLazyDiagrams instead */
|
|
||||||
loadExternalDiagramsAtStartup?: boolean;
|
|
||||||
theme?: string;
|
theme?: string;
|
||||||
themeVariables?: any;
|
themeVariables?: any;
|
||||||
themeCSS?: string;
|
themeCSS?: string;
|
||||||
|
Reference in New Issue
Block a user