geostyler
Version:
Framework for styling geodata
30 lines (29 loc) • 578 B
JavaScript
import { jsx as i } from "react/jsx-runtime";
import { NumberExpressionInput as l } from "../../../ExpressionInput/NumberExpressionInput/NumberExpressionInput.js";
const f = ({
onChange: t,
value: o,
...e
}) => {
function a() {
t(e.defaultValue ? Number(e.defaultValue) : void 0);
}
return /* @__PURE__ */ i(
l,
{
className: "editor-field rotate-field",
value: o,
onChange: t,
onCancel: a,
inputProps: {
...e,
min: -360,
max: 360,
step: 1
}
}
);
};
export {
f as RotateField
};