v0.14.0 (2023-01-13)
0.14.0 (2023-01-13)
Features
-
Support customization for the editor welcome screen #6048.
-
Expose component API for the Excalidraw main menu #6034, You can read more about its usage here
-
Footer is now rendered as child component instead of passed as a render prop #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. -
Expose LiveCollaborationTrigger component. Replaces
props.onCollabButtonClick#6104.
BREAKING CHANGES
props.onCollabButtonClickis now removed. You need to render the main menu item yourself, and optionally also render the<LiveCollaborationTrigger>component using renderTopRightUI prop if you want to retain the canvas button at top-right.- The prop
renderFooteris now removed in favor of rendering as a child component.
Excalidraw schema
- Merged
appState.currentItemStrokeSharpnessandappState.currentItemLinearStrokeSharpnessintoappState.currentItemRoundness. RenamedchangeSharpnessaction tochangeRoundness. Excalidraw element'sstrokeSharpnesswas changed toroundness. Check the PR for types and more details #5553.
Excalidraw Library
This section lists the updates made to the excalidraw library and will not affect the integration.
Features
-
Generic button export #6092
-
Scroll using PageUp and PageDown #6038
-
Support shrinking text containers to original height when text removed #6025
-
Move contextMenu into the component tree and control via appState #6021
-
Allow readonly actions to be used in viewMode #5982
-
Support labels for arrow 🔥 #5723
-
Don't add midpoint until dragged beyond a threshold #5927
-
Changed text copy/paste behaviour #5786
Fixes
-
Mobile tools positioning #6107
-
Renamed folder MainMenu->main-menu and support rest props #6103
-
Use position absolute for mobile misc tools #6099
-
React.memo resolvers not accounting for all props #6042
-
Image horizontal flip fix + improved tests #5799
-
Png-exporting does not preserve angles correctly for flipped images #6085
-
Stale appState of MainMenu defaultItems rendered from Actions #6074
-
HelpDialog #6072
Refactor
- Remove unnecessary code #5933
Build
-
Move release scripts to use release branch #5958
-
Stops ignoring .env files from docker context so env variables get set during react app build. #5809