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 >
преди 3 години
Steve Ruiz
b1002b70e9
Round points when a draw shape is completed
преди 3 години
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
преди 3 години
Steve Ruiz
ec9a40b800
Update DrawSession.ts (#272)
преди 3 години
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
преди 3 години
Steve Ruiz
e11f05028f
[mega-chore] renaming (#223)
* Rename shape utils
* renames files
* Add husky
* Delete .babelrc
* Update TLDR.ts
* renames commands
* Update package.json
* more pre-commit work
преди 3 години
Steve Ruiz
0dffdd2d29
[improvement] snaps (#190)
* Simplify snaps
* Update readmes
* Improves snapping
* filter snappable shapes, give viewport information to sessions
преди 3 години
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
преди 3 години
Steve Ruiz
826ed9a185
Fixes cleanup for new shapes on undo (#150)
* Fixes cleanup for new shapes on undo
* Fix streamline
преди 3 години
Steve Ruiz
5a99f5e49c
Update status in tests
преди 3 години
Steve Ruiz
1408ac2cbe
Refactor tools (#147)
* Refactor Tools
* Update text.tsx
* Passing tests
* Error fixes
* Fix re-selecting tool
* Fix arrow
преди 3 години
Steve Ruiz
bec693a1d9
Tweaks the draw appearance, fix ellipse rotation (#93)
преди 3 години
Steve Ruiz
17a7b15f9a
Changes usePosition to useLayoutEffect (#91)
преди 3 години
Steve Ruiz
820de45a35
Fix draw shape, menu
преди 3 години
Steve Ruiz
7f0cfd2c5a
Splits vectors and intersections into new packages
esbuild isn't currently tree shaking intersections, but that's a file where we could save some room
преди 3 години
Steve Ruiz
915a7ba194
fix draw bug
преди 3 години
Steve Ruiz
9787cafc06
Fix drawing session, avoids expensive iterations if we can
преди 3 години
Steve Ruiz
92b8df4b51
remove time from draw
преди 3 години
Steve Ruiz
1c9bbe3e36
bumps perfect freehand, improves draw and text
преди 3 години
Steve Ruiz
db13880ceb
Adds time data to draw points.
Not sure if I'll keep this, but together with the improved trimming it actually reduces the size of these arrays.
преди 3 години
Steve Ruiz
429a5e6171
Adds right click to select, fixes spacing in context menu, improves draw session
преди 3 години
Steve Ruiz
07dcfb8df5
Implements multiple pages
преди 3 години
Steve Ruiz
ad3db2c0ac
Mostly fixed bugs
преди 3 години
Steve Ruiz
40cbf2d92b
Improves status, create session handling
преди 3 години
Steve Ruiz
8c02e0df84
Improves types and imports!
преди 3 години
Steve Ruiz
283e678a4d
Adds arrows
преди 3 години
Steve Ruiz
5998879e24
Replace
преди 3 години
Steve Ruiz
322ce81fb6
Fixes dropped fills on draw shapes
преди 3 години
Steve Ruiz
364dbe0fd9
Removes expensive immer current calls
преди 3 години
Steve Ruiz
45223e2a8d
Big restructure of utils
преди 3 години
Steve Ruiz
ec7ec06a6d
Fix missing shapes when resizing window
преди 3 години
Steve Ruiz
d1a3860bb1
Fixes a perf-killing deepCompare in context menu
Was deep comparing an array of actual selected shapes, rather than selected shape ids
преди 3 години
Steve Ruiz
ff58073d12
Adds more tests, simplifies draw tool
преди 3 години
Steve Ruiz
82bd129e3a
Fixes utils imports
преди 3 години
Steve Ruiz
864ded959a
big cleanup
преди 3 години
Steve Ruiz
4ce2b8cc6b
Improves file saving / page saving and loading
преди 3 години
Steve Ruiz
4a36ff7341
Fix bug in translating
преди 3 години
Steve Ruiz
9123fd62fc
Improving draw
преди 3 години
Steve Ruiz
c8070857b1
Remove fancy draw prediction.
Until we have a better solution.
преди 3 години
Steve Ruiz
a689422576
Improves(?) save / load
преди 3 години
Steve Ruiz
e08f8f0116
Update draw-session.ts
преди 3 години
Steve Ruiz
03e1904739
Skip projected points on mobile
преди 3 години
Steve Ruiz
f90f51efc7
Reduces projection
преди 3 години
Steve Ruiz
58c9fc9f83
Improves drawing
преди 3 години
Steve Ruiz
b8d58f2d50
improve drawing
преди 3 години
Steve Ruiz
fe833b6e3b
Improve comments on draw
преди 3 години
Steve Ruiz
ba9c5f6d97
fixes dot on drawing
преди 3 години
Steve Ruiz
61f56b984e
Fixes deleting pages, adds local file saving / loading
преди 3 години
Steve Ruiz
350c1debde
Moves selectedIds into page state, state mounts only one page state / page at a time
преди 3 години
Steve Ruiz
8623958e74
adds pressure sensitivity
преди 3 години