Commit Graph
21 Commits
Author SHA1 Message Date
Paul Kupper 57252fa828 Cancel in-progress drag with right click or escape key (#119) 2021-05-09 01:26:47 -07:00
Paul Kupper 1230e9d829 Improved Rectangle, Line and Shape Tools (#106) 2021-05-07 11:05:03 -07:00
T0mstone 47458115b8 Another round of polishing (#101)
* Implement basic refactorings

* Simplify some match statements

* Rename `ix` to `index`

If we're not going with a single letter name,
then a full word makes more sense.

* Rename `as_hex` to `to_hex`

`as_` implies lossless reinterpretation
while the function does a conversion that loses information

* Replace `for_each` with for loops

for loops are a lot easier to read and maintain.

* factor out x and y coords in Line::render

this is arguably more ergonomic

* Remove redundant `format!(format_args!())`
2021-05-07 02:47:38 -07:00
Paul Kupper c9fea54ec5 Improve Ellipse Tool (#98) 2021-05-07 02:47:38 -07:00
TrueDoctor 721a442b75 Use serde to serialize responses (#96) 2021-05-07 02:47:38 -07:00
Keavon Chambers 825e6954df Rename tools: "Sample" to "Eyedropper", "Blur/Sharpen" to "Detail" (#87) 2021-05-07 02:47:38 -07:00
Edwin Cheng 5991181f91 Implement Pen Tool (#79) 2021-05-07 02:47:37 -07:00
0HyperCube c04a0227f1 Add colors in Rust (#78)
* 🎨 Add colors in Rust

* 🌿 Use an option for the properties and #[repr(C)]

*  Remove WASM dependency on document.

* 😎 Wrap Fill and stroke in a style struct.

* 📦 Use crate::Color

* Merge Add transactions for temporary modifications to the document

* Run cargo fmt

* Color without a 'U'
2021-05-07 02:47:34 -07:00
0HyperCube b30e9ce3ba Add Shape Tool for drawing polygons (#75)
* ⬠ Add polygon drawing tool

* 🔤 Minor fix of variable and function names

*  Remove stroke

* ⌨️ Use N key as polygo tool shortcut.

* ⌨️ Now using key Y for polygons.

* ⌨️ The tooltip for the shortcut is fixed
2021-04-17 11:08:44 -07:00
Edwin Cheng 1fd298cf9e Implement Line tool (#71)
* Add Line tool
2021-04-12 21:43:05 -07:00
TrueDoctor 8c957e572b Implement svg layer structure (#59)
* Add folder struct

* Add file system like structure to interface with svgs

* Add primitive undo functionality

* Restructure layer system
2021-04-12 00:57:39 +02:00
T0mstone 53b34a9ad0 Polish a few things (#67)
* Improve some match statements using macros

* Use `thiserror` instead of manually impl'ing Error
2021-04-10 16:27:44 +02:00
Keavon Chambers c98bc770da Implement active tool visual syncing with tool shelf state 2021-04-10 03:49:27 -07:00
Keavon Chambers 78ed26cc16 Populate tool shelf and tool options bar (#66) 2021-04-08 06:10:27 -07:00
TrueDoctor b7f18dfaa8 Implement key handling (#65) 2021-04-07 11:02:56 +02:00
T0mstone 0adfa3af72 Rename import to remove graphite prefix (#50) 2021-03-27 16:43:37 -07:00
ProTheory8 fe111a6684 Add camelcase rule, import Error type from JS and rename get_inner_color to inner. (#44)
* Add camelcase rule to .eslintrc.js

* Import Error type from JS, rename crate::wrappers::Color::get_inner_color to crate::wrappers::Color::inner
2021-03-27 02:26:55 -07:00
RustyNixieTubeandRustyNixieTube 0156813dec Implement update_colors (#43)
Co-authored-by: RustyNixieTube <RustyNixieTube@users.noreply.github.com>
2021-03-27 02:26:55 -07:00
TrueDoctor f9308a6d5a Add tool_state functionality to wasm-wrapper (#42) 2021-03-27 02:26:55 -07:00
Keavon Chambers 7323d3cd21 Remove WebPack and let Vue CLI handle WASM. Project restructuring fixes. Add Vue SVG Loader. Fixes #29. 2021-03-27 02:26:55 -07:00
Keavon Chambers 7bfb04a99a Rename project structure with /core and /client 2021-03-27 02:26:55 -07:00