more diagonal work (unfinished)

This commit is contained in:
Tim
2024-05-04 21:05:12 -04:00
parent 171d6431ae
commit 95fd55e560
8 changed files with 92 additions and 51 deletions

View File

@@ -3,7 +3,6 @@
v-model="priceEndpoints" :mode="0" :flip="flipped"
:shape="HLine"
:get-model-value="getModelValue" :set-model-value="setModelValue"
:get-points-value="getPointsValue"
:set-values="setPrices" :set-weights="setWeights"
:std-width="stdWidth" :build-tranches="buildTranches">
<table>
@@ -193,7 +192,7 @@ function setWeights(ws) { weights.value = ws }
const color = computed(()=>props.builder.color ? props.builder.color : defaultColor)
const stdWidth = 2*co.meanRange
const stdWidth = computed(()=>2*co.meanRange)
function getModelValue(model) {
@@ -202,9 +201,6 @@ function getModelValue(model) {
return model.price
}
function getPointsValue(points) {
return points[0].price
}
function setModelValue(model, value) {
// console.log('setModelValue->', model.price, value)