From: Alejandro Leal <22180346+AstroCorp@users.noreply.github.com> Date: Wed, 10 May 2023 07:53:52 +0000 (+0200) Subject: fix toParent type X-Git-Tag: 3.2.0~2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=efee17bc32c3bd35157ed4f31fdfd3634604cd96;p=svg.js.git fix toParent type --- diff --git a/svg.js.d.ts b/svg.js.d.ts index 843c309..a0c44c2 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -5,7 +5,7 @@ declare class BuiltInArray extends Array { } // trick to have nice attribute list for CSS -declare type CSSStyleName = Exclude +declare type CSSStyleName = Exclude declare module "@svgdotjs/svg.js" { @@ -862,8 +862,8 @@ declare module "@svgdotjs/svg.js" { reset(): this finish(): this reverse(r?: boolean): this - ease(fn: EasingCallback) : this - ease(kind: EasingLiteral) : this + ease(fn: EasingCallback): this + ease(kind: EasingLiteral): this active(): boolean active(a: boolean): this addTransform(m: Matrix): this @@ -1075,7 +1075,7 @@ declare module "@svgdotjs/svg.js" { clip(): ClipPath; ellipse(width?: number, height?: number): Ellipse; flatten(parent: Dom, depth?: number): this; - foreignObject(width: number, height: number) : ForeignObject + foreignObject(width: number, height: number): ForeignObject gradient(type: string, block?: (stop: Gradient) => void): Gradient; group(): G; @@ -1259,7 +1259,7 @@ declare module "@svgdotjs/svg.js" { * then the result is only provided the list up until Svg root element which mean no Dom parent element is included. * @param util a parent type */ - parents(util: QuerySelector | T | null ): List + parents(util: QuerySelector | T | null): List /** * Get reference svg element based on the given attribute. * @param attr a svg attribute @@ -1298,6 +1298,7 @@ declare module "@svgdotjs/svg.js" { timeline(tl: Timeline): this toggleClass(name: string): this; toParent(parent: Dom): this; + toParent(parent: Dom, i: number): this; toSvg(): this; touchcancel(cb: Function | null): this; touchend(cb: Function | null): this;