This commit is contained in:
tim
2024-10-22 03:42:08 -04:00
parent 82fccc1be3
commit d33eca6931
12 changed files with 101 additions and 40 deletions

View File

@@ -180,8 +180,10 @@ const endpoints = computed({
}
})
const alignTimes = ref(true)
const time1A = computed({
get() { return _endpoints.value[0] === null ? 0 : _endpoints.value[0][0] },
get() { return _endpoints.value[0] === null ? null : _endpoints.value[0][0] },
set(v) {
const flatline0 = _endpoints.value[0];
update(
@@ -203,7 +205,7 @@ const price1A = computed({
})
const time1B = computed({
get() { return _endpoints.value[0] === null ? 0 : _endpoints.value[0][2] },
get() { return _endpoints.value[0] === null ? null : _endpoints.value[0][2] },
set(v) {
const flatline0 = _endpoints.value[0];
update(
@@ -225,7 +227,7 @@ const price1B = computed({
})
const time2A = computed({
get() { return _endpoints.value[1] === null ? 0 : _endpoints.value[1][0] },
get() { return _endpoints.value[1] === null ? null : _endpoints.value[1][0] },
set(v) {
const flatline = _endpoints.value[1];
update(
@@ -247,7 +249,7 @@ const price2A = computed({
})
const time2B = computed({
get() { return _endpoints.value[1] === null ? 0 : _endpoints.value[1][2] },
get() { return _endpoints.value[1] === null ? null : _endpoints.value[1][2] },
set(v) {
const flatline = _endpoints.value[1];
update(
@@ -288,7 +290,7 @@ function setShapes(a,b) {
}
const _extendLeft = ref(false)
const _extendLeft = ref(true)
const extendLeft = computed({
get() {return _extendLeft.value},
set(v) {
@@ -304,7 +306,7 @@ const extendLeft = computed({
})
const _extendRight = ref(false)
const _extendRight = ref(true)
const extendRight = computed({
get() {return _extendRight.value},
set(v) {