(classes, options, style)
| 925 | }; |
| 926 | |
| 927 | var initNode = function initNode(classes, options, style) { |
| 928 | this.classes = classes || []; |
| 929 | this.attributes = {}; |
| 930 | this.height = 0; |
| 931 | this.depth = 0; |
| 932 | this.maxFontSize = 0; |
| 933 | this.style = style || {}; |
| 934 | |
| 935 | if (options) { |
| 936 | if (options.style.isTight()) { |
| 937 | this.classes.push("mtight"); |
| 938 | } |
| 939 | |
| 940 | var color = options.getColor(); |
| 941 | |
| 942 | if (color) { |
| 943 | this.style.color = color; |
| 944 | } |
| 945 | } |
| 946 | }; |
| 947 | /** |
| 948 | * Convert into an HTML node |
| 949 | */ |