@danielsimonjr/mathts-expression 0.11.1 → 0.12.1

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.
@@ -246,66 +246,6 @@ export declare const createAccessorNode: import("../utils/factory.js").FactoryFu
246
246
  getIdentifier(): string;
247
247
  getContent(): any;
248
248
  };
249
- object: MathNode;
250
- index: IndexNodeChild;
251
- optionalChaining: boolean;
252
- get name(): string;
253
- get type(): string;
254
- get isAccessorNode(): boolean;
255
- /**
256
- * Compile a node into a JavaScript function.
257
- * This basically pre-calculates as much as possible and only leaves open
258
- * calculations which depend on a dynamic scope with variables.
259
- * @param math - Math.js namespace with functions and constants.
260
- * @param argNames - An object with argument names as key and `true`
261
- * as value. Used in the SymbolNode to optimize
262
- * for arguments from user assigned functions
263
- * (see FunctionAssignmentNode) or special symbols
264
- * like `end` (see IndexNode).
265
- * @returns Returns a function which can be called like:
266
- * evalNode(scope: Object, args: Object, context: *)
267
- */
268
- _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
269
- /**
270
- * Execute a callback for each of the child nodes of this node
271
- * @param callback
272
- */
273
- forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
274
- /**
275
- * Create a new AccessorNode whose children are the results of calling
276
- * the provided callback function for each child of the original node.
277
- * @param callback
278
- * @returns Returns a transformed copy of the node
279
- */
280
- map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
281
- /**
282
- * Create a clone of this node, a shallow copy
283
- */
284
- clone(): /*elided*/ any;
285
- /**
286
- * Get string representation
287
- * @param options
288
- */
289
- _toString(options?: StringOptions): string;
290
- /**
291
- * Get HTML representation
292
- * @param options
293
- */
294
- _toHTML(options?: StringOptions): string;
295
- /**
296
- * Get LaTeX representation
297
- * @param options
298
- */
299
- _toTex(options?: StringOptions): string;
300
- /**
301
- * Get a JSON representation of the node
302
- */
303
- toJSON(): {
304
- mathjs: string;
305
- object: MathNode;
306
- index: IndexNodeChild;
307
- optionalChaining: boolean;
308
- };
309
249
  filter(callback: (node: {
310
250
  get type(): string;
311
251
  get isNode(): boolean;
@@ -406,6 +346,70 @@ export declare const createAccessorNode: import("../utils/factory.js").FactoryFu
406
346
  getIdentifier(): string;
407
347
  getContent(): any;
408
348
  }[];
349
+ object: MathNode;
350
+ index: IndexNodeChild;
351
+ optionalChaining: boolean;
352
+ get name(): string;
353
+ get type(): string;
354
+ get isAccessorNode(): boolean;
355
+ /**
356
+ * Compile a node into a JavaScript function.
357
+ * This basically pre-calculates as much as possible and only leaves open
358
+ * calculations which depend on a dynamic scope with variables.
359
+ * @param math - Math.js namespace with functions and constants.
360
+ * @param argNames - An object with argument names as key and `true`
361
+ * as value. Used in the SymbolNode to optimize
362
+ * for arguments from user assigned functions
363
+ * (see FunctionAssignmentNode) or special symbols
364
+ * like `end` (see IndexNode).
365
+ * @returns Returns a function which can be called like:
366
+ * evalNode(scope: Object, args: Object, context: *)
367
+ */
368
+ _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
369
+ /**
370
+ * Execute a callback for each of the child nodes of this node
371
+ * @param callback
372
+ */
373
+ forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
374
+ /**
375
+ * Create a new AccessorNode whose children are the results of calling
376
+ * the provided callback function for each child of the original node.
377
+ * @param callback
378
+ * @returns Returns a transformed copy of the node
379
+ */
380
+ map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
381
+ /**
382
+ * Create a clone of this node, a shallow copy
383
+ */
384
+ clone(): /*elided*/ any;
385
+ /**
386
+ * Get string representation
387
+ * @param options
388
+ */
389
+ _toString(options?: StringOptions): string;
390
+ /**
391
+ * Get HTML representation
392
+ * @param options
393
+ */
394
+ _toHTML(options?: StringOptions): string;
395
+ /**
396
+ * Get LaTeX representation
397
+ * @param options
398
+ */
399
+ _toTex(options?: StringOptions): string;
400
+ /**
401
+ * Get the MathML representation of this node (mirrors `_toTex`).
402
+ */
403
+ _toMathML(): string;
404
+ /**
405
+ * Get a JSON representation of the node
406
+ */
407
+ toJSON(): {
408
+ mathjs: string;
409
+ object: MathNode;
410
+ index: IndexNodeChild;
411
+ optionalChaining: boolean;
412
+ };
409
413
  cloneDeep(): {
410
414
  get type(): string;
411
415
  get isNode(): boolean;
@@ -484,7 +488,6 @@ export declare const createAccessorNode: import("../utils/factory.js").FactoryFu
484
488
  name?: string;
485
489
  }): string;
486
490
  toMathML(): string;
487
- _toMathML(): string;
488
491
  _getCustomString(options?: StringOptions): string | undefined;
489
492
  getIdentifier(): string;
490
493
  getContent(): {
@@ -772,66 +775,6 @@ export declare const createAccessorNode: import("../utils/factory.js").FactoryFu
772
775
  getIdentifier(): string;
773
776
  getContent(): any;
774
777
  };
775
- object: MathNode;
776
- index: IndexNodeChild;
777
- optionalChaining: boolean;
778
- get name(): string;
779
- get type(): string;
780
- get isAccessorNode(): boolean;
781
- /**
782
- * Compile a node into a JavaScript function.
783
- * This basically pre-calculates as much as possible and only leaves open
784
- * calculations which depend on a dynamic scope with variables.
785
- * @param math - Math.js namespace with functions and constants.
786
- * @param argNames - An object with argument names as key and `true`
787
- * as value. Used in the SymbolNode to optimize
788
- * for arguments from user assigned functions
789
- * (see FunctionAssignmentNode) or special symbols
790
- * like `end` (see IndexNode).
791
- * @returns Returns a function which can be called like:
792
- * evalNode(scope: Object, args: Object, context: *)
793
- */
794
- _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
795
- /**
796
- * Execute a callback for each of the child nodes of this node
797
- * @param callback
798
- */
799
- forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
800
- /**
801
- * Create a new AccessorNode whose children are the results of calling
802
- * the provided callback function for each child of the original node.
803
- * @param callback
804
- * @returns Returns a transformed copy of the node
805
- */
806
- map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
807
- /**
808
- * Create a clone of this node, a shallow copy
809
- */
810
- clone(): /*elided*/ any;
811
- /**
812
- * Get string representation
813
- * @param options
814
- */
815
- _toString(options?: StringOptions): string;
816
- /**
817
- * Get HTML representation
818
- * @param options
819
- */
820
- _toHTML(options?: StringOptions): string;
821
- /**
822
- * Get LaTeX representation
823
- * @param options
824
- */
825
- _toTex(options?: StringOptions): string;
826
- /**
827
- * Get a JSON representation of the node
828
- */
829
- toJSON(): {
830
- mathjs: string;
831
- object: MathNode;
832
- index: IndexNodeChild;
833
- optionalChaining: boolean;
834
- };
835
778
  filter(callback: (node: {
836
779
  get type(): string;
837
780
  get isNode(): boolean;
@@ -932,6 +875,70 @@ export declare const createAccessorNode: import("../utils/factory.js").FactoryFu
932
875
  getIdentifier(): string;
933
876
  getContent(): any;
934
877
  }[];
878
+ object: MathNode;
879
+ index: IndexNodeChild;
880
+ optionalChaining: boolean;
881
+ get name(): string;
882
+ get type(): string;
883
+ get isAccessorNode(): boolean;
884
+ /**
885
+ * Compile a node into a JavaScript function.
886
+ * This basically pre-calculates as much as possible and only leaves open
887
+ * calculations which depend on a dynamic scope with variables.
888
+ * @param math - Math.js namespace with functions and constants.
889
+ * @param argNames - An object with argument names as key and `true`
890
+ * as value. Used in the SymbolNode to optimize
891
+ * for arguments from user assigned functions
892
+ * (see FunctionAssignmentNode) or special symbols
893
+ * like `end` (see IndexNode).
894
+ * @returns Returns a function which can be called like:
895
+ * evalNode(scope: Object, args: Object, context: *)
896
+ */
897
+ _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
898
+ /**
899
+ * Execute a callback for each of the child nodes of this node
900
+ * @param callback
901
+ */
902
+ forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
903
+ /**
904
+ * Create a new AccessorNode whose children are the results of calling
905
+ * the provided callback function for each child of the original node.
906
+ * @param callback
907
+ * @returns Returns a transformed copy of the node
908
+ */
909
+ map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
910
+ /**
911
+ * Create a clone of this node, a shallow copy
912
+ */
913
+ clone(): /*elided*/ any;
914
+ /**
915
+ * Get string representation
916
+ * @param options
917
+ */
918
+ _toString(options?: StringOptions): string;
919
+ /**
920
+ * Get HTML representation
921
+ * @param options
922
+ */
923
+ _toHTML(options?: StringOptions): string;
924
+ /**
925
+ * Get LaTeX representation
926
+ * @param options
927
+ */
928
+ _toTex(options?: StringOptions): string;
929
+ /**
930
+ * Get the MathML representation of this node (mirrors `_toTex`).
931
+ */
932
+ _toMathML(): string;
933
+ /**
934
+ * Get a JSON representation of the node
935
+ */
936
+ toJSON(): {
937
+ mathjs: string;
938
+ object: MathNode;
939
+ index: IndexNodeChild;
940
+ optionalChaining: boolean;
941
+ };
935
942
  cloneDeep(): {
936
943
  get type(): string;
937
944
  get isNode(): boolean;
@@ -1010,7 +1017,6 @@ export declare const createAccessorNode: import("../utils/factory.js").FactoryFu
1010
1017
  name?: string;
1011
1018
  }): string;
1012
1019
  toMathML(): string;
1013
- _toMathML(): string;
1014
1020
  _getCustomString(options?: StringOptions): string | undefined;
1015
1021
  getIdentifier(): string;
1016
1022
  getContent(): {
@@ -1 +1 @@
1
- {"version":3,"file":"AccessorNode.d.ts","sourceRoot":"","sources":["../../src/node/AccessorNode.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAMzD,UAAU,cAAe,SAAQ,QAAQ;IACvC,gBAAgB,EAAE,MAAM,OAAO,CAAC;IAChC,iBAAiB,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IACvC,WAAW,EAAE,OAAO,CAAC;CACtB;AAOD,eAAO,MAAM,kBAAkB;YAOnB,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO;UACjC,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,QA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yBACc,aAAa,GAAG,MAAM;QASvC;;WAEG;qBACU,MAAM;QAYnB;;WAEG;kBACO;YACR,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,QAAQ,CAAC;YACjB,KAAK,EAAE,cAAc,CAAC;YACtB,gBAAgB,EAAE,OAAO,CAAC;SAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN,CAAC"}
@@ -40,66 +40,6 @@ export declare const createArrayNode: import("../utils/factory.js").FactoryFunct
40
40
  getIdentifier(): string;
41
41
  getContent(): /*elided*/ any;
42
42
  };
43
- items: MathNode[];
44
- get type(): string;
45
- get isArrayNode(): boolean;
46
- /**
47
- * Compile a node into a JavaScript function.
48
- * This basically pre-calculates as much as possible and only leaves open
49
- * calculations which depend on a dynamic scope with variables.
50
- * @param math - Math.js namespace with functions and constants.
51
- * @param argNames - An object with argument names as key and `true`
52
- * as value. Used in the SymbolNode to optimize
53
- * for arguments from user assigned functions
54
- * (see FunctionAssignmentNode) or special symbols
55
- * like `end` (see IndexNode).
56
- * @returns Returns a function which can be called like:
57
- * evalNode(scope: Object, args: Object, context: *)
58
- */
59
- _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
60
- /**
61
- * Execute a callback for each of the child nodes of this node
62
- * @param callback
63
- */
64
- forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
65
- /**
66
- * Create a new ArrayNode whose children are the results of calling
67
- * the provided callback function for each child of the original node.
68
- * @param callback
69
- * @returns Returns a transformed copy of the node
70
- */
71
- map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
72
- /**
73
- * Create a clone of this node, a shallow copy
74
- */
75
- clone(): /*elided*/ any;
76
- /**
77
- * Get string representation
78
- * @param options
79
- * @returns str
80
- * @override
81
- */
82
- _toString(options?: StringOptions): string;
83
- /**
84
- * Get a JSON representation of the node
85
- */
86
- toJSON(): {
87
- mathjs: string;
88
- items: MathNode[];
89
- };
90
- /**
91
- * Get HTML representation
92
- * @param options
93
- * @returns str
94
- * @override
95
- */
96
- _toHTML(options?: StringOptions): string;
97
- /**
98
- * Get LaTeX representation
99
- * @param options
100
- * @returns str
101
- */
102
- _toTex(options?: StringOptions): string;
103
43
  traverse(callback: (node: {
104
44
  get type(): string;
105
45
  get isNode(): boolean;
@@ -167,6 +107,71 @@ export declare const createArrayNode: import("../utils/factory.js").FactoryFunct
167
107
  getIdentifier(): string;
168
108
  getContent(): any;
169
109
  } | null) => void): void;
110
+ items: MathNode[];
111
+ get type(): string;
112
+ get isArrayNode(): boolean;
113
+ /**
114
+ * Compile a node into a JavaScript function.
115
+ * This basically pre-calculates as much as possible and only leaves open
116
+ * calculations which depend on a dynamic scope with variables.
117
+ * @param math - Math.js namespace with functions and constants.
118
+ * @param argNames - An object with argument names as key and `true`
119
+ * as value. Used in the SymbolNode to optimize
120
+ * for arguments from user assigned functions
121
+ * (see FunctionAssignmentNode) or special symbols
122
+ * like `end` (see IndexNode).
123
+ * @returns Returns a function which can be called like:
124
+ * evalNode(scope: Object, args: Object, context: *)
125
+ */
126
+ _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
127
+ /**
128
+ * Execute a callback for each of the child nodes of this node
129
+ * @param callback
130
+ */
131
+ forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
132
+ /**
133
+ * Create a new ArrayNode whose children are the results of calling
134
+ * the provided callback function for each child of the original node.
135
+ * @param callback
136
+ * @returns Returns a transformed copy of the node
137
+ */
138
+ map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
139
+ /**
140
+ * Create a clone of this node, a shallow copy
141
+ */
142
+ clone(): /*elided*/ any;
143
+ /**
144
+ * Get string representation
145
+ * @param options
146
+ * @returns str
147
+ * @override
148
+ */
149
+ _toString(options?: StringOptions): string;
150
+ /**
151
+ * Get a JSON representation of the node
152
+ */
153
+ toJSON(): {
154
+ mathjs: string;
155
+ items: MathNode[];
156
+ };
157
+ /**
158
+ * Get HTML representation
159
+ * @param options
160
+ * @returns str
161
+ * @override
162
+ */
163
+ _toHTML(options?: StringOptions): string;
164
+ /**
165
+ * Get the MathML representation of this node (mirrors `_toTex`: a
166
+ * bracketed `mtable`, a flat array is a column vector).
167
+ */
168
+ _toMathML(): string;
169
+ /**
170
+ * Get LaTeX representation
171
+ * @param options
172
+ * @returns str
173
+ */
174
+ _toTex(options?: StringOptions): string;
170
175
  transform(callback: (node: {
171
176
  get type(): string;
172
177
  get isNode(): boolean;
@@ -478,7 +483,6 @@ export declare const createArrayNode: import("../utils/factory.js").FactoryFunct
478
483
  name?: string;
479
484
  }): string;
480
485
  toMathML(): string;
481
- _toMathML(): string;
482
486
  _getCustomString(options?: StringOptions): string | undefined;
483
487
  getIdentifier(): string;
484
488
  getContent(): {
@@ -563,66 +567,6 @@ export declare const createArrayNode: import("../utils/factory.js").FactoryFunct
563
567
  getIdentifier(): string;
564
568
  getContent(): /*elided*/ any;
565
569
  };
566
- items: MathNode[];
567
- get type(): string;
568
- get isArrayNode(): boolean;
569
- /**
570
- * Compile a node into a JavaScript function.
571
- * This basically pre-calculates as much as possible and only leaves open
572
- * calculations which depend on a dynamic scope with variables.
573
- * @param math - Math.js namespace with functions and constants.
574
- * @param argNames - An object with argument names as key and `true`
575
- * as value. Used in the SymbolNode to optimize
576
- * for arguments from user assigned functions
577
- * (see FunctionAssignmentNode) or special symbols
578
- * like `end` (see IndexNode).
579
- * @returns Returns a function which can be called like:
580
- * evalNode(scope: Object, args: Object, context: *)
581
- */
582
- _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
583
- /**
584
- * Execute a callback for each of the child nodes of this node
585
- * @param callback
586
- */
587
- forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
588
- /**
589
- * Create a new ArrayNode whose children are the results of calling
590
- * the provided callback function for each child of the original node.
591
- * @param callback
592
- * @returns Returns a transformed copy of the node
593
- */
594
- map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
595
- /**
596
- * Create a clone of this node, a shallow copy
597
- */
598
- clone(): /*elided*/ any;
599
- /**
600
- * Get string representation
601
- * @param options
602
- * @returns str
603
- * @override
604
- */
605
- _toString(options?: StringOptions): string;
606
- /**
607
- * Get a JSON representation of the node
608
- */
609
- toJSON(): {
610
- mathjs: string;
611
- items: MathNode[];
612
- };
613
- /**
614
- * Get HTML representation
615
- * @param options
616
- * @returns str
617
- * @override
618
- */
619
- _toHTML(options?: StringOptions): string;
620
- /**
621
- * Get LaTeX representation
622
- * @param options
623
- * @returns str
624
- */
625
- _toTex(options?: StringOptions): string;
626
570
  traverse(callback: (node: {
627
571
  get type(): string;
628
572
  get isNode(): boolean;
@@ -690,6 +634,71 @@ export declare const createArrayNode: import("../utils/factory.js").FactoryFunct
690
634
  getIdentifier(): string;
691
635
  getContent(): any;
692
636
  } | null) => void): void;
637
+ items: MathNode[];
638
+ get type(): string;
639
+ get isArrayNode(): boolean;
640
+ /**
641
+ * Compile a node into a JavaScript function.
642
+ * This basically pre-calculates as much as possible and only leaves open
643
+ * calculations which depend on a dynamic scope with variables.
644
+ * @param math - Math.js namespace with functions and constants.
645
+ * @param argNames - An object with argument names as key and `true`
646
+ * as value. Used in the SymbolNode to optimize
647
+ * for arguments from user assigned functions
648
+ * (see FunctionAssignmentNode) or special symbols
649
+ * like `end` (see IndexNode).
650
+ * @returns Returns a function which can be called like:
651
+ * evalNode(scope: Object, args: Object, context: *)
652
+ */
653
+ _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
654
+ /**
655
+ * Execute a callback for each of the child nodes of this node
656
+ * @param callback
657
+ */
658
+ forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
659
+ /**
660
+ * Create a new ArrayNode whose children are the results of calling
661
+ * the provided callback function for each child of the original node.
662
+ * @param callback
663
+ * @returns Returns a transformed copy of the node
664
+ */
665
+ map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
666
+ /**
667
+ * Create a clone of this node, a shallow copy
668
+ */
669
+ clone(): /*elided*/ any;
670
+ /**
671
+ * Get string representation
672
+ * @param options
673
+ * @returns str
674
+ * @override
675
+ */
676
+ _toString(options?: StringOptions): string;
677
+ /**
678
+ * Get a JSON representation of the node
679
+ */
680
+ toJSON(): {
681
+ mathjs: string;
682
+ items: MathNode[];
683
+ };
684
+ /**
685
+ * Get HTML representation
686
+ * @param options
687
+ * @returns str
688
+ * @override
689
+ */
690
+ _toHTML(options?: StringOptions): string;
691
+ /**
692
+ * Get the MathML representation of this node (mirrors `_toTex`: a
693
+ * bracketed `mtable`, a flat array is a column vector).
694
+ */
695
+ _toMathML(): string;
696
+ /**
697
+ * Get LaTeX representation
698
+ * @param options
699
+ * @returns str
700
+ */
701
+ _toTex(options?: StringOptions): string;
693
702
  transform(callback: (node: {
694
703
  get type(): string;
695
704
  get isNode(): boolean;
@@ -1001,7 +1010,6 @@ export declare const createArrayNode: import("../utils/factory.js").FactoryFunct
1001
1010
  name?: string;
1002
1011
  }): string;
1003
1012
  toMathML(): string;
1004
- _toMathML(): string;
1005
1013
  _getCustomString(options?: StringOptions): string | undefined;
1006
1014
  getIdentifier(): string;
1007
1015
  getContent(): {
@@ -1 +1 @@
1
- {"version":3,"file":"ArrayNode.d.ts","sourceRoot":"","sources":["../../src/node/ArrayNode.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAMzD,eAAO,MAAM,eAAe;UAGP,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,QAAQ;;iBAU/B,Q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AM,EAAE,MAAM,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;QAOlF;;;;;WAKG;sBACW,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,KAAK,QAAQ;QAK3E;;WAEG;;QAKH;;;;;WAKG;4BACiB,aAAa,GAAG,MAAM;QAO1C;;WAEG;kBACO;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,QAAQ,EAAE,CAAA;SAAE;QAiB/C;;;;;WAKG;0BACe,aAAa,GAAG,MAAM;QAWxC;;;WAGG;qBACU,MAAM;QA8BnB;;;;WAIG;yBACc,aAAa,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B5C,CAAC"}
@@ -102,6 +102,10 @@ export declare const createBlockNode: import("../utils/factory.js").FactoryFunct
102
102
  * @override
103
103
  */
104
104
  _toHTML(options?: StringOptions): string;
105
+ /**
106
+ * Get the MathML representation of this node (mirrors `_toTex`).
107
+ */
108
+ _toMathML(): string;
105
109
  /**
106
110
  * Get LaTeX representation
107
111
  * @param options
@@ -486,7 +490,6 @@ export declare const createBlockNode: import("../utils/factory.js").FactoryFunct
486
490
  name?: string;
487
491
  }): string;
488
492
  toMathML(): string;
489
- _toMathML(): string;
490
493
  _getCustomString(options?: StringOptions): string | undefined;
491
494
  getIdentifier(): string;
492
495
  getContent(): {
@@ -629,6 +632,10 @@ export declare const createBlockNode: import("../utils/factory.js").FactoryFunct
629
632
  * @override
630
633
  */
631
634
  _toHTML(options?: StringOptions): string;
635
+ /**
636
+ * Get the MathML representation of this node (mirrors `_toTex`).
637
+ */
638
+ _toMathML(): string;
632
639
  /**
633
640
  * Get LaTeX representation
634
641
  * @param options
@@ -1013,7 +1020,6 @@ export declare const createBlockNode: import("../utils/factory.js").FactoryFunct
1013
1020
  name?: string;
1014
1021
  }): string;
1015
1022
  toMathML(): string;
1016
- _toMathML(): string;
1017
1023
  _getCustomString(options?: StringOptions): string | undefined;
1018
1024
  getIdentifier(): string;
1019
1025
  getContent(): {
@@ -1 +1 @@
1
- {"version":3,"file":"BlockNode.d.ts","sourceRoot":"","sources":["../../src/node/BlockNode.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAKzD,UAAU,SAAS;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,eAAe;eAOb,KAAK,OAAO,EAAE,OAAO,EAAE,KAAK,OAAO;UACxC,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,QAAQ;;iBAepB,KAAK,CAAC;QAAE,IAAI,EAAE,QAAQ,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAZxD,SAAS,EAAE;oBA6BP,MAAM;2BAGC,OAAO;QAI1B;;;;;;;;;;;;WAYG;uBAEK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YACnB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAA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