shape refactor bugfixes
This commit is contained in:
@@ -4,15 +4,14 @@
|
||||
<v-toolbar dense :color="faintColor" elevation="3">
|
||||
<span :style="colorStyle" style="width:1em;height:100%"> </span>
|
||||
<v-toolbar-title>{{ rungs === 1 ? 'Limit' : 'Ladder' }}</v-toolbar-title>
|
||||
<!-- <v-text-field type="number" v-model="lower"-->
|
||||
<!-- density="compact" hide-details single-line class="justify-self-start" variant="outlined"-->
|
||||
<!-- :color="color" :base-color="color" min="0"-->
|
||||
<!-- />-->
|
||||
<!-- <v-text-field type="number" v-model="rungs"-->
|
||||
<!-- density="compact" hide-details single-line class="justify-self-start" variant="outlined"-->
|
||||
<!-- :color="color" :base-color="color" min="1"-->
|
||||
<!-- />-->
|
||||
{{JSON.stringify(builder)}}
|
||||
<v-text-field type="number" v-model="lower"
|
||||
density="compact" hide-details single-line class="justify-self-start" variant="outlined"
|
||||
:color="color" :base-color="color" min="0"
|
||||
/>
|
||||
<v-text-field type="number" v-model="rungs"
|
||||
density="compact" hide-details single-line class="justify-self-start" variant="outlined"
|
||||
:color="color" :base-color="color" min="1"
|
||||
/>
|
||||
<v-menu>
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn variant="plain" v-bind="props" icon="mdi-dots-vertical"/>
|
||||
@@ -43,7 +42,7 @@ const co = useChartOrderStore()
|
||||
const props = defineProps(['builder'])
|
||||
|
||||
|
||||
const shape = new HLine(props.builder)
|
||||
const shape = new HLine(props.builder, 'lower', 'color')
|
||||
shape.createOrDraw()
|
||||
|
||||
|
||||
@@ -61,6 +60,7 @@ builderDefaults(props.builder, {
|
||||
lower: null,
|
||||
upper: null,
|
||||
rungs: 1,
|
||||
color: null,
|
||||
})
|
||||
|
||||
|
||||
@@ -206,7 +206,8 @@ const limitLineCallbacks = {
|
||||
console.log('limit onMove')
|
||||
},
|
||||
onProps(shapeId, properties) {
|
||||
props.builder.color = properties.linecolor
|
||||
console.log('limit onProps', properties, properties.linecolor)
|
||||
// props.builder.color = properties.linecolor
|
||||
},
|
||||
onDelete(shapeId) {
|
||||
deleteBuilder()
|
||||
|
||||
Reference in New Issue
Block a user