skew flipping improvements
This commit is contained in:
@@ -266,7 +266,7 @@ function drawingEventWorker() {
|
||||
}
|
||||
|
||||
function doHandleDrawingEvent(id, event) {
|
||||
console.log('drawing event', id, event)
|
||||
// console.log('drawing event', id, event)
|
||||
let shape
|
||||
if (event==='remove')
|
||||
shape = null
|
||||
|
||||
@@ -93,7 +93,7 @@ export class Shape {
|
||||
//
|
||||
|
||||
setModel(model) {
|
||||
console.log('shape setModel', model)
|
||||
// console.log('shape setModel', model)
|
||||
|
||||
if (model.color)
|
||||
this.model.color = model.color
|
||||
@@ -261,7 +261,7 @@ export class Shape {
|
||||
}
|
||||
|
||||
onProps(props) { // the display properties of an existing shape were changed
|
||||
console.log('shape onProps', this.model, props)
|
||||
if (this.debug) console.log('shape onProps', this.model, props)
|
||||
if (props.textcolor && props.textcolor !== this.tvProps.textcolor)
|
||||
this.updateModel({color:props.textcolor})
|
||||
else if (props.linecolor && props.linecolor !== this.tvProps.linecolor)
|
||||
|
||||
Reference in New Issue
Block a user