fortune-sheet
fortune-sheet copied to clipboard
enable onOp option to capture the changes for the specific columns
Enable onOp to capture the changes of specific column instead of all columns.
async onOp(op: Op[]){ console.log(this.instruments); console.log(JSON.stringify({ req: "op", data: op })); };
enable the specific columns improve the number of iteration inside the code and improve performance. instead of hitting all columns to identify.
I tried with extending library, but not able extend the functionality due to const.
this.workbookRef.emitOp = this.emitOp.bind(this);
async emitOp(ctx, patches, options, undo) { console.log("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------"); };
@shuanhukexuejia Please can you help on extending the functionality of emitOp . so that we can capture specific column or row changes.
so that number iteration will be reduced.
this is a non-issue, and applies to a specific use case. it should be left to the user implementation to ignore an op on the rows/cols then want.