UNPKG

13.9 kBTypeScriptView Raw
1/// <reference types="lodash" />
2import "source-map-support/register";
3import { PvjsonEntity, GPMLElement, Pathway, PathwayStarter, PvjsonEntitiesById } from "./gpml2pvjson";
4import { GraphIdManager } from "./GraphIdManager";
5export declare type GPML_VALUE_SIMPLE = string | number;
6export declare type GPML_VALUE_UP_TO_OBJECT = GPML_VALUE_SIMPLE | Record<string, GPML_VALUE_SIMPLE>;
7export declare type GPML_VALUE_UP_TO_SUB_OBJECT = GPML_VALUE_UP_TO_OBJECT | Record<string, GPML_VALUE_UP_TO_OBJECT>;
8export declare type GPML_VALUE = GPML_VALUE_UP_TO_SUB_OBJECT | GPML_VALUE_UP_TO_SUB_OBJECT[];
9export declare class Processor {
10 output: {
11 pathway: Pathway | PathwayStarter;
12 entitiesById: PvjsonEntitiesById;
13 };
14 graphIdManager: GraphIdManager;
15 graphIdsByGraphRef: Record<string, string[]>;
16 containedGraphIdsByGroupGraphId: Record<string, string[]>;
17 containedGraphIdsByGroupGroupId: Record<string, string[]>;
18 promisedGraphIdByGroupId: Record<string, Promise<string>>;
19 groupIdToGraphIdStream: Highland.Stream<[string, string]>;
20 promisedGPMLElementByGraphId: Record<string, Promise<GPMLElement>>;
21 gpmlElementStream: Highland.Stream<GPMLElement>;
22 promisedPvjsonEntityLatestByGraphId: Record<string, Promise<PvjsonEntity>>;
23 pvjsonEntityLatestStream: Highland.Stream<PvjsonEntity>;
24 graphIdToZIndex: Record<string, number>;
25 KeyMappings: Record<string, any>;
26 KeyValueConverters: Record<string, any>;
27 ValueMappings: Record<string, any>;
28 ValueConverters: Record<string, any>;
29 constructor(KeyMappings: any, KeyValueConverters: any, ValueMappings: any, ValueConverters: any);
30 private ensureGraphIdExists;
31 fillInGPMLPropertiesFromParent: import("lodash").CurriedFunction2<Record<string, any>, Record<string, any>, Record<string, any>>;
32 getPvjsonEntityLatestByGraphId: (graphId: any) => Promise<PvjsonEntity>;
33 getGPMLElementByGraphId: (GraphId: any) => Promise<Record<string, any>>;
34 preprocessGPMLElement: (gpmlElement: Record<string, any>) => Record<string, any>;
35 processGPMLAndPropertiesAndType: import("lodash").CurriedFunction2<string, any, ({
36 fill: string;
37 stroke: string;
38 drawAs: string;
39 gpmlElementName: string;
40 id: string;
41 kaavioType: string;
42 strokeWidth: number;
43 height: number;
44 padding: number;
45 width: number;
46 x: number;
47 y: number;
48 zIndex: number;
49 contains: string[];
50 type: string[];
51 } & {
52 strokeStyle?: string;
53 cellularComponent?: string;
54 xrefIdentifier?: string;
55 xrefDataSource?: string;
56 strokeDasharray?: string;
57 textContent?: string;
58 burrs?: string[];
59 citations?: string[];
60 filters?: string[];
61 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
62 } & Comment) | ({
63 fill: string;
64 stroke: string;
65 drawAs: string;
66 gpmlElementName: string;
67 id: string;
68 kaavioType: string;
69 strokeWidth: number;
70 height: number;
71 padding: number;
72 width: number;
73 x: number;
74 y: number;
75 zIndex: number;
76 type: string[];
77 } & {
78 strokeStyle?: string;
79 cellularComponent?: string;
80 xrefIdentifier?: string;
81 xrefDataSource?: string;
82 fontWeight?: string;
83 isPartOf?: string;
84 strokeDasharray?: string;
85 textAlign?: string;
86 verticalAlign?: string;
87 wpType?: string;
88 rx?: number;
89 ry?: number;
90 rotation?: number;
91 textRotation?: number;
92 burrs?: string[];
93 citations?: string[];
94 filters?: string[];
95 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
96 } & Comment) | ({
97 fill: string;
98 stroke: string;
99 drawAs: string;
100 gpmlElementName: string;
101 id: string;
102 kaavioType: string;
103 strokeWidth: number;
104 height: number;
105 padding: number;
106 width: number;
107 x: number;
108 y: number;
109 zIndex: number;
110 type: string[];
111 attachmentDisplay: import("gpml2pvjson/src/gpml2pvjson").AttachmentDisplay;
112 } & {
113 xrefIdentifier?: string;
114 xrefDataSource?: string;
115 strokeDasharray?: string;
116 rotation?: number;
117 textRotation?: number;
118 citations?: string[];
119 filters?: string[];
120 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
121 } & {
122 isAttachedTo: string;
123 } & Comment) | ({
124 stroke: string;
125 drawAs: string;
126 gpmlElementName: string;
127 id: string;
128 kaavioType: string;
129 zIndex: number;
130 type: string[];
131 } & {
132 left?: string;
133 right?: string;
134 controlled?: string;
135 biopaxType?: string;
136 controller?: string;
137 controlType?: string;
138 conversionDirection?: string;
139 xrefIdentifier?: string;
140 xrefDataSource?: string;
141 isPartOf?: string;
142 markerEnd?: string;
143 markerStart?: string;
144 strokeDasharray?: string;
145 wpInteractionType?: string;
146 burrs?: string[];
147 citations?: string[];
148 filters?: string[];
149 sboInteractionType?: string[];
150 participants?: string[];
151 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
152 } & {
153 isAttachedTo?: string[];
154 points: import("gpml2pvjson/src/gpml2pvjson").Point[];
155 } & Comment) | ({
156 source: string;
157 year: string;
158 gpmlElementName: string;
159 id: string;
160 kaavioType: string;
161 standardName: string;
162 textContent: string;
163 authors: string[];
164 type: string[];
165 } & {
166 xrefIdentifier?: string;
167 xrefDataSource?: string;
168 } & Comment)>;
169 processProperties: import("lodash").CurriedFunction1<Record<string, any>, ({
170 fill: string;
171 stroke: string;
172 drawAs: string;
173 gpmlElementName: string;
174 id: string;
175 kaavioType: string;
176 strokeWidth: number;
177 height: number;
178 padding: number;
179 width: number;
180 x: number;
181 y: number;
182 zIndex: number;
183 contains: string[];
184 type: string[];
185 } & {
186 strokeStyle?: string;
187 cellularComponent?: string;
188 xrefIdentifier?: string;
189 xrefDataSource?: string;
190 strokeDasharray?: string;
191 textContent?: string;
192 burrs?: string[];
193 citations?: string[];
194 filters?: string[];
195 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
196 } & Comment) | ({
197 fill: string;
198 stroke: string;
199 drawAs: string;
200 gpmlElementName: string;
201 id: string;
202 kaavioType: string;
203 strokeWidth: number;
204 height: number;
205 padding: number;
206 width: number;
207 x: number;
208 y: number;
209 zIndex: number;
210 type: string[];
211 } & {
212 strokeStyle?: string;
213 cellularComponent?: string;
214 xrefIdentifier?: string;
215 xrefDataSource?: string;
216 fontWeight?: string;
217 isPartOf?: string;
218 strokeDasharray?: string;
219 textAlign?: string;
220 verticalAlign?: string;
221 wpType?: string;
222 rx?: number;
223 ry?: number;
224 rotation?: number;
225 textRotation?: number;
226 burrs?: string[];
227 citations?: string[];
228 filters?: string[];
229 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
230 } & Comment) | ({
231 fill: string;
232 stroke: string;
233 drawAs: string;
234 gpmlElementName: string;
235 id: string;
236 kaavioType: string;
237 strokeWidth: number;
238 height: number;
239 padding: number;
240 width: number;
241 x: number;
242 y: number;
243 zIndex: number;
244 type: string[];
245 attachmentDisplay: import("gpml2pvjson/src/gpml2pvjson").AttachmentDisplay;
246 } & {
247 xrefIdentifier?: string;
248 xrefDataSource?: string;
249 strokeDasharray?: string;
250 rotation?: number;
251 textRotation?: number;
252 citations?: string[];
253 filters?: string[];
254 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
255 } & {
256 isAttachedTo: string;
257 } & Comment) | ({
258 stroke: string;
259 drawAs: string;
260 gpmlElementName: string;
261 id: string;
262 kaavioType: string;
263 zIndex: number;
264 type: string[];
265 } & {
266 left?: string;
267 right?: string;
268 controlled?: string;
269 biopaxType?: string;
270 controller?: string;
271 controlType?: string;
272 conversionDirection?: string;
273 xrefIdentifier?: string;
274 xrefDataSource?: string;
275 isPartOf?: string;
276 markerEnd?: string;
277 markerStart?: string;
278 strokeDasharray?: string;
279 wpInteractionType?: string;
280 burrs?: string[];
281 citations?: string[];
282 filters?: string[];
283 sboInteractionType?: string[];
284 participants?: string[];
285 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
286 } & {
287 isAttachedTo?: string[];
288 points: import("gpml2pvjson/src/gpml2pvjson").Point[];
289 } & Comment) | ({
290 source: string;
291 year: string;
292 gpmlElementName: string;
293 id: string;
294 kaavioType: string;
295 standardName: string;
296 textContent: string;
297 authors: string[];
298 type: string[];
299 } & {
300 xrefIdentifier?: string;
301 xrefDataSource?: string;
302 } & Comment)>;
303 processPropertiesAndType: import("lodash").CurriedFunction2<string, Record<string, any>, ({
304 fill: string;
305 stroke: string;
306 drawAs: string;
307 gpmlElementName: string;
308 id: string;
309 kaavioType: string;
310 strokeWidth: number;
311 height: number;
312 padding: number;
313 width: number;
314 x: number;
315 y: number;
316 zIndex: number;
317 contains: string[];
318 type: string[];
319 } & {
320 strokeStyle?: string;
321 cellularComponent?: string;
322 xrefIdentifier?: string;
323 xrefDataSource?: string;
324 strokeDasharray?: string;
325 textContent?: string;
326 burrs?: string[];
327 citations?: string[];
328 filters?: string[];
329 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
330 } & Comment) | ({
331 fill: string;
332 stroke: string;
333 drawAs: string;
334 gpmlElementName: string;
335 id: string;
336 kaavioType: string;
337 strokeWidth: number;
338 height: number;
339 padding: number;
340 width: number;
341 x: number;
342 y: number;
343 zIndex: number;
344 type: string[];
345 } & {
346 strokeStyle?: string;
347 cellularComponent?: string;
348 xrefIdentifier?: string;
349 xrefDataSource?: string;
350 fontWeight?: string;
351 isPartOf?: string;
352 strokeDasharray?: string;
353 textAlign?: string;
354 verticalAlign?: string;
355 wpType?: string;
356 rx?: number;
357 ry?: number;
358 rotation?: number;
359 textRotation?: number;
360 burrs?: string[];
361 citations?: string[];
362 filters?: string[];
363 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
364 } & Comment) | ({
365 fill: string;
366 stroke: string;
367 drawAs: string;
368 gpmlElementName: string;
369 id: string;
370 kaavioType: string;
371 strokeWidth: number;
372 height: number;
373 padding: number;
374 width: number;
375 x: number;
376 y: number;
377 zIndex: number;
378 type: string[];
379 attachmentDisplay: import("gpml2pvjson/src/gpml2pvjson").AttachmentDisplay;
380 } & {
381 xrefIdentifier?: string;
382 xrefDataSource?: string;
383 strokeDasharray?: string;
384 rotation?: number;
385 textRotation?: number;
386 citations?: string[];
387 filters?: string[];
388 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
389 } & {
390 isAttachedTo: string;
391 } & Comment) | ({
392 stroke: string;
393 drawAs: string;
394 gpmlElementName: string;
395 id: string;
396 kaavioType: string;
397 zIndex: number;
398 type: string[];
399 } & {
400 left?: string;
401 right?: string;
402 controlled?: string;
403 biopaxType?: string;
404 controller?: string;
405 controlType?: string;
406 conversionDirection?: string;
407 xrefIdentifier?: string;
408 xrefDataSource?: string;
409 isPartOf?: string;
410 markerEnd?: string;
411 markerStart?: string;
412 strokeDasharray?: string;
413 wpInteractionType?: string;
414 burrs?: string[];
415 citations?: string[];
416 filters?: string[];
417 sboInteractionType?: string[];
418 participants?: string[];
419 comments?: import("gpml2pvjson/src/gpml2pvjson").Comment[];
420 } & {
421 isAttachedTo?: string[];
422 points: import("gpml2pvjson/src/gpml2pvjson").Point[];
423 } & Comment) | ({
424 source: string;
425 year: string;
426 gpmlElementName: string;
427 id: string;
428 kaavioType: string;
429 standardName: string;
430 textContent: string;
431 authors: string[];
432 type: string[];
433 } & {
434 xrefIdentifier?: string;
435 xrefDataSource?: string;
436 } & Comment)>;
437 private processType;
438 setPvjsonEntity: (pvjsonEntity: any) => void;
439 getGPMLKeyAsJSFunctionName: (gpmlKey: string) => string;
440 getPvjsonValue: (gpmlElement: any, gpmlKey: string, gpmlValue: GPML_VALUE) => any;
441 processKV: import("lodash").CurriedFunction2<any, any, [string, any][]>;
442}