UPDATE: Autofill by rows (#73)

This commit is contained in:
Nicolás Hatcher Andrés
2024-06-02 10:01:46 +02:00
committed by GitHub
parent c3a9b006d2
commit 72c7c94f3d
5 changed files with 521 additions and 2 deletions

View File

@@ -119,5 +119,14 @@ test("floating column numbers get truncated", () => {
assert.strictEqual(model.getRowHeight(0, 5), 100.5);
});
test("autofill", () => {
const model = new Model('en', 'UTC');
model.setUserInput(0, 1, 1, "23");
model.autoFillRows({sheet: 0, row: 1, column: 1, width: 1, height: 1}, 2);
const result = model.getFormattedCellValue(0, 2, 1);
assert.strictEqual(result, "23");
});