Added expression support for filters.

This commit is contained in:
orangemug
2020-02-09 15:08:24 +00:00
parent be36eec93d
commit b539644b2b
7 changed files with 248 additions and 109 deletions

View File

@@ -318,7 +318,7 @@ export default class App extends React.Component {
onStyleChanged = (newStyle, save=true) => {
const errors = validate(newStyle, latest)
const errors = validate(newStyle, latest) || [];
const mappedErrors = errors.map(error => {
const layerMatch = error.message.match(/layers\[(\d+)\]\.(?:(\S+)\.)?(\S+): (.*)/);
if (layerMatch) {