UNPKG

2.28 kBTypeScriptView Raw
1import "source-map-support/register";
2import { PvjsonEntity, GPMLElement, Pathway, PathwayStarter, PvjsonEntitiesById } from "./gpml2pvjson";
3import { GraphIdManager } from "./GraphIdManager";
4export declare type GPML_VALUE_SIMPLE = string | number;
5export declare type GPML_VALUE_UP_TO_OBJECT = GPML_VALUE_SIMPLE | Record<string, GPML_VALUE_SIMPLE>;
6export declare type GPML_VALUE_UP_TO_SUB_OBJECT = GPML_VALUE_UP_TO_OBJECT | Record<string, GPML_VALUE_UP_TO_OBJECT>;
7export declare type GPML_VALUE = GPML_VALUE_UP_TO_SUB_OBJECT | GPML_VALUE_UP_TO_SUB_OBJECT[];
8export declare class Processor {
9 output: {
10 pathway: Pathway | PathwayStarter;
11 entitiesById: PvjsonEntitiesById;
12 };
13 graphIdManager: GraphIdManager;
14 graphIdsByGraphRef: Record<string, string[]>;
15 containedGraphIdsByGroupGraphId: Record<string, string[]>;
16 containedGraphIdsByGroupGroupId: Record<string, string[]>;
17 promisedGraphIdByGroupId: Record<string, Promise<string>>;
18 groupIdToGraphIdStream: Highland.Stream<[string, string]>;
19 promisedGPMLElementByGraphId: Record<string, Promise<GPMLElement>>;
20 gpmlElementStream: Highland.Stream<GPMLElement>;
21 promisedPvjsonEntityLatestByGraphId: Record<string, Promise<PvjsonEntity>>;
22 pvjsonEntityLatestStream: Highland.Stream<PvjsonEntity>;
23 graphIdToZIndex: Record<string, number>;
24 KeyMappings: Record<string, any>;
25 KeyValueConverters: Record<string, any>;
26 ValueMappings: Record<string, any>;
27 ValueConverters: Record<string, any>;
28 constructor(KeyMappings: any, KeyValueConverters: any, ValueMappings: any, ValueConverters: any);
29 private ensureGraphIdExists;
30 fillInGPMLPropertiesFromParent: any;
31 getPvjsonEntityLatestByGraphId: (graphId: any) => Promise<PvjsonEntity>;
32 getGPMLElementByGraphId: (GraphId: any) => Promise<Record<string, any>>;
33 preprocessGPMLElement: (gpmlElement: Record<string, any>) => Record<string, any>;
34 processGPMLAndPropertiesAndType: any;
35 processProperties: any;
36 processPropertiesAndType: any;
37 private processType;
38 setPvjsonEntity: (pvjsonEntity: any) => void;
39 getGPMLKeyAsJSFunctionName: (gpmlKey: string) => string;
40 getPvjsonValue: (gpmlElement: any, gpmlKey: string, gpmlValue: GPML_VALUE) => any;
41 processKV: any;
42}