mirror of
https://github.com/nasa/openmct.git
synced 2025-02-15 15:12:52 +00:00
add resize handles to time strip views
This commit is contained in:
parent
35feeec602
commit
a651ffc8f8
@ -77,10 +77,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import Container from '@/ui/layout/Container.js';
|
||||||
|
import Frame from '@/ui/layout/Frame.js';
|
||||||
import ResizeHandle from '@/ui/layout/ResizeHandle/ResizeHandle.vue';
|
import ResizeHandle from '@/ui/layout/ResizeHandle/ResizeHandle.vue';
|
||||||
|
|
||||||
import Container from '../utils/container.js';
|
|
||||||
import Frame from '../utils/frame.js';
|
|
||||||
import ContainerComponent from './ContainerComponent.vue';
|
import ContainerComponent from './ContainerComponent.vue';
|
||||||
import DropHint from './DropHint.vue';
|
import DropHint from './DropHint.vue';
|
||||||
|
|
||||||
|
@ -20,9 +20,10 @@
|
|||||||
* at runtime from the About dialog for additional information.
|
* at runtime from the About dialog for additional information.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
import Container from '@/ui/layout/Container.js';
|
||||||
|
|
||||||
import FlexibleLayoutViewProvider from './flexibleLayoutViewProvider.js';
|
import FlexibleLayoutViewProvider from './flexibleLayoutViewProvider.js';
|
||||||
import ToolBarProvider from './toolbarProvider.js';
|
import ToolBarProvider from './toolbarProvider.js';
|
||||||
import Container from './utils/container.js';
|
|
||||||
|
|
||||||
export default function plugin() {
|
export default function plugin() {
|
||||||
return function install(openmct) {
|
return function install(openmct) {
|
||||||
|
@ -41,13 +41,22 @@
|
|||||||
</SwimLane>
|
</SwimLane>
|
||||||
|
|
||||||
<div ref="contentHolder" class="c-timeline__objects">
|
<div ref="contentHolder" class="c-timeline__objects">
|
||||||
|
<template v-for="(item, index) in items" :key="item.keyString">
|
||||||
<TimelineObjectView
|
<TimelineObjectView
|
||||||
v-for="item in items"
|
|
||||||
:key="item.keyString"
|
|
||||||
class="c-timeline__content js-timeline__content"
|
class="c-timeline__content js-timeline__content"
|
||||||
:item="item"
|
:item="item"
|
||||||
:extended-lines-bus
|
:extended-lines-bus
|
||||||
/>
|
/>
|
||||||
|
<ResizeHandle
|
||||||
|
v-if="index !== items.length - 1"
|
||||||
|
:index="index"
|
||||||
|
drag-orientation="'vertical'"
|
||||||
|
:is-editing="isEditing"
|
||||||
|
@init-move="startContainerResizing"
|
||||||
|
@move="containerResizing"
|
||||||
|
@end-move="endContainerResizing"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ExtendedLinesOverlay
|
<ExtendedLinesOverlay
|
||||||
@ -66,6 +75,7 @@ import { useDragResizer } from 'utils/vue/useDragResizer.js';
|
|||||||
import { inject, provide } from 'vue';
|
import { inject, provide } from 'vue';
|
||||||
|
|
||||||
import SwimLane from '@/ui/components/swim-lane/SwimLane.vue';
|
import SwimLane from '@/ui/components/swim-lane/SwimLane.vue';
|
||||||
|
import ResizeHandle from '@/ui/layout/ResizeHandle/ResizeHandle.vue';
|
||||||
|
|
||||||
import TimelineAxis from '../../ui/components/TimeSystemAxis.vue';
|
import TimelineAxis from '../../ui/components/TimeSystemAxis.vue';
|
||||||
import { useAlignment } from '../../ui/composables/alignmentContext.js';
|
import { useAlignment } from '../../ui/composables/alignmentContext.js';
|
||||||
@ -85,6 +95,7 @@ const PLOT_ITEM_H_PX = 100;
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
ResizeHandle,
|
||||||
TimelineObjectView,
|
TimelineObjectView,
|
||||||
TimelineAxis,
|
TimelineAxis,
|
||||||
SwimLane,
|
SwimLane,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user