Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbcda6ce

Browse files
authored
Add createProgressNode type (anuraghazra#2109)
1 parentaf041ba commitbcda6ce

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎src/common/createProgressNode.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
import{clampValue}from"./utils";
22

3+
interfaceIcreateProgressNode{
4+
x:number;
5+
y:number;
6+
width:number;
7+
color:string;
8+
progress:number;
9+
progressBarBackgroundColor:string;
10+
}
11+
312
constcreateProgressNode=({
413
x,
514
y,
615
width,
716
color,
817
progress,
918
progressBarBackgroundColor,
10-
})=>{
19+
}:IcreateProgressNode)=>{
1120
constprogressPercentage=clampValue(progress,2,100);
1221

1322
return`

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp