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_LIST_AREA_WIDTH = '834' 28 static NOTIFICATION_AREA_HEIGHT = '40%' 29 static PASSWORD_AREA_WIDTH = '33.33%' 30 static PASSWORD_AREA_WIDTH_PORTRAIT = '50%' 31 static NOTIFICATION_LIST_AREA_HEIGHT = '300' 32 33 static STATUS_ABOUT_TO_APPEAR = 1 34 static STATUS_ABOUT_TO_DISAPPEAR = 2 35 static STATUS_ON_PAGE_SHOW = 3 36 static STATUS_ON_PAGE_HIDE = 4 37 38}