customized-fabric 1.8.1 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,13 @@ export declare const toCalendarObject: (object: Calendar) => {
14
14
  calendarSettings: {
15
15
  width: number | undefined;
16
16
  height: number | undefined;
17
+ backgroundColor: string | undefined;
18
+ titleColor: string | undefined;
19
+ dayColor: string | undefined;
20
+ dateColor: string | undefined;
21
+ markedDateColor: string | undefined;
22
+ markerUrl: string | undefined;
23
+ fontUrl: string | undefined;
17
24
  objectFit: string | undefined;
18
25
  };
19
26
  };
@@ -29,6 +36,13 @@ export default class Calendar extends fabric.Group {
29
36
  objectFit?: string;
30
37
  calendarWidth?: number;
31
38
  calendarHeight?: number;
39
+ calendarFontUrl?: string;
40
+ calendarBackgroundColor?: string;
41
+ calendarTitleColor?: string;
42
+ calendarDayColor?: string;
43
+ calendarDateColor?: string;
44
+ calendarMarkedDateColor?: string;
45
+ calendarMarkerUrl?: string;
32
46
  getSettings?: (attribute: string) => any;
33
47
  setSizes?: (options: {
34
48
  width?: number;
@@ -113,6 +113,13 @@ const toCalendarObject = (object) => {
113
113
  calendarSettings: {
114
114
  width: object?.calendarWidth,
115
115
  height: object?.calendarHeight,
116
+ backgroundColor: object?.calendarBackgroundColor,
117
+ titleColor: object?.calendarTitleColor,
118
+ dayColor: object?.calendarDayColor,
119
+ dateColor: object?.calendarDateColor,
120
+ markedDateColor: object?.calendarMarkedDateColor,
121
+ markerUrl: object?.calendarMarkerUrl,
122
+ fontUrl: object?.calendarFontUrl,
116
123
  objectFit: object?.objectFit,
117
124
  },
118
125
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customized-fabric",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "Customized fabric",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",