UNPKG

@macrostrat/column-components

Version:

React rendering primitives for stratigraphic columns

26 lines (25 loc) 717 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const type = require("./type.cjs"); const { PI, min, max } = Math; const rnd2 = (a) => Math.round(a * 100) / 100; const rnd3 = (a) => Math.round(a * 100) / 100; const TWOPI = PI * 2; const PITHIRD = PI / 3; const DEG2RAD = PI / 180; const RAD2DEG = 180 / PI; function reverse3(arr) { return [...arr.slice(0, 3).reverse(), ...arr.slice(3)]; } exports.type = type; exports.DEG2RAD = DEG2RAD; exports.PI = PI; exports.PITHIRD = PITHIRD; exports.RAD2DEG = RAD2DEG; exports.TWOPI = TWOPI; exports.max = max; exports.min = min; exports.reverse3 = reverse3; exports.rnd2 = rnd2; exports.rnd3 = rnd3; //# sourceMappingURL=index.cjs.map