js:add CenterX and CenterY

This commit is contained in:
pengfei.zhou 2020-01-14 17:31:52 +08:00 committed by osborn
parent 8d0a64090c
commit e8a5c796bd

View File

@ -92,6 +92,8 @@ export class Gravity implements Modeling {
private static origin = new Gravity private static origin = new Gravity
static Center = Gravity.origin.center() static Center = Gravity.origin.center()
static CenterX = Gravity.origin.centerX()
static CenterY = Gravity.origin.centerY()
static Left = Gravity.origin.left() static Left = Gravity.origin.left()
static Right = Gravity.origin.right() static Right = Gravity.origin.right()
static Top = Gravity.origin.top() static Top = Gravity.origin.top()