Skip to content

Commit

Permalink
Add createProgressNode type (#2109)
Browse files Browse the repository at this point in the history
  • Loading branch information
HwangTaehyun authored Oct 4, 2022
1 parent af041ba commit bcda6ce
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/common/createProgressNode.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
import { clampValue } from "./utils";

interface IcreateProgressNode {
x: number;
y: number;
width: number;
color: string;
progress: number;
progressBarBackgroundColor: string;
}

const createProgressNode = ({
x,
y,
width,
color,
progress,
progressBarBackgroundColor,
}) => {
}: IcreateProgressNode) => {
const progressPercentage = clampValue(progress, 2, 100);

return `
Expand Down

0 comments on commit bcda6ce

Please sign in to comment.