customized-fabric 1.8.0 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -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/lib/utils/index.js
CHANGED
@@ -214,8 +214,8 @@ const asyncGetObject = async (object, options) => {
|
|
214
214
|
...object,
|
215
215
|
isOriginal: options?.isOriginal,
|
216
216
|
});
|
217
|
-
if (object?.
|
218
|
-
await calendarObject?.loadImage?.(object?.
|
217
|
+
if (object?.calendarSettings?.url) {
|
218
|
+
await calendarObject?.loadImage?.(object?.calendarSettings?.url);
|
219
219
|
}
|
220
220
|
return calendarObject;
|
221
221
|
}
|