v-regexp
Version:
JavaScript Regular Expression Parser and Visualizer.
73 lines (72 loc) • 2.16 kB
TypeScript
import { PlotNodeParams, PlotParams } from '../types';
export declare function plot({ tree, x, y, theme }: PlotParams): {
items: any[];
width: number;
height: number;
x: number;
y: number;
lineInX: any;
lineOutX: any;
};
export declare function plotTree({ tree, x, y, theme }: PlotParams): {
items: any[];
width: number;
height: number;
x: number;
y: number;
lineInX: any;
lineOutX: any;
};
export declare const plotNode: {
startPoint: ({ x, y, theme }: PlotNodeParams) => import("../types").PointResult;
endPoint: ({ x, y, theme }: PlotNodeParams) => import("../types").PointResult;
empty: ({ x, y, theme }: PlotNodeParams) => {
items: import("../types").ElementHline[];
width: number;
height: number;
x: number;
y: number;
lineInX: number;
lineOutX: number;
};
exact: ({ node, x, y, theme }: PlotNodeParams) => import("../types").TextRectResult;
dot: ({ x, y, theme }: PlotNodeParams) => import("../types").TextRectResult;
backref: ({ node, x, y, theme }: PlotNodeParams) => import("../types").TextRectResult;
repeat: ({ node, x, y, theme }: PlotNodeParams) => any;
choice: ({ node, x, y, theme }: PlotNodeParams) => {
items: any[];
width: number;
height: number;
x: number;
y: number;
lineInX: number;
lineOutX: number;
};
charset: ({ node, x, y, theme }: PlotNodeParams) => import("../types").TextRectResult | {
items: any;
width: number;
height: number;
x: number;
y: number;
lineInX: number;
lineOutX: number;
};
group: ({ node, x, y, theme }: PlotNodeParams) => {
items: any[];
width: number;
height: number;
x: number;
y: number;
lineInX: any;
lineOutX: any;
};
assert: ({ node, x, y, theme }: PlotNodeParams) => import("../types").TextRectResult | {
items: any[];
width: number;
height: number;
x: number;
y: number;
lineInX: any;
lineOutX: any;
};
};