@formant/ava
Version:
A framework for automated visual analytics.
11 lines (10 loc) • 771 B
TypeScript
import { CHART_IDS } from '../../ckb';
import type { ScoringResultForRule } from '../types';
import type { ChartKnowledge, ChartKnowledgeBase } from '../../ckb';
import type { BasicDataPropertyForAdvice, Info, RuleModule } from './types';
export declare function compare(f1: any, f2: any): 0 | 1 | -1;
export declare function verifyDataProps(dataPre: ChartKnowledge['dataPres'][number], dataProps: BasicDataPropertyForAdvice[]): boolean;
export declare function isUndefined(value: any): boolean;
declare type ChartID = (typeof CHART_IDS)[number];
export declare const computeScore: (chartType: ChartID | string, chartWIKI: ChartKnowledgeBase, ruleBase: Record<string, RuleModule>, ruleType: 'HARD' | 'SOFT', info: Info, log: ScoringResultForRule[]) => number;
export {};