@glideapps/glide-data-grid
Version:
React data grid for beautifully displaying and editing large amounts of data with amazing performance.
30 lines • 1.33 kB
JavaScript
/** @category Types */
export const headerKind = "header";
/** @category Types */
export const groupHeaderKind = "group-header";
/** @category Types */
export const outOfBoundsKind = "out-of-bounds";
/** @category Types */
export var OutOfBoundsRegionAxis;
(function (OutOfBoundsRegionAxis) {
OutOfBoundsRegionAxis[OutOfBoundsRegionAxis["Start"] = -2] = "Start";
OutOfBoundsRegionAxis[OutOfBoundsRegionAxis["StartPadding"] = -1] = "StartPadding";
OutOfBoundsRegionAxis[OutOfBoundsRegionAxis["Center"] = 0] = "Center";
OutOfBoundsRegionAxis[OutOfBoundsRegionAxis["EndPadding"] = 1] = "EndPadding";
OutOfBoundsRegionAxis[OutOfBoundsRegionAxis["End"] = 2] = "End";
})(OutOfBoundsRegionAxis || (OutOfBoundsRegionAxis = {}));
export function mouseEventArgsAreEqual(args, other) {
if (args === other)
return true;
if (args?.kind === "out-of-bounds") {
return (args?.kind === other?.kind &&
args?.location[0] === other?.location[0] &&
args?.location[1] === other?.location[1] &&
args?.region[0] === other?.region[0] &&
args?.region[1] === other?.region[1]);
}
return (args?.kind === other?.kind &&
args?.location[0] === other?.location[0] &&
args?.location[1] === other?.location[1]);
}
//# sourceMappingURL=event-args.js.map