Commit Graph

14 Commits (f5221d521bc69b40d91e22eeb9b6bc10e8196d1e)

Author SHA1 Message Date
Ryan Di d2f67e619f
feat: editable element stats ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Ryan Di 860308eb27
feat: create new text with width ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Aakansha Doshi 1ed53b153c
build: enable consistent type imports eslint rule ()
* build: enable consistent type imports eslint rule

* change to warn

* fix the warning in example and excalidraw-app

* fix packages

* enable type annotations and throw error for the rule
Ryan Di 88812e0386
feat: resize elements from the sides ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Marcel Mraz 530617be90
feat: multiplayer undo / redo ()
Ryan Di 32df5502ae
feat: fractional indexing ()
* 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 <marcel@excalidraw.com>
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
David Luzar 15bfa626b4
feat: support to not render remote cursor & username ()
David Luzar 068895db0e
feat: expose more collaborator status icons ()
Aakansha Doshi 73bf50e8a8
fix: remove t from getDefaultAppState and allow name to be nullable ()
* fix: remove t and allow name to be nullable

* pass name as required prop

* remove Unnamed

* pass name to excalidrawPlus as well for better type safe

* render once we have excalidrawAPI to avoid defaulting

* rename `getAppName` -> `getName` (temporary)

* stop preventing editing filenames when `props.name` supplied

* keep `name` as optional param for export functions

* keep `appState.name` on `props.name` state separate

* fix lint

* assertive first

* fix lint

* Add TODO

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Aakansha Doshi 63b50b3586
fix: don't bundle react-dom when importing from transformHandles ()
* fix: don't bundle react when importing from transfromHandles

* rename to DEFAULT_TRANSFORM_HANDLE_SPACING
Aakansha Doshi 4f0a2a9593
docs: add next js with app router example ()
* move the existing example to with-script-in-browser

* Add example with next js app router

* disable ssr for excalidraw client comp

* typo

* update output dir

* don't include nextjs example in tsconfig

* remove meta.json

* lint

* remove example.ts

* port

* move the examples outside packages and use the deps as workspaces in examples

* update gitignore

* fix example

* update path of build dir

* fix

* fix scripts

* try local path

* fix

* update commands

* fix

* fix

* fix script

* skip ts

* disable ts

* add vercel.json

* install

* update tsconfig

* fix lint

* remove console.log

* lets see if this works

* revert

* remove ts nocheck

* add types and some utils in nextjs example

* fix types

* updatw example and remove nextjs dynamic syntax so we don't import excal twice

* move both examples to workspaces and create generic example to be used by browser and next js both

* copy the static assets to nextjs

* fix ts config

* render custom menu items

* fix custom footer

* fix types in browser example

* use regular imports for importing excal and import it using dynamic next js in app router instead

* Add example for pages router

* fix css discrepancies

* fix css

* configure output dir

* fix

* fix css

* rename to with-nextjs

* move components to examples/excalidraw/components
David Luzar e6c3c06c2e
feat: support pen erasing ()
David Luzar d19b51d4f8
fix: drawing-tablet stylus touch events being prevented ()
Aakansha Doshi d6cd8b78f1
build: decouple package deps and introduce yarn workspaces ()
* feat: decouple package deps and introduce yarn workspaces

* update root directory

* fix

* fix scripts

* fix lint

* update path in scripts

* remove yarn.lock files from packages

* ignore workspace

* dummy

* dummy

* remove comment check

* revert workflow changes

* ignore ws when installing gh actions

* remove log

* update path

* fix

* fix typo