From 5efd2c9fbf49c05b9c3403aaa6ecaefac14aa0f5 Mon Sep 17 00:00:00 2001 From: zhangbingce Date: Fri, 6 May 2022 15:30:05 +0800 Subject: [PATCH] [xcomponent] add setXComponentSurfaceSize interface Signed-off-by: zhangbingce Change-Id: I6ac6e56c6b213f741b9fb4e8e977fd2f00338016 --- runtime/preparation/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/preparation/init.ts b/runtime/preparation/init.ts index 2693270b..289fee83 100644 --- a/runtime/preparation/init.ts +++ b/runtime/preparation/init.ts @@ -140,7 +140,7 @@ const ComponentsInfo: components[] = [ 'type': 'canvas' }, { - 'methods': ['getXComponentContext', 'createIntersectionObserver', 'addChild', 'getXComponentSurfaceId'], + 'methods': ['getXComponentContext', 'createIntersectionObserver', 'addChild', 'getXComponentSurfaceId', 'setXComponentSurfaceSize'], 'type': 'xcomponent' }, { 'methods': ['show', 'close', 'getBoundingClientRect', 'getInspector', 'scrollBy', 'getScrollOffset', 'scrollTo', 'createIntersectionObserver', 'addChild'], 'type': 'dialog' },