Removed unused console logs
This commit is contained in:
parent
d8c5e4343f
commit
1e2847f7f2
|
|
@ -193,7 +193,6 @@ export class Scroller {
|
|||
}
|
||||
|
||||
if (event.metaKey || event.ctrlKey) {
|
||||
console.log(event.code);
|
||||
if (event.code === "KeyC") {
|
||||
let cells: Cell[][] = undefined!;
|
||||
const selection = new Selection();
|
||||
|
|
|
|||
|
|
@ -124,7 +124,6 @@ export default class Spreadsheet {
|
|||
private setColumnsBarPosition() {
|
||||
const top = this.toolbar.height;
|
||||
const left = this.rowsBar.width;
|
||||
console.log(top, left);
|
||||
this.columnsBar.setElementPosition(top, left);
|
||||
}
|
||||
|
||||
|
|
@ -163,8 +162,6 @@ export default class Spreadsheet {
|
|||
rows: cachedRows,
|
||||
});
|
||||
|
||||
console.log("CACHE: ", cache);
|
||||
console.log("CONFIG: ", this.config);
|
||||
return cache;
|
||||
}
|
||||
|
||||
|
|
@ -333,11 +330,12 @@ export default class Spreadsheet {
|
|||
|
||||
public loadData(data: Cell[][] | SerializableCell[][]): Spreadsheet {
|
||||
const rowsLength = data.length;
|
||||
const colsLength = data[0] ? this.data[0].length : 0;
|
||||
const colsLength = data[0] ? data[0].length : 0;
|
||||
console.log("!!FORMATTED DATA", rowsLength, colsLength, data[0])
|
||||
this.data = [];
|
||||
|
||||
const formattedData: Cell[][] = [];
|
||||
|
||||
// Transform serialized objects to Cells
|
||||
for (let row = 0; row < rowsLength; row++) {
|
||||
const innerRow: Cell[] = [];
|
||||
for (let col = 0; col < colsLength; col++) {
|
||||
|
|
@ -355,6 +353,7 @@ export default class Spreadsheet {
|
|||
formattedData.push(innerRow);
|
||||
}
|
||||
|
||||
|
||||
this.data = formattedData;
|
||||
|
||||
this.selection.selectedCell = null;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import { defineConfig } from "vite";
|
|||
import path from "path";
|
||||
import typescript from "@rollup/plugin-typescript";
|
||||
import { typescriptPaths } from "rollup-plugin-typescript-paths";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
export default defineConfig({
|
||||
base: "/modern_spreadsheet/",
|
||||
|
|
|
|||
Loading…
Reference in New Issue