Commit graph

350 commits

Author SHA1 Message Date
Steve Ruiz
7555c22632 Update Vec 2022-06-21 08:56:49 +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
Steve Ruiz
8419d7d227 1.16.0 2022-06-09 18:06:17 +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
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
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
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
cd465e2fc4 bump versions 2022-05-14 22:24:03 +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
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
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
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
Chen ☁️☁️
184d8cfd78
[fix] duplicate code (#651) 2022-04-27 14:56:06 +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
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
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
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
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
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
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
cb1f4e242e v1.5.1 2022-01-14 20:46:02 +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
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
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
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
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
Steve Ruiz
32a5511b3d v1.4.1 2021-12-28 11:50:33 +00:00
Steve Ruiz
e9217e0bec Update core readme with more info on assets 2021-12-28 11:28:27 +00:00
Steve Ruiz
d0fd712e5e
[improvement] labels (#467)
* Improve appearance of arrow shape labels, set label text color to match stroke

* fix svg copy fonts for text, labels

* Reduce opacity effect of scaled arrow label, update font in export, adds command+enter to finish text
2021-12-28 11:23:17 +00:00
Steve Ruiz
f57d6bda94 v1.4.0 2021-12-27 20:29:12 +00:00