Wykres commitów

80 Commity (d919bd273eed7e3762e7a65fa722706d576ca49e)

Autor SHA1 Wiadomość Data
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 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 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 0a23ad61b6 add filename to asset 2022-05-18 22:12:01 +01:00
Steve Ruiz bb58902d5b ok 2022-05-18 22:04:04 +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 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 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 6bb5faeaf0 Fix fonts in vscode extension 2022-05-11 16:58:40 +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 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
Steve Ruiz 059d1011c9
Add migrate step (#628) 2022-03-31 14:16:43 +01: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 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
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 4a4aac02b6.

* 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
Steve Ruiz 835091d494 Fix zoom 2022-02-15 14:15:03 +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 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
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 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 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
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 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
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
Faraz Shaikh 89797787e8
Fix: Only assets that are actually deleted call `onAssetDelete` (#510) 2022-01-16 10:00:46 +00:00
Steve Ruiz 8cba193bfd Fix viewport on initial load 2022-01-14 20:57:54 +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 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 5c33fbd89c bug fixes 2022-01-06 10:45:11 +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 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 d7a697647b
[feature] Labels for shapes (#462)
* Adds generic text label

* Clean up text label / text util

* labels for ellipse and triangles

* Add arrow label

* Update filesystem.ts

* Double click bend to edit label, fix mask location

* refactor arrowutil

* fix arrow bindings

* Rename text to label, add labelPoint

* Fix arrow binding, styles on text labels, double click bounds edge to edit label

* Update ArrowSession.ts

* Update StyleMenu.tsx

* set version
2021-12-27 19:21:30 +00:00
Steve Ruiz d60bb5c6ee
Fix bug where reloading could clear the state (#465)
* Fix bug where reloading could clear the state

* fix test

* Fix image and video positions
2021-12-27 18:44:47 +00:00
Steve Ruiz 4aa8547a8e
[improvement] performance modes (#463)
* add performance modes to core, sessions

* Update filesystem.ts

* rename TLPerformance to TLPerformanceMode, fix bugs
2021-12-27 12:30:35 +00:00
Steve Ruiz 0ed7e55c4c Make core asset types more generic, update docs. 2021-12-25 18:39:50 +00:00
Faraz Shaikh 1c65c031b2
Add Image and Video shapes (#460)
* Added image and video shapes

* Fixed bugs; Added optional onImageUpload callback

* Added id field to onImageUpload

* Added onImageDelete callback for cleanup

* Added firebase storage to multiplayer for media

* Added firebase storage to multiplayer for media

* Silence unnecessary TS errors

* Fixed bugs; Added tests

* Added tests

* Disable images for multiplayer example

* switch to assets in document, rather than on shapes, fix resize, fix sizes

* bump version, add migration for assets table

* Rename onImageUpload

* Add isPlaying state to video (not complete)

* Revert "Add isPlaying state to video (not complete)"

This reverts commit 3dc2ba703f.

* Adds controls when editing video, sync current time when cloning

* Remove unused tools

* avoid duplication in assets

* Remove unused image styles from style menu

* Fix placement of clone buttons

* Fix flag to hide image assets in multiplayer

* move getSizeFromDataUrl to filesystem

* Update VideoUtil.tsx

* Re-center video after it loads

* Add copy and paste support for assets

* Fix bug in state manager, remove unused assets on load, fix indicators

* Add multiplayer with images example

* Update MultiplayerEditor.tsx

* Add images to copy SVG

* tighten up some code around svg export

* Update TldrawApp.spec.ts

* Update useBoundsHandleEvents.tsx

* Reset image size by double clicking bounds

* fix reset size

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-12-25 17:06:33 +00:00
Jim Fisher e55d4779f6
Bugfix: "Copy as SVG" should respect childIndex (#455)
* Bugfix: respect childIndex in Copy as SVG

* Try adding test - but why is the test output an empty svg
2021-12-18 20:49:30 +00:00
Jim Fisher 2bc927f68e
Bugfix: 'Copy as SVG' shapes have black fill by default (#449)
* Bugfix: 'Copy as SVG' shapes have black fill by default

* Remove binding hit areas from copied SVG

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-12-17 15:23:03 +00:00