]> source.dussan.org Git - svg.js.git/commitdiff
Clone without assigning new IDs
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Tue, 13 Dec 2022 08:55:16 +0000 (09:55 +0100)
committerGitHub <noreply@github.com>
Tue, 13 Dec 2022 08:55:16 +0000 (09:55 +0100)
1  2 
.config/rollup.config.js
spec/spec/elements/Dom.js
src/elements/Dom.js
svg.js.d.ts

Simple merge
Simple merge
Simple merge
diff --cc svg.js.d.ts
index baf405ecc8dae5c5ecd12ca422998afd05fd79c1,6196e63458b5772afabf9d9d208abdcc5bc428ea..843c309c1ad9abc4f119522ad7c0d1db2809e43c
@@@ -930,10 -930,10 +930,10 @@@ declare module "@svgdotjs/svg.js" 
          constructor(node?: HTMLElement, attr?: object);\r
          constructor(att: object);\r
          add(element: Element, i?: number): this;\r
 -        addTo(parent: Dom | HTMLElement | string): this\r
 +        addTo(parent: Dom | HTMLElement | string, i?: number): this\r
          children(): List<Element>;\r
          clear(): this;\r
-         clone(): this;\r
+         clone(deep?: boolean, assignNewIds?: boolean): this;\r
          each(block: (index: number, children: Element[]) => void, deep?: boolean): this;\r
          element(element: string, inherit?: object): this;\r
          first(): Element;\r