(classes, options, style)
| 965 | }; |
| 966 | |
| 967 | const initNode = function initNode(classes, options, style) { |
| 968 | this.classes = classes || []; |
| 969 | this.attributes = {}; |
| 970 | this.height = 0; |
| 971 | this.depth = 0; |
| 972 | this.maxFontSize = 0; |
| 973 | this.style = style || {}; |
| 974 | |
| 975 | if (options) { |
| 976 | if (options.style.isTight()) { |
| 977 | this.classes.push("mtight"); |
| 978 | } |
| 979 | |
| 980 | const color = options.getColor(); |
| 981 | |
| 982 | if (color) { |
| 983 | this.style.color = color; |
| 984 | } |
| 985 | } |
| 986 | }; |
| 987 | /** |
| 988 | * Convert into an HTML node |
| 989 | */ |