Wykres commitów

38 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 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 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
Eswar Prasad Clinton. A 5721885161
add copy svg keyboard shortcut (#573) 2022-02-13 12:37:01 +00:00
David db7e785ca2
Fixed redo shortcut misconfiguration (#551) 2022-02-02 22:03:49 +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
Elizabeth Louie c5124b160e
add triangle tool (#433)
* add triangle tool

* fix keyboard shortcuts

* cleaned code

* Add binding, better indicator, bounds

* Fix tests

* Refactor getBindingPoint, binding distances, add comments to getBindingPoint

* Update TextUtil.spec.tsx.snap

* fix intersection math

* fix ellipse indicator

* Update EllipseUtil.tsx

* Update BrushSession.spec.ts

* Add draw style to triangle

* improve strokes

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-12-09 22:29:09 +00:00
megnakokkalera c67c0871ff
Fix/undo on menu open (#436)
* fix for undo button on menu open

* Change toggle to set, add option for keyboard events

* Update .gitignore

* Update .gitignore

* Remove isStyleOpen

* Remove isStyleOpen

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-12-06 18:23:53 +00:00
Steve Ruiz 0039dd2e66
Restore onPersist (#435) 2021-12-04 14:51:40 +00:00
Eivind Ingebrigtsen ac648da2c5
⌨️ Changing keyboard shortcuts for pen and oval (#407) 2021-11-28 14:54:51 +00:00
Christian Petersen e2814943e9
[feature] Add grids (#344)
* [feature] grids

* Shows relative grids at different zoom levels

* Update colors

* Restores vec and intersect to monorepo, changes vec.round to vec.toFixed, adds vec.snap

* Snapping in translate and transforms, fix shortcut

* fix bugs in build

* use grid size for nudge too

* update scripts

* Update grid.tsx

* Update grid.tsx

* Fixed!

* Update grid.tsx

* Fix package imports

* Update Editor.tsx

* Improve tsconfigs, imports

* Fix tiny arrow bugs, snap starting points to grid

* Update tsconfig.base.json

* Update shape-styles.ts

* Fix example tsconfig

* Fix translate type error

* Fix types, paths

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-11-26 15:14:10 +00:00
Steve Ruiz cdfad49184
Update useKeyboardShortcuts.tsx (#351) 2021-11-22 13:59:59 +00:00
Proful Sadangi dad6daf758
[feature] Added LineTool functionality (#343)
* Added LineTool functionality

* Fix Typo error

* Create LineIcon

* Update useKeyboardShortcuts.tsx

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-11-22 12:28:56 +00:00
Proful Sadangi a53aeb9e0d
[feature] Shift drag arrow functionality (#319)
* Shift drag arrow functionality

* fix

* Remove shift effect in onHandleChange

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-11-20 15:18:06 +00:00
Steve Ruiz fe831c325d
[fix] zoom shortcuts (#323)
* Adds overrides for zoom in / out / reset commands

* Add reset command, numpad keys

* Remove unused shortcuts

* Update package.json
2021-11-20 13:25:41 +00:00
Steve Ruiz 0685ca3871
[feature] fonts (#308)
* adds fonts

* Add alignment options

* Update useKeyboardShortcuts.tsx

* Improve style panel

* Alignment for sticky notes

* swap fonts
2021-11-20 09:37:42 +00:00
Steve Ruiz 6214718c31
Update useKeyboardShortcuts.tsx (#313) 2021-11-19 20:26:16 +00:00
Steve Ruiz 0c5f8dda48
1.0.0 (#267)
* remove sponsorwall for main route

* Adds sponsorship link

* Remove all sponsorwall

* Fix sponsorship link appearance on dark mode

* Add heart icon

* Fix text bug

* Fix toolbar, hide resize handles on sticky

* Add eraser

* Update Kbd.tsx

* cleanup

* base zoom delta on event deltaMode

* Fix image in example

* Fix eraser icon

* eraser tool resets to previous tool

* Update EraseTool.spec.ts

* Improves support for locked shapes

* Update _document.tsx

* Update CHANGELOG.md

* Adds multiplayer menu, fix develop route in example

* Tighten up top panel padding

* Update top bar, bump packages

* refactor TLDrawState -> TLDrawApp, mutables, new tests

* Fix scaling bug, delete groups bug

* fix snapping

* add pressure to points

* Remove mutables, rename to tldraw (or Tldraw)

* Clean up types, add darkmode prop

* more renaming

* rename getShapeUtils to getShapeUtil

* Fix file names

* Fix last bugs related to renaming

* Update state to app in tests

* rename types to TD

* remove unused styles / rename styles

* slight update to panel

* Fix rogue radix perf issue

* Update ZoomMenu.tsx

* Consolidate style panel

* Fix text wrapping in text shape, improve action menu

* Fix props

* add indicators for tool lock

* fix calloits

* Add click to erase shapes

* Slightly improve loading screen

* Update PrimaryTools.tsx

* remove force consistent filenames from tsconfig

* Update useTldrawApp.tsx

* fix capitalization

* Update main.yml
2021-11-16 16:01:29 +00:00
Steve Ruiz be2c6d6d1f
[refactor] events (#230)
* bumps rko, adds events

* rename tlstate to state, fix env for multiplayer test

* Fix multiplayer

* rename data tldrawstate to tldrawsnapshot

* Update multiplayer-editor.tsx

* Fix shhhmp

* Update 2.tldr

* Add API to the README
2021-11-08 14:21:37 +00:00
Steve Ruiz 7c980ebb19
Electron App (#224)
* add electron wrapper

* add to workspaces

* fixes electron setup

* Fix package for dev

* build out electron app communication

* Update README.md
2021-11-07 13:45:48 +00:00
Steve Ruiz fb77323ef2
[feature] filesystem + readonly (#218)
* Fix escape key for menu

* Adds filesystem support, readonly mode

* Move file system events to external hook

* Adds onSignIn callback, prevent event by default
2021-11-05 14:13:14 +00:00
Steve Ruiz e2369003c6
[improvement] UI (#215)
* move folders out of packages

* Remove custom yarn stuff, remove duplicate readme

* Remove stitches config

* Add README script.

* bump deps

* Fix script

* Update package.json

* rehauls UI

* further rehauls UI

* UI polish

* Update ToolButton.tsx

* Update ToolButton.tsx

* Bump license

* move tldraw to root

* Remove SW
2021-11-03 16:46:33 +00:00
Steve Ruiz ff50aa6ad5
[fix] bound shape size undo (#191)
* fix text centering, double click grouped text to select rather than edit

* Fix selecting grouped text

* Writes tests for select tool, fixes undo behavior while in session

* reduces binding distance, adds constants for binding distance and cloning distances

* adjust text sizes

* Update arrow.session.spec.ts
2021-10-22 12:05:23 +01:00
Steve Ruiz e1c307fd71
[feature] sticky notes (#148)
* Refactor toolbar

* Adds containerRef prop

* Fix arrows for groups

* Adds auto focus

* Notes on blurring

* Upgrades to match main

* Loose ends around sticky notes

* Fixes user select

* Passing tests

* Update sticky.tsx
2021-10-13 17:03:33 +01:00
Steve Ruiz c49b2e684a
[improvement] stroke appearance (#142)
* make default style small, adjust font sizes and stroke widths

* Reduce size of handle click area

* Make save command+shift+s (just persists)

* Update stroke width for arrow

* Update stroke width for draw

* Update stroke width for ellipse

* Update stroke width for rectangle

* Tweak dash algorithm

* Updates snapshot
2021-10-10 10:41:45 +01:00
Steve Ruiz fc1dde724e
Makes keyboard events work again (#114) 2021-09-23 12:14:22 +01:00
Steve Ruiz 4a99c13006
[feature] focus mode (#103)
* Adds isFocusMode

* Adds menu option, fixes scale for group dashes, scopes themes to each component based on id

* Add example for a "no size" embed
2021-09-22 12:28:55 +01:00
Steve Ruiz bbee7bc2b2
Feature copy and paste (#99)
* adds copy and paste, scopes keyboard events to focused elements

* Fix tools panel bug, adds copy across documents

* Makes autofocus default
2021-09-21 16:47:04 +01:00
Steve Ruiz 8ae625baef
Fix stale inputs reference (#92)
* Add `onMount` to Renderer to share inputs

* Removes brush updater

* Update brush.test.tsx
2021-09-17 22:29:45 +01:00
Steve Ruiz 4e13b0e07b Allow for resets when id changes 2021-09-08 11:16:10 +01:00
Steve Ruiz fe9ff2dc2d Fix text bug on firefox, translate cloning for grouped shapes 2021-09-02 21:13:54 +01:00
Steve Ruiz a1a213f9b4 Starts on groups, fixes duplicate bugs with bindings 2021-09-02 13:51:39 +01:00
Steve Ruiz 2937016ae0 Adds indicator for dots, rename and delete dialogs for pages, dark mode support for ui 2021-08-30 14:04:12 +01:00
Steve Ruiz 9e8e99cb6f Move state to rko 2021-08-29 14:33:43 +01:00
Steve Ruiz 72f680ce65 Adds select undo / redo stack 2021-08-15 15:35:23 +01:00
Steve Ruiz 8c02e0df84 Improves types and imports! 2021-08-13 10:28:09 +01:00
Steve Ruiz 5998879e24 Replace 2021-08-10 17:12:55 +01:00