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
- calendartSettings: {
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
- calendartSettings: {
113
+ calendarSettings: {
114
114
  width: object?.calendarWidth,
115
115
  height: object?.calendarHeight,
116
116
  objectFit: object?.objectFit,
@@ -214,8 +214,8 @@ const asyncGetObject = async (object, options) => {
214
214
  ...object,
215
215
  isOriginal: options?.isOriginal,
216
216
  });
217
- if (object?.calendarUrl) {
218
- await calendarObject?.loadImage?.(object?.calendarUrl);
217
+ if (object?.calendarSettings?.url) {
218
+ await calendarObject?.loadImage?.(object?.calendarSettings?.url);
219
219
  }
220
220
  return calendarObject;
221
221
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customized-fabric",
3
- "version": "1.7.9",
3
+ "version": "1.8.1",
4
4
  "description": "Customized fabric",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",