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
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
2021-11-18 13:09:18 +00:00
Steve Ruiz
599e6032a9
Removes core (off to its own repo)
2021-10-27 18:52:02 +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
235a57d302
Adds indicator for text, linked translate
2021-10-18 16:59:12 +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
46c9ac508d
[feature] Side cloning ( #149 )
...
* Adds side clone behavior
* Adds tab to clone, fixes wheel
* Fix bug in draw shape
* Passing tests
2021-10-14 16:37:52 +01:00
Steve Ruiz
d95a2e83a0
Fix handles when drawing
2021-10-14 14:14:47 +01:00
Steve Ruiz
f8cb7f03b6
Adds space panning, tweak css for performance
2021-10-14 13:33:39 +01:00
Steve Ruiz
93827e45dd
Adds indicators for selected shapes from other users
2021-10-12 15:59:04 +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
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
639f2412d1
Fix outline on non-draw-style rectangles
2021-09-24 12:02:49 +01:00
Steve Ruiz
2fe7923bc4
Support rotated shapes when pasting ( #107 )
2021-09-22 18:24:16 +01:00
Steve Ruiz
b90c57bbc3
improve canvas positioning, fix zaxis reordering
2021-09-22 16:00:20 +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
421989f827
Revert changes to translate3d
2021-09-22 09:54:18 +01:00
Steve Ruiz
68efbf69fa
[fix] Fixes off-center bugs ( #101 )
...
* moves center from window center to center of element
* Removes onMount in Renderer, adds onBoundsChange
* Fix centered-g css
* Fix zoom to fit
2021-09-22 09:45:09 +01:00
Steve Ruiz
17a7b15f9a
Changes usePosition to useLayoutEffect ( #91 )
2021-09-15 16:47:34 +01:00
Steve Ruiz
820de45a35
Fix draw shape, menu
2021-09-14 12:17:49 +01:00
Steve Ruiz
fc9b9fa3e3
expand arrow bounds based on interpolated points ( #90 )
2021-09-13 22:32:17 +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
f4e8631482
Increase padding
2021-09-11 17:23:38 +01:00
Steve Ruiz
5359e92771
Move SVG container to shape implementations
2021-09-11 17:21:10 +01:00
Steve Ruiz
e7987ca451
moves to div renderer
2021-09-11 16:24:03 +01:00
Steve Ruiz
9194ee7522
Tweak dev server
2021-09-09 14:58:55 +01:00
Steve Ruiz
44e1c7dfdc
Adds independent zooms, prevents elements from effecting root or body
2021-09-09 14:06:45 +01:00
Steve Ruiz
b00e0d3a95
Improves pan and zoom gestures
2021-09-09 13:32:08 +01:00
Steve Ruiz
8154ed5a2a
Adjusts small example, makes inputs unique to each instance
2021-09-08 17:18:43 +01:00
Steve Ruiz
f6934dedb8
Adds copy, fix bug on mutating bound shapes, adds binding indicator, adds binding to text
2021-09-01 12:18:50 +01:00
Steve Ruiz
c353fd257f
Adds dark mode
2021-08-23 17:13:10 +01:00
Steve Ruiz
840532142e
bumps perfect-freehand, improves draw dots
2021-08-23 15:38:14 +01:00
Steve Ruiz
fc321cc757
Fix duplicate page
2021-08-18 00:59:46 +01:00
Steve Ruiz
07dcfb8df5
Implements multiple pages
2021-08-17 22:38:37 +01:00
Steve Ruiz
ccb8876d8b
All tests passing
2021-08-13 11:49:35 +01:00
Steve Ruiz
8c02e0df84
Improves types and imports!
2021-08-13 10:28:09 +01:00