This commit is contained in:
Tim
2024-04-17 00:48:23 -04:00
parent a0d1772254
commit 67e742e42d
2 changed files with 2 additions and 4 deletions

View File

@@ -262,9 +262,9 @@ export class Shape {
onProps(props) { // the display properties of an existing shape were changed
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})
else if (props.linecolor && props.linecolor !== this.model.color)
else if (props.linecolor && props.linecolor !== this.tvProps.linecolor)
this.updateModel({color:props.linecolor})
}

View File

@@ -261,7 +261,6 @@ function makeModel(index) {
const ws = weights.value
const w = ws[index]
const alloc = props.builder.allocation * ws[index];
console.log('makeModel', index, ws, w, alloc)
const result = {
color: color.value,
allocation: alloc,
@@ -270,7 +269,6 @@ function makeModel(index) {
amountSymbol: amountSymbol.value,
}
props.setModelValue(result, values.value[index])
console.log('made model', result)
return result
}