Commit graph

763 commits

Author SHA1 Message Date
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