|
165 | 165 | :title="`Change ${run.isLiveRun ? 'live run' : 'run'} colour`" |
166 | 166 | @click="onToggleRunColorPopover(index, $event)" |
167 | 167 | /> |
168 | | - <Popover :ref="(element: any) => interactiveRunColorPopoverRefs[index] = element as unknown as InstanceType<typeof Popover> ?? undefined" |
| 168 | + <Popover :ref="(element: any) => interactiveRunColorPopoverRefs[index] = element as unknown as vue.ComponentPublicInstance<typeof Popover> ?? undefined" |
169 | 169 | v-if="interactiveRunColorPopoverIndex === index" |
170 | 170 | > |
171 | 171 | <div class="flex gap-2"> |
|
212 | 212 | <IssuesView v-show="interactiveInstanceIssues.length" class="mt-4 mr-4" style="height: calc(100% - 2rem);" :issues="interactiveInstanceIssues" /> |
213 | 213 | <GraphPanelWidget v-show="!interactiveInstanceIssues.length" |
214 | 214 | v-for="(_plot, index) in interactiveUiJson.output.plots" |
215 | | - :ref="(element: any) => interactiveGraphPanelRefs[index] = element as unknown as InstanceType<typeof GraphPanelWidget> ?? undefined" |
| 215 | + :ref="(element: any) => interactiveGraphPanelRefs[index] = element as unknown as vue.ComponentPublicInstance<typeof GraphPanelWidget> ?? undefined" |
216 | 216 | :key="`plot_${index}`" |
217 | 217 | class="w-full min-h-0" |
218 | 218 | :margins="interactiveCompMargins" |
@@ -543,8 +543,12 @@ const interactiveRuns = vue.ref<ISimulationRun[]>([ |
543 | 543 | } |
544 | 544 | ]); |
545 | 545 | const interactiveRunColorPopoverIndex = vue.ref<number>(-1); |
546 | | -const interactiveRunColorPopoverRefs = vue.ref<Record<number, InstanceType<typeof Popover> | undefined>>({}); |
547 | | -const interactiveGraphPanelRefs = vue.ref<Record<number, InstanceType<typeof GraphPanelWidget> | undefined>>({}); |
| 546 | +const interactiveRunColorPopoverRefs = vue.ref<Record<number, vue.ComponentPublicInstance<typeof Popover> | undefined>>( |
| 547 | + {} |
| 548 | +); |
| 549 | +const interactiveGraphPanelRefs = vue.ref< |
| 550 | + Record<number, vue.ComponentPublicInstance<typeof GraphPanelWidget> | undefined> |
| 551 | +>({}); |
548 | 552 | const interactiveCompData = vue.computed(() => { |
549 | 553 | // Combine the live data with the data from the tracked runs. |
550 | 554 |
|
|
0 commit comments