@ndbx/runtime
Version:
The `@ndbx/runtime` package provides a runtime environment to embed NodeBox visualizations directly into React applications. NodeBox is a powerful tool for creating interactive and generative visualizations, and this runtime allows you to integrate those
13 lines (12 loc) • 656 B
TypeScript
import { Context, Shape, Bounds } from "@ndbx/g";
import { ReactSVGElement } from "react";
import { Spec } from "vega";
import { Transform } from "@ndbx/g";
interface PivotShape extends Shape {
"data-pivot-mode"?: string;
}
export declare function renderShape(shape: Shape, context?: Context, key?: string | number, showPoints?: boolean, parentTransform?: Transform): ReactSVGElement;
export declare function dimensionForRenderShape(shape: PivotShape, useMatrix?: Boolean, cumulBounds?: Bounds): Bounds;
export declare function renderVegaSpec(spec: Spec): Shape;
export declare function renderDefs(context: Context): ReactSVGElement | null;
export {};