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