mirror of
https://github.com/apache/superset.git
synced 2026-04-10 20:06:13 +00:00
[revert] reverting big num changes (#2567)
* Revert "[big num] make sure scatterplot dots align properly (#2559)" This reverts commitf24ddfd467. * Revert "Revert "measure x axis labels too and use the longest to determine margins" (#2550)" This reverts commitfe68bc31c3. * Revert "[bug num vis] fix sizing for single digits (#2548)" This reverts commit3d2c791ff1. * revert all big num changes. * fix linting * make document global, fix linting
This commit is contained in:
@@ -189,14 +189,6 @@ export function customizeToolTip(chart, xAxisFormatter, yAxisFormatters) {
|
||||
});
|
||||
}
|
||||
|
||||
export function getTextWidth(text, fontDetails) {
|
||||
const canvas = document.createElement('canvas');
|
||||
const context = canvas.getContext('2d');
|
||||
context.font = fontDetails;
|
||||
const metrics = context.measureText(text);
|
||||
return metrics.width;
|
||||
}
|
||||
|
||||
export function initJQueryAjaxCSRF() {
|
||||
// Works in conjunction with a Flask-WTF token as described here:
|
||||
// http://flask-wtf.readthedocs.io/en/stable/csrf.html#javascript-requests
|
||||
|
||||
Reference in New Issue
Block a user