diff --git a/docs/adding-new-shape/Readme.md b/docs/adding-new-shape/Readme.md index 2c1c5dbd8..7d2c6eb81 100644 --- a/docs/adding-new-shape/Readme.md +++ b/docs/adding-new-shape/Readme.md @@ -101,9 +101,13 @@ To add a new shape: - **Example**: ```typescript - import { Node } from '../../types.d.ts'; + import { Node, RenderOptions } from '../../types.d.ts'; - export const myNewShape = async (parent: SVGAElement, node: Node) => { + export const myNewShape = async ( + parent: SVGAElement, + node: Node, + renderOptions: RenderOptions + ) => { // Create your shape here const shape = parent.insert('g').attr('class', 'my-new-shape'); // Add other elements or styles as needed diff --git a/packages/mermaid/src/docs/adding-new-shape/Readme.md b/packages/mermaid/src/docs/adding-new-shape/Readme.md index a4580c733..cf8f9b3fe 100644 --- a/packages/mermaid/src/docs/adding-new-shape/Readme.md +++ b/packages/mermaid/src/docs/adding-new-shape/Readme.md @@ -95,9 +95,13 @@ To add a new shape: - **Example**: ```typescript - import { Node } from '../../types.d.ts'; + import { Node, RenderOptions } from '../../types.d.ts'; - export const myNewShape = async (parent: SVGAElement, node: Node) => { + export const myNewShape = async ( + parent: SVGAElement, + node: Node, + renderOptions: RenderOptions + ) => { // Create your shape here const shape = parent.insert('g').attr('class', 'my-new-shape'); // Add other elements or styles as needed