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