You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1650 lines
90 KiB
Markdown
1650 lines
90 KiB
Markdown
4 years ago
|
# Changelog
|
||
4 years ago
|
|
||
4 years ago
|
<!--
|
||
|
Guidelines for changelog:
|
||
|
The change should be grouped under one of the below section and must contain PR link.
|
||
|
- Features: For new features.
|
||
|
- Fixes: For bug fixes.
|
||
|
- Chore: Changes for non src files example package.json.
|
||
|
- Refactor: For any refactoring.
|
||
4 years ago
|
|
||
|
Please add the latest change on the top under the correct section.
|
||
4 years ago
|
-->
|
||
2 years ago
|
|
||
1 year ago
|
## Unreleased
|
||
|
|
||
1 year ago
|
### Breaking Changes
|
||
|
|
||
|
- `appState.openDialog` type was changed from `null | string` to `null | { name: string }`. [#7336](https://github.com/excalidraw/excalidraw/pull/7336)
|
||
|
|
||
|
## 0.17.1 (2023-11-28)
|
||
|
|
||
1 year ago
|
### Fixes
|
||
|
|
||
|
- Umd build for browser since it was breaking in v0.17.0 [#7349](https://github.com/excalidraw/excalidraw/pull/7349). Also make sure that when using `Vite`, the `process.env.IS_PREACT` is set as `"true"` (string) and not a boolean.
|
||
|
|
||
|
```
|
||
|
define: {
|
||
|
"process.env.IS_PREACT": JSON.stringify("true"),
|
||
|
}
|
||
|
```
|
||
|
|
||
1 year ago
|
## Excalidraw Library
|
||
1 year ago
|
|
||
1 year ago
|
### Fixes
|
||
|
|
||
|
- Disable caching bounds for arrow labels [#7343](https://github.com/excalidraw/excalidraw/pull/7343)
|
||
|
|
||
|
---
|
||
1 year ago
|
|
||
1 year ago
|
## 0.17.0 (2023-11-14)
|
||
1 year ago
|
|
||
|
### Features
|
||
|
|
||
1 year ago
|
- Added support for disabling `image` tool (also disabling image insertion in general, though keeps support for importing from `.excalidraw` files) [#6320](https://github.com/excalidraw/excalidraw/pull/6320).
|
||
|
|
||
1 year ago
|
For disabling `image` you need to set 👇
|
||
1 year ago
|
|
||
1 year ago
|
```
|
||
|
UIOptions.tools = {
|
||
|
image: false
|
||
|
}
|
||
|
```
|
||
1 year ago
|
|
||
1 year ago
|
- Support `excalidrawAPI` prop for accessing the Excalidraw API [#7251](https://github.com/excalidraw/excalidraw/pull/7251).
|
||
|
|
||
1 year ago
|
- Export [`getCommonBounds`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils#getcommonbounds) helper from the package [#7247](https://github.com/excalidraw/excalidraw/pull/7247).
|
||
|
|
||
1 year ago
|
- Support frames via programmatic API [#7205](https://github.com/excalidraw/excalidraw/pull/7205).
|
||
|
|
||
1 year ago
|
- Export `elementsOverlappingBBox`, `isElementInsideBBox`, `elementPartiallyOverlapsWithOrContainsBBox` helpers for filtering/checking if elements within bounds. [#6727](https://github.com/excalidraw/excalidraw/pull/6727)
|
||
1 year ago
|
|
||
1 year ago
|
- 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)
|
||
1 year ago
|
|
||
1 year ago
|
- Add onChange, onPointerDown, onPointerUp api subscribers [#7154](https://github.com/excalidraw/excalidraw/pull/7154).
|
||
|
|
||
|
- Support props.locked for setActiveTool [#7153](https://github.com/excalidraw/excalidraw/pull/7153).
|
||
|
|
||
1 year ago
|
- Add `selected` prop for `MainMenu.Item` and `MainMenu.ItemCustom` components to indicate active state. [#7078](https://github.com/excalidraw/excalidraw/pull/7078)
|
||
1 year ago
|
|
||
1 year ago
|
### Fixes
|
||
|
|
||
|
- Double image dialog on image insertion [#7152](https://github.com/excalidraw/excalidraw/pull/7152).
|
||
|
|
||
|
### Breaking Changes
|
||
|
|
||
|
- The `Ref` support has been removed in v0.17.0 so if you are using refs, please update the integration to use the [`excalidrawAPI`](http://localhost:3003/docs/@excalidraw/excalidraw/api/props/excalidraw-api) [#7251](https://github.com/excalidraw/excalidraw/pull/7251).
|
||
|
|
||
|
- Additionally `ready` and `readyPromise` from the API have been discontinued. These APIs were found to be superfluous, and as part of the effort to streamline the APIs and maintain simplicity, they were removed in version v0.17.0 [#7251](https://github.com/excalidraw/excalidraw/pull/7251).
|
||
1 year ago
|
|
||
|
- [`useDevice`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils#usedevice) hook's return value was changed to differentiate between `editor` and `viewport` breakpoints. [#7243](https://github.com/excalidraw/excalidraw/pull/7243)
|
||
|
|
||
1 year ago
|
### Build
|
||
|
|
||
|
- Support Preact [#7255](https://github.com/excalidraw/excalidraw/pull/7255). The host needs to set `process.env.IS_PREACT` to `true`
|
||
|
|
||
1 year ago
|
When using `vite` or any build tools, you will have to make sure the `process` is accessible as we are accessing `process.env.IS_PREACT` to decide whether to use the `preact` build.
|
||
|
|
||
|
Since `Vite` removes env variables by default, you can update the Vite config to ensure its available :point_down:
|
||
|
|
||
|
```
|
||
|
define: {
|
||
|
"process.env.IS_PREACT": process.env.IS_PREACT,
|
||
|
},
|
||
|
```
|
||
|
|
||
|
## Excalidraw Library
|
||
|
|
||
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- Allow D&D dice app domain for embeds [#7263](https://github.com/excalidraw/excalidraw/pull/7263)
|
||
|
|
||
|
- Remove full screen shortcut [#7222](https://github.com/excalidraw/excalidraw/pull/7222)
|
||
|
|
||
|
- Make adaptive-roughness less aggressive [#7250](https://github.com/excalidraw/excalidraw/pull/7250)
|
||
|
|
||
|
- Render frames on export [#7210](https://github.com/excalidraw/excalidraw/pull/7210)
|
||
|
|
||
|
- Support mermaid flowchart and sequence diagrams to excalidraw diagrams 🥳 [#6920](https://github.com/excalidraw/excalidraw/pull/6920)
|
||
|
|
||
|
- Support frames via programmatic API [#7205](https://github.com/excalidraw/excalidraw/pull/7205)
|
||
|
|
||
|
- Make clipboard more robust and reintroduce contextmenu actions [#7198](https://github.com/excalidraw/excalidraw/pull/7198)
|
||
|
|
||
|
- Support giphy.com embed domain [#7192](https://github.com/excalidraw/excalidraw/pull/7192)
|
||
|
|
||
|
- Renderer tweaks [#6698](https://github.com/excalidraw/excalidraw/pull/6698)
|
||
|
|
||
|
- Closing of "Save to.." Dialog on Save To Disk [#7168](https://github.com/excalidraw/excalidraw/pull/7168)
|
||
|
|
||
|
- Added Copy/Paste from Google Docs [#7136](https://github.com/excalidraw/excalidraw/pull/7136)
|
||
|
|
||
|
- Remove bound-arrows from frames [#7157](https://github.com/excalidraw/excalidraw/pull/7157)
|
||
|
|
||
|
- New dark mode theme & light theme tweaks [#7104](https://github.com/excalidraw/excalidraw/pull/7104)
|
||
|
|
||
|
- Better laser cursor for dark mode [#7132](https://github.com/excalidraw/excalidraw/pull/7132)
|
||
|
|
||
|
- Laser pointer improvements [#7128](https://github.com/excalidraw/excalidraw/pull/7128)
|
||
|
|
||
|
- Initial Laser Pointer MVP [#6739](https://github.com/excalidraw/excalidraw/pull/6739)
|
||
|
|
||
|
- Export `iconFillColor()` [#6996](https://github.com/excalidraw/excalidraw/pull/6996)
|
||
|
|
||
|
- Element alignments - snapping [#6256](https://github.com/excalidraw/excalidraw/pull/6256)
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Image insertion bugs [#7278](https://github.com/excalidraw/excalidraw/pull/7278)
|
||
|
|
||
|
- ExportToSvg to honor frameRendering also for name not only for frame itself [#7270](https://github.com/excalidraw/excalidraw/pull/7270)
|
||
|
|
||
|
- Can't toggle penMode off due to missing typecheck in togglePenMode [#7273](https://github.com/excalidraw/excalidraw/pull/7273)
|
||
|
|
||
|
- Replace hard coded font family with const value in addFrameLabelsAsTextElements [#7269](https://github.com/excalidraw/excalidraw/pull/7269)
|
||
|
|
||
|
- Perf issue when ungrouping elements within frame [#7265](https://github.com/excalidraw/excalidraw/pull/7265)
|
||
1 year ago
|
|
||
1 year ago
|
- Fixes the shortcut collision between "toggleHandTool" and "distributeHorizontally" [#7189](https://github.com/excalidraw/excalidraw/pull/7189)
|
||
|
|
||
|
- Allow pointer events when editing a linear element [#7238](https://github.com/excalidraw/excalidraw/pull/7238)
|
||
|
|
||
|
- Make modal use viewport breakpoints [#7246](https://github.com/excalidraw/excalidraw/pull/7246)
|
||
|
|
||
|
- Align input `:hover`/`:focus` with spec [#7225](https://github.com/excalidraw/excalidraw/pull/7225)
|
||
|
|
||
|
- Dialog remounting on className updates [#7224](https://github.com/excalidraw/excalidraw/pull/7224)
|
||
|
|
||
|
- Don't update label position when dragging labelled arrows [#6891](https://github.com/excalidraw/excalidraw/pull/6891)
|
||
|
|
||
|
- Frame add/remove/z-index ordering changes [#7194](https://github.com/excalidraw/excalidraw/pull/7194)
|
||
|
|
||
|
- Element relative position when dragging multiple elements on grid [#7107](https://github.com/excalidraw/excalidraw/pull/7107)
|
||
|
|
||
|
- Freedraw non-solid bg hitbox not working [#7193](https://github.com/excalidraw/excalidraw/pull/7193)
|
||
|
|
||
|
- Actions panel ux improvement [#6850](https://github.com/excalidraw/excalidraw/pull/6850)
|
||
|
|
||
|
- Better fill rendering with latest RoughJS [#7031](https://github.com/excalidraw/excalidraw/pull/7031)
|
||
|
|
||
|
- Fix for Strange Symbol Appearing on Canvas after Deleting Grouped Graphics (Issue #7116) [#7170](https://github.com/excalidraw/excalidraw/pull/7170)
|
||
|
|
||
|
- Attempt to fix flake in wysiwyg tests [#7173](https://github.com/excalidraw/excalidraw/pull/7173)
|
||
|
|
||
|
- Ensure `ClipboardItem` created in the same tick to fix safari [#7066](https://github.com/excalidraw/excalidraw/pull/7066)
|
||
|
|
||
|
- Wysiwyg left in undefined state on reload [#7123](https://github.com/excalidraw/excalidraw/pull/7123)
|
||
|
|
||
|
- Ensure relative z-index of elements added to frame is retained [#7134](https://github.com/excalidraw/excalidraw/pull/7134)
|
||
|
|
||
|
- Memoize static canvas on `props.renderConfig` [#7131](https://github.com/excalidraw/excalidraw/pull/7131)
|
||
|
|
||
|
- Regression from #6739 preventing redirect link in view mode [#7120](https://github.com/excalidraw/excalidraw/pull/7120)
|
||
|
|
||
|
- Update links to excalidraw-app [#7072](https://github.com/excalidraw/excalidraw/pull/7072)
|
||
|
|
||
|
- Ensure we do not stop laser update prematurely [#7100](https://github.com/excalidraw/excalidraw/pull/7100)
|
||
|
|
||
|
- Remove invisible elements safely [#7083](https://github.com/excalidraw/excalidraw/pull/7083)
|
||
|
|
||
|
- Icon size in manifest [#7073](https://github.com/excalidraw/excalidraw/pull/7073)
|
||
|
|
||
|
- Elements being dropped/duplicated when added to frame [#7057](https://github.com/excalidraw/excalidraw/pull/7057)
|
||
|
|
||
|
- Frame name not editable on dbl-click [#7037](https://github.com/excalidraw/excalidraw/pull/7037)
|
||
|
|
||
|
- Polyfill `Element.replaceChildren` [#7034](https://github.com/excalidraw/excalidraw/pull/7034)
|
||
|
|
||
|
### Refactor
|
||
|
|
||
|
- DRY out tool typing [#7086](https://github.com/excalidraw/excalidraw/pull/7086)
|
||
|
|
||
|
- Refactor event globals to differentiate from `lastPointerUp` [#7084](https://github.com/excalidraw/excalidraw/pull/7084)
|
||
|
|
||
|
- DRY out and simplify setting active tool from toolbar [#7079](https://github.com/excalidraw/excalidraw/pull/7079)
|
||
|
|
||
|
### Performance
|
||
|
|
||
|
- Improve element in frame check [#7124](https://github.com/excalidraw/excalidraw/pull/7124)
|
||
|
|
||
|
---
|
||
1 year ago
|
|
||
1 year ago
|
## 0.16.1 (2023-09-21)
|
||
|
|
||
|
## Excalidraw Library
|
||
|
|
||
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- More eye-droper fixes [#7019](https://github.com/excalidraw/excalidraw/pull/7019)
|
||
|
|
||
|
### Refactor
|
||
|
|
||
|
- Move excalidraw-app outside src [#6987](https://github.com/excalidraw/excalidraw/pull/6987)
|
||
|
|
||
|
---
|
||
|
|
||
1 year ago
|
## 0.16.0 (2023-09-19)
|
||
2 years ago
|
|
||
1 year ago
|
- Support creating containers, linear elements, text containers, labelled arrows and arrow bindings programatically [#6546](https://github.com/excalidraw/excalidraw/pull/6546)
|
||
|
- Introducing Web-Embeds (alias iframe element)[#6691](https://github.com/excalidraw/excalidraw/pull/6691)
|
||
2 years ago
|
- Added [`props.validateEmbeddable`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props#validateEmbeddable) to customize embeddable src url validation. [#6691](https://github.com/excalidraw/excalidraw/pull/6691)
|
||
1 year ago
|
- Add support for `opts.fitToViewport` and `opts.viewportZoomFactor` in the [`ExcalidrawAPI.scrollToContent`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props/excalidraw-api#scrolltocontent) API. [#6581](https://github.com/excalidraw/excalidraw/pull/6581).
|
||
2 years ago
|
- Properly sanitize element `link` urls. [#6728](https://github.com/excalidraw/excalidraw/pull/6728).
|
||
2 years ago
|
- Sidebar component now supports tabs — for more detailed description of new behavior and breaking changes, see the linked PR. [#6213](https://github.com/excalidraw/excalidraw/pull/6213)
|
||
|
- Exposed `DefaultSidebar` component to allow modifying the default sidebar, such as adding custom tabs to it. [#6213](https://github.com/excalidraw/excalidraw/pull/6213)
|
||
|
|
||
|
#### BREAKING CHANGES
|
||
|
|
||
|
- `props.renderSidebar` is removed in favor of rendering as `children`.
|
||
|
- `appState.isSidebarDocked` replaced with `appState.defaultSidebarDockedPreference` with slightly different semantics, and relating only to the default sidebar. You need to handle `docked` state for your custom sidebars yourself.
|
||
|
- Sidebar `props.dockable` is removed. To indicate dockability, supply `props.onDock()` alongside setting `props.docked`.
|
||
|
- `Sidebar.Header` is no longer rendered by default. You need to render it yourself.
|
||
|
- `props.onClose` replaced with `props.onStateChange`.
|
||
|
- `restore()`/`restoreAppState()` now retains `appState.openSidebar` regardless of docked state.
|
||
|
|
||
1 year ago
|
## Excalidraw Library
|
||
|
|
||
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- allow `avif`, `jfif`, `webp`, `bmp`, `ico` image types [#6500](https://github.com/excalidraw/excalidraw/pull/6500)
|
||
|
- Zen-mode/go-to-plus button style tweaks [#7006](https://github.com/excalidraw/excalidraw/pull/7006)
|
||
|
|
||
|
- Holding down CMD/CTRL will disable snap to grid when grid is active [#6983](https://github.com/excalidraw/excalidraw/pull/6983)
|
||
|
|
||
|
- Update logo [#6979](https://github.com/excalidraw/excalidraw/pull/6979)
|
||
|
|
||
|
- Export `changeProperty()` and `getFormValue()`. [#6957](https://github.com/excalidraw/excalidraw/pull/6957)
|
||
|
|
||
|
- Partition main canvas vertically [#6759](https://github.com/excalidraw/excalidraw/pull/6759)
|
||
|
|
||
|
- Support creating containers, linear elements, text containers, labelled arrows and arrow bindings programatically [#6546](https://github.com/excalidraw/excalidraw/pull/6546)
|
||
|
|
||
|
- Add support for simplePDF in Web-Embeds [#6810](https://github.com/excalidraw/excalidraw/pull/6810)
|
||
|
|
||
|
- Add support for val.town embeds [#6821](https://github.com/excalidraw/excalidraw/pull/6821)
|
||
|
|
||
|
- Render bold lines in grid [#6779](https://github.com/excalidraw/excalidraw/pull/6779)
|
||
|
|
||
|
- Adds support for stackblitz.com embeds [#6813](https://github.com/excalidraw/excalidraw/pull/6813)
|
||
|
|
||
|
- Cache most of element selection [#6747](https://github.com/excalidraw/excalidraw/pull/6747)
|
||
|
|
||
|
- Support customizing what parts of frames are rendered [#6752](https://github.com/excalidraw/excalidraw/pull/6752)
|
||
|
|
||
|
- Make `appState.selectedElementIds` more stable [#6745](https://github.com/excalidraw/excalidraw/pull/6745)
|
||
|
|
||
|
- Overwrite confirmation dialogs [#6658](https://github.com/excalidraw/excalidraw/pull/6658)
|
||
|
|
||
|
- Simple analitycs [#6683](https://github.com/excalidraw/excalidraw/pull/6683)
|
||
|
|
||
|
- Introduce frames [#6123](https://github.com/excalidraw/excalidraw/pull/6123)
|
||
|
|
||
|
- Add canvas-roundrect-polyfill package [#6675](https://github.com/excalidraw/excalidraw/pull/6675)
|
||
|
|
||
|
- Polyfill `CanvasRenderingContext2D.roundRect` [#6673](https://github.com/excalidraw/excalidraw/pull/6673)
|
||
|
|
||
|
- Disable collab feature when running in iframe [#6646](https://github.com/excalidraw/excalidraw/pull/6646)
|
||
|
|
||
|
- Assign random user name when not set [#6663](https://github.com/excalidraw/excalidraw/pull/6663)
|
||
|
|
||
|
- Redesigned collab cursors [#6659](https://github.com/excalidraw/excalidraw/pull/6659)
|
||
|
|
||
|
- Eye dropper [#6615](https://github.com/excalidraw/excalidraw/pull/6615)
|
||
|
|
||
|
- Redesign of Live Collaboration dialog [#6635](https://github.com/excalidraw/excalidraw/pull/6635)
|
||
|
|
||
|
- Recover scrolled position after Library re-opening [#6624](https://github.com/excalidraw/excalidraw/pull/6624)
|
||
|
|
||
|
- Clearing library cache [#6621](https://github.com/excalidraw/excalidraw/pull/6621)
|
||
|
|
||
|
- Update design of ImageExportDialog [#6614](https://github.com/excalidraw/excalidraw/pull/6614)
|
||
|
|
||
|
- Add flipping for multiple elements [#5578](https://github.com/excalidraw/excalidraw/pull/5578)
|
||
|
|
||
|
- Color picker redesign [#6216](https://github.com/excalidraw/excalidraw/pull/6216)
|
||
|
|
||
|
- Add "unlock all elements" to canvas contextMenu [#5894](https://github.com/excalidraw/excalidraw/pull/5894)
|
||
|
|
||
|
- Library sidebar design tweaks [#6582](https://github.com/excalidraw/excalidraw/pull/6582)
|
||
|
|
||
|
- Add Trans component for interpolating JSX in translations [#6534](https://github.com/excalidraw/excalidraw/pull/6534)
|
||
|
|
||
|
- Testing simple analytics and fathom analytics for better privacy of the users [#6529](https://github.com/excalidraw/excalidraw/pull/6529)
|
||
|
|
||
|
- Retain `seed` on shift-paste [#6509](https://github.com/excalidraw/excalidraw/pull/6509)
|
||
|
|
||
|
- Allow `avif`, `jfif`, `webp`, `bmp`, `ico` image types (#6500
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Improperly disabling UI pointer-events on canvas interaction [#7005](https://github.com/excalidraw/excalidraw/pull/7005)
|
||
|
|
||
|
- Several eyeDropper fixes [#7002](https://github.com/excalidraw/excalidraw/pull/7002)
|
||
|
|
||
|
- IsBindableElement to affirm frames [#6900](https://github.com/excalidraw/excalidraw/pull/6900)
|
||
|
|
||
|
- Use `device.isMobile` for sidebar trigger label breakpoint [#6994](https://github.com/excalidraw/excalidraw/pull/6994)
|
||
|
|
||
|
- Export to plus url [#6980](https://github.com/excalidraw/excalidraw/pull/6980)
|
||
|
|
||
|
- Z-index inconsistencies during addition / deletion in frames [#6914](https://github.com/excalidraw/excalidraw/pull/6914)
|
||
|
|
||
|
- Update size-limit so react is not installed as dependency [#6964](https://github.com/excalidraw/excalidraw/pull/6964)
|
||
|
|
||
|
- Stale labeled arrow bounds cache after editing the label [#6893](https://github.com/excalidraw/excalidraw/pull/6893)
|
||
|
|
||
|
- Canvas flickering due to resetting canvas on skipped frames [#6960](https://github.com/excalidraw/excalidraw/pull/6960)
|
||
|
|
||
|
- Grid jittery after partition PR [#6935](https://github.com/excalidraw/excalidraw/pull/6935)
|
||
|
|
||
|
- Regression in indexing when adding elements to frame [#6904](https://github.com/excalidraw/excalidraw/pull/6904)
|
||
|
|
||
|
- Stabilize `selectedElementIds` when box selecting [#6912](https://github.com/excalidraw/excalidraw/pull/6912)
|
||
|
|
||
|
- Resetting deleted elements on duplication [#6906](https://github.com/excalidraw/excalidraw/pull/6906)
|
||
|
|
||
|
- Make canvas compos memoize appState on props they declare [#6897](https://github.com/excalidraw/excalidraw/pull/6897)
|
||
|
|
||
|
- Scope `--color-selection` retrieval to given instance [#6886](https://github.com/excalidraw/excalidraw/pull/6886)
|
||
|
|
||
|
- Webpack config exclude statement to system agnostic [#6857](https://github.com/excalidraw/excalidraw/pull/6857)
|
||
|
|
||
|
- Remove `embeddable` from generic elements [#6853](https://github.com/excalidraw/excalidraw/pull/6853)
|
||
|
|
||
|
- Resizing arrow labels [#6789](https://github.com/excalidraw/excalidraw/pull/6789)
|
||
|
|
||
|
- Eye-dropper not working with app offset correctly on non-1 dPR [#6835](https://github.com/excalidraw/excalidraw/pull/6835)
|
||
|
|
||
|
- Add self destroying service-worker.js to migrate everyone from CRA to Vite [#6833](https://github.com/excalidraw/excalidraw/pull/6833)
|
||
|
|
||
|
- Forgotten REACT_APP env variables [#6834](https://github.com/excalidraw/excalidraw/pull/6834)
|
||
|
|
||
|
- Refresh sw when browser refreshed [#6824](https://github.com/excalidraw/excalidraw/pull/6824)
|
||
|
|
||
|
- Adding to selection via shift box-select [#6815](https://github.com/excalidraw/excalidraw/pull/6815)
|
||
|
|
||
|
- Prevent binding focus NaN value [#6803](https://github.com/excalidraw/excalidraw/pull/6803)
|
||
|
|
||
|
- Use pull request in semantic workflow for better security [#6799](https://github.com/excalidraw/excalidraw/pull/6799)
|
||
|
|
||
|
- Don't show `canvasBackground` label when `UIOptions.canvasActions.changeViewBackgroundColor` is false [#6781](https://github.com/excalidraw/excalidraw/pull/6781)
|
||
|
|
||
|
- Use subdirectory for @excalidraw/excalidraw size limit [#6787](https://github.com/excalidraw/excalidraw/pull/6787)
|
||
|
|
||
|
- Use actual dock state to not close docked library on insert [#6766](https://github.com/excalidraw/excalidraw/pull/6766)
|
||
|
|
||
|
- UI disappears when pressing the eyedropper shortcut on mobile [#6725](https://github.com/excalidraw/excalidraw/pull/6725)
|
||
|
|
||
|
- Elements in non-existing frame getting removed [#6708](https://github.com/excalidraw/excalidraw/pull/6708)
|
||
|
|
||
|
- Scrollbars renders but disable [#6706](https://github.com/excalidraw/excalidraw/pull/6706)
|
||
|
|
||
|
- Typo in chart.ts [#6696](https://github.com/excalidraw/excalidraw/pull/6696)
|
||
|
|
||
|
- Do not bind text to container using text tool when it has text already [#6694](https://github.com/excalidraw/excalidraw/pull/6694)
|
||
|
|
||
|
- Don't allow binding text to images [#6693](https://github.com/excalidraw/excalidraw/pull/6693)
|
||
|
|
||
|
- Updated link for documentation page under help section [#6654](https://github.com/excalidraw/excalidraw/pull/6654)
|
||
|
|
||
|
- Collab username style fixes [#6668](https://github.com/excalidraw/excalidraw/pull/6668)
|
||
|
|
||
|
- Bound arrows not updated when rotating multiple elements [#6662](https://github.com/excalidraw/excalidraw/pull/6662)
|
||
|
|
||
|
- Delete setCursor when resize [#6660](https://github.com/excalidraw/excalidraw/pull/6660)
|
||
|
|
||
|
- Creating text while color picker open [#6651](https://github.com/excalidraw/excalidraw/pull/6651)
|
||
|
|
||
|
- Cleanup textWysiwyg and getAdjustedDimensions [#6520](https://github.com/excalidraw/excalidraw/pull/6520)
|
||
|
|
||
|
- Eye dropper not accounting for offsets [#6640](https://github.com/excalidraw/excalidraw/pull/6640)
|
||
|
|
||
|
- Color picker input closing problem [#6599](https://github.com/excalidraw/excalidraw/pull/6599)
|
||
|
|
||
|
- Export dialog shortcut toggles console on firefox [#6620](https://github.com/excalidraw/excalidraw/pull/6620)
|
||
|
|
||
|
- Add react v17 `useTransition` polyfill [#6618](https://github.com/excalidraw/excalidraw/pull/6618)
|
||
|
|
||
|
- Library dropdown visibility issue for mobile [#6613](https://github.com/excalidraw/excalidraw/pull/6613)
|
||
|
|
||
|
- `withInternalFallback` leaking state in multi-instance scenarios [#6602](https://github.com/excalidraw/excalidraw/pull/6602)
|
||
|
|
||
|
- Language list containing duplicate `en` lang [#6583](https://github.com/excalidraw/excalidraw/pull/6583)
|
||
|
|
||
|
- Garbled text displayed on avatars [#6575](https://github.com/excalidraw/excalidraw/pull/6575)
|
||
|
|
||
|
- Assign the original text to text editor only during init [#6580](https://github.com/excalidraw/excalidraw/pull/6580)
|
||
|
|
||
|
- I18n: Apply Trans component to publish library dialogue [#6564](https://github.com/excalidraw/excalidraw/pull/6564)
|
||
|
|
||
|
- Fix brave error i18n string and remove unused [#6561](https://github.com/excalidraw/excalidraw/pull/6561)
|
||
|
|
||
|
- Revert add version tags to Docker build [#6540](https://github.com/excalidraw/excalidraw/pull/6540)
|
||
|
|
||
|
- Don't refresh dimensions for text containers on font load [#6523](https://github.com/excalidraw/excalidraw/pull/6523)
|
||
|
|
||
|
- Cleanup getMaxContainerHeight and getMaxContainerWidth [#6519](https://github.com/excalidraw/excalidraw/pull/6519)
|
||
|
|
||
|
- Cleanup redrawTextBoundingBox [#6518](https://github.com/excalidraw/excalidraw/pull/6518)
|
||
|
|
||
|
- Text jumps when editing on Android Chrome [#6503](https://github.com/excalidraw/excalidraw/pull/6503)
|
||
|
|
||
|
### Styles
|
||
|
|
||
|
- Removes extra spaces [#6558](https://github.com/excalidraw/excalidraw/pull/6558)
|
||
|
|
||
|
- Fix font family inconsistencies [#6501](https://github.com/excalidraw/excalidraw/pull/6501)
|
||
|
|
||
|
### Refactor
|
||
|
|
||
|
- Factor out shape generation from `renderElement.ts` pt 2 [#6878](https://github.com/excalidraw/excalidraw/pull/6878)
|
||
|
|
||
|
- Add typeScript support to enforce valid translation keys [#6776](https://github.com/excalidraw/excalidraw/pull/6776)
|
||
|
|
||
|
- Simplify `ImageExportDialog` [#6578](https://github.com/excalidraw/excalidraw/pull/6578)
|
||
|
|
||
|
### Performance
|
||
|
|
||
|
- Limiting the suggested binding to fix performance issue [#6877](https://github.com/excalidraw/excalidraw/pull/6877)
|
||
|
|
||
|
- Memoize rendering of library [#6622](https://github.com/excalidraw/excalidraw/pull/6622)
|
||
|
|
||
|
- Improve rendering performance for Library [#6587](https://github.com/excalidraw/excalidraw/pull/6587)
|
||
|
|
||
|
- Use `UIAppState` where possible to reduce UI rerenders [#6560](https://github.com/excalidraw/excalidraw/pull/6560)
|
||
|
|
||
|
### Build
|
||
|
|
||
|
- Increase limit for bundle by 1kb [#6880](https://github.com/excalidraw/excalidraw/pull/6880)
|
||
|
|
||
|
- Update to node 18 in docker [#6822](https://github.com/excalidraw/excalidraw/pull/6822)
|
||
|
|
||
|
- Migrate to Vite 🚀 [#6818](https://github.com/excalidraw/excalidraw/pull/6818)
|
||
|
|
||
|
- Migrate to Vite 🚀 [#6713](https://github.com/excalidraw/excalidraw/pull/6713)
|
||
|
|
||
|
- Increase limit to 290 kB for prod bundle [#6809](https://github.com/excalidraw/excalidraw/pull/6809)
|
||
|
|
||
|
- Add version tags to Docker build [#6508](https://github.com/excalidraw/excalidraw/pull/6508)
|
||
|
|
||
|
---
|
||
|
|
||
2 years ago
|
## 0.15.2 (2023-04-20)
|
||
2 years ago
|
|
||
|
### Docs
|
||
|
|
||
|
- Fix docs link in readme [#6486](https://github.com/excalidraw/excalidraw/pull/6486)
|
||
|
|
||
2 years ago
|
## Excalidraw Library
|
||
|
|
||
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Rotate the text element when binding to a rotated container [#6477](https://github.com/excalidraw/excalidraw/pull/6477)
|
||
|
|
||
|
- Support breaking words containing hyphen - [#6014](https://github.com/excalidraw/excalidraw/pull/6014)
|
||
|
|
||
|
- Incorrect background fill button active state [#6491](https://github.com/excalidraw/excalidraw/pull/6491)
|
||
|
|
||
|
---
|
||
|
|
||
2 years ago
|
## 0.15.1 (2023-04-18)
|
||
2 years ago
|
|
||
|
### Docs
|
||
|
|
||
|
- Add the readme back to the package which was mistakenly removed [#6484](https://github.com/excalidraw/excalidraw/pull/6484)
|
||
|
|
||
2 years ago
|
## Excalidraw Library
|
||
|
|
||
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
||
|
|
||
|
---
|
||
|
|
||
2 years ago
|
## 0.15.0 (2023-04-18)
|
||
2 years ago
|
|
||
|
### Features
|
||
|
|
||
1 year ago
|
- [`ExcalidrawAPI.scrollToContent`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props/excalidraw-api#scrolltocontent) has new opts object allowing you to fit viewport to content, and animate the scrolling. [#6319](https://github.com/excalidraw/excalidraw/pull/6319)
|
||
2 years ago
|
|
||
2 years ago
|
- Expose `useI18n()` hook return an object containing `t()` i18n helper and current `langCode`. You can use this in components you render as `<Excalidraw>` children to render any of our i18n locale strings. [#6224](https://github.com/excalidraw/excalidraw/pull/6224)
|
||
|
|
||
2 years ago
|
- [`restoreElements`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils/restore#restoreelements) API now takes an optional parameter `opts` which currently supports the below attributes
|
||
|
|
||
|
```js
|
||
2 years ago
|
{ refreshDimensions?: boolean, repairBindings?: boolean }
|
||
2 years ago
|
```
|
||
|
|
||
|
The same `opts` param has been added to [`restore`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils/restore#restore) API as well.
|
||
|
|
||
|
For more details refer to the [docs](https://docs.excalidraw.com)
|
||
|
|
||
|
#### BREAKING CHANGE
|
||
|
|
||
|
- The optional parameter `refreshDimensions` in [`restoreElements`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils/restore#restoreelements) has been removed and can be enabled via `opts`
|
||
|
|
||
2 years ago
|
### Fixes
|
||
|
|
||
|
- Exporting labelled arrows via export utils [#6443](https://github.com/excalidraw/excalidraw/pull/6443)
|
||
|
|
||
2 years ago
|
## Excalidraw Library
|
||
|
|
||
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- Constrain export dialog preview size [#6475](https://github.com/excalidraw/excalidraw/pull/6475)
|
||
|
|
||
|
- Zigzag fill easter egg [#6439](https://github.com/excalidraw/excalidraw/pull/6439)
|
||
|
|
||
|
- Add container to multiple text elements [#6428](https://github.com/excalidraw/excalidraw/pull/6428)
|
||
|
|
||
|
- Starting migration from GA to Matomo for better privacy [#6398](https://github.com/excalidraw/excalidraw/pull/6398)
|
||
|
|
||
|
- Add line height attribute to text element [#6360](https://github.com/excalidraw/excalidraw/pull/6360)
|
||
|
|
||
|
- Add thai lang support [#6314](https://github.com/excalidraw/excalidraw/pull/6314)
|
||
|
|
||
|
- Create bound container from text [#6301](https://github.com/excalidraw/excalidraw/pull/6301)
|
||
|
|
||
|
- Improve text measurements in bound containers [#6187](https://github.com/excalidraw/excalidraw/pull/6187)
|
||
|
|
||
|
- Bind text to container if double clicked on filled shape or stroke [#6250](https://github.com/excalidraw/excalidraw/pull/6250)
|
||
|
|
||
|
- Make repair and refreshDimensions configurable in restoreElements [#6238](https://github.com/excalidraw/excalidraw/pull/6238)
|
||
|
|
||
|
- Show error message when not connected to internet while collabo… [#6165](https://github.com/excalidraw/excalidraw/pull/6165)
|
||
|
|
||
|
- Shortcut for clearCanvas confirmDialog [#6114](https://github.com/excalidraw/excalidraw/pull/6114)
|
||
|
|
||
|
- Disable canvas smoothing (antialiasing) for right-angled elements [#6186](https://github.com/excalidraw/excalidraw/pull/6186)Co-authored-by: Ignacio Cuadra <67276174+ignacio-cuadra@users.noreply.github.com>
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Center align text when wrapped in container via context menu [#6480](https://github.com/excalidraw/excalidraw/pull/6480)
|
||
|
|
||
|
- Restore original container height when unbinding text which was binded via context menu [#6444](https://github.com/excalidraw/excalidraw/pull/6444)
|
||
|
|
||
|
- Mark more props as optional for element [#6448](https://github.com/excalidraw/excalidraw/pull/6448)
|
||
|
|
||
|
- Improperly cache-busting on canvas scale instead of zoom [#6473](https://github.com/excalidraw/excalidraw/pull/6473)
|
||
|
|
||
|
- Incorrectly duplicating items on paste/library insert [#6467](https://github.com/excalidraw/excalidraw/pull/6467)
|
||
|
|
||
|
- Library ids cross-contamination on multiple insert [#6466](https://github.com/excalidraw/excalidraw/pull/6466)
|
||
|
|
||
|
- Color picker keyboard handling not working [#6464](https://github.com/excalidraw/excalidraw/pull/6464)
|
||
|
|
||
|
- Abort freedraw line if second touch is detected [#6440](https://github.com/excalidraw/excalidraw/pull/6440)
|
||
|
|
||
|
- Utils leaking Scene state [#6461](https://github.com/excalidraw/excalidraw/pull/6461)
|
||
|
|
||
|
- Split "Edit selected shape" shortcut [#6457](https://github.com/excalidraw/excalidraw/pull/6457)
|
||
|
|
||
|
- Center align text when bind to container via context menu [#6451](https://github.com/excalidraw/excalidraw/pull/6451)
|
||
|
|
||
|
- Update coords when text unbinded from its container [#6445](https://github.com/excalidraw/excalidraw/pull/6445)
|
||
|
|
||
|
- Autoredirect to plus in prod only [#6446](https://github.com/excalidraw/excalidraw/pull/6446)
|
||
|
|
||
|
- Fixing popover overflow on small screen [#6433](https://github.com/excalidraw/excalidraw/pull/6433)
|
||
|
|
||
|
- Introduce baseline to fix the layout shift when switching to text editor [#6397](https://github.com/excalidraw/excalidraw/pull/6397)
|
||
|
|
||
|
- Don't refresh dimensions for deleted text elements [#6438](https://github.com/excalidraw/excalidraw/pull/6438)
|
||
|
|
||
|
- Element vanishes when zoomed in [#6417](https://github.com/excalidraw/excalidraw/pull/6417)
|
||
|
|
||
|
- Don't jump text to end when out of viewport in safari [#6416](https://github.com/excalidraw/excalidraw/pull/6416)
|
||
|
|
||
|
- GetDefaultLineHeight should return default font family line height for unknown font [#6399](https://github.com/excalidraw/excalidraw/pull/6399)
|
||
|
|
||
|
- Revert use `ideographic` textBaseline to improve layout shift when editing text" [#6400](https://github.com/excalidraw/excalidraw/pull/6400)
|
||
|
|
||
|
- Call stack size exceeded when paste large text [#6373](https://github.com/excalidraw/excalidraw/pull/6373) (#6396)
|
||
|
|
||
|
- Use `ideographic` textBaseline to improve layout shift when editing text [#6384](https://github.com/excalidraw/excalidraw/pull/6384)
|
||
|
|
||
|
- Chrome crashing when embedding scene on chrome arm [#6383](https://github.com/excalidraw/excalidraw/pull/6383)
|
||
|
|
||
|
- Division by zero in findFocusPointForEllipse leads to infinite loop in wrapText freezing Excalidraw [#6377](https://github.com/excalidraw/excalidraw/pull/6377)
|
||
|
|
||
|
- Containerizing text incorrectly updates arrow bindings [#6369](https://github.com/excalidraw/excalidraw/pull/6369)
|
||
|
|
||
|
- Ensure export preview is centered [#6337](https://github.com/excalidraw/excalidraw/pull/6337)
|
||
|
|
||
|
- Hide text align for labelled arrows [#6339](https://github.com/excalidraw/excalidraw/pull/6339)
|
||
|
|
||
|
- Refresh dimensions when elements loaded from shareable link and blob [#6333](https://github.com/excalidraw/excalidraw/pull/6333)
|
||
|
|
||
|
- Show error message when measureText API breaks in brave [#6336](https://github.com/excalidraw/excalidraw/pull/6336)
|
||
|
|
||
|
- Add an offset of 0.5px for text editor in containers [#6328](https://github.com/excalidraw/excalidraw/pull/6328)
|
||
|
|
||
|
- Move utility types out of `.d.ts` file to fix exported declaration files [#6315](https://github.com/excalidraw/excalidraw/pull/6315)
|
||
|
|
||
|
- More jotai scopes missing [#6313](https://github.com/excalidraw/excalidraw/pull/6313)
|
||
|
|
||
|
- Provide HelpButton title prop [#6209](https://github.com/excalidraw/excalidraw/pull/6209)
|
||
|
|
||
|
- Respect text align when wrapping in a container [#6310](https://github.com/excalidraw/excalidraw/pull/6310)
|
||
|
|
||
|
- Compute bounding box correctly for text element when multiple element resizing [#6307](https://github.com/excalidraw/excalidraw/pull/6307)
|
||
|
|
||
|
- Use jotai scope for editor-specific atoms [#6308](https://github.com/excalidraw/excalidraw/pull/6308)
|
||
|
|
||
|
- Consider arrow for bound text element [#6297](https://github.com/excalidraw/excalidraw/pull/6297)
|
||
|
|
||
|
- Text never goes beyond max width for unbound text elements [#6288](https://github.com/excalidraw/excalidraw/pull/6288)
|
||
|
|
||
|
- Svg text baseline [#6285](https://github.com/excalidraw/excalidraw/pull/6273)
|
||
|
|
||
|
- Compute container height from bound text correctly [#6273](https://github.com/excalidraw/excalidraw/pull/6273)
|
||
|
|
||
|
- Fit mobile toolbar and make scrollable [#6270](https://github.com/excalidraw/excalidraw/pull/6270)
|
||
|
|
||
|
- Indenting via `tab` clashing with IME compositor [#6258](https://github.com/excalidraw/excalidraw/pull/6258)
|
||
|
|
||
|
- Improve text wrapping inside rhombus and more fixes [#6265](https://github.com/excalidraw/excalidraw/pull/6265)
|
||
|
|
||
|
- Improve text wrapping in ellipse and alignment [#6172](https://github.com/excalidraw/excalidraw/pull/6172)
|
||
|
|
||
|
- Don't allow blank space in collab name [#6211](https://github.com/excalidraw/excalidraw/pull/6211)
|
||
|
|
||
|
- Docker build architecture:linux/amd64 error occur on linux/arm64 instance [#6197](https://github.com/excalidraw/excalidraw/pull/6197)
|
||
|
|
||
|
- Sort bound text elements to fix text duplication z-index error [#5130](https://github.com/excalidraw/excalidraw/pull/5130)
|
||
|
|
||
|
- Hide welcome screen on mobile once user interacts [#6185](https://github.com/excalidraw/excalidraw/pull/6185)
|
||
|
|
||
|
- Edit link in docs [#6182](https://github.com/excalidraw/excalidraw/pull/6182)
|
||
|
|
||
|
### Refactor
|
||
|
|
||
|
- Inline `SingleLibraryItem` into `PublishLibrary` [#6462](https://github.com/excalidraw/excalidraw/pull/6462)
|
||
|
|
||
|
- Make the example React app reusable without duplication [#6188](https://github.com/excalidraw/excalidraw/pull/6188)
|
||
|
|
||
|
### Performance
|
||
|
|
||
|
- Break early if the line width <= max width of the container [#6347](https://github.com/excalidraw/excalidraw/pull/6347)
|
||
|
|
||
|
### Build
|
||
|
|
||
|
- Move TS and types to devDependencies [#6346](https://github.com/excalidraw/excalidraw/pull/6346)
|
||
|
|
||
|
---
|
||
|
|
||
2 years ago
|
## 0.14.2 (2023-02-01)
|
||
2 years ago
|
|
||
|
### Features
|
||
|
|
||
2 years ago
|
- Welcome screen no longer renders by default, and you need to render it yourself. `UIOptions.welcomeScreen` option is now deprecated. [#6117](https://github.com/excalidraw/excalidraw/pull/6117)
|
||
2 years ago
|
- `MainMenu`, `MainMenu.Item`, and `MainMenu.ItemLink` components now all support `onSelect(event: Event): void` callback. If you call `event.preventDefault()`, it will prevent the menu from closing when an item is selected (clicked on). [#6152](https://github.com/excalidraw/excalidraw/pull/6152)
|
||
|
|
||
2 years ago
|
### Fixes
|
||
|
|
||
|
- declare css variable for font in excalidraw so its available in host [#6160](https://github.com/excalidraw/excalidraw/pull/6160)
|
||
|
|
||
2 years ago
|
## Excalidraw Library
|
||
|
|
||
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- Add hand/panning tool [#6141](https://github.com/excalidraw/excalidraw/pull/6141)
|
||
|
|
||
|
- Show copy-as-png export button on firefox and show steps how to enable it [#6125](https://github.com/excalidraw/excalidraw/pull/6125)
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Horizontal padding when aligning bound text containers [#6180](https://github.com/excalidraw/excalidraw/pull/6180)
|
||
|
|
||
|
- Make tunnels work in multi-instance scenarios [#6178](https://github.com/excalidraw/excalidraw/pull/6178)
|
||
|
|
||
|
- Add 1px width to the container to calculate more accurately [#6174](https://github.com/excalidraw/excalidraw/pull/6174)
|
||
|
|
||
|
- Quick typo fix [#6167](https://github.com/excalidraw/excalidraw/pull/6167)
|
||
|
|
||
|
- Set the width correctly using measureText in editor [#6162](https://github.com/excalidraw/excalidraw/pull/6162)
|
||
|
|
||
|
- :bug: broken emojis when wrap text [#6153](https://github.com/excalidraw/excalidraw/pull/6153)
|
||
|
|
||
|
- Button background and svg sizes [#6155](https://github.com/excalidraw/excalidraw/pull/6155)
|
||
|
|
||
|
### Styles
|
||
|
|
||
|
- Change in ExportButton style [#6147](https://github.com/excalidraw/excalidraw/pull/6147) (#6148)
|
||
|
|
||
|
### Build
|
||
|
|
||
|
- Temporarily disable pre-commit [#6132](https://github.com/excalidraw/excalidraw/pull/6132)
|
||
|
|
||
|
---
|
||
|
|
||
2 years ago
|
## 0.14.1 (2023-01-16)
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- remove overflow hidden from button [#6110](https://github.com/excalidraw/excalidraw/pull/6110). This fixes the collaborator count css in the [LiveCollaborationTrigger](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#LiveCollaborationTrigger) component.
|
||
|
|
||
2 years ago
|
## 0.14.0 (2023-01-13)
|
||
2 years ago
|
|
||
2 years ago
|
### Features
|
||
|
|
||
2 years ago
|
- Support customization for the editor [welcome screen](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#WelcomeScreen) [#6048](https://github.com/excalidraw/excalidraw/pull/6048).
|
||
2 years ago
|
|
||
2 years ago
|
- Expose component API for the Excalidraw main menu [#6034](https://github.com/excalidraw/excalidraw/pull/6034), You can read more about its usage [here](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#MainMenu)
|
||
|
|
||
2 years ago
|
- Support customization for the Excalidraw [main menu](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#MainMenu) [#6034](https://github.com/excalidraw/excalidraw/pull/6034).
|
||
|
|
||
|
- [Footer](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#Footer) is now rendered as child component instead of passed as a render prop [#5970](https://github.com/excalidraw/excalidraw/pull/5970).
|
||
|
|
||
|
- Any top-level children passed to the `<Excalidraw/>` component that do not belong to one of the officially supported Excalidraw children components are now rendered directly inside the Excalidraw container (previously, they weren't rendered at all) [#6096](https://github.com/excalidraw/excalidraw/pull/6096).
|
||
2 years ago
|
|
||
2 years ago
|
- Expose [LiveCollaborationTrigger](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#LiveCollaborationTrigger) component. Replaces `props.onCollabButtonClick` [#6104](https://github.com/excalidraw/excalidraw/pull/6104).
|
||
2 years ago
|
|
||
2 years ago
|
#### BREAKING CHANGES
|
||
|
|
||
|
- `props.onCollabButtonClick` is now removed. You need to render the main menu item yourself, and optionally also render the `<LiveCollaborationTrigger>` component using [renderTopRightUI](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderTopRightUI) prop if you want to retain the canvas button at top-right.
|
||
2 years ago
|
- The prop `renderFooter` is now removed in favor of rendering as a child component.
|
||
2 years ago
|
|
||
2 years ago
|
### Excalidraw schema
|
||
|
|
||
|
- Merged `appState.currentItemStrokeSharpness` and `appState.currentItemLinearStrokeSharpness` into `appState.currentItemRoundness`. Renamed `changeSharpness` action to `changeRoundness`. Excalidraw element's `strokeSharpness` was changed to `roundness`. Check the PR for types and more details [#5553](https://github.com/excalidraw/excalidraw/pull/5553).
|
||
2 years ago
|
|
||
|
## Excalidraw Library
|
||
|
|
||
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- Generic button export [#6092](https://github.com/excalidraw/excalidraw/pull/6092)
|
||
|
|
||
|
- Scroll using PageUp and PageDown [#6038](https://github.com/excalidraw/excalidraw/pull/6038)
|
||
|
|
||
|
- Support shrinking text containers to original height when text removed [#6025](https://github.com/excalidraw/excalidraw/pull/6025)
|
||
|
|
||
|
- Move contextMenu into the component tree and control via appState [#6021](https://github.com/excalidraw/excalidraw/pull/6021)
|
||
|
|
||
|
- Allow readonly actions to be used in viewMode [#5982](https://github.com/excalidraw/excalidraw/pull/5982)
|
||
|
|
||
|
- Support labels for arrow 🔥 [#5723](https://github.com/excalidraw/excalidraw/pull/5723)
|
||
|
|
||
|
- Don't add midpoint until dragged beyond a threshold [#5927](https://github.com/excalidraw/excalidraw/pull/5927)
|
||
|
|
||
|
- Changed text copy/paste behaviour [#5786](https://github.com/excalidraw/excalidraw/pull/5786)
|
||
|
|
||
|
- Reintroduce `x` shortcut for `freedraw` [#5840](https://github.com/excalidraw/excalidraw/pull/5840)
|
||
|
|
||
|
- Tweak toolbar shortcuts & remove library shortcut [#5832](https://github.com/excalidraw/excalidraw/pull/5832)
|
||
|
|
||
|
- Clean unused images only after 24hrs (local-only) [#5839](https://github.com/excalidraw/excalidraw/pull/5839)
|
||
|
|
||
|
- Refetch errored/pending images on collab room init load [#5833](https://github.com/excalidraw/excalidraw/pull/5833)
|
||
|
|
||
|
- Stop deleting whole line when no point select in line editor [#5676](https://github.com/excalidraw/excalidraw/pull/5676)
|
||
|
|
||
|
- Editor redesign 🔥 [#5780](https://github.com/excalidraw/excalidraw/pull/5780)
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Mobile tools positioning [#6107](https://github.com/excalidraw/excalidraw/pull/6107)
|
||
|
|
||
|
- Renamed folder MainMenu->main-menu and support rest props [#6103](https://github.com/excalidraw/excalidraw/pull/6103)
|
||
|
|
||
|
- Use position absolute for mobile misc tools [#6099](https://github.com/excalidraw/excalidraw/pull/6099)
|
||
|
|
||
|
- React.memo resolvers not accounting for all props [#6042](https://github.com/excalidraw/excalidraw/pull/6042)
|
||
|
|
||
|
- Image horizontal flip fix + improved tests [#5799](https://github.com/excalidraw/excalidraw/pull/5799)
|
||
|
|
||
|
- Png-exporting does not preserve angles correctly for flipped images [#6085](https://github.com/excalidraw/excalidraw/pull/6085)
|
||
|
|
||
|
- Stale appState of MainMenu defaultItems rendered from Actions [#6074](https://github.com/excalidraw/excalidraw/pull/6074)
|
||
|
|
||
|
- HelpDialog [#6072](https://github.com/excalidraw/excalidraw/pull/6072)
|
||
|
|
||
|
- Show error message on collab save failure [#6063](https://github.com/excalidraw/excalidraw/pull/6063)
|
||
|
|
||
|
- Remove ga from docker build [#6059](https://github.com/excalidraw/excalidraw/pull/6059)
|
||
|
|
||
|
- Use displayName since name gets stripped off when uglifying/minifiyng in production [#6036](https://github.com/excalidraw/excalidraw/pull/6036)
|
||
|
|
||
|
- Remove background from wysiwyg when editing arrow label [#6033](https://github.com/excalidraw/excalidraw/pull/6033)
|
||
|
|
||
|
- Use canvas measureText to calculate width in measureText [#6030](https://github.com/excalidraw/excalidraw/pull/6030)
|
||
|
|
||
|
- Restoring deleted bindings [#6029](https://github.com/excalidraw/excalidraw/pull/6029)
|
||
|
|
||
|
- ColorPicker getColor [#5949](https://github.com/excalidraw/excalidraw/pull/5949)
|
||
|
|
||
|
- Don't push whitespace to next line when exceeding max width during wrapping and make sure to use same width of text editor on DOM when measuring dimensions [#5996](https://github.com/excalidraw/excalidraw/pull/5996)
|
||
|
|
||
|
- Showing `grabbing` cursor when holding `spacebar` [#6015](https://github.com/excalidraw/excalidraw/pull/6015)
|
||
|
|
||
|
- Resize sometimes throwing on missing null-checks [#6013](https://github.com/excalidraw/excalidraw/pull/6013)
|
||
|
|
||
|
- PWA not working after CRA@5 update [#6012](https://github.com/excalidraw/excalidraw/pull/6012)
|
||
|
|
||
|
- Not properly restoring element stroke and bg colors [#6002](https://github.com/excalidraw/excalidraw/pull/6002)
|
||
|
|
||
|
- Avatar outline on safari & center [#5997](https://github.com/excalidraw/excalidraw/pull/5997)
|
||
|
|
||
|
- Chart pasting not working due to removing tab characters [#5987](https://github.com/excalidraw/excalidraw/pull/5987)
|
||
|
|
||
|
- Apply the right type of roundness when pasting styles [#5979](https://github.com/excalidraw/excalidraw/pull/5979)
|
||
|
|
||
|
- Remove editor onpaste handler [#5971](https://github.com/excalidraw/excalidraw/pull/5971)
|
||
|
|
||
|
- Remove blank space [#5950](https://github.com/excalidraw/excalidraw/pull/5950)
|
||
|
|
||
|
- Galego and Kurdî missing in languages plus two locale typos [#5954](https://github.com/excalidraw/excalidraw/pull/5954)
|
||
|
|
||
|
- `ExcalidrawArrowElement` rather than `ExcalidrawArrowEleement` [#5955](https://github.com/excalidraw/excalidraw/pull/5955)
|
||
|
|
||
|
- RenderFooter styling [#5962](https://github.com/excalidraw/excalidraw/pull/5962)
|
||
|
|
||
|
- Repair element bindings on restore [#5956](https://github.com/excalidraw/excalidraw/pull/5956)
|
||
|
|
||
|
- Don't allow whitespaces for bound text [#5939](https://github.com/excalidraw/excalidraw/pull/5939)
|
||
|
|
||
|
- Bindings do not survive history serialization [#5942](https://github.com/excalidraw/excalidraw/pull/5942)
|
||
|
|
||
|
- Dedupe boundElement ids when container duplicated with alt+drag [#5938](https://github.com/excalidraw/excalidraw/pull/5938)
|
||
|
|
||
|
- Scale font correctly when using shift [#5935](https://github.com/excalidraw/excalidraw/pull/5935)
|
||
|
|
||
|
- Always bind to container selected by user [#5880](https://github.com/excalidraw/excalidraw/pull/5880)
|
||
|
|
||
|
- Fonts not rendered on init if `loadingdone` not fired [#5923](https://github.com/excalidraw/excalidraw/pull/5923)
|
||
|
|
||
|
- Stop replacing `del` word with `Delete` [#5897](https://github.com/excalidraw/excalidraw/pull/5897)
|
||
|
|
||
|
- Remove legacy React.render() from the editor [#5893](https://github.com/excalidraw/excalidraw/pull/5893)
|
||
|
|
||
|
- Allow adding text via enter only for text containers [#5891](https://github.com/excalidraw/excalidraw/pull/5891)
|
||
|
|
||
|
- Stop font `loadingdone` loop when rendering element SVGs [#5883](https://github.com/excalidraw/excalidraw/pull/5883)
|
||
|
|
||
|
- Refresh text dimensions only after font load done [#5878](https://github.com/excalidraw/excalidraw/pull/5878)
|
||
|
|
||
|
- Correctly paste contents parsed by `JSON.parse()` as text. [#5868](https://github.com/excalidraw/excalidraw/pull/5868)
|
||
|
|
||
|
- SVG element attributes in icons.tsx [#5871](https://github.com/excalidraw/excalidraw/pull/5871)
|
||
|
|
||
|
- Merge existing text with new when pasted [#5856](https://github.com/excalidraw/excalidraw/pull/5856)
|
||
|
|
||
|
- Disable FAST_REFRESH to fix live reload [#5852](https://github.com/excalidraw/excalidraw/pull/5852)
|
||
|
|
||
|
- Paste clipboard contents into unbound text elements [#5849](https://github.com/excalidraw/excalidraw/pull/5849)
|
||
|
|
||
|
- Compute dimensions of container correctly when text pasted on container [#5845](https://github.com/excalidraw/excalidraw/pull/5845)
|
||
|
|
||
|
- Line editor points rendering below elements [#5781](https://github.com/excalidraw/excalidraw/pull/5781)
|
||
|
|
||
|
- Syncing 1-point lines to remote clients [#5677](https://github.com/excalidraw/excalidraw/pull/5677)
|
||
|
|
||
|
- Incorrectly selecting linear elements on creation while tool-locked [#5785](https://github.com/excalidraw/excalidraw/pull/5785)
|
||
|
|
||
|
- Corrected typo in toggle theme shortcut [#5813](https://github.com/excalidraw/excalidraw/pull/5813)
|
||
|
|
||
|
- Hide canvas-modifying UI in view mode [#5815](https://github.com/excalidraw/excalidraw/pull/5815)
|
||
|
|
||
|
- Fix vertical/horizntal centering icons [#5812](https://github.com/excalidraw/excalidraw/pull/5812)
|
||
|
|
||
|
- Consistent use of ZOOM_STEP [#5801](https://github.com/excalidraw/excalidraw/pull/5801)
|
||
|
|
||
|
- Multiple elements resizing regressions [#5586](https://github.com/excalidraw/excalidraw/pull/5586)
|
||
|
|
||
|
- Changelog typo [#5795](https://github.com/excalidraw/excalidraw/pull/5795)
|
||
|
|
||
|
### Refactor
|
||
|
|
||
|
- Remove unnecessary code [#5933](https://github.com/excalidraw/excalidraw/pull/5933)
|
||
|
|
||
|
### Build
|
||
|
|
||
|
- Move release scripts to use release branch [#5958](https://github.com/excalidraw/excalidraw/pull/5958)
|
||
|
|
||
|
- Stops ignoring .env files from docker context so env variables get set during react app build. [#5809](https://github.com/excalidraw/excalidraw/pull/5809)
|
||
|
|
||
|
---
|
||
4 years ago
|
|
||
2 years ago
|
## 0.13.0 (2022-10-27)
|
||
3 years ago
|
|
||
|
### Excalidraw API
|
||
|
|
||
2 years ago
|
#### Features
|
||
|
|
||
2 years ago
|
- `restoreElements()` now takes an optional parameter to indicate whether we should also recalculate text element dimensions. Defaults to `true`, but since this is a potentially costly operation, you may want to disable it if you restore elements in tight loops, such as during collaboration [#5432](https://github.com/excalidraw/excalidraw/pull/5432).
|
||
2 years ago
|
- Support rendering custom sidebar using [`renderSidebar`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderSidebar) prop ([#5663](https://github.com/excalidraw/excalidraw/pull/5663)).
|
||
2 years ago
|
- Add [`toggleMenu`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#toggleMenu) prop to toggle specific menu open/close state ([#5663](https://github.com/excalidraw/excalidraw/pull/5663)).
|
||
2 years ago
|
- Support [theme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#theme) to be semi-controlled [#5660](https://github.com/excalidraw/excalidraw/pull/5660).
|
||
2 years ago
|
- Added support for storing [`customData`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#storing-custom-data-on-excalidraw-elements) on Excalidraw elements [#5592].
|
||
|
- Added `exportPadding?: number;` to [exportToCanvas](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#exporttocanvas) and [exportToBlob](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#exporttoblob). The default value of the padding is `10`.
|
||
2 years ago
|
|
||
3 years ago
|
#### Breaking Changes
|
||
|
|
||
2 years ago
|
- `props.UIOptions.canvasActions.theme` is now renamed to `props.UIOptions.canvasActions.toggleTheme` [#5660](https://github.com/excalidraw/excalidraw/pull/5660).
|
||
2 years ago
|
- `setToastMessage` API is now renamed to `setToast` API and the function signature is also updated [#5427](https://github.com/excalidraw/excalidraw/pull/5427). You can also pass `duration` and `closable` attributes along with `message`.
|
||
3 years ago
|
|
||
2 years ago
|
## Excalidraw Library
|
||
|
|
||
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- Render library into `Sidebar` on mobile [#5774](https://github.com/excalidraw/excalidraw/pull/5774)
|
||
|
|
||
|
- Additional drag and drop image format support (webp, bmp, ico) [#5749](https://github.com/excalidraw/excalidraw/pull/5749)
|
||
|
|
||
|
- Enter and Exit line editor via context menu [#5719](https://github.com/excalidraw/excalidraw/pull/5719)
|
||
|
|
||
|
- Further reduce darkmode init flash [#5701](https://github.com/excalidraw/excalidraw/pull/5701)
|
||
|
|
||
|
- Support segment midpoints in line editor [#5641](https://github.com/excalidraw/excalidraw/pull/5641)
|
||
|
|
||
|
- Added exportPadding to PNG (blob) export in @excalidraw/utils [#5626](https://github.com/excalidraw/excalidraw/pull/5626)
|
||
|
|
||
|
- Introduce ExcalidrawElements and ExcalidrawAppState provider [#5463](https://github.com/excalidraw/excalidraw/pull/5463)
|
||
|
|
||
|
- Enable midpoint inside linear element editor [#5564](https://github.com/excalidraw/excalidraw/pull/5564)
|
||
|
|
||
|
- Show a mid point for linear elements [#5534](https://github.com/excalidraw/excalidraw/pull/5534)
|
||
|
|
||
|
- Lock angle when editing linear elements with shift pressed [#5527](https://github.com/excalidraw/excalidraw/pull/5527)
|
||
|
|
||
|
- Redesign linear elements 🎉 [#5501](https://github.com/excalidraw/excalidraw/pull/5501)
|
||
|
|
||
|
- Cursor alignment when creating linear elements with shift pressed [#5518](https://github.com/excalidraw/excalidraw/pull/5518)
|
||
|
|
||
|
- Shift-clamp when creating multi-point lines/arrows [#5500](https://github.com/excalidraw/excalidraw/pull/5500)
|
||
|
|
||
|
- Cursor alignment when creating generic elements [#5516](https://github.com/excalidraw/excalidraw/pull/5516)
|
||
|
|
||
|
- Make context menu scrollable [#4030](https://github.com/excalidraw/excalidraw/pull/4030)
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Ungroup short cut key [#5779](https://github.com/excalidraw/excalidraw/pull/5779)
|
||
|
|
||
|
- Replaced KeyboardEvent.code with KeyboardEvent.key for all letters [#5523](https://github.com/excalidraw/excalidraw/pull/5523)
|
||
|
|
||
|
- Free draw flip not scaling correctly [#5752](https://github.com/excalidraw/excalidraw/pull/5752)
|
||
|
|
||
|
- Wait for window focus until prompting for library install [#5751](https://github.com/excalidraw/excalidraw/pull/5751)
|
||
|
|
||
|
- Update perfect freehand library to fix extra dot [#5727](https://github.com/excalidraw/excalidraw/pull/5727)
|
||
|
|
||
|
- RestoreElementWithProperties drops "parent" property [#5742](https://github.com/excalidraw/excalidraw/pull/5742)
|
||
|
|
||
|
- Horizontal text alignment for bound text when resizing [#5721](https://github.com/excalidraw/excalidraw/pull/5721)
|
||
|
|
||
|
- Set the dimensions of bound text correctly [#5710](https://github.com/excalidraw/excalidraw/pull/5710)
|
||
|
|
||
|
- Image-mirroring in export preview and in exported svg [#5700](https://github.com/excalidraw/excalidraw/pull/5700)
|
||
|
|
||
|
- Double state update incorrectly resetting state [#5704](https://github.com/excalidraw/excalidraw/pull/5704)
|
||
|
|
||
|
- Remove no longer used code related to collab room loading [#5699](https://github.com/excalidraw/excalidraw/pull/5699)
|
||
|
|
||
|
- Revert webpack deduping to fix `@next` runtime [#5695](https://github.com/excalidraw/excalidraw/pull/5695)
|
||
|
|
||
|
- Move to release notes for v0.9.0 and after [#5686](https://github.com/excalidraw/excalidraw/pull/5686)
|
||
|
|
||
|
- Zen-mode exit button not working [#5682](https://github.com/excalidraw/excalidraw/pull/5682)
|
||
|
|
||
|
- Buttons jump around on the mobile menu [#5658](https://github.com/excalidraw/excalidraw/pull/5658)
|
||
|
|
||
|
- #5622 - prevent session theme reset during collaboration [#5640](https://github.com/excalidraw/excalidraw/pull/5640)
|
||
|
|
||
|
- Library actions inside the sidebar [#5638](https://github.com/excalidraw/excalidraw/pull/5638)
|
||
|
|
||
|
- Don't render library menu twice for mobile [#5636](https://github.com/excalidraw/excalidraw/pull/5636)
|
||
|
|
||
|
- Reintroduce help dialog button [#5631](https://github.com/excalidraw/excalidraw/pull/5631)
|
||
|
|
||
|
- Add display name to components so it doesn't show as anonymous [#5616](https://github.com/excalidraw/excalidraw/pull/5616)
|
||
|
|
||
|
- Improve solveQuadratic when a = 0 [#5618](https://github.com/excalidraw/excalidraw/pull/5618)
|
||
|
|
||
|
- Add random tiny offsets to avoid linear elements from being clipped [#5615](https://github.com/excalidraw/excalidraw/pull/5615)
|
||
|
|
||
|
- Crash when adding a new point in the line editor #5602 [#5606](https://github.com/excalidraw/excalidraw/pull/5606)
|
||
|
|
||
|
- Allow box selection of points when inside editor [#5594](https://github.com/excalidraw/excalidraw/pull/5594)
|
||
|
|
||
|
- Remove unnecessary conditions in pointerup for linear elements [#5575](https://github.com/excalidraw/excalidraw/pull/5575)
|
||
|
|
||
|
- Check if hitting link in handleSelectionOnPointerDown [#5589](https://github.com/excalidraw/excalidraw/pull/5589)
|
||
|
|
||
|
- Points not being normalized on single-elem resize [#5581](https://github.com/excalidraw/excalidraw/pull/5581)
|
||
|
|
||
|
- Deselect linear element when clicked inside bounding box outside editor [#5579](https://github.com/excalidraw/excalidraw/pull/5579)
|
||
|
|
||
|
- Resize multiple elements from center [#5560](https://github.com/excalidraw/excalidraw/pull/5560)
|
||
|
|
||
|
- Call static methods via class instead of instance in linearElementEditor [#5561](https://github.com/excalidraw/excalidraw/pull/5561)
|
||
|
|
||
|
- Show bounding box for 3 or more linear point elements [#5554](https://github.com/excalidraw/excalidraw/pull/5554)
|
||
|
|
||
|
- Cleanup the condition for dragging elements [#5555](https://github.com/excalidraw/excalidraw/pull/5555)
|
||
|
|
||
|
- Shareable links being merged with current scene data [#5547](https://github.com/excalidraw/excalidraw/pull/5547)
|
||
|
|
||
|
- Scene lookup failing when looking up by id [#5542](https://github.com/excalidraw/excalidraw/pull/5542)
|
||
|
|
||
|
- Remove rounding to fix jitter when shift-editing [#5543](https://github.com/excalidraw/excalidraw/pull/5543)
|
||
|
|
||
|
- Line deselected when shift-dragging point outside editor [#5540](https://github.com/excalidraw/excalidraw/pull/5540)
|
||
|
|
||
|
- Flip linear elements after redesign [#5538](https://github.com/excalidraw/excalidraw/pull/5538)
|
||
|
|
||
|
- Disable locking aspect ratio for box-selection [#5525](https://github.com/excalidraw/excalidraw/pull/5525)
|
||
|
|
||
|
- Add `title` attribute to the modal close button [#5521](https://github.com/excalidraw/excalidraw/pull/5521)
|
||
|
|
||
|
- Context menu positioning when component has offsets [#5520](https://github.com/excalidraw/excalidraw/pull/5520)
|
||
|
|
||
|
- Resolve paths in prebuild.js script [#5498](https://github.com/excalidraw/excalidraw/pull/5498)
|
||
|
|
||
|
- Use flushSync when moving line editor since we need to read previous value after setting state [#5508](https://github.com/excalidraw/excalidraw/pull/5508)
|
||
|
|
||
|
- UseLayout effect cleanup in dev mode for charts [#5505](https://github.com/excalidraw/excalidraw/pull/5505)
|
||
|
|
||
|
- Revert browser toast for high/low zoom [#5495](https://github.com/excalidraw/excalidraw/pull/5495)
|
||
|
|
||
|
- Fixing push to DockerHub [#5468](https://github.com/excalidraw/excalidraw/pull/5468)
|
||
|
|
||
|
- Incorrectly rendering freedraw elements [#5481](https://github.com/excalidraw/excalidraw/pull/5481)
|
||
|
|
||
|
- Generate types when building example [#5480](https://github.com/excalidraw/excalidraw/pull/5480)
|
||
|
|
||
|
- Use React.FC as react-dom is not able to infer types of Modal [#5479](https://github.com/excalidraw/excalidraw/pull/5479)
|
||
|
|
||
|
- Missing translation for "Scale" to Export Dialog [#5456](https://github.com/excalidraw/excalidraw/pull/5456)
|
||
|
|
||
|
- Add display name for Excalidraw component so it doesn't show as anonymous [#5464](https://github.com/excalidraw/excalidraw/pull/5464)
|
||
|
|
||
|
- Account for safe area for floating buttons on mobile [#5420](https://github.com/excalidraw/excalidraw/pull/5420)
|
||
|
|
||
|
- Attribute warnings in comment svg example [#5465](https://github.com/excalidraw/excalidraw/pull/5465)
|
||
|
|
||
|
- Check for ctrl key when wheel event triggered to only disable zooming [#5459](https://github.com/excalidraw/excalidraw/pull/5459)
|
||
|
|
||
|
- Disable render throttling by default & during resize [#5451](https://github.com/excalidraw/excalidraw/pull/5451)
|
||
|
|
||
|
- Attach wheel event to exscalidraw container only [#5443](https://github.com/excalidraw/excalidraw/pull/5443)
|
||
|
|
||
|
- Show toast when browser zoom is not 100% [#5304](https://github.com/excalidraw/excalidraw/pull/5304)
|
||
|
|
||
|
- Prevent browser zoom inside Excalidraw [#5426](https://github.com/excalidraw/excalidraw/pull/5426)
|
||
|
|
||
|
- Typo in changelog [#5425](https://github.com/excalidraw/excalidraw/pull/5425)
|
||
|
|
||
|
### Refactor
|
||
|
|
||
|
- Create a util to compute container dimensions for bound text container [#5708](https://github.com/excalidraw/excalidraw/pull/5708)
|
||
|
|
||
|
- Reuse common ui dialogs and message for mobile and LayerUI [#5611](https://github.com/excalidraw/excalidraw/pull/5611)
|
||
|
|
||
|
- Stats component [#5610](https://github.com/excalidraw/excalidraw/pull/5610)
|
||
|
|
||
|
- Move footer to its own component [#5609](https://github.com/excalidraw/excalidraw/pull/5609)
|
||
|
|
||
|
- Remove unused attribute hasHitElementInside from pointerDownState [#5591](https://github.com/excalidraw/excalidraw/pull/5591)
|
||
|
|
||
|
- Cleanup renderScene [#5573](https://github.com/excalidraw/excalidraw/pull/5573)
|
||
|
|
||
|
- Rename docs to dev-docs [#5487](https://github.com/excalidraw/excalidraw/pull/5487)
|
||
|
|
||
|
- Remove unnecessary if condition for linear element onKeyDown [#5486](https://github.com/excalidraw/excalidraw/pull/5486)
|
||
|
|
||
|
- Improve typing & check [#5415](https://github.com/excalidraw/excalidraw/pull/5415)
|
||
|
|
||
|
- Don't pass zenModeEnable, viewModeEnabled and toggleZenMode props to LayerUI [#5444](https://github.com/excalidraw/excalidraw/pull/5444)
|
||
|
|
||
|
### Build
|
||
|
|
||
|
- Add missing dependencies: pica, lodash [#5656](https://github.com/excalidraw/excalidraw/pull/5656)
|
||
|
|
||
|
- Move dotenv to dev deps [#5472](https://github.com/excalidraw/excalidraw/pull/5472)
|
||
|
|
||
|
---
|
||
|
|
||
3 years ago
|
## 0.12.0 (2022-07-07)
|
||
3 years ago
|
|
||
2 years ago
|
Check out the [release notes](https://github.com/excalidraw/excalidraw/releases/tag/v0.12.0) )
|
||
3 years ago
|
|
||
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
||
|
|
||
3 years ago
|
## 0.11.0 (2022-02-17)
|
||
3 years ago
|
|
||
2 years ago
|
Check out the [release notes](https://github.com/excalidraw/excalidraw/releases/tag/v0.11.0)
|
||
3 years ago
|
|
||
3 years ago
|
## 0.10.0 (2021-10-13)
|
||
4 years ago
|
|
||
2 years ago
|
Check out the [release notes](https://github.com/excalidraw/excalidraw/releases/tag/v0.10.0)
|
||
3 years ago
|
|
||
4 years ago
|
## 0.9.0 (2021-07-10)
|
||
4 years ago
|
|
||
2 years ago
|
Check out the [release notes](https://github.com/excalidraw/excalidraw/releases/tag/v0.9.0)
|
||
4 years ago
|
|
||
4 years ago
|
## 0.8.0 (2021-05-15)
|
||
4 years ago
|
|
||
|
## Excalidraw API
|
||
|
|
||
4 years ago
|
**_These section lists the updates which may affect your integration, so it is recommended to go through this when upgrading the version._**
|
||
|
|
||
4 years ago
|
### Features
|
||
|
|
||
4 years ago
|
- Support updating any `appState` properties in [`updateScene`](https://github.com/excalidraw/excalidraw/blob/master/src/components/App.tsx#L282) API. Earlier only `appState.viewBackgroundColor` was supported, now any attribute can be updated with this API.
|
||
4 years ago
|
- Expose [`serializeAsJSON`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#serializeAsJSON) helper that we use when saving Excalidraw scene to a file [#3538](https://github.com/excalidraw/excalidraw/pull/3538).
|
||
4 years ago
|
- Add support to render custom UI in the top right corner via [`renderTopRightUI`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderTopRightUI) prop [#3539](https://github.com/excalidraw/excalidraw/pull/3539), [#3572](https://github.com/excalidraw/excalidraw/pull/3572) .
|
||
4 years ago
|
|
||
|
This also removes the GitHub icon, keeping it local to the https://excalidraw.com app.
|
||
|
|
||
4 years ago
|
### Fixes
|
||
|
|
||
|
- The encryption shield icon is now removed from excalidraw package as it was specific to excalidraw app and is now rendered via [`renderFooter`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderFooter) prop. In case you were hiding this icon earlier, you need not do that anymore [#3577](https://github.com/excalidraw/excalidraw/pull/3577).
|
||
|
|
||
|
Now `appState` is also passed to [`renderFooter`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderFooter) prop.
|
||
|
|
||
4 years ago
|
## Excalidraw Library
|
||
|
|
||
|
**_These section lists the updates made to the excalidraw library and will not affect the integration._**
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- Shortcut key for nerd stats [#3552](https://github.com/excalidraw/excalidraw/pull/3552).
|
||
|
- Better rendering of curved rectangles [#3562](https://github.com/excalidraw/excalidraw/pull/3562).
|
||
|
- Improved freedraw [#3512](https://github.com/excalidraw/excalidraw/pull/3512).
|
||
|
- Add shortcut for dark mode [#3543](https://github.com/excalidraw/excalidraw/pull/3543).
|
||
|
- Adds rounded icons, joins and caps.[#3521](https://github.com/excalidraw/excalidraw/pull/3521).
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Exporting freedraw with color to svg [#3565](https://github.com/excalidraw/excalidraw/pull/3565).
|
||
|
- Handle render errors [#3557](https://github.com/excalidraw/excalidraw/pull/3557).
|
||
|
- Restore on paste or lib import [#3558](https://github.com/excalidraw/excalidraw/pull/3558).
|
||
|
- Improve mobile user experience [#3508](https://github.com/excalidraw/excalidraw/pull/3508).
|
||
|
- Prevent selecting `.visually-hidden` elements [#3501](https://github.com/excalidraw/excalidraw/pull/3501).
|
||
|
|
||
|
### Perf
|
||
|
|
||
|
- Reduce SVG export size by more than half by reducing precision to 2 decimal places [#3567](https://github.com/excalidraw/excalidraw/pull/3567).
|
||
|
- Remove `backdrop-filter` to improve perf [#3506](https://github.com/excalidraw/excalidraw/pull/3506)
|
||
|
|
||
|
---
|
||
|
|
||
4 years ago
|
## 0.7.0 (2021-04-26)
|
||
4 years ago
|
|
||
4 years ago
|
## Excalidraw API
|
||
|
|
||
4 years ago
|
### Features
|
||
|
|
||
4 years ago
|
- [`scrollToContent`](https://github.com/excalidraw/excalidraw/blob/master/src/components/App.tsx#L265) API now supports passing just a single Excalidraw element, or none at all (which will default to current elements on the scene) [#3482](https://github.com/excalidraw/excalidraw/pull/3482).
|
||
4 years ago
|
|
||
|
#### BREAKING CHANGE
|
||
|
|
||
4 years ago
|
- Renamed `setScrollToContent` to [`scrollToContent`](https://github.com/excalidraw/excalidraw/blob/master/src/components/App.tsx#L265).
|
||
4 years ago
|
|
||
4 years ago
|
- Make library local to given excalidraw instance (previously, all instances on the same page shared one global library) [#3451](https://github.com/excalidraw/excalidraw/pull/3451).
|
||
|
|
||
|
- Added prop [onLibraryChange](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#onLibraryChange) which if supplied will be called when library is updated.
|
||
4 years ago
|
|
||
4 years ago
|
- Added attribute `libraryItems` to prop [initialData](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#initialdata) which can be used to load excalidraw with existing library items.
|
||
4 years ago
|
|
||
|
- Assign a [unique id](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#Id) to the excalidraw component. The id can be accessed via [`ref`](https://github.com/excalidraw/excalidraw/blob/master/src/components/App.tsx#L298).
|
||
4 years ago
|
|
||
|
#### BREAKING CHANGE
|
||
|
|
||
4 years ago
|
- From now on the host application is responsible for [persisting the library](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#onLibraryChange) to LocalStorage (or elsewhere), and [importing it on mount](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#initialdata).
|
||
4 years ago
|
|
||
4 years ago
|
- Bind the keyboard events to component and added a prop [`handleKeyboardGlobally`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#handleKeyboardGlobally) which if set to true will bind the keyboard events to document [#3430](https://github.com/excalidraw/excalidraw/pull/3430).
|
||
|
|
||
4 years ago
|
#### BREAKING CHANGE
|
||
4 years ago
|
|
||
|
- Earlier keyboard events were bind to document but now its bind to Excalidraw component by default. So you will need to set [`handleKeyboardGlobally`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#handleKeyboardGlobally) to true if you want the previous behaviour (bind the keyboard events to document).
|
||
|
|
||
4 years ago
|
- Recompute offsets on `scroll` of the nearest scrollable container [#3408](https://github.com/excalidraw/excalidraw/pull/3408). This can be disabled by setting [`detectScroll`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#detectScroll) to `false`.
|
||
4 years ago
|
|
||
4 years ago
|
- Add `onPaste` prop to handle custom clipboard behaviours [#3420](https://github.com/excalidraw/excalidraw/pull/3420).
|
||
|
|
||
4 years ago
|
### Fixes
|
||
|
|
||
4 years ago
|
- Changing z-index of elements (sorting them below/above other elements) now updates their `version` and `versionNonce` (only applies to the selected elements). This fix will allow you account for z-index changes if you're syncing just the elements that changed (and not the whole scene) [#3483](https://github.com/excalidraw/excalidraw/pull/3483).
|
||
4 years ago
|
- Only handle cut/paste events inside excalidraw [#3484](https://github.com/excalidraw/excalidraw/pull/3484).
|
||
4 years ago
|
|
||
4 years ago
|
- Make history local to a given Excalidraw instance. This fixes a case where history was getting shared when you have multiple Excalidraw components on the same page [#3481](https://github.com/excalidraw/excalidraw/pull/3481).
|
||
4 years ago
|
- Use active Excalidraw component when editing text. This fixes a case where text editing was not working when you have multiple Excalidraw components on the same page [#3478](https://github.com/excalidraw/excalidraw/pull/3478).
|
||
4 years ago
|
|
||
|
- Fix library being pasted off-center [#3462](https://github.com/excalidraw/excalidraw/pull/3462).
|
||
|
|
||
|
- When switching theme, apply it only to the active Excalidraw component. This fixes a case where the theme was getting applied to the first Excalidraw component if you had multiple Excalidraw components on the same page [#3446](https://github.com/excalidraw/excalidraw/pull/3446).
|
||
4 years ago
|
|
||
4 years ago
|
### Refactor
|
||
|
|
||
|
- #### BREAKING CHANGE
|
||
|
|
||
|
- Removed exposing `getSyncableElements` helper which was specific to excalidraw app collab implementation [#3471](https://github.com/excalidraw/excalidraw/pull/3471). If you happened to use it, you can easily reimplement it yourself using the newly exposed [isInvisiblySmallElement](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#isInvisiblySmallElement) helper:
|
||
|
|
||
|
```ts
|
||
|
const getSyncableElements = (elements: readonly ExcalidrawElement[]) =>
|
||
|
elements.filter((el) => el.isDeleted || !isInvisiblySmallElement(el));
|
||
|
```
|
||
|
|
||
4 years ago
|
### Build
|
||
|
|
||
|
- Add vendor prefixes to css rules [#3476](https://github.com/excalidraw/excalidraw/pull/3476).
|
||
|
|
||
4 years ago
|
## Types
|
||
|
|
||
|
- Renamed the following types in case you depend on them (via [#3427](https://github.com/excalidraw/excalidraw/pull/3427)):
|
||
|
- `DataState` → `ExportedDataState`
|
||
|
- `LibraryData` → `ExportedLibraryData`
|
||
|
|
||
4 years ago
|
## Excalidraw Library
|
||
|
|
||
|
### Features
|
||
|
|
||
4 years ago
|
- Support tab-to-indent when editing text [#3411](https://github.com/excalidraw/excalidraw/pull/3411).
|
||
|
|
||
4 years ago
|
- App now breaks into mobile view using the component dimensions, not viewport dimensions. This fixes a case where the app would break sooner than necessary when the component's size is smaller than viewport [#3414](https://github.com/excalidraw/excalidraw/pull/3414).
|
||
|
|
||
4 years ago
|
- Add screenshots to manifest.json [#3369](https://github.com/excalidraw/excalidraw/pull/3369).
|
||
|
|
||
|
- Enable drop event on the whole component [#3406](https://github.com/excalidraw/excalidraw/pull/3406).
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Focus on last active element when dialog closes [#3447](https://github.com/excalidraw/excalidraw/pull/3447).
|
||
|
|
||
|
- Fix incorrectly caching png file handle [#3407](https://github.com/excalidraw/excalidraw/pull/3407).
|
||
|
|
||
|
- Fix popover position incorrect on Safari for non-zero offsets/scroll [#3399](https://github.com/excalidraw/excalidraw/pull/3399).
|
||
|
|
||
|
---
|
||
|
|
||
4 years ago
|
## 0.6.0 (2021-04-04)
|
||
4 years ago
|
|
||
|
## Excalidraw API
|
||
|
|
||
|
### Features
|
||
|
|
||
4 years ago
|
- Add `UIOptions` prop to customise `canvas actions` which includes customising `background color picker`, `clear canvas`, `export`, `load`, `save`, `save as` & `theme toggle` [#3364](https://github.com/excalidraw/excalidraw/pull/3364). Check the [readme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#uioptions) for more details.
|
||
4 years ago
|
- Calculate `width/height` of canvas based on excalidraw component (".excalidraw" selector) & also resize and update offsets whenever the dimensions of excalidraw component gets updated [#3379](https://github.com/excalidraw/excalidraw/pull/3379). You also don't need to add a resize handler anymore for excalidraw as its handled now in excalidraw itself.
|
||
|
#### BREAKING CHANGE
|
||
|
- `width/height` props have been removed. Instead now it takes `100%` of `width` and `height` of the container so you need to make sure the container in which you are rendering Excalidraw has non zero dimensions (It should have non zero width and height so Excalidraw can match the dimensions of containing block)
|
||
4 years ago
|
- Calculate offsets when excalidraw container resizes using resize observer api [#3374](https://github.com/excalidraw/excalidraw/pull/3374).
|
||
4 years ago
|
- Export types for the package so now it can be used with typescript [#3337](https://github.com/excalidraw/excalidraw/pull/3337). The types are available at `@excalidraw/excalidraw/types`.
|
||
4 years ago
|
- Add `renderCustomStats` prop to render extra stats on host, and expose `setToastMessage` API via refs which can be used to show toast with custom message [#3360](https://github.com/excalidraw/excalidraw/pull/3360).
|
||
4 years ago
|
- Support passing a CSRF token when importing libraries to prevent prompting before installation. The token is passed from [https://libraries.excalidraw.com](https://libraries.excalidraw.com/) using the `token` URL key [#3329](https://github.com/excalidraw/excalidraw/pull/3329).
|
||
4 years ago
|
- #### BREAKING CHANGE
|
||
4 years ago
|
Use `location.hash` when importing libraries to fix installation issues. This will require host apps to add a `hashchange` listener and call the newly exposed `excalidrawAPI.importLibrary(url)` API when applicable [#3320](https://github.com/excalidraw/excalidraw/pull/3320). Check the [readme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#importlibrary) for more details.
|
||
4 years ago
|
- Append `location.pathname` to `libraryReturnUrl` default url [#3325](https://github.com/excalidraw/excalidraw/pull/3325).
|
||
3 years ago
|
- Support image elements [#3424](https://github.com/excalidraw/excalidraw/pull/3424).
|
||
4 years ago
|
|
||
4 years ago
|
### Build
|
||
|
|
||
4 years ago
|
- Expose separate builds for dev and prod and support source maps in dev build [#3330](https://github.com/excalidraw/excalidraw/pull/3330). Check the [readme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#installation) for more details.
|
||
4 years ago
|
#### BREAKING CHANGE
|
||
|
- If you are using script tag to embed excalidraw then the name of the file will have to be updated to `excalidraw.production.min.js` instead of `excalidraw.min.js`. If you want to use dev build you can use `excalidraw.development.js`
|
||
|
|
||
4 years ago
|
### Refactor
|
||
|
|
||
|
#### BREAKING CHANGE
|
||
|
|
||
|
- Rename the API `setCanvasOffsets` exposed via [`ref`](https://github.com/excalidraw/excalidraw/blob/master/src/components/App.tsx#L265) to `refresh` [#3398](https://github.com/excalidraw/excalidraw/pull/3398).
|
||
|
|
||
4 years ago
|
## Excalidraw Library
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- Reopen library menu on import from file [#3383](https://github.com/excalidraw/excalidraw/pull/3383).
|
||
|
- Don't unnecessarily prompt when installing libraries [#3329](https://github.com/excalidraw/excalidraw/pull/3329).
|
||
|
- Add option to flip single element on the context menu [#2520](https://github.com/excalidraw/excalidraw/pull/2520).
|
||
|
- Replace fontSize and fontFamily text with icons [#2857](https://github.com/excalidraw/excalidraw/pull/2857).
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Export dialog canvas positioning [#3397](https://github.com/excalidraw/excalidraw/pull/3397).
|
||
|
- Don't share collab types with core [#3353](https://github.com/excalidraw/excalidraw/pull/3353).
|
||
|
- Support d&d of files without extension [#3168](https://github.com/excalidraw/excalidraw/pull/3168).
|
||
|
- Positions stats for linear elements [#3331](https://github.com/excalidraw/excalidraw/pull/3331).
|
||
|
- Debounce.flush invokes func even if never queued before [#3326](https://github.com/excalidraw/excalidraw/pull/3326).
|
||
|
- State selection state on opening contextMenu [#3333](https://github.com/excalidraw/excalidraw/pull/3333).
|
||
|
- Add unique key for library header to resolve dev warnings [#3316](https://github.com/excalidraw/excalidraw/pull/3316).
|
||
|
- disallow create text in viewMode on mobile [#3219](https://github.com/excalidraw/excalidraw/pull/3219).
|
||
|
- Make help toggle tabbable [#3310](https://github.com/excalidraw/excalidraw/pull/3310)
|
||
|
- Show Windows share icon for Windows users [#3306](https://github.com/excalidraw/excalidraw/pull/3306).
|
||
|
- Don't scroll to content on INIT websocket message [#3291](https://github.com/excalidraw/excalidraw/pull/3291).
|
||
|
|
||
|
### Refactor
|
||
|
|
||
|
- Use arrow function where possible [#3315](https://github.com/excalidraw/excalidraw/pull/3315).
|
||
|
|
||
4 years ago
|
---
|
||
|
|
||
4 years ago
|
## 0.5.0 (2021-03-21)
|
||
4 years ago
|
|
||
|
## Excalidraw API
|
||
|
|
||
|
### Features
|
||
|
|
||
4 years ago
|
- Set the target to `window.name` if present during excalidraw libraries installation so it opens in same tab for the host. If `window.name` is not set it will open in a new tab [#3299](https://github.com/excalidraw/excalidraw/pull/3299).
|
||
4 years ago
|
- Add `name` prop to indicate the name of the drawing which will be used when exporting the drawing. When supplied, the value takes precedence over `intialData.appState.name`, the `name` will be fully controlled by host app and the users won't be able to edit from within Excalidraw [#3273](https://github.com/excalidraw/excalidraw/pull/3273).
|
||
4 years ago
|
- Export API `setCanvasOffsets` via `ref` to set the offsets for Excalidraw[#3265](https://github.com/excalidraw/excalidraw/pull/3265).
|
||
|
#### BREAKING CHANGE
|
||
|
- `offsetLeft` and `offsetTop` props have been removed now so you have to use the `setCanvasOffsets` via `ref` to achieve the same.
|
||
4 years ago
|
- Export API to export the drawing to canvas, svg and blob [#3258](https://github.com/excalidraw/excalidraw/pull/3258). For more info you can check the [readme](https://github.com/excalidraw/excalidraw/tree/master/src/packages/excalidraw/README.md#user-content-export-utils)
|
||
4 years ago
|
- Add a `theme` prop to indicate Excalidraw's theme. [#3228](https://github.com/excalidraw/excalidraw/pull/3228). When this prop is passed, the theme is fully controlled by host app.
|
||
4 years ago
|
- Support `libraryReturnUrl` prop to indicate what URL to install libraries to [#3227](https://github.com/excalidraw/excalidraw/pull/3227).
|
||
|
|
||
4 years ago
|
### Refactor
|
||
|
|
||
4 years ago
|
- #### BREAKING CHANGE
|
||
|
- Rename prop `initialData.scrollToCenter` and `setScrollToCenter` API exposed via ref to `initialData.scrollToContent` and `setScrollToContent` respectively[#3261](https://github.com/excalidraw/excalidraw/pull/3261).
|
||
4 years ago
|
- Rename appearance to theme [#3237](https://github.com/excalidraw/excalidraw/pull/3237).
|
||
|
#### BREAKING CHANGE
|
||
|
- Since `appState.appearance` is renamed to `appState.theme` so wherever `appState.appearance` including `initialData.appState.appearance` should be renamed to `appState.theme` and `initialData.appState.theme` respectively. If the `appearance` was persisted earlier, now it needs to passed as `theme`.
|
||
|
- The class `Appearance_dark` is renamed to `theme--dark`.
|
||
|
- The class `Appearance_dark-background-none` is renamed to `theme--dark-background-none`.
|
||
|
|
||
4 years ago
|
## Excalidraw Library
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- Support pasting file contents & always prefer system clip [#3257](https://github.com/excalidraw/excalidraw/pull/3257)
|
||
|
- Add label for name field and use input when editable in export dialog [#3286](https://github.com/excalidraw/excalidraw/pull/3286)
|
||
|
- Implement the Web Share Target API [#3230](https://github.com/excalidraw/excalidraw/pull/3230).
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Don't show export and delete when library is empty [#3288](https://github.com/excalidraw/excalidraw/pull/3288)
|
||
|
- Overflow in textinput in export dialog [#3284](https://github.com/excalidraw/excalidraw/pull/3284).
|
||
|
- Bail on noop updates for newElementWith [#3279](https://github.com/excalidraw/excalidraw/pull/3279).
|
||
|
- Prevent State continuously updated when holding ctrl/cmd #3283
|
||
|
- Debounce flush not invoked if lastArgs not defined [#3281](https://github.com/excalidraw/excalidraw/pull/3281).
|
||
|
- Stop preventing canvas pointerdown/tapend events [#3207](https://github.com/excalidraw/excalidraw/pull/3207).
|
||
|
- Double scrollbar on modals [#3226](https://github.com/excalidraw/excalidraw/pull/3226).
|
||
|
|
||
4 years ago
|
---
|
||
|
|
||
4 years ago
|
## 0.4.3 (2021-03-12)
|
||
4 years ago
|
|
||
|
## Excalidraw API
|
||
|
|
||
|
### Fixes
|
||
|
|
||
4 years ago
|
- Allow copy of excalidraw elements only when inside excalidraw [#3206](https://github.com/excalidraw/excalidraw/pull/3206).
|
||
4 years ago
|
- Position text editor absolute and fix the offsets so it doesn't remain fixed when the container is scrolled [#3200](https://github.com/excalidraw/excalidraw/pull/3200).
|
||
|
- Scope CSS variables so that host CSS vars don't clash with excalidraw [#3199](https://github.com/excalidraw/excalidraw/pull/3199).
|
||
4 years ago
|
|
||
4 years ago
|
## Excalidraw Library
|
||
|
|
||
4 years ago
|
- Apply correct translation when text editor overflows when zoom not 100% [#3225](https://github.com/excalidraw/excalidraw/pull/3225)
|
||
4 years ago
|
- Don't overflow text beyond width of Excalidraw [#3215](https://github.com/excalidraw/excalidraw/pull/3215).
|
||
|
|
||
4 years ago
|
---
|
||
|
|
||
4 years ago
|
## 0.4.2
|
||
4 years ago
|
|
||
|
## Excalidraw API
|
||
|
|
||
|
### Fixes
|
||
|
|
||
4 years ago
|
- Wrap excalidraw in position relative so host need not do it anymore & hide scrollbars in zen mode [#3174](https://github.com/excalidraw/excalidraw/pull/3174).
|
||
4 years ago
|
- Reduce the scroll debounce timeout to `100ms` so `offsets` gets updated faster if changed when container scrolled [#3182](https://github.com/excalidraw/excalidraw/pull/3182).
|
||
4 years ago
|
- Rerender UI on `renderFooter` prop change [#3183](https://github.com/excalidraw/excalidraw/pull/3183)
|
||
|
|
||
|
## Excalidraw Library
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Temporarily downgrade browser-fs-access to fix legacy FS API [#3172](https://github.com/excalidraw/excalidraw/pull/3172)
|
||
4 years ago
|
|
||
|
---
|
||
|
|
||
4 years ago
|
## 0.4.1
|
||
|
|
||
|
## Excalidraw API
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Use `Array.from` when spreading over set so that typescript transpiles correctly in the umd build[#3165](https://github.com/excalidraw/excalidraw/pull/3165).
|
||
|
|
||
|
## Excalidraw Library
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- Add export info on copy PNG to clipboard toast message [#3159](https://github.com/excalidraw/excalidraw/pull/3159).
|
||
|
- Use the latest version of Virgil [#3124](https://github.com/excalidraw/excalidraw/pull/3124).
|
||
|
- Support exporting with dark mode [#3046](https://github.com/excalidraw/excalidraw/pull/3046).
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Cursor being leaked outside of canvas [#3161](https://github.com/excalidraw/excalidraw/pull/3161).
|
||
|
- Hide scrollbars in zenMode [#3144](https://github.com/excalidraw/excalidraw/pull/3144).
|
||
|
|
||
4 years ago
|
## 0.4.0
|
||
4 years ago
|
|
||
|
## Excalidraw API
|
||
|
|
||
|
### Features
|
||
|
|
||
4 years ago
|
- Expose `window.EXCALIDRAW_ASSET_PATH` which host can use to load assets from a different URL. By default it will be loaded from `https://unpkg.com/@excalidraw/excalidraw{currentVersion}/dist/`[#3068](https://github.com/excalidraw/excalidraw/pull/3068).
|
||
4 years ago
|
|
||
|
Also now the assets will have a hash in filename so cache bursting can easily happen with version bump.
|
||
|
|
||
4 years ago
|
- Add support for `scrollToCenter` in [initialData](https://github.com/excalidraw/excalidraw/blob/master/src/element/types.ts#L18) so host can control whether to scroll to center on mount [#3070](https://github.com/excalidraw/excalidraw/pull/3070).
|
||
|
|
||
4 years ago
|
- Export [`restore`](https://github.com/excalidraw/excalidraw/blob/master/src/data/restore.ts#L182), [`restoreAppState`](https://github.com/excalidraw/excalidraw/blob/master/src/data/restore.ts#L144) and [`restoreElements`](https://github.com/excalidraw/excalidraw/blob/master/src/data/restore.ts#L128) to host [#3049](https://github.com/excalidraw/excalidraw/pull/3049)
|
||
4 years ago
|
|
||
4 years ago
|
### Fixes
|
||
|
|
||
|
- Show user state only when [userState](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L35) is passed on remote pointers during collaboration [#3050](https://github.com/excalidraw/excalidraw/pull/3050)
|
||
|
|
||
4 years ago
|
## Excalidraw Library
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- Adjust line-confirm-threshold based on zoom [#2884](https://github.com/excalidraw/excalidraw/pull/2884)
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Hide scrollbars on mobile [#3044](https://github.com/excalidraw/excalidraw/pull/3044)
|
||
|
|
||
4 years ago
|
## 0.3.1
|
||
|
|
||
|
## Excalidraw API
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Support Excalidraw inside scrollable container [#3018](https://github.com/excalidraw/excalidraw/pull/3018)
|
||
|
|
||
|
## Excalidraw Library
|
||
|
|
||
|
### Fixes
|
||
|
|
||
|
- Allow to toggle between modes when view only mode to make UI consistent [#3009](https://github.com/excalidraw/excalidraw/pull/3009)
|
||
|
|
||
4 years ago
|
## 0.3.0
|
||
4 years ago
|
|
||
4 years ago
|
## Excalidraw API
|
||
|
|
||
4 years ago
|
### Features
|
||
|
|
||
4 years ago
|
- Allow host to pass [color](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L36) for [collaborator](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L27) [#2943](https://github.com/excalidraw/excalidraw/pull/2943). The unused prop `user` is now removed.
|
||
4 years ago
|
- Add `zenModeEnabled` and `gridModeEnabled` prop which enables zen mode and grid mode respectively [#2901](https://github.com/excalidraw/excalidraw/pull/2901). When this prop is used, the zen mode / grid mode will be fully controlled by the host app.
|
||
4 years ago
|
- Allow host to pass [userState](https://github.com/excalidraw/excalidraw/blob/6967d8c9851c65bb8873e2f97387749976bbe326/src/types.ts#L35) for [collaborator](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L27) to show the current user state [#2877](https://github.com/excalidraw/excalidraw/pull/2877).
|
||
4 years ago
|
- Add `viewModeEnabled` prop which enabled the view mode [#2840](https://github.com/excalidraw/excalidraw/pull/2840). When this prop is used, the view mode will not show up in context menu is so it is fully controlled by host.
|
||
4 years ago
|
- Expose `getAppState` on `excalidrawRef` [#2834](https://github.com/excalidraw/excalidraw/pull/2834).
|
||
|
|
||
4 years ago
|
### Build
|
||
|
|
||
|
- Remove publicPath so host can use `__webpack_public_path__` to host the assets[#2835](https://github.com/excalidraw/excalidraw/pull/2835)
|
||
|
|
||
4 years ago
|
## Excalidraw Library
|
||
|
|
||
|
### Features
|
||
|
|
||
4 years ago
|
- Add the ability to clear library [#2997](https://github.com/excalidraw/excalidraw/pull/2997)
|
||
|
- Updates to Collaboration and RTL UX [#2994](https://github.com/excalidraw/excalidraw/pull/2994)
|
||
|
- Show toast when saving to existing file [#2988](https://github.com/excalidraw/excalidraw/pull/2988)
|
||
|
- Support supplying custom scale when exporting canvas [#2904](https://github.com/excalidraw/excalidraw/pull/2904)
|
||
|
- Show version in the stats dialog [#2908](https://github.com/excalidraw/excalidraw/pull/2908)
|
||
|
- Add idle detection to collaboration feature [#2877](https://github.com/excalidraw/excalidraw/pull/2877)
|
||
|
- Add view mode in Excalidraw [#2840](https://github.com/excalidraw/excalidraw/pull/2840)
|
||
|
- Increase max zoom [#2881](https://github.com/excalidraw/excalidraw/pull/2881)
|
||
|
- Remove copy & paste from context menu on desktop [#2872](https://github.com/excalidraw/excalidraw/pull/2872)
|
||
|
- Add separators on context menu [#2659](https://github.com/excalidraw/excalidraw/pull/2659)
|
||
|
- Add ctrl-y to redo [#2831](https://github.com/excalidraw/excalidraw/pull/2831)
|
||
4 years ago
|
- Add view mode [#2840](https://github.com/excalidraw/excalidraw/pull/2840).
|
||
4 years ago
|
- Remove `copy`, `cut`, and `paste` actions from contextmenu [#2872](https://github.com/excalidraw/excalidraw/pull/2872)
|
||
4 years ago
|
- Support `Ctrl-Y` shortcut to redo on Windows [#2831](https://github.com/excalidraw/excalidraw/pull/2831).
|
||
|
|
||
4 years ago
|
### Fixes
|
||
|
|
||
4 years ago
|
- Refresh wysiwyg position on canvas resize [#3008](https://github.com/excalidraw/excalidraw/pull/3008)
|
||
|
- Update the `lang` attribute with the current lang. [#2995](https://github.com/excalidraw/excalidraw/pull/2995)
|
||
|
- Rename 'Grid mode' to 'Show grid' [#2944](https://github.com/excalidraw/excalidraw/pull/2944)
|
||
|
- Deal with users on systems that don't handle emoji [#2941](https://github.com/excalidraw/excalidraw/pull/2941)
|
||
|
- Mobile toolbar tooltip regression [#2939](https://github.com/excalidraw/excalidraw/pull/2939)
|
||
|
- Hide collaborator list on mobile if empty [#2938](https://github.com/excalidraw/excalidraw/pull/2938)
|
||
|
- Toolbar unnecessarily eats too much width [#2924](https://github.com/excalidraw/excalidraw/pull/2924)
|
||
|
- Mistakenly hardcoding scale [#2925](https://github.com/excalidraw/excalidraw/pull/2925)
|
||
|
- Text editor not visible in dark mode [#2920](https://github.com/excalidraw/excalidraw/pull/2920)
|
||
|
- Incorrect z-index of text editor [#2914](https://github.com/excalidraw/excalidraw/pull/2914)
|
||
|
- Make scrollbars draggable when offsets are set [#2916](https://github.com/excalidraw/excalidraw/pull/2916)
|
||
|
- Pointer-events being disabled on free-draw [#2912](https://github.com/excalidraw/excalidraw/pull/2912)
|
||
|
- Track zenmode and grid mode usage [#2900](https://github.com/excalidraw/excalidraw/pull/2900)
|
||
|
- Disable UI pointer-events on canvas drag [#2856](https://github.com/excalidraw/excalidraw/pull/2856)
|
||
|
- Stop flooring scroll positions [#2883](https://github.com/excalidraw/excalidraw/pull/2883)
|
||
|
- Apply initialData appState for zenmode and grid stats and refactor check param for actions [#2871](https://github.com/excalidraw/excalidraw/pull/2871)
|
||
|
- Show correct state of Nerd stats in context menu when nerd stats dialog closed [#2874](https://github.com/excalidraw/excalidraw/pull/2874)
|
||
|
- Remote pointers not accounting for offset [#2855](https://github.com/excalidraw/excalidraw/pull/2855)
|
||
|
- Toggle help dialog when "shift+?" is pressed [#2828](https://github.com/excalidraw/excalidraw/pull/2828)
|
||
|
- Add safe check for process so Excalidraw can be loaded via script [#2824](https://github.com/excalidraw/excalidraw/pull/2824)
|
||
4 years ago
|
- Fix UI pointer-events not disabled when dragging on canvas [#2856](https://github.com/excalidraw/excalidraw/pull/2856).
|
||
4 years ago
|
- Fix remote pointers not accounting for offset [#2855](https://github.com/excalidraw/excalidraw/pull/2855).
|
||
|
|
||
4 years ago
|
### Refactor
|
||
|
|
||
|
- Remove duplicate key handling [#2878](https://github.com/excalidraw/excalidraw/pull/2878)
|
||
|
- Reuse scss variables in js for SSOT [#2867](https://github.com/excalidraw/excalidraw/pull/2867)
|
||
|
- Rename browser-nativefs to browser-fs-access [#2862](https://github.com/excalidraw/excalidraw/pull/2862)
|
||
|
- Rewrite collabWrapper to remove TDZs and simplify [#2834](https://github.com/excalidraw/excalidraw/pull/2834)
|
||
|
|
||
|
### Chore
|
||
|
|
||
|
- Use `Sentence case` for `Live collaboration`
|
||
|
|
||
4 years ago
|
## 0.2.1
|
||
|
|
||
|
## Excalidraw API
|
||
|
|
||
|
### Build
|
||
|
|
||
|
- Bundle css files with js [#2819](https://github.com/excalidraw/excalidraw/pull/2819). The host would not need to import css files separately.
|
||
|
|
||
4 years ago
|
## 0.2.0
|
||
4 years ago
|
|
||
4 years ago
|
## Excalidraw API
|
||
|
|
||
4 years ago
|
### Features
|
||
4 years ago
|
|
||
4 years ago
|
- Exported few [Extra API's](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#extra-apis) which can be used by the host to communicate with Excalidraw.
|
||
|
|
||
4 years ago
|
- Remove language picker, and add `langCode`, `renderFooter` [#2644](https://github.com/excalidraw/excalidraw/pull/2644):
|
||
|
- BREAKING: removed the language picker from UI. It is now the host app's responsibility to implement a language picker if desirable, using the newly added [`renderFooter`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderFooter) prop. The reasoning is that the i18n should be controlled by the app itself, not by the nested Excalidraw component.
|
||
|
- Added [`langCode`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#langCode) prop to control the UI language.
|
||
4 years ago
|
- Add support for `exportToBackend` prop to allow host apps to implement shareable links [#2612](https://github.com/excalidraw/excalidraw/pull/2612/files)
|
||
4 years ago
|
|
||
|
### Fixes
|
||
|
|
||
|
- Hide collaboration button when the prop `onCollabButtonClick` is not provided [#2598](https://github.com/excalidraw/excalidraw/pull/2598)
|
||
|
|
||
|
## Excalidraw Library
|
||
|
|
||
|
### Features
|
||
|
|
||
|
- Add toast [#2772](https://github.com/excalidraw/excalidraw/pull/2772)
|
||
|
- Add `cmd+o` shortcut to load scene [#2732](https://github.com/excalidraw/excalidraw/pull/2732)
|
||
4 years ago
|
- Require use of a preset dialog size; adjust dialog sizing [#2684](https://github.com/excalidraw/excalidraw/pull/2684)
|
||
|
- Add line chart and paste dialog selection [#2670](https://github.com/excalidraw/excalidraw/pull/2670)
|
||
|
- Tweak editing behavior [#2668](https://github.com/excalidraw/excalidraw/pull/2668)
|
||
|
- Change title to Excalidraw after a timeout
|
||
|
- Checkmark to toggle context-menu-items [#2645](https://github.com/excalidraw/excalidraw/pull/2645)
|
||
4 years ago
|
- Add zoom to selection [#2522](https://github.com/excalidraw/excalidraw/pull/2522)
|
||
4 years ago
|
- Insert Library items in the middle of the screen [#2527](https://github.com/excalidraw/excalidraw/pull/2527)
|
||
|
- Show shortcut context menu [#2501](https://github.com/excalidraw/excalidraw/pull/2501)
|
||
|
- Aligns arrowhead schemas [#2517](https://github.com/excalidraw/excalidraw/pull/2517)
|
||
|
- Add Cut to menus [#2511](https://github.com/excalidraw/excalidraw/pull/2511)
|
||
|
- More Arrowheads: dot, bar [#2486](https://github.com/excalidraw/excalidraw/pull/2486)
|
||
|
- Support CSV graphs and improve the look and feel [#2495](https://github.com/excalidraw/excalidraw/pull/2495)
|
||
|
|
||
|
### Fixes
|
||
4 years ago
|
|
||
4 years ago
|
- Fix compile error [#2685](https://github.com/excalidraw/excalidraw/pull/2685)
|
||
|
- Center zoom on iPhone and iPad [#2642](https://github.com/excalidraw/excalidraw/pull/2642)
|
||
4 years ago
|
- Allow text-selecting in dialogs & reset cursor [#2783](https://github.com/excalidraw/excalidraw/pull/2783)
|
||
4 years ago
|
- Don't render due to zoom after unmount [#2779](https://github.com/excalidraw/excalidraw/pull/2779)
|
||
|
- Track the chart type correctly [#2773](https://github.com/excalidraw/excalidraw/pull/2773)
|
||
4 years ago
|
- Fix late-render due to debounced zoom [#2779](https://github.com/excalidraw/excalidraw/pull/2779)
|
||
4 years ago
|
- Fix initialization when browser tab not focused [#2677](https://github.com/excalidraw/excalidraw/pull/2677)
|
||
4 years ago
|
- Consistent case for export locale strings [#2622](https://github.com/excalidraw/excalidraw/pull/2622)
|
||
4 years ago
|
- Remove unnecessary console.error as it was polluting Sentry [#2637](https://github.com/excalidraw/excalidraw/pull/2637)
|
||
4 years ago
|
- Fix scroll-to-center on init for non-zero canvas offsets [#2445](https://github.com/excalidraw/excalidraw/pull/2445)
|
||
4 years ago
|
- Fix resizing the pasted charts [#2586](https://github.com/excalidraw/excalidraw/pull/2586)
|
||
4 years ago
|
- Fix element visibility and zoom on cursor when canvas offset isn't 0. [#2534](https://github.com/excalidraw/excalidraw/pull/2534)
|
||
4 years ago
|
- Fix Library Menu Layout [#2502](https://github.com/excalidraw/excalidraw/pull/2502)
|
||
4 years ago
|
- Support number with commas in charts [#2636](https://github.com/excalidraw/excalidraw/pull/2636)
|
||
4 years ago
|
- Don't break zoom when zooming in on UI [#2638](https://github.com/excalidraw/excalidraw/pull/2638)
|
||
4 years ago
|
|
||
|
### Improvements
|
||
4 years ago
|
|
||
4 years ago
|
- Added Zen Mode to the context menu [#2734](https://github.com/excalidraw/excalidraw/pull/2734)
|
||
4 years ago
|
- Do not reset to selection for draw tool [#2721]((https://github.com/excalidraw/excalidraw/pull/2721)
|
||
|
- Make dialogs look more like dialogs [#2686](https://github.com/excalidraw/excalidraw/pull/2686)
|
||
|
- Browse libraries styles fixed [#2694](https://github.com/excalidraw/excalidraw/pull/2694)
|
||
|
- Change hint for 2-point lines on resize [#2655](https://github.com/excalidraw/excalidraw/pull/2655)
|
||
|
- Align items in context menu [#2640](https://github.com/excalidraw/excalidraw/pull/2640)
|
||
4 years ago
|
- Do not reset to selection when using the draw tool [#2721](https://github.com/excalidraw/excalidraw/pull/2721)
|
||
4 years ago
|
- Display proper tooltip for 2-point lines during resize, and normalize modifier key labels in hints [#2655](https://github.com/excalidraw/excalidraw/pull/2655)
|
||
4 years ago
|
- Improve error message around importing images [#2619](https://github.com/excalidraw/excalidraw/pull/2619)
|
||
4 years ago
|
- Add tooltip with icon for embedding scenes [#2532](https://github.com/excalidraw/excalidraw/pull/2532)
|
||
4 years ago
|
- RTL support for the stats dialog [#2530](https://github.com/excalidraw/excalidraw/pull/2530)
|
||
|
- Expand canvas padding based on zoom. [#2515](https://github.com/excalidraw/excalidraw/pull/2515)
|
||
|
- Hide shortcuts on pickers for mobile [#2508](https://github.com/excalidraw/excalidraw/pull/2508)
|
||
|
- Hide stats and scrollToContent-button when mobile menus open [#2509](https://github.com/excalidraw/excalidraw/pull/2509)
|
||
|
|
||
4 years ago
|
### Refactor
|
||
|
|
||
|
- refactor: Converting span to kbd tag [#2774](https://github.com/excalidraw/excalidraw/pull/2774)
|
||
|
- Media queries [#2680](https://github.com/excalidraw/excalidraw/pull/2680)
|
||
|
- Remove duplicate entry from en.json[#2654](https://github.com/excalidraw/excalidraw/pull/2654)
|
||
|
- Remove the word toggle from labels [#2648](https://github.com/excalidraw/excalidraw/pull/2648)
|
||
|
-
|
||
|
|
||
4 years ago
|
### Docs
|
||
|
|
||
|
- Document some of the more exotic element props [#2673](https://github.com/excalidraw/excalidraw/pull/2673)
|
||
|
|
||
4 years ago
|
## 0.1.1
|
||
|
|
||
|
#### Fix
|
||
4 years ago
|
|
||
4 years ago
|
- Update the homepage URL so it redirects to correct readme [#2498](https://github.com/excalidraw/excalidraw/pull/2498)
|
||
4 years ago
|
|
||
|
## 0.1.0
|
||
|
|
||
|
First release of `@excalidraw/excalidraw`
|