From d581e5b61a771ef8619a5bfbc84a6e337c7ca13f Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 21 Jan 2023 14:08:48 +1100 Subject: Move general utility funcs into util.ts --- src/components/TimeLine.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/components/TimeLine.vue') diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue index ab37342..a040233 100644 --- a/src/components/TimeLine.vue +++ b/src/components/TimeLine.vue @@ -88,11 +88,13 @@ import {ref, onMounted, onUnmounted, computed, watch, PropType, Ref} from 'vue'; import IconButton from './IconButton.vue'; import CloseIcon from './icon/CloseIcon.vue'; -import {WRITING_MODE_HORZ, MIN_DATE, MAX_DATE, MONTH_SCALE, DAY_SCALE, SCALES, MONTH_NAMES, MIN_CAL_DATE, - getDaysInMonth, HistDate, stepDate, getScaleRatio, getNumSubUnits, getUnitDiff, - getEventPrecision, dateToUnit, dateToScaleDate, - moduloPositive, TimelineState, HistEvent, getImagePath, - animateWithClass, getTextWidth} from '../lib'; +import {WRITING_MODE_HORZ, moduloPositive, animateWithClass, getTextWidth} from '../util'; +import { + getDaysInMonth, MIN_CAL_DATE, MONTH_NAMES, HistDate, HistEvent, getImagePath, + MIN_DATE, MAX_DATE, MONTH_SCALE, DAY_SCALE, SCALES, + stepDate, getScaleRatio, getNumSubUnits, getUnitDiff, getEventPrecision, dateToUnit, dateToScaleDate, + TimelineState, +} from '../lib'; import {useStore} from '../store'; import {RBTree} from '../rbtree'; -- cgit v1.2.3