[v, capitalize(v)]);
+
+ input =
+ }
+ else {
+ input =
+ }
return {
+ sum += label.length
+ })
+ return sum
+}
+
+
+class EnumInput extends React.Component {
+ static propTypes = {
+ "data-wd-key": PropTypes.string,
+ value: PropTypes.string,
+ style: PropTypes.object,
+ default: PropTypes.string,
+ onChange: PropTypes.func,
+ options: PropTypes.array,
+ }
+
+ render() {
+ const {options, value, onChange} = this.props;
+
+ if(options.length <= 3 && optionsLabelLength(options) <= 20) {
+ return
+ } else {
+ return
+ }
+ }
+}
+
+export default StringInput
diff --git a/src/config/layout.json b/src/config/layout.json
index e99b9e03..99344fb6 100644
--- a/src/config/layout.json
+++ b/src/config/layout.json
@@ -24,7 +24,8 @@
"line-cap",
"line-join",
"line-miter-limit",
- "line-round-limit"
+ "line-round-limit",
+ "line-sort-key"
]
}
]
@@ -56,6 +57,13 @@
"fill-translate",
"fill-translate-anchor"
]
+ },
+ {
+ "title": "Layout properties",
+ "type": "properties",
+ "fields": [
+ "fill-sort-key"
+ ]
}
]
},
@@ -93,7 +101,8 @@
"circle-pitch-scale",
"circle-translate",
"circle-translate-anchor",
- "circle-pitch-alignment"
+ "circle-pitch-alignment",
+ "circle-sort-key"
]
}
]
@@ -107,7 +116,8 @@
"symbol-placement",
"symbol-spacing",
"symbol-avoid-edges",
- "symbol-z-order"
+ "symbol-z-order",
+ "symbol-sort-key"
]
},
{
@@ -128,6 +138,7 @@
"text-justify",
"text-anchor",
"text-max-angle",
+ "text-writing-mode",
"text-rotate",
"text-keep-upright",
"text-transform",