diff --git a/src/plugin/nc/index.js b/src/plugin/nc/index.js index 6755304..98e4640 100644 --- a/src/plugin/nc/index.js +++ b/src/plugin/nc/index.js @@ -220,6 +220,7 @@ let createLineGenerator = canonicalGeneratorFactory({ viewtype: "edittext", text: "Vertical gradient:", key: "gradient", + inputType: "float" } ]) ), @@ -320,7 +321,7 @@ let createLineGenerator = canonicalGeneratorFactory({ } }) -createLineGenerator.addPosition = function () { +createLineGenerator.onAddPosition = function (e) { let { state, position, runtime } = e; if (state.doAcceptNewPosition) { let indexOfVacancy = state.positions.indexOf(undefined)