UNPKG

@antv/g2plot

Version:

G2 Plot, a market of plots built with the Grammar of Graphics'

12 lines 360 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function elementWidth(node, region, cfg) { if (cfg === void 0) { cfg = { ratio: 0.15 }; } return node.width < region.width * cfg.ratio; } exports.default = { type: 'padding', usage: 'compare', expression: elementWidth, }; //# sourceMappingURL=element-width.js.map