mirror of
https://github.com/apache/superset.git
synced 2026-04-22 09:35:23 +00:00
Refactor around how visualizations/*.js are required (#913)
* Refactor around how visualizations/*.js are required * Reactifying FilterBox further * Fixing the auto-refresh on filtering events * Fixing preselected filters
This commit is contained in:
committed by
GitHub
parent
198226a39f
commit
e243a14c64
@@ -1,5 +1,5 @@
|
||||
const $ = require('jquery');
|
||||
const d3 = require('d3');
|
||||
const $ = require('jquery');
|
||||
/*
|
||||
Utility function that takes a d3 svg:text selection and a max width, and splits the
|
||||
text's text across multiple tspan lines such that any given line does not exceed max width
|
||||
@@ -7,7 +7,7 @@ const d3 = require('d3');
|
||||
If text does not span multiple lines AND adjustedY is passed,
|
||||
will set the text to the passed val
|
||||
*/
|
||||
function wrapSvgText(text, width, adjustedY) {
|
||||
export function wrapSvgText(text, width, adjustedY) {
|
||||
const lineHeight = 1;
|
||||
// ems
|
||||
text.each(function () {
|
||||
|
||||
Reference in New Issue
Block a user