mirror of https://github.com/buster-so/buster.git
Update registry
This commit is contained in:
parent
c505374ce9
commit
0072044595
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@buster/ui-components",
|
||||
"version": "1.0.0",
|
||||
"version": "0.0.1",
|
||||
"description": "Modern, tree-shakeable UI component library for Buster",
|
||||
"type": "module",
|
||||
"sideEffects": ["**/*.css", "**/styles/*"],
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
import { truncateText } from '@/lib/text';
|
||||
import { isServer } from '@/lib/window';
|
||||
import { DEFAULT_CHART_THEME } from '@buster/server-shared/metrics';
|
||||
import { Chart as ChartJS } from 'chart.js';
|
||||
import {
|
||||
ArcElement,
|
||||
BarController,
|
||||
BarElement,
|
||||
BubbleController,
|
||||
CategoryScale,
|
||||
Chart as ChartJS,
|
||||
Colors,
|
||||
DoughnutController,
|
||||
Legend,
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
DEFAULT_COLUMN_LABEL_FORMAT,
|
||||
DEFAULT_COLUMN_SETTINGS,
|
||||
} from '@buster/server-shared/metrics';
|
||||
import { Chart, Filler, type Scale, type ScriptableContext } from 'chart.js';
|
||||
import { Chart as ChartJS, Filler, type Scale, type ScriptableContext } from 'chart.js';
|
||||
import type { DatasetOption } from '../../../chartHooks';
|
||||
import { formatLabelForDataset } from '../../../commonHelpers';
|
||||
import type { ChartProps } from '../../core';
|
||||
|
@ -17,7 +17,7 @@ import { createTrendlineOnSeries } from './createTrendlines';
|
|||
import type { SeriesBuilderProps } from './interfaces';
|
||||
import type { LabelBuilderProps } from './useSeriesOptions';
|
||||
|
||||
Chart.register(Filler);
|
||||
ChartJS.register(Filler); // Removed to reduce bundle size
|
||||
|
||||
const HOVER_RADIUS_MULTIPLIER = 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue