* @param {object} options
(options, fallback)
| 93 | * @param {object} options |
| 94 | */ |
| 95 | function getTitleHeight(options, fallback) { |
| 96 | if (!options.display) { |
| 97 | return 0; |
| 98 | } |
| 99 | |
| 100 | const font = toFont(options.font, fallback); |
| 101 | const padding = toPadding(options.padding); |
| 102 | const lines = isArray(options.text) ? options.text.length : 1; |
| 103 | |
| 104 | return (lines * font.lineHeight) + padding.height; |
| 105 | } |
| 106 | |
| 107 | function createScaleContext(parent, scale) { |
| 108 | return createContext(parent, { |
no test coverage detected
searching dependent graphs…