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 >
4 лет назад
Proful Sadangi
1f7f779506
feature middle mouse wheel pan (#364)
4 лет назад
Steve Ruiz
a2fff9dca7
[improvement] Add basic support for copying text (#354)
* Add getSvgElement
* Update TextUtil.tsx
* Add sticky svg
* Fix bounds bug, improve text export
* Include fonts
4 лет назад
Steve Ruiz
62803443ef
fix stuck pointer during text editing / palm hits (#316)
4 лет назад
Steve Ruiz
6af6cfb617
update readmes
4 лет назад
Steve Ruiz
e6a3e5c3ea
[big chore] restore core to monorepo (#287)
* move core into repo, apps into apps folder, update tests
* Update scripts for build:core
* improve scripts
* remove noise from www
* Update .gitignore
* Fix focus bug
* add ci test script
* Update main.yml
4 лет назад
Steve Ruiz
599e6032a9
Removes core (off to its own repo)
4 лет назад
Steve Ruiz
02a6488f46
Fix types for real
4 лет назад
Steve Ruiz
c04e4134d2
Fix rendering bug, tweak API
4 лет назад
Steve Ruiz
2e6c33342d
[refactor] ShapeUtils (#206)
* Starts refactor
* tests passing, got it
* Fix next
4 лет назад
Steve Ruiz
8d6fe119a5
minor utils tweaks
4 лет назад
Steve Ruiz
0f2887a039
updates package
4 лет назад
Steve Ruiz
b94c97aafe
moves svg utils into its own package
4 лет назад
Steve Ruiz
757feb009b
[fix] group behavior (#197)
* Fixes nudging on groups
* Fix alignment of grouped shapes
* fix distribute of grouped shapes
* Fixes stretching groups
* Fix rotate command
* Improve idsToMutate code
* remove boundsRotation
4 лет назад
Steve Ruiz
3ba4d435bc
[fix] Hides handles that are too close to a previous handle (#193)
* Hides handles that are too close to a previous handle
* Hide handles if only one handle is visible
4 лет назад
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
4 лет назад
Steve Ruiz
0dffdd2d29
[improvement] snaps (#190)
* Simplify snaps
* Update readmes
* Improves snapping
* filter snappable shapes, give viewport information to sessions
4 лет назад
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
4 лет назад
Steve Ruiz
a7e8fafb96
Adds up and downstream links (#171)
4 лет назад
Steve Ruiz
235a57d302
Adds indicator for text, linked translate
4 лет назад
Steve Ruiz
6661ab0586
[feature] transform snaps (#170)
* transform single
* transform
4 лет назад
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
4 лет назад
Steve Ruiz
01c824bbbe
Improve rectangle rendering (#163)
4 лет назад
Steve Ruiz
db62005251
Fix dark theme UI (#161)
* Fix theming
* Cleanup
* Update tldraw.tsx
4 лет назад
Steve Ruiz
abcdcd8dae
improves multiplayer presence (#160)
4 лет назад
Steve Ruiz
32b2ae88ee
[feature] grid cloning (#152)
* Adds more clone buttons
* Adds grid session, fix bug on text, adds keyboard handlers for sessions
* Adds copy paint, point argument to duplicate
* Adds tests for duplicate at point
* Adds status for shape cloning
* Adds 32px padding when clone brushing
4 лет назад
Steve Ruiz
1ec0434a3c
[improvement] improve performance (#151)
* Remove context menu
* Update stitches elements
* Update yarn.lock
* Fix bug on bounds bg
* Adds timer for will-change
* remove zindex
* jesus christ, just an extra div
* Remove will change timer
4 лет назад
Steve Ruiz
826ed9a185
Fixes cleanup for new shapes on undo (#150)
* Fixes cleanup for new shapes on undo
* Fix streamline
4 лет назад
Steve Ruiz
f8516a2c4a
Fix pinching on tools other than select
4 лет назад
Steve Ruiz
46c9ac508d
[feature] Side cloning (#149)
* Adds side clone behavior
* Adds tab to clone, fixes wheel
* Fix bug in draw shape
* Passing tests
4 лет назад
Steve Ruiz
d95a2e83a0
Fix handles when drawing
4 лет назад
Steve Ruiz
1c65c51b60
Fix zoom and paste for embedded shapes
4 лет назад
Steve Ruiz
f8cb7f03b6
Adds space panning, tweak css for performance
4 лет назад
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
4 лет назад
Steve Ruiz
1408ac2cbe
Refactor tools (#147)
* Refactor Tools
* Update text.tsx
* Passing tests
* Error fixes
* Fix re-selecting tool
* Fix arrow
4 лет назад
Steve Ruiz
bd6197ea16
Fix types
4 лет назад
Steve Ruiz
93827e45dd
Adds indicators for selected shapes from other users
4 лет назад
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
4 лет назад
Steve Ruiz
d6b38ed79e
[feature] Live cursors MVP (#137)
* Adds very basic live cursors
* Adds ability to hide pages / menu
4 лет назад
Steve Ruiz
a144360adf
fixes cursors, bounding box when hidden (#133)
4 лет назад
Steve Ruiz
798bae28ca
Set zoom scale bounds based on camera zoom
4 лет назад
Steve Ruiz
5c9e148ad8
Rough fix for zoom events
4 лет назад
Steve Ruiz
22a9668b5c
[feature] Add `isStateful` flag for shape definitions (#130)
* Add `isStateful` flag for shape definitions
* Update useShapeTree.tsx
4 лет назад
Steve Ruiz
639f2412d1
Fix outline on non-draw-style rectangles
4 лет назад
Steve Ruiz
31638c7c90
[fix] indicator shapes (#121)
* Fix indicator shape for draw shape, rectangle shape
* Fixes perfect-freehand bug
* Tweaks streamline
4 лет назад
Steve Ruiz
1e3e19199c
[fix] Allows boundsDragEvents to fire even when hidden (#115)
* Allows boundsDragEvents to fire even when hidden
* Fix failing test
4 лет назад
Steve Ruiz
fc1dde724e
Makes keyboard events work again (#114)
4 лет назад
Steve Ruiz
2fe7923bc4
Support rotated shapes when pasting (#107)
4 лет назад
Steve Ruiz
b90c57bbc3
improve canvas positioning, fix zaxis reordering
4 лет назад
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
4 лет назад