card harness dynamic changes
This commit is contained in:
@@ -27,6 +27,10 @@ export class TestCanvas extends EventTarget {
|
||||
return {
|
||||
fillRect() {}, strokeRect() {}, fillText() {}, save() {}, restore() {},
|
||||
translate() {}, rotate() {}, createLinearGradient() { return { addColorStop() {} } },
|
||||
beginPath() {}, closePath() {}, moveTo() {}, lineTo() {}, bezierCurveTo() {},
|
||||
quadraticCurveTo() {}, arc() {}, ellipse() {}, rect() {}, roundRect() {},
|
||||
fill() {}, stroke() {}, clip() {}, scale() {}, setLineDash() {},
|
||||
measureText(text) { return { width: text.length * 22 } },
|
||||
}
|
||||
}
|
||||
getBoundingClientRect() { return { left: 0, top: 0, width: this.width, height: this.height } }
|
||||
|
||||
Reference in New Issue
Block a user