@adyen/lume-vue3
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -19,3 +19,3 @@ import { ComputedRef, PropType, Ref } from 'vue'; | ||
}; | ||
export declare function useBarMixin(data: Ref<InternalData>): { | ||
export declare function useBarMixin(data: Ref<InternalData>, labels: Ref<Array<string | number>>): { | ||
multiBarData: ComputedRef<InternalData<DatasetValueObject<number>>>; | ||
@@ -22,0 +22,0 @@ groupedData: ComputedRef<DatasetValueObject<number>[][]>; |
import { Ref } from 'vue'; | ||
import { Scale } from './scales'; | ||
import { Orientation } from '@/utils/constants'; | ||
import { DatasetValueObject, InternalData } from '@/types/dataset'; | ||
import { InternalData } from '@/types/dataset'; | ||
import { ChartOptions } from './options'; | ||
@@ -14,5 +14,5 @@ export interface AnchorAttributes { | ||
} | ||
export declare function useTooltipAnchors(anchorAttributeArray: Ref<Array<AnchorAttributes>>, options: Ref<ChartOptions>, xScale: Ref<Scale>, yScale: Ref<Scale>, orientation?: Ref<Orientation>, data?: Ref<InternalData>, chartType?: Ref<string>, labels?: Ref<Array<string>>): { | ||
export declare function useTooltipAnchors(anchorAttributeArray: Ref<Array<AnchorAttributes>>, options: Ref<ChartOptions>, xScale: Ref<Scale>, yScale: Ref<Scale>, labels?: Ref<Array<string | number>>, orientation?: Ref<Orientation>, data?: Ref<InternalData>, chartType?: Ref<string>): { | ||
shouldGenerateTooltipAnchors: import("vue").ComputedRef<boolean>; | ||
updateTooltipAnchorAttributes: (renderedData: InternalData<DatasetValueObject<number>>) => void; | ||
updateTooltipAnchorAttributes: (renderedData: InternalData<import("@/types/dataset").DatasetValueObject<number>>) => void; | ||
}; | ||
@@ -19,0 +19,0 @@ export declare function useTooltip(): { |
@@ -70,4 +70,11 @@ declare const DATASETS: { | ||
}; | ||
AnimalsMetIn2023WithEmptyLabels: { | ||
data: { | ||
values: number[]; | ||
label: string; | ||
}[]; | ||
labels: string[]; | ||
}; | ||
}; | ||
export default DATASETS; | ||
//# sourceMappingURL=base-data.d.ts.map |
@@ -101,2 +101,4 @@ export declare enum Colors { | ||
export declare const BAR_TYPES: Record<string, BarType>; | ||
export type ChartType = 'bar' | 'line' | 'alluvial' | 'sparkline'; | ||
export declare const CHART_TYPES: Record<string, ChartType>; | ||
export declare const NO_DATA = "No data"; | ||
@@ -103,0 +105,0 @@ export declare const BAR_HEIGHT = 20; |
@@ -103,2 +103,10 @@ import { Ref, Slots } from 'vue'; | ||
export declare const nanoid: (n?: number) => string; | ||
/** | ||
* Fills the rest of the array with null values if the input array is less than the passed length | ||
* @param inputArray The array to be processed | ||
* @param minimumOutputArrayLength Minimum length of the returned array | ||
* @returns If the input array length is lesser than the passed minimum length, then fills the reminder with null values | ||
* Otherwise returns the input array as it is. | ||
*/ | ||
export declare function fillArrayWithNullValues(inputArray: Array<number | DatasetValueObject>, minimumOutputArrayLength: number): any[]; | ||
//# sourceMappingURL=helpers.d.ts.map |
{ | ||
"name": "@adyen/lume-vue3", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Lume is a Vue data visualization component library, built with Typescript and D3.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1349568
10526