Skip to content

Commit 6bdc14b

Browse files
committed
fix: make annotation orientation type optional
1 parent 3f85621 commit 6bdc14b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/models/Annotation.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ interface AnnotationLabel {
1515
readonly fontFamily?: string;
1616
readonly fontSize?: string;
1717
readonly fontWeight?: string;
18-
readonly orientation: Orientation;
19-
readonly text: string;
18+
readonly orientation?: Orientation;
19+
readonly text?: string;
2020
}
2121
/**
2222
* Interface representing an annotation in the graph.
2323
*/
2424
export interface Annotation {
2525
readonly bgColor?: string;
26-
readonly borderColor: string;
27-
readonly borderDashArray: number;
28-
readonly borderWidth: number;
26+
readonly borderColor?: string;
27+
readonly borderDashArray?: number;
28+
readonly borderWidth?: number;
2929
readonly label?: AnnotationLabel;
3030
readonly x1: string;
3131
readonly x2?: null | string;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apexgantt",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"dependencies": {
55
"dayjs": "^1.11.13",
66
"lodash": "^4.17.21"

0 commit comments

Comments
 (0)