mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-28 19:59:43 +02:00
feat(arch): exposed createIcon function
This commit is contained in:
@@ -16,6 +16,7 @@ import type { DetailedError } from './utils.js';
|
|||||||
import type { ExternalDiagramDefinition } from './diagram-api/types.js';
|
import type { ExternalDiagramDefinition } from './diagram-api/types.js';
|
||||||
import type { UnknownDiagramError } from './errors.js';
|
import type { UnknownDiagramError } from './errors.js';
|
||||||
import type { IconLibrary, IconResolver } from './rendering-util/svgRegister.js';
|
import type { IconLibrary, IconResolver } from './rendering-util/svgRegister.js';
|
||||||
|
import { createIcon } from './rendering-util/svgRegister.js';
|
||||||
import { addDiagrams } from './diagram-api/diagram-orchestration.js';
|
import { addDiagrams } from './diagram-api/diagram-orchestration.js';
|
||||||
|
|
||||||
export type {
|
export type {
|
||||||
@@ -31,6 +32,8 @@ export type {
|
|||||||
IconResolver
|
IconResolver
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export { createIcon }
|
||||||
|
|
||||||
export interface RunOptions {
|
export interface RunOptions {
|
||||||
/**
|
/**
|
||||||
* The query selector to use when finding elements to render. Default: `".mermaid"`.
|
* The query selector to use when finding elements to render. Default: `".mermaid"`.
|
||||||
|
Reference in New Issue
Block a user