You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
/**
|
|
* className suffix mapping for legend elements
|
|
* Used to generate prefixed classNames, e.g., classNamePrefix='g2-' generates 'g2-legend-{suffix}'
|
|
*
|
|
* @example
|
|
* import { CLASSNAME_SUFFIX_MAP, getLegendClassName } from './utils';
|
|
*
|
|
* const titleClassName = getLegendClassName(
|
|
* CLASS_NAMES.text.name,
|
|
* CLASSNAME_SUFFIX_MAP.title,
|
|
* 'g2-'
|
|
* );
|
|
* // Returns: 'title-text g2-legend-title'
|
|
*/
|
|
export declare const CLASSNAME_SUFFIX_MAP: {
|
|
readonly title: "title";
|
|
readonly item: "item";
|
|
readonly marker: "marker";
|
|
readonly label: "label";
|
|
readonly value: "value";
|
|
readonly focusIcon: "focus-icon";
|
|
readonly background: "background";
|
|
readonly ribbon: "ribbon";
|
|
readonly track: "track";
|
|
readonly selection: "selection";
|
|
readonly handle: "handle";
|
|
readonly handleMarker: "handle-marker";
|
|
readonly handleLabel: "handle-label";
|
|
readonly indicator: "indicator";
|
|
readonly prevBtn: "prev-btn";
|
|
readonly nextBtn: "next-btn";
|
|
readonly pageInfo: "page-info";
|
|
};
|
|
/**
|
|
* className suffix type
|
|
*/
|
|
export type ClassNameSuffix = keyof typeof CLASSNAME_SUFFIX_MAP;
|
|
|