geostyler
Version:
Framework for styling geodata
34 lines (33 loc) • 774 B
JavaScript
import { jsx as c } from "react/jsx-runtime";
import { StringExpressionSelect as m } from "../../../ExpressionInput/StringExpressionSelect/StringExpressionSelect.js";
import { useGeoStylerLocale as a } from "../../../../context/GeoStylerContext/GeoStylerContext.js";
const u = ({
onChange: o,
value: i,
joinOptions: n = ["bevel", "round", "miter"],
...l
}) => {
const r = a("LineJoinField"), t = n.map((e) => ({
label: r.lineJoinOptions[e],
value: e
}));
function s() {
o(void 0);
}
return /* @__PURE__ */ c(
m,
{
className: "editor-field line-join-field",
value: i,
onChange: (e) => o(e),
onCancel: s,
selectProps: {
...l,
options: t
}
}
);
};
export {
u as LineJoinField
};