Circle
Circle
It is used to render circular or oval content. The specific type is as follows:
ts
type Circle = {
type: 'circle';
x: number;
y: number;
w: number;
h: number;
angle: number;
detail: {
background: string;
borderRadius?: string;
borderWidth?: number;
borderColor?: number;
};
};
Circle.detail
The basic attribute details of the element can be viewed Element's Detail # .
Circle.detail Data-Type
The Data-Type of Circle.detail
ts
type CircleDetail = {
background?: string;
background?: string;
borderWidth?: number;
borderColor?: string;
};
Circle.detail Properties
Property | Description | Type | Default | Required | Others |
---|---|---|---|---|---|
color | Circle Color | string | - | true | eg. #000000 |
borderRadius | Circle radius of border corner | number | 0 | false | - |
borderWidth | Border width of Circle | number | 0 | false | - |
borderColor | Border color of Circle | number | 0 | false | eg. #000000 |
Circle.detail Properties
js
const elementCircle = {
name: 'circle',
x: 160,
y: 100,
w: 200,
h: 200,
angle: 0,
type: 'circle',
detail: {
background: '#d5f5f9',
borderRadius: 10,
borderWidth: 4,
borderColor: '#3f51b5'
}
};