Skip to content

Commit dace75d

Browse files
NerivecSimplaHome
authored andcommitted
fix: Set calibration option step at 0.1 (Koenkk#9683)
1 parent 22c7a38 commit dace75d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
],
2424
"scripts": {
2525
"check": "biome check --error-on-warnings",
26+
"check:w": "biome check --error-on-warnings --write",
2627
"test": "vitest run --config ./test/vitest.config.mts",
2728
"test:coverage": "vitest run --config ./test/vitest.config.mts --coverage",
2829
"bench": "vitest bench --run --config ./test/vitest.config.mts",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export function prepareDefinition(definition: DefinitionWithExtend): Definition
449449

450450
const type = utils.calibrateAndPrecisionRoundOptionsIsPercentual(expose.name) ? "percentual" : "absolute";
451451

452-
finalDefinition.options.push(exposesLib.options.calibration(expose.name, type));
452+
finalDefinition.options.push(exposesLib.options.calibration(expose.name, type).withValueStep(0.1));
453453

454454
if (utils.calibrateAndPrecisionRoundOptionsDefaultPrecision[expose.name] !== 0) {
455455
finalDefinition.options.push(exposesLib.options.precision(expose.name));

0 commit comments

Comments
 (0)