This commit is contained in:
Tim
2024-03-20 22:04:07 -04:00
parent 3d19e6e47c
commit 551363ccb5
3 changed files with 4 additions and 3 deletions

View File

@@ -296,12 +296,12 @@ function allocationText(weight) {
function adjustShapes() {
// this is where all the lines are created or adjusted
// console.log('adjustShapes()')
console.log('adjustShapes()')
const limits = prices.value
const colorStrings = colors.value
// line properties
const lps = weights.value.map((w)=>{return {text:allocationText(w), textcolor:color.value}})
const lps = weights.value.map((w)=>{return {text:allocationText(w), textcolor:color.value, showLabel: true}}) // todo make this label innate to HLine with allocation and amount set in the model
if( limits.length === 0 ) {
lineA.delete()
lineB.delete()