Facade API is an API layer of all other packages of Univer and it helps users to use Univer easily. For a detailed introduction of Facade API, please visit Facade API.
Facade API is consists of multi classes such as FUniver, FWorkbook and FRange etc. You can refer to Google's AppScripts to design Facade API.
Please use JSDoc to document your code. For example:
export class FWorkbook {
/**
* Get the active sheet of the workbook.
* @returns The active sheet of the workbook
*/
getActiveSheet(): FWorksheet | null {
// ...
}
/**
* Create a new worksheet and returns a handle to it.
* @param name Name of the new sheet
* @param rows How may rows would the new sheet have
* @param column How many columns would the new sheet have
* @returns The new created sheet
*/
create(name: string, rows: number, column: number): FWorksheet {
// ...
}
}It is strongly suggested to add documentation for your code here. Please refer to our documentation repo for more guidance.