Skip to content

Commit 3a09956

Browse files
Update main.ts
1 parent a25c791 commit 3a09956

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

main.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ class Circle {
4949
}
5050
//% group="Properties"
5151
//% blockSetVariable="myCircle"
52-
//% blockCombine block="text"
53-
get text(): string {
52+
//% blockCombine block="data text"
53+
get datatext(): string {
5454
return this._dataText;
5555
}
5656
//% group="Properties"
5757
//% blockSetVariable="myCircle"
58-
//% blockCombine block="text"
59-
set text(value: string) {
58+
//% blockCombine block="data text"
59+
set datatext(value: string) {
6060
this._dataText = value;
6161
}
6262
//% group="Properties"
@@ -90,6 +90,13 @@ class Circle {
9090
get radius(): number {
9191
return this._radius;
9292
}
93+
//% group="Properties"
94+
//% blockSetVariable="myCircle"
95+
//% blockCombine block="color"
96+
set fillColor(value: number) {
97+
this._fillColor = value;
98+
this._img.drawCircle(this.centerXY, this.centerXY, this._radius, this._color);
99+
}
93100
//% group="Properties"
94101
//% blockSetVariable="myCircle"
95102
//% blockCombine block="Fill Color

0 commit comments

Comments
 (0)