Skip to content

Commit 71e487d

Browse files
committed
Add historisis to savePoints, remove old offset-y prop
1 parent cc6e989 commit 71e487d

File tree

3 files changed

+9
-8
lines changed
  • docs.openc3.com/static/img/calendar
  • openc3-cosmos-init/plugins/packages

3 files changed

+9
-8
lines changed
345 KB
Loading

openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<v-tooltip
6767
:key="`${item.name}-${isPinned(item.name)}`"
6868
:open-delay="600"
69-
bottom
69+
location="bottom"
7070
>
7171
<template #activator="{ props }">
7272
<v-icon
@@ -97,7 +97,7 @@
9797
/>
9898
</template>
9999
<template #footer.prepend>
100-
<v-tooltip right close-delay="2000">
100+
<v-tooltip location="right" close-delay="2000">
101101
<template #activator="{ props }">
102102
<v-icon v-bind="props" class="info-tooltip">
103103
mdi-information-variant-circle
@@ -171,7 +171,7 @@
171171
:config-key="configKey"
172172
@success="saveConfiguration"
173173
/>
174-
<v-menu v-model="contextMenuShown" :target="[x, y]" absolute offset-y>
174+
<v-menu v-model="contextMenuShown" :target="[x, y]" absolute>
175175
<v-list>
176176
<v-list-item
177177
v-for="(item, index) in contextMenuOptions"

openc3-cosmos-init/plugins/packages/openc3-vue-common/src/components/Graph.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
/>
191191
</v-row>
192192
<v-row class="my-3">
193-
<v-textarea readonly rows="8" :value="error" />
193+
<v-textarea readonly rows="8" :model-value="error" />
194194
</v-row>
195195
<v-row>
196196
<v-btn block @click="clearErrors"> Clear </v-btn>
@@ -204,7 +204,6 @@
204204
v-model="editGraphMenu"
205205
:target="[editGraphMenuX, editGraphMenuY]"
206206
absolute
207-
offset-y
208207
>
209208
<v-list>
210209
<v-list-item @click="editGraph = true">
@@ -232,7 +231,6 @@
232231
v-model="itemMenu"
233232
:target="[itemMenuX, itemMenuY]"
234233
absolute
235-
offset-y
236234
>
237235
<v-list nav density="compact">
238236
<v-list-subheader>
@@ -267,7 +265,6 @@
267265
v-model="legendMenu"
268266
:target="[legendMenuX, legendMenuY]"
269267
absolute
270-
offset-y
271268
>
272269
<v-list>
273270
<v-list-item @click="moveLegend('top')">
@@ -1786,7 +1783,11 @@ export default {
17861783
}
17871784
17881785
// Enforce pointsSaved limit - remove oldest data points if exceeded
1789-
if (this.pointsSaved > 0 && this.data[0].length > this.pointsSaved) {
1786+
// Add 300 point buffer to avoid removing points too often
1787+
if (
1788+
this.pointsSaved > 0 &&
1789+
this.data[0].length > this.pointsSaved + 300
1790+
) {
17901791
const pointsToRemove = this.data[0].length - this.pointsSaved
17911792
for (let j = 0; j < this.data.length; j++) {
17921793
this.data[j].splice(0, pointsToRemove)

0 commit comments

Comments
 (0)