@antv/g2plot
Version:
G2 Plot, a market of plots built with the Grammar of Graphics'
11 lines • 324 B
JavaScript
function elementDistVertical(a, b, cfg) {
if (cfg === void 0) { cfg = { value: 5 }; }
var dist = Math.abs(a.bottom - b.top);
return Math.round(dist) >= cfg.value;
}
export default {
type: 'chain',
usage: 'compare',
expression: elementDistVertical,
};
//# sourceMappingURL=element-dist-vertical.js.map