geostyler
Version:
Framework for styling geodata
29 lines (28 loc) • 664 B
JavaScript
import { jsx as o } from "react/jsx-runtime";
import { Select as i } from "antd";
import { isGeoStylerFunction as n } from "geostyler-style";
import m from "../../../../Util/FunctionUtil.js";
const s = i.Option, p = ({
onChange: r,
contrastEnhancementOptions: t = ["normalize", "histogram"],
value: l
}) => /* @__PURE__ */ o(
i,
{
className: "editor-field contrastEnhancement-field",
allowClear: !0,
value: l,
onChange: r,
children: t.map((e) => (n(e) && (e = m.evaluateFunction(e)), /* @__PURE__ */ o(
s,
{
value: e,
children: e
},
e
)))
}
);
export {
p as ContrastEnhancementField
};