Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
fix: failed to load create in Arc and Circle
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepbox8646 committed Jun 23, 2024
1 parent 5a2205f commit 39c4812
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/basic/src/widgets/arc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class Arc extends Path {
this.radius.value,
)

this.path.addArc(this.rect, this.from.value, this.to.value)
this.path.addArc(this.rect, this.from.value, this.to.value * this.progress.value)

changed(this.radius, (_) => {
this.rect = ck.LTRBRect(
Expand All @@ -73,5 +73,9 @@ export class Arc extends Path {
this.path.rewind()
this.path.addArc(this.rect, this.from.value, this.to.value * this.progress.value)
})
changed(this.progress, (_) => {
this.path.rewind()
this.path.addArc(this.rect, this.from.value, this.to.value * this.progress.value)
})
}
}

0 comments on commit 39c4812

Please sign in to comment.