Skip to content

Commit 81a5c13

Browse files
authored
fix: expose DrawCellInfo type (#458)
* fix: expose DrawCellInfo type * update
1 parent 2d1610b commit 81a5c13

28 files changed

+81
-74
lines changed

packages/cheetah-grid/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cheetah-grid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cheetah-grid",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "Cheetah Grid is a high performance grid engine that works on canvas",
55
"keywords": [
66
"spreadsheet",

packages/cheetah-grid/src/js/ListGrid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import type {
1111
ColumnIconOption,
1212
ColumnStyleOption,
1313
ColumnTypeAPI,
14+
DrawCellInfo,
1415
DrawGridAPI,
1516
EventListenerId,
1617
FieldData,
@@ -55,7 +56,6 @@ import {
5556
import type { BaseColumn } from "./columns/type/BaseColumn";
5657
import { BaseStyle } from "./columns/style";
5758
import type { ColumnData } from "./list-grid/layout-map/api";
58-
import type { DrawCellInfo } from "./ts-types-internal";
5959
import { DrawGrid } from "./core/DrawGrid";
6060
import { GridCanvasHelper } from "./GridCanvasHelper";
6161
import { BaseStyle as HeaderBaseStyle } from "./header/style";

packages/cheetah-grid/src/js/columns/indicator/type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type {
22
CellContext,
3+
DrawCellInfo,
34
GridCanvasHelperAPI,
45
IndicatorObject,
56
ListGridAPI,
67
} from "../../ts-types";
7-
import type { DrawCellInfo } from "../../ts-types-internal";
88

99
export const enum DrawIndicatorKind {
1010
topLeft,

packages/cheetah-grid/src/js/columns/message/BaseMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type {
22
CellContext,
33
ColumnStyle,
4+
DrawCellInfo,
45
GridCanvasHelperAPI,
56
ListGridAPI,
67
MessageObject,
78
} from "../../ts-types";
8-
import type { DrawCellInfo } from "../../ts-types-internal";
99
import type { MessageElement } from "./internal/MessageElement";
1010

1111
export abstract class BaseMessage<T> {

packages/cheetah-grid/src/js/columns/message/ErrorMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import * as messageUtils from "./messageUtils";
22
import type {
33
CellContext,
44
ColumnStyle,
5+
DrawCellInfo,
56
GridCanvasHelperAPI,
67
ListGridAPI,
78
MessageObject,
89
} from "../../ts-types";
910
import { BaseMessage } from "./BaseMessage";
10-
import type { DrawCellInfo } from "../../ts-types-internal";
1111
import { ErrorMessageElement } from "./internal/ErrorMessageElement";
1212
import { cellInRange } from "../../internal/utils";
1313

packages/cheetah-grid/src/js/columns/message/InfoMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import * as messageUtils from "./messageUtils";
22
import type {
33
CellContext,
44
ColumnStyle,
5+
DrawCellInfo,
56
GridCanvasHelperAPI,
67
ListGridAPI,
78
MessageObject,
89
} from "../../ts-types";
910
import { BaseMessage } from "./BaseMessage";
10-
import type { DrawCellInfo } from "../../ts-types-internal";
1111
import { MessageElement } from "./internal/MessageElement";
1212
import { cellInRange } from "../../internal/utils";
1313
const GREY_L2 = "#e0e0e0";

packages/cheetah-grid/src/js/columns/message/MessageHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {
22
MessageHandler as Base,
33
DrawCellInfo,
4-
} from "../../ts-types-internal";
4+
} from "../../ts-types/grid-engine";
55
import type {
66
CellContext,
77
ColumnStyle,

packages/cheetah-grid/src/js/columns/message/WarningMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import * as messageUtils from "./messageUtils";
22
import type {
33
CellContext,
44
ColumnStyle,
5+
DrawCellInfo,
56
GridCanvasHelperAPI,
67
ListGridAPI,
78
MessageObject,
89
} from "../../ts-types";
910
import { BaseMessage } from "./BaseMessage";
10-
import type { DrawCellInfo } from "../../ts-types-internal";
1111
import { WarningMessageElement } from "./internal/WarningMessageElement";
1212
import { cellInRange } from "../../internal/utils";
1313

packages/cheetah-grid/src/js/columns/type/BaseColumn.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@ import type {
44
CellAddress,
55
CellContext,
66
ColumnTypeAPI,
7+
DrawCellInfo,
78
EventListenerId,
89
GridCanvasHelperAPI,
910
LayoutObjectId,
1011
ListGridAPI,
1112
MaybePromise,
1213
Message,
1314
} from "../../ts-types";
14-
import type {
15-
ColumnFadeinState,
16-
DrawCellInfo,
17-
GridInternal,
18-
} from "../../ts-types-internal";
15+
import type { ColumnFadeinState, GridInternal } from "../../ts-types-internal";
1916
import { isPromise, obj } from "../../internal/utils";
2017
import { BaseStyle } from "../style/BaseStyle";
2118
import { DrawIndicatorKind } from "../indicator/type";

0 commit comments

Comments
 (0)