From e8a5c796bda6d4b9e08a183cd5d5a2bf6344e9a9 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Tue, 14 Jan 2020 17:31:52 +0800 Subject: [PATCH] js:add CenterX and CenterY --- doric-js/src/util/gravity.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doric-js/src/util/gravity.ts b/doric-js/src/util/gravity.ts index bc7311e8..77505f95 100644 --- a/doric-js/src/util/gravity.ts +++ b/doric-js/src/util/gravity.ts @@ -92,6 +92,8 @@ export class Gravity implements Modeling { private static origin = new Gravity static Center = Gravity.origin.center() + static CenterX = Gravity.origin.centerX() + static CenterY = Gravity.origin.centerY() static Left = Gravity.origin.left() static Right = Gravity.origin.right() static Top = Gravity.origin.top()