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 16import {WidthWeightMessage, unSelectedNoteBgColorMap, selectedNoteBgColorMap, folderTextMap, widthWeightMessageMap} from '../model/NoteBaseData' 17import FolderData from '../model/databaseModel/FolderData' 18import NoteData from '../model/databaseModel/NoteData' 19import {SysDefFolderUuid, FolderType, Favorite, Delete} from '../model/databaseModel/EnumData' 20import GlobalResourceManager from './GlobalResourceManager' 21import StyleConstants from '../constants/StyleConstants' 22import {LogUtil} from './LogUtil' 23import FolderUtil from './FolderUtil' 24import NoteUtil from './NoteUtil' 25 26const TAG = "LayoutUtil" 27 28export class LayoutUtil { 29 /** 30 * Get Width Weight Message 31 * 32 * @param sectionStatus - page's section number 33 * @return WidthWeightMessage 34 */ 35 getWidthWeightMessage(sectionStatus: number): WidthWeightMessage { 36 LogUtil.info(TAG, "sectionStatus " + sectionStatus.toString()) 37 return widthWeightMessageMap[sectionStatus] 38 } 39} 40 41let layoutUtil = new LayoutUtil() 42 43export default layoutUtil as LayoutUtil