cabana: signal changes propagate to graph
parent
bfee32615c
commit
96029a846b
|
@ -259,6 +259,7 @@ export default class AddSignals extends Component {
|
||||||
// see onBitDoubleClick
|
// see onBitDoubleClick
|
||||||
this.createSignalIfNotExtendingOne(dragStartBit, dragEndBit);
|
this.createSignalIfNotExtendingOne(dragStartBit, dragEndBit);
|
||||||
}
|
}
|
||||||
|
this.propagateUpSignalChange();
|
||||||
this.resetDragState();
|
this.resetDragState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,8 +58,10 @@ export default class CanGraph extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nextProps.data.length != this.props.data.length
|
const dataChanged = nextProps.data.length != this.props.data.length
|
||||||
|| !(nextProps.signalSpec.equals(this.props.signalSpec));
|
|| nextProps.data[0].y != nextProps.data[0].y
|
||||||
|
|| !(nextProps.signalSpec.equals(this.props.signalSpec));
|
||||||
|
return dataChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
onNewView(view) {
|
onNewView(view) {
|
||||||
|
|
Loading…
Reference in New Issue