Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.38 KB

CONTRIBUTING.md

File metadata and controls

36 lines (28 loc) · 1.38 KB

How to Contribute to Facade API

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.

How to Contribute

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 {
        // ...
    }
}

Documentation

It is strongly suggested to add documentation for your code here. Please refer to our documentation repo for more guidance.