Clarify progress is from 0 to 1

This commit is contained in:
thepaperpilot 2023-05-18 16:49:22 -05:00
parent 6769a236f1
commit 62b68cab6b

View file

@ -108,7 +108,7 @@ export interface NodeTypeOptions {
shape: NodeComputable<Shape>; shape: NodeComputable<Shape>;
/** Whether the node can accept another node being dropped upon it. */ /** Whether the node can accept another node being dropped upon it. */
canAccept?: NodeComputable<boolean, [BoardNode]>; canAccept?: NodeComputable<boolean, [BoardNode]>;
/** The progress value of the node. */ /** The progress value of the node, from 0 to 1. */
progress?: NodeComputable<number>; progress?: NodeComputable<number>;
/** How the progress should be displayed on the node. */ /** How the progress should be displayed on the node. */
progressDisplay?: NodeComputable<ProgressDisplay>; progressDisplay?: NodeComputable<ProgressDisplay>;