47 Commits

Author SHA1 Message Date
David Luzar
09dfd16b17
feat: use component dimensions to break to mobile ()
Co-authored-by: Jed Fox <git@jedfox.com>
2021-04-08 19:54:50 +02:00
David Luzar
422c25449f
fix: export dialog canvas positioning () 2021-04-04 14:41:22 +02:00
Aakansha Doshi
c54a099010
feat: Calculate width/height of canvas based on container dimensions (".excalidraw" selector) & remove props width & height ()
* Remove width/height from the ".excalidraw" container so it will sized automatically.
* updated all ref calculation to ".excalidraw" instead of parent since now ".excalidraw" will get resized
* Remove props width/height as its not needed anymore.
* Resize handler is also not needed anymore.
* Position absolute canvas due to  (comment)

* move css to style and remove one extra rerendering

* factor out mock logic for test

* set height, width so as to avoid unnecessary updates of regression snap

* better mock

* better type checking and omit width,height from getDefaultAppState and also restore

* revert

* default to window dimensions in constructor

* update docs

* update

* update

* tweaks
2021-04-04 15:05:16 +05:30
Arun
40656c70d1
fix: Make help toggle tabbable ()
* fix: Make help toggle tabbable

* Update src/components/HelpIcon.tsx

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-03-23 16:48:10 +05:30
Hitesh Goyal
78f3a92dd1
feat: replaces fontSize and fontFamily text with icons ()
Co-authored-by: Hitesh Goyal <hiteshlyearn@Hiteshs-MacBook-Pro.local>
Co-authored-by: dwelle <luzar.david@gmail.com>
2021-03-22 14:26:35 +01:00
David Luzar
e90e56452f
fix: stop preventing canvas pointerdown/tapend events () 2021-03-16 18:04:53 +01:00
Aakansha Doshi
f1daff2437
refactor: Rename appearance to theme ()
* refactor: Rename appearance to theme

* fix

* update changelog

* rename theme_dark to theme--dark

* add about migration
2021-03-13 18:58:06 +05:30
Aakansha Doshi
420703ba50
fix: scope css variables so that host css vars don't clash with excalidraw ()
* fix: scope css variables so that host css vars don't clash with excalidraw

* update changelog
2021-03-07 16:41:37 +05:30
Aakansha Doshi
eb24e8ffe4
fix: Wrap excalidraw in position relative & hide scrollbars in zen mode ()
* fix: wrap excalidraw in position relative so that host need not add it explicitly to fix positioning when non zero offsets

* patch version

* Hide scrollbars on excalidraw container

* remove overflow hidden from index.html since its handled in excalidraw container

* review fix

* update changelog
2021-03-06 20:11:26 +05:30
Arun
4e421e6e9e
feat: Support exporting with dark mode ()
Co-authored-by: Lipis <lipiridis@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
2021-02-24 15:22:17 +01:00
Lipis
9dd2257932
chore: Consistent CSS variable names and general housekeeping of styles () 2021-02-16 20:22:18 +02:00
Aakansha Doshi
830fb64a25
fix: Support Excalidraw inside scrollable container ()
* refactor: remove position fixed from excalidraw container, modal and stats

* remove unused css

* remove position fixed from toast and scroll to content

* Make excal interactable by fixing offsets and set popover as fixed since position needs to be calculate from viewport  top

* Assign 200px less than height of Excalidraw to the selected shapes actions o UI doesn't overflow

* update changelog, readme and package.json
2021-02-14 18:18:34 +05:30
David Luzar
6aa22bada8
fix: mobile toolbar tooltip regression () 2021-02-05 16:09:40 +01:00
David Luzar
1e17c1967b
fix: toolbar unnecessarily eats too much width () 2021-02-04 16:52:16 +01:00
David Luzar
6c81a32d62
fix: text editor not visible in dark mode () 2021-02-04 16:21:48 +01:00
Aakansha Doshi
675da16ca4
feat: add view mode in Excalidraw ()
Co-authored-by: Lipis <lipiridis@gmail.com>
2021-02-01 21:56:42 +01:00
David Luzar
627c56ef1c
fix: disable UI pointer-events on canvas drag () 2021-02-01 14:55:38 +02:00
David Luzar
d4e12a2962
reuse scss variables in js for SSOT () 2021-01-28 17:28:35 +05:30
Victor Massé
ce2c341910
feat: Change shortcuts menu to help menu ()
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
2021-01-17 18:46:23 +02:00
Lipis
69878167c2
improvement: Make dialogs look more like dialogs ()
Co-authored-by: Jed Fox <git@jedfox.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
2021-01-03 10:50:41 +01:00
Jed Fox
b8d13c98b5
refactor: Media queries () 2020-12-27 23:27:25 +02:00
Steve Ruiz
c742225f43
More Arrowheads: dot, bar ()
Co-authored-by: Jed Fox <git@jedfox.com>
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-12-11 18:17:28 +01:00
Steve Ruiz
c291edfc44
Add Arrowheads to Arrows ()
Co-authored-by: dwelle <luzar.david@gmail.com>
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-12-08 16:02:55 +01:00
Jed Fox
8d479ab238
RTL updates ()
* Update a bunch of icons to be mirrored in RTL

* Fix RTL layout issues in in zen mode and collaboration

* Small change to the shortcuts dialog to make isRTL unnecessary

* Tweaks to alignment in RTL
2020-11-26 01:21:33 +02:00
Steve Ruiz
198106e297
Add distribute actions. () 2020-11-23 19:16:23 +01:00
Noel Schnierer
7491fcc3f3
use icons for toggle labels () 2020-11-01 20:08:48 +01:00
Giacomo Debidda
fc58e51ab3
Show error message when canvas to export is too big () ()
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-10-28 20:52:53 +01:00
Aakansha Doshi
1034ec91b8
fix(fonts): move fonts to public folder so that its served as static assets via cra & works in export () 2020-10-21 22:50:57 +02:00
Aakansha Doshi
12b73aaac6
fix(app.scss): Move fonts from public to fonts directory so that it can be included in bundle as well () 2020-10-19 20:36:44 +03:00
Aakansha Doshi
a61b212220
scope css under name space excalidraw () 2020-09-25 23:18:45 +02:00
David Luzar
ab7073abdb
add excalidraw_embed into base repo ()
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-08-20 16:45:20 +02:00
Thomas Steiner
80cbe13167
Make iOS "safe area" respect dark mode () 2020-08-20 13:20:13 +02:00
Johann Hubert Sonntagbauer
009eba6315
feat: Zoom controls are pushed to the right edge for Right-To-Left languages () () 2020-08-14 21:08:27 +03:00
Michal Srb
c0dd870c6e
Dark mode ()
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-08-13 13:35:31 +02:00
Aakansha Doshi
b21f723eee
use absolute positioning instead of fixed () 2020-07-02 15:27:47 +02:00
Jed Fox
b6bf011d0d
Inline the dropdown icon () 2020-06-22 10:10:18 -07:00
Oliver Benns
ca87ca6fe9
Add user list component + snap to user functionality () 2020-06-19 12:36:49 +02:00
Aakansha Doshi
60973f6dc5
rename container class to excalidraw and move css from index.html to app.css ()
Moved the css from index.html to app.css so it can be included in upstream app as well
2020-06-08 13:36:35 +03:00
Youness Fkhach
9151da772c
feat: hide the UI elements when printing the page () 2020-05-30 13:51:28 -07:00
Aakansha Doshi
5b80ad045b
show reset icon with zoom percentage during zen mode () 2020-05-09 14:47:22 +02:00
Ion Rosgrim
686af31d9d
on rtl languages the language dropdown is not visible () 2020-05-03 10:23:04 +02:00
Aakansha Doshi
ff0ecb5e33
add always visible lock icon on top right to show info about e… ()
* improvement(layerui.js): add lock icon on top right to show encrypted info about excalidraw

fixes https://github.com/excalidraw/excalidraw/issues/1313

* swap lock with shield

* fix dimensions

* make link open in new tab

* add newline between toolip text and link

* increase tooltip line-height

* remove unused GitHubCorner compo

* reposition; reintroduce GH icon

* make shield into link

* make tooltip not show when drawing

* Review fix

* remove link from tooltip

Co-authored-by: dwelle <luzar.david@gmail.com>
2020-04-17 22:39:15 +02:00
Thomas Steiner
fe5e71a4e5
Add PWACompat ()
* Add PWACompat (attempt)
Fixes 

* Fix CSS, use custom splash screen font

* Respect bottom safe area
2020-04-16 14:23:39 +02:00
David Luzar
75e0163dd1
tweak blurry bg for legibility & remove from modals () 2020-04-15 21:20:35 +02:00
Tom Hicks
3b357d8332
Improve UI continuity behind panels ()
* Add variable for island color

* Make islands semi-transparent

This preserves the notion of the infinite canvas and helps
maintain context, especially on smaller screens.
2020-04-15 10:42:07 -07:00
Faustino Kialungila
51ccf61cc6
Bring root fonts back ()
* redirect font loading

* bring preloading back

* change paths

* add css type

* move fonts to root

* correct paths

* remove redirects

* correct ext

* remove fonts from main CSS

* remove unneeded fonts

Co-authored-by: kbariotis <konmpar@gmail.com>
2020-04-13 20:53:07 +01:00
Timur Khazamov
4228c2e094
[POC] use serviceWorker from create-react-app ()
* Service worker with toast notifications

* Update CSP to allow fetches from now.sh

* Fixed clearing timers

* rounded icon for pwa ()

* rounded icon for pwa

* cirle pwa app icon

* fix fonts caching

* fix app

* fix css import

* Updated csp tp inlcude worker-src: self

* add worker CSP rule

* use square icon

Co-authored-by: Timur Khazamov <t1mmaas@skbkontur.ru>
Co-authored-by: Faustino Kialungila <Faustino.kialungila@gmail.com>
Co-authored-by: kbariotis <konmpar@gmail.com>
2020-04-13 16:08:39 +02:00