Skip to content

Commit 9095f2d

Browse files
authoredNov 15, 2022
5.2.0 (#552)
* rem support * 5.2.0-alpha1 * Cleanup handling of drilldowns and make sure iOS handles rems better * 5.2.0-alpha2 * Fix tests * Crash fixes * Maybe fix bug where scroll gets stuck in rare circumstance * 5.2.0-alpha3 * Move fix to the correct location * 5.2.0-alpha4 * Better fix * WIP * Fix tests * 5.2.0-beta1 * Add row marker theme override ability * Add mouse drag to select rows * Some more mild restrictions * 5.2.0-beta2 * Fix SSR again * Fix hook * Ensure right click does not reset selection when right clicking on selection * 5.2.0-beta3 * Make sure allowResize matches the correct resize behavior, fixes #548 * Make spinners more reasonably sized * 5.2.0
1 parent d81adff commit 9095f2d

16 files changed

+508
-115
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "root",
3-
"version": "5.1.4",
3+
"version": "5.2.0",
44
"scripts": {
55
"start": "npm run storybook",
66
"version": "./update-version.sh",

‎packages/cells/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@glideapps/glide-data-grid-cells",
3-
"version": "5.1.4",
3+
"version": "5.2.0",
44
"description": "Extra cells for glide-data-grid",
55
"sideEffects": [
66
"**/*.css"
@@ -50,7 +50,7 @@
5050
"canvas"
5151
],
5252
"dependencies": {
53-
"@glideapps/glide-data-grid": "5.1.4",
53+
"@glideapps/glide-data-grid": "5.2.0",
5454
"@toast-ui/editor": "3.1.10",
5555
"@toast-ui/react-editor": "3.1.10",
5656
"react-select": "^5.2.2"

‎packages/cells/src/cells/links-cell.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const renderer: CustomRenderer<LinksCell> = {
9898

9999
for (const [index, l] of links.entries()) {
100100
const needsComma = index < links.length - 1;
101-
const metrics = measureTextCached(l.title, ctx);
101+
const metrics = measureTextCached(l.title, ctx, font);
102102
const commaMetrics = needsComma ? measureTextCached(l.title + ",", ctx, font) : metrics;
103103

104104
const isHovered = rectHoverX > drawX && rectHoverX < drawX + metrics.width;

‎packages/cells/src/cells/spinner-cell.tsx

+2-8
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,10 @@ const renderer: CustomRenderer<SpinnerCell> = {
1616

1717
const x = rect.x + rect.width / 2;
1818
const y = rect.y + rect.height / 2;
19-
ctx.arc(
20-
x,
21-
y,
22-
Math.min(12, rect.height / 2 - 2),
23-
Math.PI * 2 * progress,
24-
Math.PI * 2 * progress + Math.PI * 1.5
25-
);
19+
ctx.arc(x, y, Math.min(12, rect.height / 6), Math.PI * 2 * progress, Math.PI * 2 * progress + Math.PI * 1.5);
2620

2721
ctx.strokeStyle = theme.textMedium;
28-
ctx.lineWidth = 2;
22+
ctx.lineWidth = 1.5;
2923
ctx.stroke();
3024

3125
ctx.lineWidth = 1;

‎packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@glideapps/glide-data-grid",
3-
"version": "5.1.4",
3+
"version": "5.2.0",
44
"description": "React data grid for beautifully displaying and editing large amounts of data with amazing performance.",
55
"sideEffects": [
66
"**/*.css"

‎packages/core/src/common/styles.ts

+3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export interface Theme {
6868
cellHorizontalPadding: number;
6969
cellVerticalPadding: number;
7070
headerFontStyle: string;
71+
headerIconSize: number;
7172
baseFontStyle: string;
7273
fontFamily: string;
7374
editorFontSize: string;
@@ -109,6 +110,8 @@ const dataEditorBaseTheme: Theme = {
109110
cellHorizontalPadding: 8,
110111
cellVerticalPadding: 3,
111112

113+
headerIconSize: 18,
114+
112115
headerFontStyle: "600 13px",
113116
baseFontStyle: "13px",
114117
fontFamily:

0 commit comments

Comments
 (0)
Failed to load comments.