| 1 |
import type { AnyObject } from '../types/basic.js'; |
| 2 |
import type { ChartMeta } from '../types/index.js'; |
| 3 |
import type { ResolverObjectKey, ResolverCache, ResolverProxy, DescriptorDefaults, Descriptor, ContextProxy } from './helpers.config.types.js'; |
| 4 |
export * from './helpers.config.types.js'; |
| 5 |
/** |
| 6 |
* Creates a Proxy for resolving raw values for options. |
| 7 |
* @param scopes - The option scopes to look for values, in resolution order |
| 8 |
* @param prefixes - The prefixes for values, in resolution order. |
| 9 |
* @param rootScopes - The root option scopes |
| 10 |
* @param fallback - Parent scopes fallback |
| 11 |
* @param getTarget - callback for getting the target for changed values |
| 12 |
* @returns Proxy |
| 13 |
* @private |
| 14 |
*/ |
| 15 |
export declare function _createResolver<T extends AnyObject[] = AnyObject[], R extends AnyObject[] = T>(scopes: T, prefixes?: string[], rootScopes?: R, fallback?: ResolverObjectKey, getTarget?: () => AnyObject): any; |
| 16 |
/** |
| 17 |
* Returns an Proxy for resolving option values with context. |
| 18 |
* @param proxy - The Proxy returned by `_createResolver` |
| 19 |
* @param context - Context object for scriptable/indexable options |
| 20 |
* @param subProxy - The proxy provided for scriptable options |
| 21 |
* @param descriptorDefaults - Defaults for descriptors |
| 22 |
* @private |
| 23 |
*/ |
| 24 |
export declare function _attachContext<T extends AnyObject[] = AnyObject[], R extends AnyObject[] = T>(proxy: ResolverProxy<T, R>, context: AnyObject, subProxy?: ResolverProxy<T, R>, descriptorDefaults?: DescriptorDefaults): ContextProxy<T, R>; |
| 25 |
/** |
| 26 |
* @private |
| 27 |
*/ |
| 28 |
export declare function _descriptors(proxy: ResolverCache, defaults?: DescriptorDefaults): Descriptor; |
| 29 |
export declare function _parseObjectDataRadialScale(meta: ChartMeta<'line' | 'scatter'>, data: AnyObject[], start: number, count: number): { |
| 30 |
r: unknown; |
| 31 |
}[]; |