@danielsimonjr/mathts-expression 0.11.0 → 0.12.0
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/dist/evaluator/evaluate.d.ts +10 -1
- package/dist/evaluator/evaluate.d.ts.map +1 -1
- package/dist/index.js +178 -67
- package/dist/node/AccessorNode.d.ts +128 -122
- package/dist/node/AccessorNode.d.ts.map +1 -1
- package/dist/node/ArrayNode.d.ts +130 -122
- package/dist/node/ArrayNode.d.ts.map +1 -1
- package/dist/node/BlockNode.d.ts +8 -2
- package/dist/node/BlockNode.d.ts.map +1 -1
- package/dist/node/ConditionalNode.d.ts +134 -126
- package/dist/node/ConditionalNode.d.ts.map +1 -1
- package/dist/node/FunctionAssignmentNode.d.ts +76 -70
- package/dist/node/FunctionAssignmentNode.d.ts.map +1 -1
- package/dist/node/FunctionNode.d.ts.map +1 -1
- package/dist/node/IndexNode.d.ts +146 -136
- package/dist/node/IndexNode.d.ts.map +1 -1
- package/dist/node/ObjectNode.d.ts +130 -122
- package/dist/node/ObjectNode.d.ts.map +1 -1
- package/dist/node/RangeNode.d.ts +76 -70
- package/dist/node/RangeNode.d.ts.map +1 -1
- package/dist/node/utils/access.d.ts.map +1 -1
- package/dist/node/utils/assign.d.ts.map +1 -1
- package/dist/node/utils/describeType.d.ts +3 -0
- package/dist/node/utils/describeType.d.ts.map +1 -0
- package/dist/parse.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/node/IndexNode.d.ts
CHANGED
|
@@ -346,6 +346,74 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
346
346
|
getIdentifier(): string;
|
|
347
347
|
getContent(): any;
|
|
348
348
|
}[];
|
|
349
|
+
cloneDeep(): {
|
|
350
|
+
get type(): string;
|
|
351
|
+
get isNode(): boolean;
|
|
352
|
+
evaluate(scope?: Record<string, unknown>): unknown;
|
|
353
|
+
compile(): import("./Node.js").CompiledExpression;
|
|
354
|
+
_compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
|
|
355
|
+
forEach(_callback: (child: any, path: string, parent: any) => void): void;
|
|
356
|
+
map(_callback: (child: any, path: string, parent: any) => any): any;
|
|
357
|
+
_ifNode(node: unknown): any;
|
|
358
|
+
traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
|
|
359
|
+
transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
|
|
360
|
+
filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
|
|
361
|
+
clone(): any;
|
|
362
|
+
cloneDeep(): any;
|
|
363
|
+
equals(other: any | null | undefined): boolean;
|
|
364
|
+
toString(options?: import("./Node.js").StringOptions): string;
|
|
365
|
+
_toString(_options?: import("./Node.js").StringOptions): string;
|
|
366
|
+
toJSON(): Record<string, unknown>;
|
|
367
|
+
toHTML(options?: import("./Node.js").StringOptions): string;
|
|
368
|
+
_toHTML(_options?: import("./Node.js").StringOptions): string;
|
|
369
|
+
toTex(options?: import("./Node.js").StringOptions): string;
|
|
370
|
+
toMarkdown(options?: {
|
|
371
|
+
inline?: boolean;
|
|
372
|
+
} & import("./Node.js").StringOptions): string;
|
|
373
|
+
toDOT(options?: {
|
|
374
|
+
name?: string;
|
|
375
|
+
}): string;
|
|
376
|
+
toMathML(): string;
|
|
377
|
+
_toMathML(): string;
|
|
378
|
+
_toTex(_options?: import("./Node.js").StringOptions): string;
|
|
379
|
+
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
380
|
+
getIdentifier(): string;
|
|
381
|
+
getContent(): any;
|
|
382
|
+
};
|
|
383
|
+
equals(other: {
|
|
384
|
+
get type(): string;
|
|
385
|
+
get isNode(): boolean;
|
|
386
|
+
evaluate(scope?: Record<string, unknown>): unknown;
|
|
387
|
+
compile(): import("./Node.js").CompiledExpression;
|
|
388
|
+
_compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
|
|
389
|
+
forEach(_callback: (child: any, path: string, parent: any) => void): void;
|
|
390
|
+
map(_callback: (child: any, path: string, parent: any) => any): any;
|
|
391
|
+
_ifNode(node: unknown): any;
|
|
392
|
+
traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
|
|
393
|
+
transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
|
|
394
|
+
filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
|
|
395
|
+
clone(): any;
|
|
396
|
+
cloneDeep(): any;
|
|
397
|
+
equals(other: any | null | undefined): boolean;
|
|
398
|
+
toString(options?: import("./Node.js").StringOptions): string;
|
|
399
|
+
_toString(_options?: import("./Node.js").StringOptions): string;
|
|
400
|
+
toJSON(): Record<string, unknown>;
|
|
401
|
+
toHTML(options?: import("./Node.js").StringOptions): string;
|
|
402
|
+
_toHTML(_options?: import("./Node.js").StringOptions): string;
|
|
403
|
+
toTex(options?: import("./Node.js").StringOptions): string;
|
|
404
|
+
toMarkdown(options?: {
|
|
405
|
+
inline?: boolean;
|
|
406
|
+
} & import("./Node.js").StringOptions): string;
|
|
407
|
+
toDOT(options?: {
|
|
408
|
+
name?: string;
|
|
409
|
+
}): string;
|
|
410
|
+
toMathML(): string;
|
|
411
|
+
_toMathML(): string;
|
|
412
|
+
_toTex(_options?: import("./Node.js").StringOptions): string;
|
|
413
|
+
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
414
|
+
getIdentifier(): string;
|
|
415
|
+
getContent(): any;
|
|
416
|
+
} | null | undefined): boolean;
|
|
349
417
|
dimensions: MathNode[];
|
|
350
418
|
dotNotation: boolean;
|
|
351
419
|
get type(): string;
|
|
@@ -409,13 +477,31 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
409
477
|
* @returns str
|
|
410
478
|
*/
|
|
411
479
|
_toHTML(_options?: StringOptions): string;
|
|
480
|
+
/**
|
|
481
|
+
* Get the MathML representation of this node (mirrors `_toTex`): `.prop`
|
|
482
|
+
* for dot notation, otherwise the comma-separated dimensions (the
|
|
483
|
+
* AccessorNode places them as a subscript).
|
|
484
|
+
*/
|
|
485
|
+
_toMathML(): string;
|
|
412
486
|
/**
|
|
413
487
|
* Get LaTeX representation
|
|
414
488
|
* @param options
|
|
415
489
|
* @returns str
|
|
416
490
|
*/
|
|
417
491
|
_toTex(options?: StringOptions): string;
|
|
418
|
-
|
|
492
|
+
toString(options?: import("./Node.js").StringOptions): string;
|
|
493
|
+
toHTML(options?: import("./Node.js").StringOptions): string;
|
|
494
|
+
toTex(options?: import("./Node.js").StringOptions): string;
|
|
495
|
+
toMarkdown(options?: {
|
|
496
|
+
inline?: boolean;
|
|
497
|
+
} & import("./Node.js").StringOptions): string;
|
|
498
|
+
toDOT(options?: {
|
|
499
|
+
name?: string;
|
|
500
|
+
}): string;
|
|
501
|
+
toMathML(): string;
|
|
502
|
+
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
503
|
+
getIdentifier(): string;
|
|
504
|
+
getContent(): {
|
|
419
505
|
get type(): string;
|
|
420
506
|
get isNode(): boolean;
|
|
421
507
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
@@ -449,21 +535,37 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
449
535
|
getIdentifier(): string;
|
|
450
536
|
getContent(): any;
|
|
451
537
|
};
|
|
452
|
-
|
|
538
|
+
};
|
|
539
|
+
name: string;
|
|
540
|
+
/**
|
|
541
|
+
* Instantiate an IndexNode from its JSON representation
|
|
542
|
+
* @param json
|
|
543
|
+
* An object structured like
|
|
544
|
+
* `{"mathjs": "IndexNode", dimensions: [...], dotNotation: false}`,
|
|
545
|
+
* where mathjs is optional
|
|
546
|
+
*/
|
|
547
|
+
fromJSON(json: {
|
|
548
|
+
dimensions: MathNode[];
|
|
549
|
+
dotNotation: boolean;
|
|
550
|
+
}): {
|
|
551
|
+
get isNode(): boolean;
|
|
552
|
+
evaluate(scope?: Record<string, unknown>): unknown;
|
|
553
|
+
compile(): import("./Node.js").CompiledExpression;
|
|
554
|
+
_ifNode(node: unknown): {
|
|
453
555
|
get type(): string;
|
|
454
556
|
get isNode(): boolean;
|
|
455
557
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
456
558
|
compile(): import("./Node.js").CompiledExpression;
|
|
457
559
|
_compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
|
|
458
|
-
forEach(_callback: (child: any, path: string, parent: any) => void): void;
|
|
459
|
-
map(_callback: (child: any, path: string, parent: any) => any): any;
|
|
460
|
-
_ifNode(node: unknown): any;
|
|
461
|
-
traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
|
|
462
|
-
transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
|
|
463
|
-
filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
|
|
464
|
-
clone(): any;
|
|
465
|
-
cloneDeep(): any;
|
|
466
|
-
equals(other: any | null | undefined): boolean;
|
|
560
|
+
forEach(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => void): void;
|
|
561
|
+
map(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => /*elided*/ any): /*elided*/ any;
|
|
562
|
+
_ifNode(node: unknown): /*elided*/ any;
|
|
563
|
+
traverse(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => void): void;
|
|
564
|
+
transform(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => /*elided*/ any): /*elided*/ any;
|
|
565
|
+
filter(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => boolean): /*elided*/ any[];
|
|
566
|
+
clone(): /*elided*/ any;
|
|
567
|
+
cloneDeep(): /*elided*/ any;
|
|
568
|
+
equals(other: /*elided*/ any | null | undefined): boolean;
|
|
467
569
|
toString(options?: import("./Node.js").StringOptions): string;
|
|
468
570
|
_toString(_options?: import("./Node.js").StringOptions): string;
|
|
469
571
|
toJSON(): Record<string, unknown>;
|
|
@@ -481,22 +583,9 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
481
583
|
_toTex(_options?: import("./Node.js").StringOptions): string;
|
|
482
584
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
483
585
|
getIdentifier(): string;
|
|
484
|
-
getContent(): any;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
toHTML(options?: import("./Node.js").StringOptions): string;
|
|
488
|
-
toTex(options?: import("./Node.js").StringOptions): string;
|
|
489
|
-
toMarkdown(options?: {
|
|
490
|
-
inline?: boolean;
|
|
491
|
-
} & import("./Node.js").StringOptions): string;
|
|
492
|
-
toDOT(options?: {
|
|
493
|
-
name?: string;
|
|
494
|
-
}): string;
|
|
495
|
-
toMathML(): string;
|
|
496
|
-
_toMathML(): string;
|
|
497
|
-
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
498
|
-
getIdentifier(): string;
|
|
499
|
-
getContent(): {
|
|
586
|
+
getContent(): /*elided*/ any;
|
|
587
|
+
};
|
|
588
|
+
traverse(callback: (node: {
|
|
500
589
|
get type(): string;
|
|
501
590
|
get isNode(): boolean;
|
|
502
591
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
@@ -529,38 +618,21 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
529
618
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
530
619
|
getIdentifier(): string;
|
|
531
620
|
getContent(): any;
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
name: string;
|
|
535
|
-
/**
|
|
536
|
-
* Instantiate an IndexNode from its JSON representation
|
|
537
|
-
* @param json
|
|
538
|
-
* An object structured like
|
|
539
|
-
* `{"mathjs": "IndexNode", dimensions: [...], dotNotation: false}`,
|
|
540
|
-
* where mathjs is optional
|
|
541
|
-
*/
|
|
542
|
-
fromJSON(json: {
|
|
543
|
-
dimensions: MathNode[];
|
|
544
|
-
dotNotation: boolean;
|
|
545
|
-
}): {
|
|
546
|
-
get isNode(): boolean;
|
|
547
|
-
evaluate(scope?: Record<string, unknown>): unknown;
|
|
548
|
-
compile(): import("./Node.js").CompiledExpression;
|
|
549
|
-
_ifNode(node: unknown): {
|
|
621
|
+
}, path: string | null, parent: {
|
|
550
622
|
get type(): string;
|
|
551
623
|
get isNode(): boolean;
|
|
552
624
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
553
625
|
compile(): import("./Node.js").CompiledExpression;
|
|
554
626
|
_compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
|
|
555
|
-
forEach(_callback: (child:
|
|
556
|
-
map(_callback: (child:
|
|
557
|
-
_ifNode(node: unknown):
|
|
558
|
-
traverse(callback: (node:
|
|
559
|
-
transform(callback: (node:
|
|
560
|
-
filter(callback: (node:
|
|
561
|
-
clone():
|
|
562
|
-
cloneDeep():
|
|
563
|
-
equals(other:
|
|
627
|
+
forEach(_callback: (child: any, path: string, parent: any) => void): void;
|
|
628
|
+
map(_callback: (child: any, path: string, parent: any) => any): any;
|
|
629
|
+
_ifNode(node: unknown): any;
|
|
630
|
+
traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
|
|
631
|
+
transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
|
|
632
|
+
filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
|
|
633
|
+
clone(): any;
|
|
634
|
+
cloneDeep(): any;
|
|
635
|
+
equals(other: any | null | undefined): boolean;
|
|
564
636
|
toString(options?: import("./Node.js").StringOptions): string;
|
|
565
637
|
_toString(_options?: import("./Node.js").StringOptions): string;
|
|
566
638
|
toJSON(): Record<string, unknown>;
|
|
@@ -578,9 +650,9 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
578
650
|
_toTex(_options?: import("./Node.js").StringOptions): string;
|
|
579
651
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
580
652
|
getIdentifier(): string;
|
|
581
|
-
getContent():
|
|
582
|
-
};
|
|
583
|
-
|
|
653
|
+
getContent(): any;
|
|
654
|
+
} | null) => void): void;
|
|
655
|
+
transform(callback: (node: {
|
|
584
656
|
get type(): string;
|
|
585
657
|
get isNode(): boolean;
|
|
586
658
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
@@ -646,8 +718,7 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
646
718
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
647
719
|
getIdentifier(): string;
|
|
648
720
|
getContent(): any;
|
|
649
|
-
} | null) =>
|
|
650
|
-
transform(callback: (node: {
|
|
721
|
+
} | null) => {
|
|
651
722
|
get type(): string;
|
|
652
723
|
get isNode(): boolean;
|
|
653
724
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
@@ -680,7 +751,7 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
680
751
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
681
752
|
getIdentifier(): string;
|
|
682
753
|
getContent(): any;
|
|
683
|
-
}
|
|
754
|
+
}): {
|
|
684
755
|
get type(): string;
|
|
685
756
|
get isNode(): boolean;
|
|
686
757
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
@@ -713,7 +784,8 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
713
784
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
714
785
|
getIdentifier(): string;
|
|
715
786
|
getContent(): any;
|
|
716
|
-
}
|
|
787
|
+
};
|
|
788
|
+
filter(callback: (node: {
|
|
717
789
|
get type(): string;
|
|
718
790
|
get isNode(): boolean;
|
|
719
791
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
@@ -746,7 +818,7 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
746
818
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
747
819
|
getIdentifier(): string;
|
|
748
820
|
getContent(): any;
|
|
749
|
-
}
|
|
821
|
+
}, path: string | null, parent: {
|
|
750
822
|
get type(): string;
|
|
751
823
|
get isNode(): boolean;
|
|
752
824
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
@@ -779,8 +851,7 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
779
851
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
780
852
|
getIdentifier(): string;
|
|
781
853
|
getContent(): any;
|
|
782
|
-
}
|
|
783
|
-
filter(callback: (node: {
|
|
854
|
+
} | null) => boolean): {
|
|
784
855
|
get type(): string;
|
|
785
856
|
get isNode(): boolean;
|
|
786
857
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
@@ -813,7 +884,8 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
813
884
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
814
885
|
getIdentifier(): string;
|
|
815
886
|
getContent(): any;
|
|
816
|
-
}
|
|
887
|
+
}[];
|
|
888
|
+
cloneDeep(): {
|
|
817
889
|
get type(): string;
|
|
818
890
|
get isNode(): boolean;
|
|
819
891
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
@@ -846,7 +918,8 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
846
918
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
847
919
|
getIdentifier(): string;
|
|
848
920
|
getContent(): any;
|
|
849
|
-
}
|
|
921
|
+
};
|
|
922
|
+
equals(other: {
|
|
850
923
|
get type(): string;
|
|
851
924
|
get isNode(): boolean;
|
|
852
925
|
evaluate(scope?: Record<string, unknown>): unknown;
|
|
@@ -879,7 +952,7 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
879
952
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
880
953
|
getIdentifier(): string;
|
|
881
954
|
getContent(): any;
|
|
882
|
-
}
|
|
955
|
+
} | null | undefined): boolean;
|
|
883
956
|
dimensions: MathNode[];
|
|
884
957
|
dotNotation: boolean;
|
|
885
958
|
get type(): string;
|
|
@@ -943,80 +1016,18 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
943
1016
|
* @returns str
|
|
944
1017
|
*/
|
|
945
1018
|
_toHTML(_options?: StringOptions): string;
|
|
1019
|
+
/**
|
|
1020
|
+
* Get the MathML representation of this node (mirrors `_toTex`): `.prop`
|
|
1021
|
+
* for dot notation, otherwise the comma-separated dimensions (the
|
|
1022
|
+
* AccessorNode places them as a subscript).
|
|
1023
|
+
*/
|
|
1024
|
+
_toMathML(): string;
|
|
946
1025
|
/**
|
|
947
1026
|
* Get LaTeX representation
|
|
948
1027
|
* @param options
|
|
949
1028
|
* @returns str
|
|
950
1029
|
*/
|
|
951
1030
|
_toTex(options?: StringOptions): string;
|
|
952
|
-
cloneDeep(): {
|
|
953
|
-
get type(): string;
|
|
954
|
-
get isNode(): boolean;
|
|
955
|
-
evaluate(scope?: Record<string, unknown>): unknown;
|
|
956
|
-
compile(): import("./Node.js").CompiledExpression;
|
|
957
|
-
_compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
|
|
958
|
-
forEach(_callback: (child: any, path: string, parent: any) => void): void;
|
|
959
|
-
map(_callback: (child: any, path: string, parent: any) => any): any;
|
|
960
|
-
_ifNode(node: unknown): any;
|
|
961
|
-
traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
|
|
962
|
-
transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
|
|
963
|
-
filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
|
|
964
|
-
clone(): any;
|
|
965
|
-
cloneDeep(): any;
|
|
966
|
-
equals(other: any | null | undefined): boolean;
|
|
967
|
-
toString(options?: import("./Node.js").StringOptions): string;
|
|
968
|
-
_toString(_options?: import("./Node.js").StringOptions): string;
|
|
969
|
-
toJSON(): Record<string, unknown>;
|
|
970
|
-
toHTML(options?: import("./Node.js").StringOptions): string;
|
|
971
|
-
_toHTML(_options?: import("./Node.js").StringOptions): string;
|
|
972
|
-
toTex(options?: import("./Node.js").StringOptions): string;
|
|
973
|
-
toMarkdown(options?: {
|
|
974
|
-
inline?: boolean;
|
|
975
|
-
} & import("./Node.js").StringOptions): string;
|
|
976
|
-
toDOT(options?: {
|
|
977
|
-
name?: string;
|
|
978
|
-
}): string;
|
|
979
|
-
toMathML(): string;
|
|
980
|
-
_toMathML(): string;
|
|
981
|
-
_toTex(_options?: import("./Node.js").StringOptions): string;
|
|
982
|
-
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
983
|
-
getIdentifier(): string;
|
|
984
|
-
getContent(): any;
|
|
985
|
-
};
|
|
986
|
-
equals(other: {
|
|
987
|
-
get type(): string;
|
|
988
|
-
get isNode(): boolean;
|
|
989
|
-
evaluate(scope?: Record<string, unknown>): unknown;
|
|
990
|
-
compile(): import("./Node.js").CompiledExpression;
|
|
991
|
-
_compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
|
|
992
|
-
forEach(_callback: (child: any, path: string, parent: any) => void): void;
|
|
993
|
-
map(_callback: (child: any, path: string, parent: any) => any): any;
|
|
994
|
-
_ifNode(node: unknown): any;
|
|
995
|
-
traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
|
|
996
|
-
transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
|
|
997
|
-
filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
|
|
998
|
-
clone(): any;
|
|
999
|
-
cloneDeep(): any;
|
|
1000
|
-
equals(other: any | null | undefined): boolean;
|
|
1001
|
-
toString(options?: import("./Node.js").StringOptions): string;
|
|
1002
|
-
_toString(_options?: import("./Node.js").StringOptions): string;
|
|
1003
|
-
toJSON(): Record<string, unknown>;
|
|
1004
|
-
toHTML(options?: import("./Node.js").StringOptions): string;
|
|
1005
|
-
_toHTML(_options?: import("./Node.js").StringOptions): string;
|
|
1006
|
-
toTex(options?: import("./Node.js").StringOptions): string;
|
|
1007
|
-
toMarkdown(options?: {
|
|
1008
|
-
inline?: boolean;
|
|
1009
|
-
} & import("./Node.js").StringOptions): string;
|
|
1010
|
-
toDOT(options?: {
|
|
1011
|
-
name?: string;
|
|
1012
|
-
}): string;
|
|
1013
|
-
toMathML(): string;
|
|
1014
|
-
_toMathML(): string;
|
|
1015
|
-
_toTex(_options?: import("./Node.js").StringOptions): string;
|
|
1016
|
-
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
1017
|
-
getIdentifier(): string;
|
|
1018
|
-
getContent(): any;
|
|
1019
|
-
} | null | undefined): boolean;
|
|
1020
1031
|
toString(options?: import("./Node.js").StringOptions): string;
|
|
1021
1032
|
toHTML(options?: import("./Node.js").StringOptions): string;
|
|
1022
1033
|
toTex(options?: import("./Node.js").StringOptions): string;
|
|
@@ -1027,7 +1038,6 @@ export declare const createIndexNode: import("../utils/factory.js").FactoryFunct
|
|
|
1027
1038
|
name?: string;
|
|
1028
1039
|
}): string;
|
|
1029
1040
|
toMathML(): string;
|
|
1030
|
-
_toMathML(): string;
|
|
1031
1041
|
_getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
|
|
1032
1042
|
getIdentifier(): string;
|
|
1033
1043
|
getContent(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndexNode.d.ts","sourceRoot":"","sources":["../../src/node/IndexNode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IndexNode.d.ts","sourceRoot":"","sources":["../../src/node/IndexNode.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAK1C,KAAK,eAAe,GAAG,CACrB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,EA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