aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-09-03 11:42:56 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-09-03 11:42:56 +0200
commit9718677bcdec90f5587ef09322428720e4d4b9c9 (patch)
treef666932f1d2972b66dc3b376b9c140f014522e0d
parent46ee87a1c2fc373c629235010c05bd8d40b2cb9e (diff)
downloadsvg.js-9718677bcdec90f5587ef09322428720e4d4b9c9.tar.gz
svg.js-9718677bcdec90f5587ef09322428720e4d4b9c9.zip
add sugar methods to runner (fixes #1117)
-rw-r--r--svg.js.d.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts
index 37ee526..a91629e 100644
--- a/svg.js.d.ts
+++ b/svg.js.d.ts
@@ -1044,6 +1044,38 @@ declare module '@svgdotjs/svg.js' {
ry(ry: number): this
from(x: NumberAlias, y: NumberAlias): this
to(x: NumberAlias, y: NumberAlias): this
+
+ fill(): string
+ fill(fill: FillData): this
+ fill(color: string): this
+ fill(pattern: Element): this
+ fill(image: Image): this
+ stroke(): string
+ stroke(stroke: StrokeData): this
+ stroke(color: string): this
+ matrix(): Matrix
+ matrix(
+ a: number,
+ b: number,
+ c: number,
+ d: number,
+ e: number,
+ f: number
+ ): this
+ matrix(mat: MatrixAlias): this
+ rotate(degrees: number, cx?: number, cy?: number): this
+ skew(skewX?: number, skewY?: number, cx?: number, cy?: number): this
+ scale(scaleX?: number, scaleY?: number, cx?: number, cy?: number): this
+ translate(x: number, y: number): this
+ shear(lam: number, cx: number, cy: number): this
+ relative(x: number, y: number): this
+ flip(direction?: string, around?: number): this
+ flip(around: number): this
+ opacity(): number
+ opacity(value: number): this
+ font(a: string): string
+ font(a: string, v: string | number): this
+ font(a: object): this
}
// Animator.js