Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Excalidraw to latest master branch #11

Open
wants to merge 304 commits into
base: master
Choose a base branch
from

Conversation

sorenjohanson
Copy link

No description provided.

ad1992 and others added 30 commits February 19, 2024 19:39
* fix: make bounds independent of scene

* pass only elements to getCommonBounds

* lint

* pass elementsMap to getVisibleAndNonSelectedElements
…ng (excalidraw#7710)

* move hyperlink code into its folder

* move pure js functions to hyperlink/helpers and move actionLink to actions

* fix tests

* fix
…tContainingFrame (excalidraw#7713)

* fix: remove scene hack from export.ts as its not needed anymore

* remove

* pass elementsMap to getContainingFrame

* remove unused `mapElementIds` param

---------

Co-authored-by: dwelle <[email protected]>
* fix: remove dependency of t from clipboard and image

* pass errorMessage to copyTextToSystemClipboard where needed

* wrap copyTextToSystemClipboard and rethrow translated error in caller

* review fix

* typo
* remove dependency of t in blob.ts

* fix
…xcalidraw#7718)

* fix: split renderScene so that locales aren't imported unnecessarily

* lint

* split export code

* rename renderScene to helpers.ts

* add helpers

* fix typo

* fixes

* move renderElementToSvg to export

* lint

* rename export to staticSvgScene

* fix
…w#7729)

Update integration.mdx: Fix missing closing angle bracket in code sample

 A closing angle bracket was missing in a code sample.

Original code:
<div style={{height:"500px", width:"500px"}}
    <Excalidraw />
</div>

Changes:

<div style={{height:"500px", width:"500px"}}>
    <Excalidraw />
</div>
…lidraw#7731)

* fix: export utils from excalidraw package in excalidraw library

* don't export utils utilities

* fix import path

* fix export

* don't export export utilites

* fix export paths

* reexport utils from excalidraw package

* add exports from withinBounds

* fix path
* build: create ESM build for utils package

* add deps, exports and import.meta
* build: export types for @excalidraw/utils

* fix

* add types
* identify cause

* toast after dialog for error messages in collab

* remove comment

* shake tooltip instead for repeating collab errors

* clear collab error

* empty commit

* simplify & fix reset race condition

---------

Co-authored-by: dwelle <[email protected]>
* Introduced vertical offset based on harcoded font metrics 

* Unified usage of alphabetic baseline for both canvas & svg export

* Removed baseline property

* Removed font-size rounding on Safari

* Removed artificial width offset
* Changed Assistant metrics to the corrrect ones from OS/2 table

* Adding more information about font metrics

* Adding branded types to avoid future mistakes
* new collision api

* isPointOnShape

* removed redundant code

* new collision methods in app

* curve shape takes starting point

* clean up geometry

* curve rotation

* freedraw

* inside curve

* improve ellipse inside check

* ellipse distance func

* curve inside

* include frame name bounds

* replace previous private methods for getting elements at x,y

* arrow bound text hit detection

* keep iframes on top

* remove dependence on old collision methods from app

* remove old collision functions

* move some hit functions outside of app

* code refactor

* type

* text collision from inside

* fix context menu test

* highest z-index collision

* fix 1px away binding test

* strictly less

* remove unused imports

* lint

* 'ignore' resize flipping test

* more lint fix

* skip 'flips while resizing' test

* more test

* fix merge errors

* fix selection in resize test

* added a bit more comment

---------

Co-authored-by: dwelle <[email protected]>
* Introducing fractional indices as part of `element.index`

* Ensuring invalid fractional indices are always synchronized with the array order

* Simplifying reconciliation based on the fractional indices

* Moving reconciliation inside the `@excalidraw/excalidraw` package

---------

Co-authored-by: Marcel Mraz <[email protected]>
Co-authored-by: dwelle <[email protected]>
ad1992 and others added 28 commits November 9, 2024 21:45
…ment (excalidraw#8784)

* build: add a flag VITE_APP_ENABLE_PWA for enabling pwa in dev environment

* fix

* set VITE_ENABLE_PWA to false in .env.development
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…draw#8832)

Fix insonsistent naming for option newSize/oldSize for updateBoundElements()
…xcalidraw#8757)

Avoid chrome/edge reporting of by-default blocking event handlers
excalidraw#8763)

Fix case when frame interactions recursively call setState() without any change.
…e alpha channel (excalidraw#8895)

added alpha option to preserve image alpha channel
excalidraw#8845)

* Fix right-click paste command for images (Issue excalidraw#8826)

* Fix clipboard logic for multiple paste types

* fix: remove unused code

* refactor & robustness

* fix: creating paste event with image files

---------

Co-authored-by: dwelle <[email protected]>
* crop with snap

* make crop snap work with cmd as well

* turn off grid with cmd as well in crop
* feat: use stats panel to crop

* fix: test flake

---------

Co-authored-by: dwelle <[email protected]>
…8924)

fix hit element check for a selected frame's name
* make binding area adapt to zoom

* revert stroke color

* normalize binding gap

* reduce normalized gap
@farapholch
Copy link

@sorenjohanson How is it going with this merge? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.