mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-03 07:12:43 -08:00
Move js files back to hook
This commit is contained in:
1 parent
4bfd762622
commit
8f760d7953
12 files changed
+13
-13
No files matched your search
@@ -4,7 +4,7 @@ import {
|
||||
drawDashedPath,
|
||||
drawLine,
|
||||
drawSeries,
|
||||
} from './chart-drawing';
|
||||
} from '@/hooks/chart-drawing';
|
||||
import { ChartPopover, TOOLTIP_OFFSET } from './ChartPopover';
|
||||
import {
|
||||
flipTooltipLeft,
|
||||
@@ -12,8 +12,8 @@ import {
|
||||
relativeTimeTick,
|
||||
screenXToTimeSec,
|
||||
timeSecToScreenX,
|
||||
} from './time-axis';
|
||||
import { ChartSource } from './time-series';
|
||||
} from '@/hooks/time-axis';
|
||||
import { ChartSource } from '@/hooks/time-series';
|
||||
|
||||
const DEFAULT_LEFT_AXIS_WIDTH = 48;
|
||||
const RIGHT_AXIS_WIDTH = 40;
|
||||
|
||||
@@ -17,7 +17,7 @@ import { defaultDongleTelemetryConfig, useConfig } from '@/hooks/config';
|
||||
import {
|
||||
useTimeAxisTicks,
|
||||
WINDOW_OPTIONS,
|
||||
} from '@/components/commons/charts/time-axis';
|
||||
} from '@/hooks/time-axis';
|
||||
|
||||
import { GapEvent } from '@/hooks/telemetry-history';
|
||||
|
||||
|
||||
@@ -2,14 +2,14 @@ import classNames from 'classnames';
|
||||
import { memo, useEffect, useRef, useState } from 'react';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { GapEvent } from '@/hooks/telemetry-history';
|
||||
import { ChartRow } from '@/components/commons/charts/time-series';
|
||||
import { ChartRow } from '@/hooks/time-series';
|
||||
import { TOOLTIP_OFFSET } from '@/components/commons/charts/ChartPopover';
|
||||
import {
|
||||
flipTooltipLeft,
|
||||
relativeTimeTick,
|
||||
screenXToTimeSec,
|
||||
timeSecToScreenX,
|
||||
} from '@/components/commons/charts/time-axis';
|
||||
} from '@/hooks/time-axis';
|
||||
import {
|
||||
getGapColor,
|
||||
isGapEventActive,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { memo, useMemo } from 'react';
|
||||
import { GapEvent } from '@/hooks/telemetry-history';
|
||||
import { ChartRow, rowsSource } from '@/components/commons/charts/time-series';
|
||||
import { ChartRow, rowsSource } from '@/hooks/time-series';
|
||||
import {
|
||||
ChartAxis,
|
||||
ChartBand,
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
ChartRow,
|
||||
nearestIndex,
|
||||
rowsSource,
|
||||
} from '@/components/commons/charts/time-series';
|
||||
} from '@/hooks/time-series';
|
||||
import {
|
||||
getGapTextColor,
|
||||
isGapEventActive,
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
import {
|
||||
useTimeAxisTicks,
|
||||
WINDOW_OPTIONS,
|
||||
} from '@/components/commons/charts/time-axis';
|
||||
} from '@/hooks/time-axis';
|
||||
import {
|
||||
ChartSource,
|
||||
downsampleMinMax,
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
rowsSource,
|
||||
sourceNow,
|
||||
useLiveFrame,
|
||||
} from '@/components/commons/charts/time-series';
|
||||
} from '@/hooks/time-series';
|
||||
import { defaultTrackerGraphsConfig, useConfig } from '@/hooks/config';
|
||||
import {
|
||||
IMU_HISTORY_SEC,
|
||||
|
||||
File renamed without changes.
@@ -7,7 +7,7 @@ import {
|
||||
rowsSource,
|
||||
sourceNow,
|
||||
useLiveFrame,
|
||||
} from '@/components/commons/charts/time-series';
|
||||
} from './time-series';
|
||||
|
||||
export interface TrackerDisplayStat {
|
||||
rssi: number | null;
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
createSourceClock,
|
||||
observeSourceTime,
|
||||
SourceClock,
|
||||
} from '@/components/commons/charts/time-series';
|
||||
} from './time-series';
|
||||
|
||||
export interface GapEvent {
|
||||
t: number;
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -16,7 +16,7 @@ import {
|
||||
observeSourceTime,
|
||||
pushColumnRing,
|
||||
SourceClock,
|
||||
} from '@/components/commons/charts/time-series';
|
||||
} from './time-series';
|
||||
import { useWebsocketAPI } from './websocket-api';
|
||||
|
||||
export const IMU_KEYS = [
|
||||
|
||||
Reference in new issue
Block a user