UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

11 lines 328 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.clamp = void 0; /** * Clamp number within the inclusive range within the lower and upper bounds. */ function clamp(v, lower, upper) { return Math.max(lower, Math.min(v, upper)); } exports.clamp = clamp; //# sourceMappingURL=number.js.map