@univerjs/sheets-drawing-ui 1.0.0-alpha.2 → 1.0.0-alpha.3

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.
package/lib/cjs/facade.js CHANGED
@@ -52,6 +52,7 @@ var FWorksheetDrawingUIMixin = class extends _univerjs_sheets_facade.FWorksheet
52
52
  unitId,
53
53
  subUnitId
54
54
  });
55
+ if (!drawingParm) return null;
55
56
  const { left, top, width, height, flipX, flipY, angle, skewX, skewY } = rect.getState();
56
57
  return {
57
58
  position: {
@@ -70,7 +71,7 @@ var FWorksheetDrawingUIMixin = class extends _univerjs_sheets_facade.FWorksheet
70
71
  data: drawingParm.data,
71
72
  id: info.id
72
73
  };
73
- });
74
+ }).filter((dom) => dom != null);
74
75
  }
75
76
  updateFloatDom(id, config) {
76
77
  var _transformToDrawingPo, _transformToAxisAlign;