Commit graph

911 commits

Author SHA1 Message Date
Steve Ruiz
65ff5075f0 1.17.0 2022-06-19 14:52:06 +01:00
Steve Ruiz
6d91916804
[improvement] Add getContent and insertContent methods (#726)
* Add insertContent method, update copyJson

* Add more tests

* Update TldrawApp.spec.ts

* Adds option object for select, point, and uses in paste
2022-06-19 14:47:43 +01:00
Jack Bauer
0cfa44f4d2
fix mandatory unique key in LanguageMenu list (#722) 2022-06-16 14:36:31 +01:00
Steve Ruiz
702016a3ef Replace lask with lfg 2022-06-16 14:23:27 +01:00
Steve Ruiz
6608b07ab0 Update README, lask 2022-06-16 14:15:35 +01:00
Steve Ruiz
ef9d457a14
[fix] typescript types (#721)
* fix types

* Update .eslintrc.json
2022-06-16 09:09:48 +01:00
Judicael
e8459adc6b
feat: translate page name when creating new page (#720)
* feat: translate page name when creating new page

* Update createPage.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-15 18:54:03 +01:00
Akshay Birajdar
27e0b8d96e
fix: broken screenshot image (#717) 2022-06-15 13:39:15 +01:00
yyyanghj
d298c550cd
[Translation] add Simplified Chinese translation (#715)
* feat: add Simplified Chinese translations

* feat: improve translation

* feat: improve translation

* feat: improve translation
2022-06-15 13:38:00 +01:00
Steve Ruiz
f8e2ba5b3b
Update MultiplayerMenu.tsx (#719) 2022-06-15 13:34:53 +01:00
Steve Ruiz
8419d7d227 1.16.0 2022-06-09 18:06:17 +01:00
Steve Ruiz
d52d91b367
Enforce readonly mode (#714)
* Enforce readonly mode

* Fix test for React 18

* Move to dev
2022-06-09 16:00:47 +01:00
Judicael
d919bd273e
feat: add translation (#704)
* feat: add translation

* modal, left menu translation

* primary tools translation

* render with intl provider for testing

restore file

* french translation done

* context menu translation and test

* added italian

* Add menu to select language

* translation for the word language

* bump dev deps

Bump react on www

* Fix types

* update dependencies

* pre-release

* Delete lask.config.json

Co-authored-by: Enrico <franciscono.enry@gmail.com>
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-09 15:33:35 +01:00
Steve Ruiz
8c2e22b334 1.15.1 2022-06-02 17:18:48 +01:00
Steve Ruiz
c959006144
Make eraser line scale to zoom (#710) 2022-06-02 17:14:27 +01:00
Peng Xiao
87692eb7fe
fix: vec min function (#702) 2022-06-01 18:49:16 +01:00
Peng Xiao
b47fb729ee
fix: Pointer position is incorrect if Tldraw is drawing in a scrolling g container (#706)
* fix: Pointer position is incorrect if Tldraw is drawing in a scrolling container

fix https://github.com/tldraw/tldraw/issues/661

* Add example for scrolling

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-01 18:48:48 +01:00
Steve Ruiz
b3ad319518 1.15.0 2022-06-01 15:34:20 +01:00
Steve Ruiz
c126be5c50
[feature] add erase line (#708)
* Add erase line

* Fix erasing small dots

* bump perfect-freehand
2022-06-01 15:21:36 +01:00
Steve Ruiz
eca66b1c54 Fix keyboard events while menu is open. 2022-05-20 15:22:50 +01:00
Steve Ruiz
9d8c4888f3 move style panel to right-hand size 2022-05-20 15:10:54 +01:00
Steve Ruiz
c37a4a33d6 release 2022-05-20 14:45:10 +01:00
Steve Ruiz
ba0795c595
[improvement] adds option to keep style menu open (#697)
* Adds open to keep style menu open

* fix keyboard shortcuts, add button to menu
2022-05-20 13:56:16 +01:00
Steve Ruiz
a9750d9dc6 rename room to project 2022-05-19 12:01:31 +01:00
Steve Ruiz
be8c85eb5f cleanup 2022-05-19 11:45:59 +01:00
Steve Ruiz
0a23ad61b6 add filename to asset 2022-05-18 22:12:01 +01:00
Steve Ruiz
7e85d00c66 Merge branch 'main' of https://github.com/tldraw/tldraw 2022-05-18 22:06:05 +01:00
Steve Ruiz
bb58902d5b ok 2022-05-18 22:04:04 +01:00
Steve Ruiz
cacb4b7827
[improvement] copy assets when copying to multiplayer room (#694) 2022-05-18 21:46:24 +01:00
Steve Ruiz
13f5787c31
[improvement] Add ability to copy to new multiplayer room (#693)
* Add ability to copy to new multiplayer room

* cleanup
2022-05-18 16:59:30 +01:00
Steve Ruiz
1d3b419baf update version 2022-05-18 14:04:05 +01:00
Steve Ruiz
74b047549b
[fix] zoom on safari (#692)
* Fix pinch zooming on safari

* Reduce speed of zoom
2022-05-18 13:50:06 +01:00
Steve Ruiz
f281e123f8 fix buttons 2022-05-18 13:11:25 +01:00
Steve Ruiz
fbb29c87b2
[improvement] remove sponsorship color (#691)
* remove sponsorship variations

* Update menu
2022-05-18 13:09:11 +01:00
Steve Ruiz
e2a6badaef
[improvement] Adds error boundary (#690)
* Add error boundary

* Update useStyle.tsx

* Update ErrorFallback.tsx
2022-05-18 12:45:04 +01:00
Steve Ruiz
e33edb9cab 1.12.6 2022-05-15 10:51:24 +01:00
Steve Ruiz
e32815eaec
Fix scaled text (#687) 2022-05-15 10:40:22 +01:00
Steve Ruiz
cd465e2fc4 bump versions 2022-05-14 22:24:03 +01:00
Steve Ruiz
60e936dfed
[fix] iOS safari clipboard / text position (#686)
* use idb for clipboard, too

* Add warnings for firefox

* remove logs

* Update getTextSvgElement.ts
2022-05-14 14:59:47 +01:00
Steve Ruiz
c3050db968
[fix] copy and paste (again) (#685)
* fix copy

* remove console logs

* update types
2022-05-14 14:15:55 +01:00
Steve Ruiz
61cf4e6290 1.12.4 2022-05-14 12:19:06 +01:00
Steve Ruiz
357b1bb747 use canvas color for backgrounds 2022-05-14 12:18:18 +01:00
Steve Ruiz
07285dbf10
Add dark mode support for image export (#684) 2022-05-14 12:13:37 +01:00
Steve Ruiz
417926bb14 1.12.3 2022-05-14 11:48:14 +01:00
Steve Ruiz
543757984b
[fix] text editing in vscode (#683)
* fix text editing events in vscode

* fix outline in vscode
2022-05-14 11:43:56 +01:00
Steve Ruiz
b8dfc9895a bump versions 2022-05-14 10:51:12 +01:00
Steve Ruiz
e0aa7c0032
[fix] Fix text clipboard issues (#682)
* add encode URI component

* prevent copying while editing text

* Add copy listeners to canvas instead

* remove trailing whitespace on paste
2022-05-14 10:47:08 +01:00
Steve Ruiz
57769e47b7
fix copy and paste on Safari (#680) 2022-05-13 13:00:53 +01:00
Steve Ruiz
98d44b2120 1.12.1 2022-05-11 17:00:15 +01:00
Steve Ruiz
6bb5faeaf0 Fix fonts in vscode extension 2022-05-11 16:58:40 +01:00
Steve Ruiz
4b2b14eb26 release 1.12.0 2022-05-11 14:34:07 +01:00
Steve Ruiz
c54c800675
[improvement] local copy and export for images (#669)
* local images

use assets for local copy

add menu options

* clean up packages

* cleanup unused content, move file handling into app.paste

* Add tldraw-assets.json to other files.

* add path to editor

* Update build.mjs

* add export to server example with link to gist

* Fix onAssetCreate and onAssetDelete APIs

* Update yarn.lock

* fix bugs on paste, adjust api for getting images, fix readonly on cut, copy, paste

* re-enable swc

* paste svg strings as svg images

* cleanup

* fix string case for tldraw json
2022-05-11 14:25:08 +01:00
Steve Ruiz
e78f9a086a
remove transpile modules (#670)
* remove transpile modules

* remove dependency
2022-05-11 09:55:31 +01:00
Steve Ruiz
2bc5717aae Fix rectangle quirk 2022-05-10 08:20:50 +01:00
Steve Ruiz
dc8332c3dc bump versions 2022-05-06 20:03:38 +01:00
Steve Ruiz
06f2dcd44b
[improvement] paste media from clipboard (#667)
* Adds support for pasting images

* Make pasted shape fit in screen

* default to debug mode false
2022-05-06 09:14:20 +01:00
Alejandro Durán
b4c47a8e74
Added fix for horizontal scroll on mac (#662)
Based onto [this worldanvil whiteboard issue](https://github.com/worldanvil/worldanvil-bug-tracker/issues/969) which is based on tldraw where one of our users noticed that the horizontal scrolling (panning) with the middle mouse didn't worked on macOS.

Tested on different machines and this bug fixes it

Co-authored-by: Alejandro Duran <alejandro@worldanvil.com>
2022-05-05 16:43:02 +01:00
Ugbala Valentino
eff858d0a7
fix: update tldraw to respond to dark mode prop (#659)
* fix: update tldraw to respond to darkMode prop

* fix: update dark mode route in examples
2022-04-29 09:35:20 +01:00
Steve Ruiz
5493403663 Revert "Use the npm module of browser-fs-access (#653)"
This reverts commit b4e97604b3.
2022-04-29 09:07:25 +01:00
Chen ☁️☁️
184d8cfd78
[fix] duplicate code (#651) 2022-04-27 14:56:06 +01:00
Steve Ruiz
b859b721d0 Bump versions 2022-04-26 09:04:34 +01:00
Thomas Steiner
b4e97604b3
Use the npm module of browser-fs-access (#653)
* Use npm module

* Update yarn.lock

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-04-25 11:43:31 +01:00
Judicael
4749919342
change menu content overflow to auto (#650)
Co-authored-by: judicael_ai <judicael@smartpredict.ai>
2022-04-20 13:49:27 +01:00
Steve Ruiz
241adc98d3 1.10.0 2022-04-16 13:02:52 +01:00
Judicael
cb6769e800
Add pencil icon to rename page input as an indicator (#638)
* Add pencil icon to rename page input

* improve style for page name input

Co-authored-by: judicael_ai <judicael@smartpredict.ai>
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-04-16 12:50:09 +01:00
Steve Ruiz
d81bcc1055
[improvement] add undo redo at all screen sizes (#643)
* Adds undo redo at all viewport sizes

* Update TopPanel.tsx
2022-04-16 12:22:24 +01:00
Steve Ruiz
1723254e80
[feature] hold alt to grow arrow from center (#635)
* Add alt-drag line/arrow handles

* add test
2022-04-02 10:47:52 +01:00
Judicael
2421accb4f
Add text field to rename the page (#629)
* Add text field to rename the page

* tweak appearance

Co-authored-by: judicael_ai <judicael@smartpredict.ai>
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-03-31 14:31:26 +01:00
Steve Ruiz
059d1011c9
Add migrate step (#628) 2022-03-31 14:16:43 +01:00
chlbri
4d5a929366
Feature style (#627)
* initial

* style: style and remove Svg export

* tiny up

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-03-24 09:05:35 +00:00
Steve Ruiz
8aa54f4d8c update 2022-03-17 14:11:22 +00:00
Steve Ruiz
2a98e0c6e7
[fix] Protect document from missing parents / children. (#622)
* Scan document for missing parents / children.

* fix tests

* Apply fixes to vscode extension
2022-03-17 12:42:18 +00:00
Steve Ruiz
1d5b3ac307 1.9.1 2022-03-11 08:43:36 +00:00
Steve Ruiz
8039016416
[fix] Only delete bindings if they were attached to a deleted group shape (#617)
* Only delete bindings if they were attached to a deleted group shape

* Update TransformSingleSession.ts
2022-03-10 19:39:21 +00:00
Steve Ruiz
1dd71f8b5e update images 2022-03-09 16:11:30 +00:00
Steve Ruiz
1950b4fa99 version, update images 2022-03-09 16:02:51 +00:00
Steve Ruiz
4886ef668e
adds minimal scrolling to menus (#614) 2022-03-09 13:13:15 +00:00
Steve Ruiz
99dd67cd81
remove dots in geometric shapes (#613) 2022-03-09 13:04:39 +00:00
Steve Ruiz
15e3e9805f
[fix] Refresh bounding boxes when fonts load (#612)
* remove font face fallbacks

* When fonts load, force the document to recalculate bounding boxes.
2022-03-09 12:39:41 +00:00
Steve Ruiz
8ba4d70615 Update package.json 2022-03-09 11:25:08 +00:00
Steve Ruiz
1544ce3e20
[fix] brush appearance when using CAD mode (#609)
* Update Tldraw.tsx

* Uses color rather than dash for brush in CAD mode

* improves colors for dark mode

* Update Tldraw.tsx
2022-03-09 11:02:46 +00:00
Enrico
2781aa4e0d
added CAD like behavior like described in issue #555 (#589)
* added cade like behaviour like described in issue #555

* added color change when selecting depending on behavior

* added option to turn on/off cad like selection

* Revert "added color change when selecting depending on behavior"

This reverts commit 4a4aac02b68bf1bfbc86f9b9f05e23b3e6e0ae9d.

* Remove colors, add perfect dash props, rename setting, move prop to appState

* Reorder menu

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-03-09 10:19:58 +00:00
Steve Ruiz
9d984b8b7a Update TldrawApp.ts 2022-03-03 07:09:19 +00:00
Fabian Mu
32203637f2
Extract SVGs size from viewBox attibute (#590) 2022-03-02 14:59:54 +00:00
Yao Wang
e43219ded8
fix(import): make sure every shape is in page (#599)
* fix(import): make sure every shape is in page

- only to add the shape is in page shapes
-https://gist.github.com/cangoektas/4a84e2d48f6e2551b8b3a632ae1b4f71

Closes #554

* Update useShapeTree.tsx

* Update useShapeTree.tsx

* Update turbo.json

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-03-02 14:21:14 +00:00
Steve Ruiz
9f40b1321d 1.6.2 2022-02-25 12:19:11 +00:00
Steve Ruiz
95ac56db76 Update getTextSize.ts 2022-02-24 21:41:08 +00:00
Steve Ruiz
ae49e85380 Fix text issue 2022-02-24 21:26:44 +00:00
Steve Ruiz
835091d494 Fix zoom 2022-02-15 14:15:03 +00:00
Steve Ruiz
4445c13b3f Create serious-emus-talk.md 2022-02-15 12:41:35 +00:00
Steve Ruiz
3a08473d85
[improvement] zoom (#577)
* improve zoom events, skip pinch on desktop

* Update useZoomEvents.ts
2022-02-15 12:21:31 +00:00
Steve Ruiz
ee71a37b40
Add option to hide multiplayer menu (#576)
* add multiplayer menu, view to menu

* update icon

* Add option to hide showMultiplayerMenu
2022-02-13 16:06:39 +00:00
Steve Ruiz
8ab16f1362
[improvement] Add multiplayer menu, view to menu (#575)
* add multiplayer menu, view to menu

* update icon
2022-02-13 14:59:33 +00:00
Steve Ruiz
7df566ad0f
[fix] export groups (#574)
* update export logic to include grouped ids

* Update TLDR.ts

* Update package.json

* Update yarn.lock

* remove remote caching

* Update yarn.lock
2022-02-13 13:13:23 +00:00
Eswar Prasad Clinton. A
5721885161
add copy svg keyboard shortcut (#573) 2022-02-13 12:37:01 +00:00
Steve Ruiz
e8dd64baf7
[fix] Multiplayer bugs on text (#571)
* Update StickyUtil.tsx

* Fix sticky text in multiplayer?

* fix text and text label

* Update TextUtil.tsx

* Update TextUtil.tsx

* Fix missing empty content button

* Create tidy-ducks-visit.md

* forcing bump

* Update TextUtil.tsx

* fix resizing

* try again

* don't merge editing ids

* fixed!

* Update utils.ts

* downgrade puppeteer

* change deps

* restore deps

* explicit version

* keep at it

* deps
2022-02-11 21:35:24 +00:00
Steve Ruiz
9619e3be0b
Add changeset (#567)
* add lask for packages

* Add turbo

* remove custom scripts

* update turbo scripts

* Improve scripts, update changelogs

* update action to use turbo

* Update .gitignore

* Update main.yml

* Update main.yml

* Update main.yml

* Add docs

* add clean

* Add changesets

* Add changeset
2022-02-08 11:45:11 +00:00
Steve Ruiz
e1fb9a8250
[improvement] Improve monorepo (lask + turbo) (#566)
* add lask for packages

* Add turbo

* remove custom scripts

* update turbo scripts

* Improve scripts, update changelogs

* update action to use turbo

* Update .gitignore

* Update main.yml

* Update main.yml

* Update main.yml

* Add docs

* add clean
2022-02-08 11:05:56 +00:00
Steve Ruiz
da4d566bd8 v1.6.1 2022-02-03 11:19:12 +00:00
Steve Ruiz
7d32f00d14 Update CHANGELOG.md 2022-02-03 11:17:40 +00:00
Steve Ruiz
89c1c4a4f4 add node env to packages in build script 2022-02-03 11:14:26 +00:00
Steve Ruiz
014bfbc841 bump dependencies 2022-02-03 10:57:03 +00:00
Steve Ruiz
bb077762c5
[fix] Arrow bindings + labels (#558)
* Fix label colors for arrow / triangle shapes in dark mode

* Fix bouncy arrow label, add tests, remove redundant call to updateBindings, remove redundant call to updateArrowBinding
2022-02-03 10:09:06 +00:00
David
db7e785ca2
Fixed redo shortcut misconfiguration (#551) 2022-02-02 22:03:49 +00:00
Steve Ruiz
4cee3203e6 v1.6.0 2022-01-31 15:06:01 +00:00
Steve Ruiz
61830f03ec Update CHANGELOG.md 2022-01-31 15:04:19 +00:00
Steve Ruiz
53cd70d0cf
Fix bug where handles are identical (#548) 2022-01-31 14:58:38 +00:00
Steve Ruiz
16076dcdac
fix missing pressure (#546) 2022-01-31 12:25:51 +00:00
Steve Ruiz
4c9c757cb5
Update TldrawApp.ts (#544) 2022-01-31 09:32:14 +00:00
Steve Ruiz
79f7d1db87 fix missing intersections in arrows 2022-01-30 21:18:24 +00:00
Steve Ruiz
03ff422680
[improvement] arrows binding logic (#542)
* Improve arrows binding logic

* Update ArrowSession.ts

* more arrow improvements

* major arrow cleanup / refactor

* point toward anchor rather than center
2022-01-30 21:13:57 +00:00
Jason Laster
0ff6f0628f
Add sourcemap-loader to build step (#535)
* Add sourcemap-loader to build step

* .
2022-01-25 09:57:24 +00:00
Faraz Shaikh
dd1fb73876
Add IDs to UI components (#511)
* Add IDs to Menu and its sub-menus

* Commit uncommitted

* Added ID on Styles and Zoom menu

* Added ID on Tools menu

* Added ID on Context menu
2022-01-21 11:44:18 +00:00
Steve Ruiz
16e8fe1426
[fix] export from other pages, export sizes (#525)
* support larger files, reparent shapes correctly

* serialize GIFs
2022-01-19 12:33:57 +00:00
Steve Ruiz
30d1d7721c
Fix exports in prod (#521)
* Fix exports in prod

* downgrade libs to fit under next.js serverless function size limit
2022-01-18 10:00:58 +00:00
Steve Ruiz
8977d296a9 move puppeteer to www 2022-01-18 09:18:22 +00:00
Martin Valchev
89606b97d2
Fix missing text shape props in onShapeChange (#516) 2022-01-18 09:10:02 +00:00
Faraz Shaikh
89797787e8
Fix: Only assets that are actually deleted call onAssetDelete (#510) 2022-01-16 10:00:46 +00:00
Steve Ruiz
7c82fbbb65 v1.5.2 2022-01-14 20:59:37 +00:00
Steve Ruiz
29e8f25659 Update CHANGELOG.md 2022-01-14 20:58:44 +00:00
Steve Ruiz
8cba193bfd Fix viewport on initial load 2022-01-14 20:57:54 +00:00
Steve Ruiz
cb1f4e242e v1.5.1 2022-01-14 20:46:02 +00:00
Steve Ruiz
fab3246bca cleanup 2022-01-14 20:45:07 +00:00
Steve Ruiz
08a930f59c
[fix] fix text shapes bugs (#509)
* cleanup

* Fix text size, and slash

* Remove console.log
2022-01-14 20:35:11 +00:00
Milo Hill
bff8b3cc07
Remove onLoad functions (#504) 2022-01-14 19:17:28 +00:00
Faraz Shaikh
c4764f300d
Call onAssetDelete when asset is deleted (#505) 2022-01-14 19:13:56 +00:00
Steve Ruiz
76fd8fcc30 fix dialog 2022-01-12 15:57:16 +00:00
Herb Caudill
372cc690c7
Scroll wheel fixes & enhancements (#501)
* scroll wheel fixes & enhancements

1. correct zoom direction (was reversed)
2. support ctrl+scroll for zoom (in addition to alt+scroll)
3. support shift+scroll for horizontal pan

* Allow two-axis panning

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-01-12 14:33:55 +00:00
Faraz Shaikh
36a6026cb3
Fix error on file save/save-as (#496)
* fix dynamic import

* Remove console log

* Fix other imports too
2022-01-12 13:37:07 +00:00
Steve Ruiz
15784517e8 v1.5.0 2022-01-10 21:11:25 +00:00
Steve Ruiz
6a282ca9c2 Bump dependencies, fix bug on mobile, preserve settings. 2022-01-10 21:09:26 +00:00
Faraz Shaikh
6103febaaf
Added exporting of shapes and pages as images (#468)
* Added exporting of shapeses

* added video serialization

* Fix viewport sizes, add chrome-aws-lambda for puppeteer

* Update menu styling

* extract to callback

* Update Loading.tsx

* force update menu

* fix missing fonts

* Added SVG and JSON export

* Fix json exports

* Merge branch 'main' into pr/468, update menus

* Update TldrawApp.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-01-10 16:36:28 +00:00
Milo Hill
e62755ef10
Add support for persisting images/video in multiplayer (#475)
* Kee track of changed assets

* Add support for multiplayer image assets

* fix tests

* Add images

* Improve asset deletion

* Remove assets from document

* Test with v small image only

* Add test for deleteShapes

* Cleanup document assets

* Add multiplayer assets to www

* remove default storage root, which was preventing migration

* Update onAssetDelete flow, rename some files

* bump upload size to 5mb

* Fix freeze bug where image fails to load

* fix logic for removing assets

* Update useMultiplayerState.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-01-10 15:13:52 +00:00
Steve Ruiz
f2481642f9 Fix context menu bug on mobile 2022-01-08 20:08:17 +00:00
Steve Ruiz
cc8aa89ed5 v1.4.3 2022-01-07 09:01:48 +00:00
Steve Ruiz
9c3424a5fc Update documentation
bump versions

update readmes, licenses
2022-01-07 09:01:08 +00:00
Steve Ruiz
4b1137849a v1.4.2 2022-01-07 08:45:09 +00:00
Steve Ruiz
bc65e3cc97 Update CHANGELOG.md 2022-01-07 08:42:11 +00:00
Steve Ruiz
97c2b8c4c6
Fix erasing bug (#490)
* Update EraseSession.ts

* Update EraseSession.ts
2022-01-06 20:22:49 +00:00
Steve Ruiz
a793fadf74 Update ArrowSession.ts 2022-01-06 14:04:17 +00:00
Steve Ruiz
9255e7a4a5 Update useShapeEvents.tsx 2022-01-06 14:01:25 +00:00
Steve Ruiz
b1697b2ca7 Fix context menu, fix blur issue 2022-01-06 14:00:23 +00:00
Steve Ruiz
31a1a8b5ae Fix bug with missing draw shape after undo 2022-01-06 13:36:40 +00:00
Steve Ruiz
deadc70030 fix pointer error 2022-01-06 13:23:45 +00:00
Steve Ruiz
32d96aef94 Merge branch 'main' of https://github.com/tldraw/tldraw 2022-01-06 10:47:36 +00:00
Steve Ruiz
5c33fbd89c bug fixes 2022-01-06 10:45:11 +00:00
Steve Ruiz
24ece6b38a
Update groupShapes.ts (#488) 2022-01-06 07:35:32 +00:00
Steve Ruiz
225f312bd0 Add sponsor 2022-01-06 07:06:05 +00:00
Jesco Wüster
0271ccccf8
Enable panning for all tools (#484)
* Enable panning for DrawTool

* move camera panning logic to TlDrawApp

* fix: disable shape button on keyboard pan

* ensure middle wheel panning returns to idle globally

* prevent flicker during mouseup while spacePanning

* Use boolean flags for force panning

* add middle mouse button

* Fix logic

* Fix toolbar re-selecting

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-01-05 14:47:07 +00:00
Steve Ruiz
d00d443492
Add shift+click to draw straight lines between points (#478)
* Add shift+click to draw straight lines between points

* Add points to previous shape

* undo/redo fixes

* Fix bug with non-draw shapes

* Update drawHelpers.ts
2022-01-03 09:49:34 +00:00