ag-charts-community
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
57 lines (56 loc) • 3.69 kB
TypeScript
import { type PlainObject } from 'ag-charts-core';
import type { PaletteType } from './coreModulesTypes';
export interface VertexInterface {
}
export interface OptionsGraphInterface {
readonly palette: PlainObject;
readonly paletteType: PaletteType;
addEdge(from: VertexInterface, to: VertexInterface, edge?: string): void;
addVertex(value: unknown): VertexInterface;
dangerouslyGetUserOption(path: Array<string>): unknown;
findNeighbour(vertex: VertexInterface, edge: string): unknown;
findNeighbourValue(vertex: VertexInterface, edge: string): unknown;
findNeighbourWithValue(vertex: VertexInterface, value: unknown, edge?: string): VertexInterface | undefined;
findVertexAtPath(path: Array<string>): VertexInterface | undefined;
getCachedValue(path: Array<string>, key: string): unknown;
getResolvedPath(path: Array<string>): unknown;
getParamValue(path: string): unknown;
getPathArray(vertex: VertexInterface): Array<string>;
getVertexValue(vertex: VertexInterface): unknown;
graftAndResolveOrphan(context: VertexInterface, branch: VertexInterface): unknown;
graftAndResolveOrphanValue(context: VertexInterface, path: string, ontoObject: unknown, value: unknown, edgeValue?: string): unknown;
graftConfig(target: VertexInterface, configPathArray: Array<string>, ignorePaths: Set<string>): void;
graftObject(target: VertexInterface, object: PlainObject, overridesPathArrays?: Array<Array<string> | undefined>, edgeValue?: string): void;
graftValue(target: VertexInterface, path: string, ontoObject: unknown, value: unknown, edgeValue?: string): void;
hasThemeOverride(path: Array<string>): boolean;
hasUserOption(path: Array<string>): boolean;
neighboursWithEdgeValue(vertex: VertexInterface, edge: string): Array<VertexInterface> | undefined;
prune(vertex: VertexInterface, edges: Array<string>): void;
removeEdges(vertex: VertexInterface, edge: string): void;
resolveValue$1(path: Array<string>): unknown;
resolveVertexValue(vertex: VertexInterface, valueVertex: VertexInterface): unknown;
setResolveFresh(fresh: boolean): void;
setCachedValue(path: Array<string>, key: string, value: unknown): void;
}
export declare const PATH_EDGE = "path";
export declare const PATH_ARRAY_EDGE = "pathArray";
export declare const DEFAULTS_EDGE = "default";
export declare const OVERRIDES_EDGE = "override";
export declare const USER_OPTIONS_EDGE = "user";
export declare const USER_PARTIAL_OPTIONS_EDGE = "userPartial";
export declare const OPERATION_EDGE = "operation";
export declare const OPERATION_VALUE_EDGE = "operationValue";
export declare const DEPENDENCY_EDGE = "dependency";
export declare const AUTO_ENABLE_EDGE = "autoEnable";
export declare const AUTO_ENABLE_VALUE_EDGE = "autoEnableValue";
export declare const PRUNE_EDGE = "prune";
export declare const CHILDREN_SOURCE_EDGE = "childrenSource";
export declare function isRatio(value: unknown): value is number;
export declare function hasPathSafe(object: PlainObject, path: string[]): boolean;
export declare function getPathSafe(object: PlainObject, path: string[]): unknown;
export declare function setPathSafe(object: PlainObject, path: (string | number)[], value: unknown): void;
export declare function getPathLastIndexIndex(pathArray: Array<string>, offset?: number): number;
export declare function getPathLastIndex(pathArray: Array<string>, offset?: number): number;
export declare function resolvePath(currentPath: string[], path: string, variables?: PlainObject): string[] | typeof UNRESOLVABLE_PATH;
export declare const UNRESOLVABLE_PATH: unique symbol;
export declare const RESOLVED_TO_BRANCH: unique symbol;