From: Ulrich-Matthias Schäfer Date: Tue, 13 Dec 2022 08:55:16 +0000 (+0100) Subject: Clone without assigning new IDs X-Git-Tag: 3.2.0~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9d61f56d9fbe04db320d7bc9714ea1f3ba3439b7;p=svg.js.git Clone without assigning new IDs --- 9d61f56d9fbe04db320d7bc9714ea1f3ba3439b7 diff --cc svg.js.d.ts index baf405e,6196e63..843c309 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@@ -930,10 -930,10 +930,10 @@@ declare module "@svgdotjs/svg.js" constructor(node?: HTMLElement, attr?: object); constructor(att: object); add(element: Element, i?: number): this; - addTo(parent: Dom | HTMLElement | string): this + addTo(parent: Dom | HTMLElement | string, i?: number): this children(): List; clear(): this; - clone(): this; + clone(deep?: boolean, assignNewIds?: boolean): this; each(block: (index: number, children: Element[]) => void, deep?: boolean): this; element(element: string, inherit?: object): this; first(): Element;