@thi.ng/fuzzy-viz
Version:
Visualization, instrumentation & introspection utils for @thi.ng/fuzzy
22 lines • 843 B
TypeScript
import type { LVar } from "@thi.ng/fuzzy";
import type { VizualizeVarOpts } from "./api.js";
/**
* Takes an [`LVar`](https://docs.thi.ng/umbrella/fuzzy/interfaces/LVar.html)
* and visualization options. Evaluates all of the var's fuzzy sets in the var's
* value domain and visualizes them as polygons. Returns a
* [thi.ng/hiccup-canvas](https://thi.ng/thi.ng/hiccup-canvas) compatible shape
* component tree.
*
* @param var -
* @param opts -
*/
export declare const varToHiccup: ({ domain: [min, max], terms }: LVar<any>, opts?: Partial<VizualizeVarOpts>) => any[];
/**
* Similar to {@link varToHiccup}, but then also serializes the result to an
* actual SVG string.
*
* @param $var
* @param opts -
*/
export declare const varToSvg: ($var: LVar<any>, opts: Partial<VizualizeVarOpts>) => string;
//# sourceMappingURL=var.d.ts.map