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
5e6a6c9967
[improvement] refactor multiplayer ( #336 )
...
* Move rko into library, improve multiplayer example
* Add presence layer
* extract to a hook
* Migrate old documents to new structures
* Update repo-map.tldr
* More improvements
* Fix bug on deleted shapes
* Update MultiplayerEditor.tsx
2021-11-22 14:00:24 +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
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
eb20f1c816
[fix] current style and selected style ( #298 )
...
* Fix selectedStyles from being new on each update
* Fix again
* Update TldrawApp.ts
* Fix log around current style and selected style
* Add stub test, move style menu into folder
* Cleanup repo
* cleanup context menu
2021-11-19 10:19:06 +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
b3d0e7cceb
Adds double click to tool lock, replaces tool lock button with delete button ( #266 )
2021-11-11 13:03:13 +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
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
fe2e3c81fe
[improvement] Migrations ( #217 )
...
* Add better migrations
* Improves migrations
* rename dev to example
* renames migrate
* Removes workers from git
* Remove rogue dependency
* Fix dropdown navigation by keyboard
2021-11-04 15:48:39 +00:00
Steve Ruiz
12e425ddc4
[fix] rotate center ( #213 )
...
* fixes rotate center after translating / transforming
* Adds test, fixes issue on undo/redo
* Update tsconfig.base.json
2021-10-30 10:04:33 +01:00
Steve Ruiz
5479d67877
Updates to new core. ( #210 )
2021-10-28 17:50:58 +01:00
Steve Ruiz
02a6488f46
Fix types for real
2021-10-27 17:21:49 +01:00
Steve Ruiz
2e6c33342d
[refactor] ShapeUtils ( #206 )
...
* Starts refactor
* tests passing, got it
* Fix next
2021-10-27 16:15:01 +01:00
Steve Ruiz
0dffdd2d29
[improvement] snaps ( #190 )
...
* Simplify snaps
* Update readmes
* Improves snapping
* filter snappable shapes, give viewport information to sessions
2021-10-21 19:54:54 +01:00
Steve Ruiz
8fd9cf8389
[feature] UX preferences ( #172 )
...
* Improves snapping util, styles corner buttons, adds preferences
* Update bounds.test.tsx
* Update preferences.tsx
* Update preferences.tsx
* Change copy
2021-10-19 14:29:55 +01:00
Steve Ruiz
0cfc68b004
[feature] snapping ( #168 )
...
* defer cloning
* basic snapping
* Improves algorithm for snap points, rendering
* Improves snapping, snaplines
* Enables a clone to snap to its parent
* Adds overlay
* Fix overlay, zoom scaling for distance and speed
2021-10-18 14:30:42 +01:00
Steve Ruiz
d87263a3d8
Make room optional ( #158 )
2021-10-16 19:55:18 +01:00
Steve Ruiz
826ed9a185
Fixes cleanup for new shapes on undo ( #150 )
...
* Fixes cleanup for new shapes on undo
* Fix streamline
2021-10-15 10:33:48 +01:00
Steve Ruiz
70cd3262f5
Update status in data
2021-10-14 13:32:48 +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
1408ac2cbe
Refactor tools ( #147 )
...
* Refactor Tools
* Update text.tsx
* Passing tests
* Error fixes
* Fix re-selecting tool
* Fix arrow
2021-10-13 14:55:31 +01:00
Steve Ruiz
93827e45dd
Adds indicators for selected shapes from other users
2021-10-12 15:59:04 +01:00
Steve Ruiz
d6b38ed79e
[feature] Live cursors MVP ( #137 )
...
* Adds very basic live cursors
* Adds ability to hide pages / menu
2021-10-09 14:57:44 +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
cdb7c74f8e
Updates perfect-freehand, draw renderings
2021-09-17 17:37:40 +01:00
Steve Ruiz
eaeffae333
More type adjustments
2021-09-13 17:13:48 +01:00
Steve Ruiz
22fbca58d3
Allows for additional properties
2021-09-13 16:59:37 +01:00
Steve Ruiz
2f4a1f97a2
big refactor
2021-09-13 16:38:42 +01:00
Steve Ruiz
c004ed5e56
Fix text scrolling
2021-09-11 23:17:54 +01:00
Steve Ruiz
dea7d5c7d4
Push a few more methods to the base shape utils class
2021-09-11 18:07:53 +01:00
Steve Ruiz
e7987ca451
moves to div renderer
2021-09-11 16:24:03 +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
64d00dc427
Replaces isDarkMode with meta, a more flexible option for custom rendering context
2021-08-30 11:44:42 +01:00
Steve Ruiz
429a5e6171
Adds right click to select, fixes spacing in context menu, improves draw session
2021-08-18 08:19:13 +01:00
Steve Ruiz
f19d3e6366
Fixes database issues, fixes rendering issue
2021-08-18 00:11:00 +01:00
Steve Ruiz
ad3db2c0ac
Mostly fixed bugs
2021-08-16 22:52:03 +01:00
Steve Ruiz
594bc7c2ff
Adds multiple pages, pageStates to state object (groan)
2021-08-16 15:01:03 +01:00
Steve Ruiz
9c45e0a5a5
Starts on menu, page panel
2021-08-16 08:49:31 +01:00
Steve Ruiz
72f680ce65
Adds select undo / redo stack
2021-08-15 15:35:23 +01:00
Steve Ruiz
40cbf2d92b
Improves status, create session handling
2021-08-15 09:49:38 +01:00
Steve Ruiz
8c02e0df84
Improves types and imports!
2021-08-13 10:28:09 +01:00
Steve Ruiz
2673a97cc8
Improves binding cleanup, deletes bindings on translation
2021-08-12 14:39:41 +01:00
Steve Ruiz
5998879e24
Replace
2021-08-10 17:12:55 +01:00