1/* 2 * Copyright (c) 2022 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 16export enum CropRatioType { 17 RATIO_TYPE_FREE, 18 RATIO_TYPE_HORIZONTAL, 19 RATIO_TYPE_VERTICAL, 20 RATIO_TYPE_1_1, 21 RATIO_TYPE_16_9, 22 RATIO_TYPE_9_16, 23 RATIO_TYPE_4_3, 24 RATIO_TYPE_3_4, 25 RATIO_TYPE_3_2, 26 RATIO_TYPE_2_3 27} 28 29export enum CropTouchState { 30 NONE, 31 CROP_MOVE, 32 IMAGE_DRAG, 33 IMAGE_SCALE 34} 35 36export enum CropAngle { 37 ONE_QUARTER_CIRCLE_ANGLE = 90, 38 HALF_CIRCLE_ANGLE = 180, 39 THREE_QUARTER_CIRCLE_ANGLE = 270, 40 CIRCLE_ANGLE = 360 41}