Skip to content

Commit

Permalink
Added new 'configureInvert' callback before invert is loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
handstandsam committed Nov 27, 2024
1 parent 29f364a commit 1aa2f11
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion invert-gradle-plugin/src/main/resources/META-INF/invert.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,11 @@ window.renderPlotlyTreeMap = function (domElementId, filePaths, onClick) {
// Render the Plotly chart
Plotly.newPlot(domElementId, plotlyData, layout, config);
});
}
}

/**
* Allows someone to define a "customizeInvert" function to be called before it is loaded.
*/
if (typeof window.configureInvert === 'function') {
window.configureInvert();
}

0 comments on commit 1aa2f11

Please sign in to comment.