Constraints
typescript
interface Constraints {
readonly horizontal: ConstraintType;
readonly vertical: ConstraintType;
}调整其包含框架的大小时,图层的大小调整行为。
typescript
type ConstraintType = "MIN" | "CENTER" | "MAX" | "STRETCH" | "SCALE";