• 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
16
17declare class __CircleShape__<T> {
18    constructor(options: ShapeSize);
19    width(width: string | number): T;
20    height(height: string | number): T;
21    size(size: SizeOptions): T;
22    offset(offset: Position): T;
23    fill(color: number | string): T;
24    position(position: Position): T;
25}
26
27class CircleShape extends __CircleShape__<CircleShape> {
28    constructor(options: ShapeSize) {
29        super(options);
30    }
31
32    width(width: string | number): CircleShape {
33        return super.width(width);
34    }
35
36    height(height: string | number): CircleShape {
37        return super.height(height);
38    }
39
40    size(size: SizeOptions): CircleShape {
41        return super.size(size);
42    }
43
44    offset(offset: Position): CircleShape {
45        return super.offset(offset);
46    }
47
48    fill(width: string | number): CircleShape {
49        return super.fill(width);
50    }
51
52    position(position: Position): CircleShape {
53        return super.position(position);
54    }
55}