diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 27551e01d652a9c69d5b4346a1eff29fdab5a60a..67793d041d51c81ec354c9628332f86da8d38c9a 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -1360,13 +1360,22 @@ declare class WebAttribute extends CommonMethod { overviewModeAccess(overviewModeAccess: boolean): WebAttribute; /** - * Sets the atio of the text zoom. - * @param textZoomAtio The atio of the text zoom. + * Sets the ratio of the text zoom. + * @param textZoomAtio The ratio of the text zoom. * * @since 8 + * @deprecated since 9 */ textZoomAtio(textZoomAtio: number): WebAttribute; + /** + * Sets the ratio of the text zoom. + * @param textZoomRatio The ratio of the text zoom. + * + * @since 9 + */ + textZoomRatio(textZoomRatio: number): WebAttribute; + /** * Sets whether the Web access the database. * @param databaseAccess {@code true} means the Web access the database; {@code false} otherwise. @@ -1634,12 +1643,20 @@ declare class WebAttribute extends CommonMethod { /** * Notify search result to host application through onSearchResultReceive. - * @param callback function Triggered when the host application call searchAllAsync + * @param callback Function Triggered when the host application call searchAllAsync * or searchNext api on WebController and the request is valid. * * @since 9 */ onSearchResultReceive(callback: (event?: {activeMatchOrdinal: number, numberOfMatches: number, isDoneCounting: boolean}) => void): WebAttribute + + /** + * Triggered when the scroll bar slides to the specified position. + * @param callback Function Triggered when the scroll bar slides to the specified position. + * + * @since 9 + */ + onScroll(callback: (event: {xOffset: number, yOffset: number}) => void): WebAttribute; } declare const Web: WebInterface;