UNPKG

prong-editor

Version:

Prong (PRojectional jsON Gui) is an editor framework for creating bespoke in-browser editors for JSON-based domain-specific languages (such as [Vega](https://vega.github.io/vega/), [Vega-Lite](https://vega.github.io/vega-lite/), [Tracery](https://tracery.

11 lines (10 loc) 349 B
import { Projection } from "../lib/projections"; export declare type SchemaMap = Record<string, any>; export default function Editor(props: { onChange: (code: string) => void; code: string; schema: any; projections?: Projection[]; height?: string; onTargetNodeChanged?: (newNode: any, oldNode: any) => void; }): JSX.Element;