declare class BuiltInArray<T> extends Array<T> { }\r
\r
// trick to have nice attribute list for CSS\r
-declare type CSSStyleName = Exclude<keyof CSSStyleDeclaration, "parentRule" | "length" >\r
+declare type CSSStyleName = Exclude<keyof CSSStyleDeclaration, "parentRule" | "length">\r
\r
declare module "@svgdotjs/svg.js" {\r
\r
reset(): this\r
finish(): this\r
reverse(r?: boolean): this\r
- ease(fn: EasingCallback) : this\r
- ease(kind: EasingLiteral) : this\r
+ ease(fn: EasingCallback): this\r
+ ease(kind: EasingLiteral): this\r
active(): boolean\r
active(a: boolean): this\r
addTransform(m: Matrix): this\r
clip(): ClipPath;\r
ellipse(width?: number, height?: number): Ellipse;\r
flatten(parent: Dom, depth?: number): this;\r
- foreignObject(width: number, height: number) : ForeignObject\r
+ foreignObject(width: number, height: number): ForeignObject\r
gradient(type: string, block?: (stop: Gradient) => void): Gradient;\r
group(): G;\r
\r
* then the result is only provided the list up until Svg root element which mean no Dom parent element is included.\r
* @param util a parent type\r
*/\r
- parents<T extends Dom>(util: QuerySelector | T | null ): List<Element>\r
+ parents<T extends Dom>(util: QuerySelector | T | null): List<Element>\r
/**\r
* Get reference svg element based on the given attribute.\r
* @param attr a svg attribute\r
timeline(tl: Timeline): this\r
toggleClass(name: string): this;\r
toParent(parent: Dom): this;\r
+ toParent(parent: Dom, i: number): this;\r
toSvg(): this;\r
touchcancel(cb: Function | null): this;\r
touchend(cb: Function | null): this;\r