From af3ad08c51a080b7280acce1d9e5430e2134e234 Mon Sep 17 00:00:00 2001 From: xuzhendong666 <810792608@Outlook.com> Date: Mon, 22 Nov 2021 17:34:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20alwaysByViewport=E7=9A=84ts=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89=E7=BC=BA=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复alwaysByViewport的ts类型定义缺失 --- src/interface.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interface.ts b/src/interface.ts index ab91f17..b240229 100644 --- a/src/interface.ts +++ b/src/interface.ts @@ -20,10 +20,12 @@ export interface AlignType { /** * If adjustX field is true, will adjust source node in x direction if source node is invisible. * If adjustY field is true, will adjust source node in y direction if source node is invisible. + * If alwaysByViewport is true, the it will adjust if node is not inside viewport. */ overflow?: { adjustX?: boolean | number; adjustY?: boolean | number; + alwaysByViewport?: boolean; }; /** * Whether use css right instead of left to position