bugfix
This commit is contained in:
@@ -279,9 +279,9 @@ export class Shape {
|
||||
|
||||
onProps(props) { // the display properties of an existing shape were changed
|
||||
if (this.debug) console.log('shape onProps', this.model, props)
|
||||
if (props.textcolor && props.textcolor !== this.tvProps.textcolor)
|
||||
if (props.textcolor && typeof props.textcolor !== 'object' && props.textcolor !== this.tvProps.textcolor)
|
||||
this.updateModel({color:props.textcolor})
|
||||
else if (props.linecolor && props.linecolor !== this.tvProps.linecolor)
|
||||
else if (props.linecolor && typeof props.linecolor !== 'object' && props.linecolor !== this.tvProps.linecolor)
|
||||
this.updateModel({color:props.linecolor})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user