mol_plot_all 1.2.535 → 1.2.537
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.d.ts +74 -28
- package/node.deps.json +1 -1
- package/node.js +346 -257
- package/node.js.map +1 -1
- package/node.mjs +346 -257
- package/node.mjs.map +1 -1
- package/node.test.js +846 -252
- package/node.test.js.map +1 -1
- package/package.json +10 -2
- package/web.deps.json +1 -1
package/node.d.ts
CHANGED
|
@@ -348,40 +348,86 @@ declare namespace $ {
|
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
declare namespace $ {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
type $mol_tree_context = Record<string, $mol_tree_hack>;
|
|
355
|
-
type $mol_tree_library = Record<string, $mol_tree_context>;
|
|
356
|
-
class $mol_tree extends $mol_object2 {
|
|
357
|
-
readonly type: string;
|
|
358
|
-
readonly data: string;
|
|
359
|
-
readonly sub: readonly $mol_tree[];
|
|
360
|
-
readonly baseUri: string;
|
|
351
|
+
class $mol_span extends $mol_object2 {
|
|
352
|
+
readonly uri: string;
|
|
353
|
+
readonly source: string;
|
|
361
354
|
readonly row: number;
|
|
362
355
|
readonly col: number;
|
|
363
356
|
readonly length: number;
|
|
364
|
-
constructor(
|
|
365
|
-
static
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
hack(context: $mol_tree_context): $mol_tree;
|
|
381
|
-
error(message: string): Error;
|
|
357
|
+
constructor(uri: string, source: string, row: number, col: number, length: number);
|
|
358
|
+
static unknown: $mol_span;
|
|
359
|
+
static begin(uri: string, source?: string): $mol_span;
|
|
360
|
+
static end(uri: string, source: string): $mol_span;
|
|
361
|
+
static entire(uri: string, source: string): $mol_span;
|
|
362
|
+
toString(): any;
|
|
363
|
+
toJSON(): {
|
|
364
|
+
uri: string;
|
|
365
|
+
row: number;
|
|
366
|
+
col: number;
|
|
367
|
+
length: number;
|
|
368
|
+
};
|
|
369
|
+
error(message: string, Class?: ErrorConstructor): Error;
|
|
370
|
+
span(row: number, col: number, length: number): $mol_span;
|
|
371
|
+
after(length?: number): $mol_span;
|
|
372
|
+
slice(begin: number, end?: number): $mol_span;
|
|
382
373
|
}
|
|
383
374
|
}
|
|
384
375
|
|
|
376
|
+
declare namespace $ {
|
|
377
|
+
function $mol_tree2_to_string(this: $, tree: $mol_tree2): string;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
declare namespace $ {
|
|
381
|
+
type $mol_tree2_path = Array<string | number | null>;
|
|
382
|
+
type $mol_tree2_hack<Context> = (input: $mol_tree2, belt: $mol_tree2_belt<Context>, context: Context) => readonly $mol_tree2[];
|
|
383
|
+
type $mol_tree2_belt<Context> = Record<string, $mol_tree2_hack<Context>>;
|
|
384
|
+
class $mol_tree2 extends Object {
|
|
385
|
+
readonly type: string;
|
|
386
|
+
readonly value: string;
|
|
387
|
+
readonly kids: readonly $mol_tree2[];
|
|
388
|
+
readonly span: $mol_span;
|
|
389
|
+
constructor(type: string, value: string, kids: readonly $mol_tree2[], span: $mol_span);
|
|
390
|
+
static list(kids: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
|
|
391
|
+
list(kids: readonly $mol_tree2[]): $mol_tree2;
|
|
392
|
+
static data(value: string, kids?: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
|
|
393
|
+
data(value: string, kids?: readonly $mol_tree2[]): $mol_tree2;
|
|
394
|
+
static struct(type: string, kids?: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
|
|
395
|
+
struct(type: string, kids?: readonly $mol_tree2[]): $mol_tree2;
|
|
396
|
+
clone(kids: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
|
|
397
|
+
text(): string;
|
|
398
|
+
static fromString(str: string, uri?: string): $mol_tree2;
|
|
399
|
+
toString(): string;
|
|
400
|
+
insert(value: $mol_tree2 | null, ...path: $mol_tree2_path): $mol_tree2;
|
|
401
|
+
select(...path: $mol_tree2_path): $mol_tree2;
|
|
402
|
+
filter(path: string[], value?: string): $mol_tree2;
|
|
403
|
+
hack<Context extends {
|
|
404
|
+
span?: $mol_span;
|
|
405
|
+
[key: string]: unknown;
|
|
406
|
+
} = {}>(belt: $mol_tree2_belt<Context>, context?: Context): $mol_tree2[];
|
|
407
|
+
error(message: string, Class?: ErrorConstructor): Error;
|
|
408
|
+
}
|
|
409
|
+
class $mol_tree2_empty extends $mol_tree2 {
|
|
410
|
+
constructor();
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
declare namespace $ {
|
|
415
|
+
class $mol_error_syntax extends SyntaxError {
|
|
416
|
+
reason: string;
|
|
417
|
+
line: string;
|
|
418
|
+
span: $mol_span;
|
|
419
|
+
constructor(reason: string, line: string, span: $mol_span);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
declare namespace $ {
|
|
424
|
+
function $mol_tree2_from_string(this: $, str: string, uri?: string): $mol_tree2;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
declare namespace $ {
|
|
428
|
+
function $mol_tree2_from_json(json: any, span?: $mol_span): $mol_tree2;
|
|
429
|
+
}
|
|
430
|
+
|
|
385
431
|
declare namespace $ {
|
|
386
432
|
class $mol_term_color {
|
|
387
433
|
static reset: (str: string) => string;
|