Comparing version 2.3.0 to 2.4.0
@@ -16,2 +16,3 @@ /// <reference types="node" /> | ||
resize(cols: number, rows: number): void; | ||
redraw(): void; | ||
all(): Region; | ||
@@ -46,3 +47,3 @@ clip(x1: number, y1: number, x2: number, y2: number): Region; | ||
clear(): this; | ||
clearSoft(): this; | ||
clearToEndOfLine(): this; | ||
write(s: string): this; | ||
@@ -49,0 +50,0 @@ draw(other: Region): this; |
@@ -34,2 +34,6 @@ "use strict"; | ||
} | ||
redraw() { | ||
delete this.currentBuffer; | ||
this.setDirty(); | ||
} | ||
all() { | ||
@@ -171,6 +175,4 @@ if (!this._all) | ||
} | ||
// clear region without memoizing the "clear screen" (mostly for testing) | ||
clearSoft() { | ||
for (let y = this.y1; y < this.y2; y++) | ||
this.canvas.nextBuffer.clearBox(this.x1, y, this.x2, y + 1, this.attr); | ||
clearToEndOfLine() { | ||
this.canvas.nextBuffer.clearToEndOfLine(this.cursorX, this.cursorY, this.attr); | ||
this.canvas.setDirty(); | ||
@@ -177,0 +179,0 @@ return this; |
{ | ||
"name": "antsy", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "draw full-color (xterm-256) ansi graphics into a buffer", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2054
174085