aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-05-10 09:59:25 +0200
committerGitHub <noreply@github.com>2023-05-10 09:59:25 +0200
commitb4636e04038897e3deefff9e680ed52de283ff02 (patch)
treefdb84d8bc5717a4138b27403927bdf03aa7aa5c1
parentf10de7b61ce1acd3247a2060930e3be08dcf8b94 (diff)
parentefee17bc32c3bd35157ed4f31fdfd3634604cd96 (diff)
downloadsvg.js-b4636e04038897e3deefff9e680ed52de283ff02.tar.gz
svg.js-b4636e04038897e3deefff9e680ed52de283ff02.zip
Merge pull request #1300 from AstroCorp/fix/types
fix toParent type
-rw-r--r--svg.js.d.ts11
1 files changed, 6 insertions, 5 deletions
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<T> extends Array<T> { }
// trick to have nice attribute list for CSS
-declare type CSSStyleName = Exclude<keyof CSSStyleDeclaration, "parentRule" | "length" >
+declare type CSSStyleName = Exclude<keyof CSSStyleDeclaration, "parentRule" | "length">
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<T extends Dom>(util: QuerySelector | T | null ): List<Element>
+ parents<T extends Dom>(util: QuerySelector | T | null): List<Element>
/**
* 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;