We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5516438 + 8785006 commit 7e9518fCopy full SHA for 7e9518f
1 file changed
src/litegraph.js
@@ -9837,7 +9837,11 @@ LGraphNode.prototype.executeAction = function(action)
9837
ctx.textAlign = "center";
9838
ctx.fillStyle = text_color;
9839
ctx.fillText(
9840
- w.label || w.name + " " + Number(w.value).toFixed(3),
+ w.label || w.name + " " + Number(w.value).toFixed(
9841
+ w.options.precision != null
9842
+ ? w.options.precision
9843
+ : 3
9844
+ ),
9845
widget_width * 0.5,
9846
y + H * 0.7
9847
);
0 commit comments