laif-ds
Version:
Design System di Laif con componenti React basati su principi di Atomic Design
16 lines (15 loc) • 566 B
JavaScript
"use client";
import { createSelector as i } from "../../../../reselect/dist/reselect.js";
import { selectChartOffset as m } from "./selectChartOffset.js";
import { selectMargin as h } from "./containerSelectors.js";
import { isNumber as r } from "../../util/DataUtils.js";
var l = (o) => o.brush, w = i([l, m, h], (o, e, t) => ({
height: o.height,
x: r(o.x) ? o.x : e.left,
y: r(o.y) ? o.y : e.top + e.height + e.brushBottom - (t?.bottom || 0),
width: r(o.width) ? o.width : e.width
}));
export {
w as selectBrushDimensions,
l as selectBrushSettings
};