Commit Graph

12 Commits

Author SHA1 Message Date
T0mstone
b556dd6bfd Polish a few things (#81)
* Implement/suppress various compiler/clippy lints

* Change `tool_init` to take `ToolType` by value

* Factor out error conversion into a function

* Consume parameters with `todo`

* Make `workspace` stuff public

Making them public also removes the warnings
without having to suppress them.

Also, this commit removes the unused import of
`EditorError`

* Remove allow(unused_variables), use vars in `todo`

Also implements `Debug` on `DocumentToolData`
2021-04-22 17:05:25 +02:00
0HyperCube
46c9ef02ca 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-04-21 22:25:06 +01:00
T0mstone
09c4a1b796 Add proc macros for Hint and edge (#63)
* Add proc-macro crate with two macros

* Let cargo recalculate the Cargo.lock

* Add tests and refactor some code to allow testing

also the impl for parse_hint_helper_attrs now preserves order
(which is essential for testing)
2021-04-07 13:51:33 +02:00
Keavon Chambers
fafea371ab Rename "state" to "fsm_state" to avoid confusion 2021-04-06 22:21:32 -07:00
George Atkinson
0d6d6fb81b Add FSM and related tool plumbing (Fix #54) (#62)
- Added FSM trait
- Added FSM to select and ellipse tools
- Moved circle stamping code to ellipse tool
2021-04-05 23:57:33 +01:00
ProTheory8
4992bdee0e Add Active Tool Router (#58)
* Add Active Tool Router

* Remove commented out import
2021-04-01 21:10:28 +05:00
T0mstone
d037e956e8 Implement basic circle stamping (#53) 2021-03-29 01:44:34 +02:00
T0mstone
5c13279d91 Add plumbing for event system (#52)
* Add plumbing for event system

* Apply review suggestions

* Add swap and reset color functions
2021-03-28 23:39:33 +02:00
TrueDoctor
b6d4baa513 Implement event/response roundtrip (#49) 2021-03-28 00:23:41 +01:00
TrueDoctor
a5d85812ce Rework the ToolState and integrate it into the Editor struct (#48)
* Rework the ToolState and integrate it into the Editor struct

* Add asset manager sources to docs outline
2021-03-27 22:02:01 +01:00
TrueDoctor
a62126f926 Add event struct (#47) 2021-03-27 20:06:10 +01:00
Keavon Chambers
4407c671c5 Rename project structure with /core and /client 2021-03-22 11:21:15 -07:00