From: Jiande Date: Fri, 18 Aug 2023 06:04:23 +0000 (+0800) Subject: perf: add Container constructor declaration. X-Git-Tag: 3.2.1~22^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1309%2Fhead;p=svg.js.git perf: add Container constructor declaration. if not, while user hover in Container will show DynamicExtends constructor params. --- diff --git a/svg.js.d.ts b/svg.js.d.ts index 38b9ed2..ae32919 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -1266,6 +1266,7 @@ declare module '@svgdotjs/svg.js' { */ let ContainableElement: DynamicExtends class Container extends ContainableElement { + constructor() flatten(parent: Dom, depth?: number): this ungroup(parent: Dom, depth?: number): this }