customized-fabric 1.7.9 → 1.8.1
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.
@@ -11,7 +11,7 @@ export declare const toCalendarObject: (object: Calendar) => {
|
|
11
11
|
isAdditional: boolean | undefined;
|
12
12
|
layoutGroupId: string | undefined;
|
13
13
|
layoutGroupName: string | undefined;
|
14
|
-
|
14
|
+
calendarSettings: {
|
15
15
|
width: number | undefined;
|
16
16
|
height: number | undefined;
|
17
17
|
objectFit: string | undefined;
|
@@ -110,7 +110,7 @@ const toCalendarObject = (object) => {
|
|
110
110
|
isAdditional: object?.isAdditional,
|
111
111
|
layoutGroupId: object?.layoutGroupId,
|
112
112
|
layoutGroupName: object?.layoutGroupName,
|
113
|
-
|
113
|
+
calendarSettings: {
|
114
114
|
width: object?.calendarWidth,
|
115
115
|
height: object?.calendarHeight,
|
116
116
|
objectFit: object?.objectFit,
|
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
|
}
|