import { LayoutPosition } from '../../index.esm';
-export const left: LayoutPosition = 'left';
-export const right: LayoutPosition = 'right';
-export const top: LayoutPosition = 'top';
-export const bottom: LayoutPosition = 'bottom';
-export const center: LayoutPosition = 'center';
-export const axis: LayoutPosition = { x: 10 };
+const left: LayoutPosition = 'left';
+const right: LayoutPosition = 'right';
+const top: LayoutPosition = 'top';
+const bottom: LayoutPosition = 'bottom';
+const center: LayoutPosition = 'center';
+const axis: LayoutPosition = { x: 10 };
// @ts-expect-error invalid position
-export const invalid: LayoutPosition = 'none';
+const invalid: LayoutPosition = 'none';
import { Chart } from '../index.esm';
-export const chart = new Chart('test', {
+const chart = new Chart('test', {
type: 'bar',
data: {
labels: ['a'],
testD?: Scriptable<number, ScriptableContext<ChartType>>
}
-export const testImpl: test = {
+const testImpl: test = {
pie: (ctx) => ctx.parsed,
line: (ctx) => ctx.parsed.x + ctx.parsed.y,
testA: (ctx) => ctx.parsed,
chart: Chart;
}
-export const ctx: Context = {
+const ctx: Context = {
chart: chart
};
// @ts-expect-error Type '{ x: number; y: number; }[]' is not assignable to type 'number[]'.
-export const dataArray: number[] = chart.data.datasets[0].data;
+const dataArray: number[] = chart.data.datasets[0].data;