Updated readme for renderOptions parameter and renamed to use kabab case

This commit is contained in:
saurabhg772244
2024-09-16 12:59:33 +05:30
parent 52e1a36ffe
commit 7f2044024b

View File

@@ -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