summaryrefslogtreecommitdiffstats
path: root/svg.js.d.ts
diff options
context:
space:
mode:
authorpragdave <dave@pragdave.me>2020-05-31 16:28:47 -0500
committerpragdave <dave@pragdave.me>2020-05-31 16:28:47 -0500
commitd0e8b57d618b566ad48538dfecab99cb094954b5 (patch)
tree53d7479744d50f30532bf7e9ee7f2e223e0e1a58 /svg.js.d.ts
parent8cc714a53bc2e1cf531eb50475285c2a775339aa (diff)
downloadsvg.js-d0e8b57d618b566ad48538dfecab99cb094954b5.tar.gz
svg.js-d0e8b57d618b566ad48538dfecab99cb094954b5.zip
add string parameters to Runner.ease()
Diffstat (limited to 'svg.js.d.ts')
-rw-r--r--svg.js.d.ts24
1 files changed, 15 insertions, 9 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts
index 99ec3b1..d96d237 100644
--- a/svg.js.d.ts
+++ b/svg.js.d.ts
@@ -80,14 +80,14 @@ declare module "@svgdotjs/svg.js" {
}
- let easing: {
- '-'(pos: number): number;
- '<>'(pos: number): number;
- '>'(pos: number): number;
- '<'(pos: number): number;
- bezier(x1: number, y1: number, x2: number, y2: number): (t: number) => number;
- steps(steps: number, stepPosition?: "jump-start"|"jump-end"|"jump-none"|"jump-both"|"start"|"end"): (t: number, beforeFlag?: boolean) => number;
- }
+ // let easing: {
+ // '-'(pos: number): number;
+ // '<>'(pos: number): number;
+ // '>'(pos: number): number;
+ // '<'(pos: number): number;
+ // bezier(x1: number, y1: number, x2: number, y2: number): (t: number) => number;
+ // steps(steps: number, stepPosition?: "jump-start"|"jump-end"|"jump-none"|"jump-both"|"start"|"end"): (t: number, beforeFlag?: boolean) => number;
+ // }
let regex: {
delimiter: RegExp;
@@ -805,6 +805,9 @@ declare module "@svgdotjs/svg.js" {
type TimeLike = number | TimesParam | Stepper
+ type EasingCallback = (...any) => number
+ type EasingLiteral = "<>" | "-" | "<" | ">"
+
class Runner {
constructor();
constructor(options: Function);
@@ -826,6 +829,8 @@ declare module "@svgdotjs/svg.js" {
loop(times: TimesParam): this
delay(delay: number): this
+
+
during(fn: Function): this
queue(initFn: Function, runFn: Function, retargetFn?: boolean | Function, isTransform?: boolean): this
after(fn: EventListener): this
@@ -843,7 +848,8 @@ declare module "@svgdotjs/svg.js" {
reset(): this
finish(): this
reverse(r?: boolean): this
- ease(fn: Function): this
+ ease(fn: EasingCallback) : this
+ ease(kind: EasingLiteral) : this
active(): boolean
active(a: boolean): this
addTransform(m: Matrix): this