From ce7a847668128b2fb22d1647826ec8280d7d3399 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Tue, 7 Nov 2023 14:19:13 +0530 Subject: [PATCH] feat: export getCommonBounds util (#7247) * feat: export getCommonBounds util * add pr link * fix --- src/packages/excalidraw/CHANGELOG.md | 6 ++++++ src/packages/excalidraw/index.tsx | 1 + 2 files changed, 7 insertions(+) diff --git a/src/packages/excalidraw/CHANGELOG.md b/src/packages/excalidraw/CHANGELOG.md index 474b1c90..7f21b9cc 100644 --- a/src/packages/excalidraw/CHANGELOG.md +++ b/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 diff --git a/src/packages/excalidraw/index.tsx b/src/packages/excalidraw/index.tsx index f0e9adc0..ac12c65a 100644 --- a/src/packages/excalidraw/index.tsx +++ b/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,