aboutsummaryrefslogtreecommitdiffstats
path: root/svg.js.d.ts
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-09-03 12:20:46 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-09-03 12:20:46 +0200
commite70cdef7a5a21eda34f5f90260f9fd26099d274e (patch)
tree9e86cff57984c7badcde26de8098b7e0607d738f /svg.js.d.ts
parent9718677bcdec90f5587ef09322428720e4d4b9c9 (diff)
downloadsvg.js-e70cdef7a5a21eda34f5f90260f9fd26099d274e.tar.gz
svg.js-e70cdef7a5a21eda34f5f90260f9fd26099d274e.zip
fix css, dont throw when screenCtm fails (fixes #968)
Diffstat (limited to 'svg.js.d.ts')
-rw-r--r--svg.js.d.ts28
1 files changed, 11 insertions, 17 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts
index a91629e..d941fed 100644
--- a/svg.js.d.ts
+++ b/svg.js.d.ts
@@ -1340,35 +1340,29 @@ declare module '@svgdotjs/svg.js' {
}
interface Sugar {
- fill(): any
+ fill(): string
fill(fill: FillData): this
fill(color: string): this
fill(pattern: Element): this
fill(image: Image): this
- stroke(): any
+ 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,
- b?: number,
- c?: number,
- d?: number,
- e?: number,
- f?: number
+ 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: Matrix, cx: number, cy: 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