From d415dbedc2a6f62259ad8a6b885ae1b0d47b1122 Mon Sep 17 00:00:00 2001 From: goodmice Date: Mon, 18 Jul 2022 18:07:37 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D1=91=D0=BD=20?= =?UTF-8?q?=D1=80=D0=B5=D0=BD=D0=B4=D0=B5=D1=80=20=D0=B0=D1=80=D1=85=D0=B8?= =?UTF-8?q?=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Telemetry/Archive/index.jsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pages/Telemetry/Archive/index.jsx b/src/pages/Telemetry/Archive/index.jsx index 4608520..3e874e2 100755 --- a/src/pages/Telemetry/Archive/index.jsx +++ b/src/pages/Telemetry/Archive/index.jsx @@ -1,6 +1,7 @@ /* eslint-disable react-hooks/exhaustive-deps */ import { useState, useEffect, memo, useCallback, useMemo } from 'react' import { useSearchParams } from 'react-router-dom' +import { Select } from 'antd' import { useIdWell } from '@asb/context' import { Flex } from '@components/Grid' @@ -14,7 +15,7 @@ import { formatDate, range, wrapPrivateComponent } from '@utils' import { TelemetryDataSaubService } from '@api' import { chartGroups, normalizeData } from '../TelemetryView' -import { Select } from 'antd' +import cursorRender from '../TelemetryView/cursorRender' const DATA_COUNT = 2048 // Колличество точек на подгрузку графика const ADDITIVE_PAGES = 2 // Дополнительные данные для графиков @@ -248,7 +249,13 @@ const Archive = memo(() => { visible: true, format: (d) => formatDate(d) }} - plugins={{ menu: { enabled: false }}} + plugins={{ + menu: { enabled: false }, + cursor: { + width: 200, + render: cursorRender, + } + }} height={'76vh'} onWheel={onGraphWheel} />