diff --git a/src/layers/editor.jsx b/src/layers/editor.jsx index 68d45bc0..a9a4ef65 100644 --- a/src/layers/editor.jsx +++ b/src/layers/editor.jsx @@ -82,6 +82,12 @@ export class LayerEditor extends React.Component { this.props.onLayerChanged(changedLayer) } + onFilterChanged(newValue) { + let layer = this.props.layer + const changedLayer = layer.set('filter', newValue) + this.props.onLayerChanged(changedLayer) + } + layerFromType(type) { if (type === "fill") { return console.log('filter changed', f)} + onChange={f => this.onFilterChanged(Immutable.fromJS(f))} /> {this.props.layer.get('type') !== 'background' &&