Wrappers.ts 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*************************************************************
  2. *
  3. * Copyright (c) 2017-2022 The MathJax Consortium
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. /**
  18. * @fileoverview An object listing all the CHTMLWrapper classes
  19. *
  20. * @author dpvc@mathjax.org (Davide Cervone)
  21. */
  22. import {WrapperConstructor} from '../common/Wrapper.js';
  23. import {CHTMLWrapper} from './Wrapper.js';
  24. import {CHTMLmath} from './Wrappers/math.js';
  25. import {CHTMLmi} from './Wrappers/mi.js';
  26. import {CHTMLmo} from './Wrappers/mo.js';
  27. import {CHTMLmn} from './Wrappers/mn.js';
  28. import {CHTMLms} from './Wrappers/ms.js';
  29. import {CHTMLmtext} from './Wrappers/mtext.js';
  30. import {CHTMLmspace} from './Wrappers/mspace.js';
  31. import {CHTMLmpadded} from './Wrappers/mpadded.js';
  32. import {CHTMLmenclose} from './Wrappers/menclose.js';
  33. import {CHTMLmrow, CHTMLinferredMrow} from './Wrappers/mrow.js';
  34. import {CHTMLmfenced} from './Wrappers/mfenced.js';
  35. import {CHTMLmfrac} from './Wrappers/mfrac.js';
  36. import {CHTMLmsqrt} from './Wrappers/msqrt.js';
  37. import {CHTMLmroot} from './Wrappers/mroot.js';
  38. import {CHTMLmsub, CHTMLmsup, CHTMLmsubsup} from './Wrappers/msubsup.js';
  39. import {CHTMLmover, CHTMLmunder, CHTMLmunderover} from './Wrappers/munderover.js';
  40. import {CHTMLmmultiscripts} from './Wrappers/mmultiscripts.js';
  41. import {CHTMLmtable} from './Wrappers/mtable.js';
  42. import {CHTMLmtr, CHTMLmlabeledtr} from './Wrappers/mtr.js';
  43. import {CHTMLmtd} from './Wrappers/mtd.js';
  44. import {CHTMLmaction} from './Wrappers/maction.js';
  45. import {CHTMLmglyph} from './Wrappers/mglyph.js';
  46. import {CHTMLsemantics, CHTMLannotation, CHTMLannotationXML, CHTMLxml} from './Wrappers/semantics.js';
  47. import {CHTMLTeXAtom} from './Wrappers/TeXAtom.js';
  48. import {CHTMLTextNode} from './Wrappers/TextNode.js';
  49. export const CHTMLWrappers: {[kind: string]: WrapperConstructor} = {
  50. [CHTMLmath.kind]: CHTMLmath,
  51. [CHTMLmrow.kind]: CHTMLmrow,
  52. [CHTMLinferredMrow.kind]: CHTMLinferredMrow,
  53. [CHTMLmi.kind]: CHTMLmi,
  54. [CHTMLmo.kind]: CHTMLmo,
  55. [CHTMLmn.kind]: CHTMLmn,
  56. [CHTMLms.kind]: CHTMLms,
  57. [CHTMLmtext.kind]: CHTMLmtext,
  58. [CHTMLmspace.kind]: CHTMLmspace,
  59. [CHTMLmpadded.kind]: CHTMLmpadded,
  60. [CHTMLmenclose.kind]: CHTMLmenclose,
  61. [CHTMLmfrac.kind]: CHTMLmfrac,
  62. [CHTMLmsqrt.kind]: CHTMLmsqrt,
  63. [CHTMLmroot.kind]: CHTMLmroot,
  64. [CHTMLmsub.kind]: CHTMLmsub,
  65. [CHTMLmsup.kind]: CHTMLmsup,
  66. [CHTMLmsubsup.kind]: CHTMLmsubsup,
  67. [CHTMLmunder.kind]: CHTMLmunder,
  68. [CHTMLmover.kind]: CHTMLmover,
  69. [CHTMLmunderover.kind]: CHTMLmunderover,
  70. [CHTMLmmultiscripts.kind]: CHTMLmmultiscripts,
  71. [CHTMLmfenced.kind]: CHTMLmfenced,
  72. [CHTMLmtable.kind]: CHTMLmtable,
  73. [CHTMLmtr.kind]: CHTMLmtr,
  74. [CHTMLmlabeledtr.kind]: CHTMLmlabeledtr,
  75. [CHTMLmtd.kind]: CHTMLmtd,
  76. [CHTMLmaction.kind]: CHTMLmaction,
  77. [CHTMLmglyph.kind]: CHTMLmglyph,
  78. [CHTMLsemantics.kind]: CHTMLsemantics,
  79. [CHTMLannotation.kind]: CHTMLannotation,
  80. [CHTMLannotationXML.kind]: CHTMLannotationXML,
  81. [CHTMLxml.kind]: CHTMLxml,
  82. [CHTMLTeXAtom.kind]: CHTMLTeXAtom,
  83. [CHTMLTextNode.kind]: CHTMLTextNode,
  84. [CHTMLWrapper.kind]: CHTMLWrapper
  85. };