From 5d47fe7db31fcfdfaef1cd1ed269b883cc6e7f48 Mon Sep 17 00:00:00 2001 From: Cody Hansen Date: Thu, 21 Dec 2023 06:07:06 -1000 Subject: [PATCH] Initial pass at adding a toggle to show mode changes as a line chart (#1025) * Initial pass at adding a toggle to show mode changes as a line chart * Removed unused categorical checker and an older comment * Moved state mode changes out of LayerXRange and into LayerLine * Added the new property to the ui-view schema * Changed view property to show as line plot, fixed an issue with tooltips and showing variants * Added the separator back and fixed the resizing issue for the axis label * Added totalWidth sum back and fixed more issues with latest merge * Fixed an issue where multiple axis were not being shown * Fixed another issue when drawing multiple xRange layers inside of a single row * Removed link between xrange layer and axis * Fixed an issue with only showing the first xrange axis label --- src/components/timeline/LayerLine.svelte | 75 ++++++++++--- src/components/timeline/LayerXRange.svelte | 1 + src/components/timeline/Row.svelte | 56 +++++++--- src/components/timeline/RowYAxes.svelte | 101 +++++++++++++----- .../form/TimelineEditorLayerSettings.svelte | 11 ++ src/schemas/ui-view-schema.json | 3 + src/types/timeline.ts | 1 + src/utilities/generic.ts | 17 ++- src/utilities/timeline.ts | 19 +++- 9 files changed, 226 insertions(+), 58 deletions(-) diff --git a/src/components/timeline/LayerLine.svelte b/src/components/timeline/LayerLine.svelte index 0e05edb2c3..dd407fd110 100644 --- a/src/components/timeline/LayerLine.svelte +++ b/src/components/timeline/LayerLine.svelte @@ -2,12 +2,13 @@ diff --git a/src/components/timeline/form/TimelineEditorLayerSettings.svelte b/src/components/timeline/form/TimelineEditorLayerSettings.svelte index 6c5607a62a..b724a2444b 100644 --- a/src/components/timeline/form/TimelineEditorLayerSettings.svelte +++ b/src/components/timeline/form/TimelineEditorLayerSettings.svelte @@ -159,6 +159,17 @@ on:input={onInput} /> + {/if}