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 16export default class Constants { 17 18 //touch mode 19 static TOUCHTYPE_DOWN: number = 0; 20 static TOUCHTYPE_UP: number = 1; 21 static TOUCHTYPE_MOVE: number = 2; 22 23 //layout params - Pic 24 static FULL_CONTAINER_WIDTH = '100%' 25 static FULL_CONTAINER_HEIGHT = '100%' 26 static NOTIFICATION_AREA_WIDTH = '96%' 27 static NOTIFICATION_AREA_HEIGHT = '40%' 28 static LOCKICON_AREA_WIDTH = '15%' 29 static P_LOCKICON_AREA_WIDTH = '77vp' 30 static DATETIME_AREA_WIDTH = '20%' 31 static P_DATETIME_AREA_WIDTH = '123vp' 32 33 static PASSWORD_AREA_WIDTH = '312vp' 34 35 static STATUS_ABOUT_TO_APPEAR = 1 36 static STATUS_ABOUT_TO_DISAPPEAR = 2 37 static STATUS_ON_PAGE_SHOW = 3 38 static STATUS_ON_PAGE_HIDE = 4 39}