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
7
* http://www.apache.org/licenses/LICENSE-2.0
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.
16
declare class Indicator<T> {
18
left(value: Length): T;
20
top(value: Length): T;
22
right(value: Length): T;
24
bottom(value: Length): T;
26
start(value: LengthMetrics): T;
28
end(value: LengthMetrics): T;
30
static dot(): DotIndicator;
32
// static digit(): DigitIndicator;
35
declare class DotIndicator extends Indicator<DotIndicator> {
39
itemWidth(value: Length): DotIndicator;
41
itemHeight(value: Length): DotIndicator;
45
// selectedItemWidth(value: Length): DotIndicator;
47
// selectedItemHeight(value: Length): DotIndicator;
49
// mask(value: boolean): DotIndicator;
51
// color(value: ResourceColor): DotIndicator;
53
// selectedColor(value: ResourceColor): DotIndicator;
55
// maxDisplayCount(maxDisplayCount: number): DotIndicator;
58
// declare class DigitIndicator extends Indicator<DigitIndicator> {
62
// fontColor(value: ResourceColor): DigitIndicator;
64
// selectedFontColor(value: ResourceColor): DigitIndicator;
66
// digitFont(value: Font): DigitIndicator;
68
// selectedDigitFont(value: Font): DigitIndicator;
71
declare class SwiperAttribute extends CommonMethod<SwiperAttribute> {
73
index(value: number): SwiperAttribute;
75
indicator(value: DotIndicator): SwiperAttribute;
76
// indicator(value: DotIndicator | DigitIndicator | boolean): SwiperAttribute;