bugfixes
This commit is contained in:
@@ -262,9 +262,9 @@ export class Shape {
|
|||||||
|
|
||||||
onProps(props) { // the display properties of an existing shape were changed
|
onProps(props) { // the display properties of an existing shape were changed
|
||||||
console.log('shape onProps', this.model, props)
|
console.log('shape onProps', this.model, props)
|
||||||
if (props.textcolor && props.textcolor !== this.model.color)
|
if (props.textcolor && props.textcolor !== this.tvProps.textcolor)
|
||||||
this.updateModel({color:props.textcolor})
|
this.updateModel({color:props.textcolor})
|
||||||
else if (props.linecolor && props.linecolor !== this.model.color)
|
else if (props.linecolor && props.linecolor !== this.tvProps.linecolor)
|
||||||
this.updateModel({color:props.linecolor})
|
this.updateModel({color:props.linecolor})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -261,7 +261,6 @@ function makeModel(index) {
|
|||||||
const ws = weights.value
|
const ws = weights.value
|
||||||
const w = ws[index]
|
const w = ws[index]
|
||||||
const alloc = props.builder.allocation * ws[index];
|
const alloc = props.builder.allocation * ws[index];
|
||||||
console.log('makeModel', index, ws, w, alloc)
|
|
||||||
const result = {
|
const result = {
|
||||||
color: color.value,
|
color: color.value,
|
||||||
allocation: alloc,
|
allocation: alloc,
|
||||||
@@ -270,7 +269,6 @@ function makeModel(index) {
|
|||||||
amountSymbol: amountSymbol.value,
|
amountSymbol: amountSymbol.value,
|
||||||
}
|
}
|
||||||
props.setModelValue(result, values.value[index])
|
props.setModelValue(result, values.value[index])
|
||||||
console.log('made model', result)
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user