1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16declare enum FlexAlign { 17 Start, 18 Center, 19 End, 20 SpaceBetween, 21 SpaceAround, 22 SpaceEvenly 23} 24 25declare enum ItemAlign { 26 Auto, 27 Start, 28 Center, 29 End, 30 Baseline, 31 Stretch 32} 33 34declare enum FlexDirection { 35 Row, 36 Column, 37 RowReverse, 38 ColumnReverse 39} 40 41declare enum FlexWrap { 42 NoWrap, 43 Wrap, 44 WrapReverse 45} 46 47declare enum VerticalAlign { 48 Top, 49 Center, 50 Bottom 51} 52 53interface FlexInterface { 54 (value?: { direction?: FlexDirection, wrap?: FlexWrap, justifyContent?: FlexAlign, alignItems?: ItemAlign, alignContent?: FlexAlign }): FlexAttribute; 55} 56 57declare class FlexAttribute extends CommonMethod<FlexAttribute> { 58} 59 60declare const Flex: FlexInterface; 61 62declare const FlexInstance: FlexAttribute;