Browse Source

feat: export getCommonBounds util (#7247)

* feat: export getCommonBounds util

* add pr link

* fix
Aakansha Doshi 1 year ago
parent
commit
ce7a847668
2 changed files with 7 additions and 0 deletions
  1. 6 0
      src/packages/excalidraw/CHANGELOG.md
  2. 1 0
      src/packages/excalidraw/index.tsx

+ 6 - 0
src/packages/excalidraw/CHANGELOG.md

@@ -15,8 +15,14 @@ Please add the latest change on the top under the correct section.
 
 ### Features
 
+- Export [`getCommonBounds`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils#getcommonbounds) helper from the package [#7247](https://github.com/excalidraw/excalidraw/pull/7247).
+
+- Support frames via programmatic API [#7205](https://github.com/excalidraw/excalidraw/pull/7205).
+
 - Export `elementsOverlappingBBox`, `isElementInsideBBox`, `elementPartiallyOverlapsWithOrContainsBBox` helpers for filtering/checking if elements within bounds. [#6727](https://github.com/excalidraw/excalidraw/pull/6727)
+
 - Regenerate ids by default when using transform api and also update bindings by 0.5px to avoid possible overlapping [#7195](https://github.com/excalidraw/excalidraw/pull/7195)
+
 - Add `selected` prop for `MainMenu.Item` and `MainMenu.ItemCustom` components to indicate active state. [#7078](https://github.com/excalidraw/excalidraw/pull/7078)
 
 #### BREAKING CHANGES

+ 1 - 0
src/packages/excalidraw/index.tsx

@@ -254,6 +254,7 @@ export { DefaultSidebar } from "../../components/DefaultSidebar";
 
 export { normalizeLink } from "../../data/url";
 export { convertToExcalidrawElements } from "../../data/transform";
+export { getCommonBounds } from "../../element/bounds";
 
 export {
   elementsOverlappingBBox,