• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * Copyright (c) 2024 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 class Constants {
17  static readonly X_COMPONENT_SURFACE_WIDTH = 1920
18  static readonly X_COMPONENT_SURFACE_HEIGHT = 1080
19  static readonly X_COMPONENT_BORDER_WIDTH = 0.5
20  static readonly CAPTURE_BUTTON_BORDER_WIDTH = 3
21  static readonly CAPTURE_BUTTON_BORDER_RADIUS = 70
22  static readonly CAPTURE_BUTTON_COLUMN_MARGIN = 24
23  static readonly CAPTURE_BUTTON_COLUMN_PADDING = 24
24  static readonly BACK_ICON_SIZE = 24
25  static readonly BACK_ICON_MARGIN = 24
26  static readonly FULL_PERCENT: string = '100%'
27  static readonly EIGHTY_FIVE_PERCENT: string = '85%'
28  static readonly EIGHTY_PERCENT: string = '80%'
29  static readonly SEVENTY_FIVE_PERCENT: string = '75%'
30  static readonly SEVENTY_PERCENT: string = '70%'
31  static readonly FORTY_PERCENT: string = '40%'
32  static readonly THIRTY_PERCENT: string = '30%'
33  static readonly FIFTEEN_PERCENT: string = '15%'
34  static readonly TEN_PERCENT: string = '10%'
35  static readonly ZERO_PERCENT: string = '0%'
36  static readonly TEXT_BORDER_RADIUS: number = 14
37  static readonly COLUMN_SPACE_24: number = 24
38}