Commit graph

27 commits

Author SHA1 Message Date
Keavon Chambers
49b9b8cfec Rename the legacy Graphene crate to document-legacy (#899)
* Rename /graphene to /document-legacy

* Update names in code
2022-12-22 02:12:05 -08:00
Keavon Chambers
ab75f0fbfb Improve the website and readme with details and cleanup 2022-09-16 01:29:33 -07:00
Keavon Chambers
d5b43ef2da Add frontend file structure docs and some related cleanup 2022-05-23 19:13:51 -07:00
Keavon Chambers
632928f4f6 Rename Crop tool to Artboard tool 2022-04-21 10:52:33 -07:00
Keavon Chambers
9ced465150 Add node graph mockup to website 2022-03-25 02:11:31 -07:00
Keavon Chambers
593aa99ffa Add features page and fixes to website 2022-03-13 11:32:53 -07:00
Keavon Chambers
8a05712dac Reorder tool icons, update favicon and logo, and other icon cleanup 2022-03-04 13:04:59 -08:00
Keavon Chambers
cbb4feba45 Remove Charcoal references from the code for now 2022-01-12 03:56:28 -08:00
caleb
1594b9c61d Implement outline view mode (#401)
* Created wasm binding to action's of the radio buttons which control the view mode
Added entry to DocumentMessage Enum

* draw in wireframe mode by changing parameters on each shape
added functions/changed behavior to do as above
not working yet
   - newly added shapes should be drawn in wireframe
   - setting fill to "none" on a path does not only draw an outline
      - maybe the stroke width is 0?

* Wire frame view mostly functional for ellipses
   - Need to implement for all shapes
   - BUG: shapes don't immediatley update upon changing view-mode

* Fixed: active document now updates after view mode swap

* The Pros:
   - wire frame mode effects all shapes correctly

The Cons:
   - wire frame mode effects everything, including things that maybe shouldn't be, like select boxes and pen lines

* wire frame view no longer effects overlay layers

* Fixed: While in wireframe view the pen tool will draw regular thickness lines.

* some commenting

* Fixed potential bug:
   In layer/file system with a Folder layer with a sub-layer that is also
   a Folder cache_dirty must be set in order for all shapes to update properly

* refactored code to use ViewMode enum names throughout

* Changed: All wireframe lines are blank
cargo fmt

* Wireframe thickness doesn't change as a result of zooming
   - Added DocumentMessage::ReRenderDocument, which marks layers as dirty and renders with the updated render-string
   - All "zoom" messages in the movement_handler send a re-render message
   - while in wireframe view, the "render-transform" of all shapes includes the root layer transform

Added getter/setter methods for graphene::Document::view_mode

* cargo fmt

* wireframe now has proper thickness after "Zoom Canvas to Fit all" action

* Refactored
   - Changed FrontendMessage::UpdateCanvas to RenderDocument message to allow for lazy evaluation
   - Created DocumentOperation::SetViewMode to be more consistent with existing code
   - removed log statement
   - Added constants for empty fill and thin-black stroke

* cargo fmt

* Removed ReRenderDocument message

* cargo fmt

* Fixes as suggested by TrueDoctor

* clean up merge
cargo fmt

* Refactor:
   moved view_mode to DocumentMessageHandler

* Polishing

* changed those two comments

* Remove unknown todo comment

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2021-12-24 16:04:58 -07:00
Keavon Chambers
2367f5e56b Update terminology in the docs 2021-08-12 00:39:29 -07:00
Keavon Chambers
26ae4e2751 Fix documentation links 2021-08-10 20:03:15 -07:00
Keavon Chambers
53ad105f57 Restructure project directories (#333)
`/client/web` -> `/frontend`
`/client/cli` -> *delete for now*
`/client/native` -> *delete for now*
`/core/editor` -> `/editor`
`/core/document` -> `/graphene`
`/core/renderer` -> `/charcoal`
`/core/proc-macro` -> `/proc-macros` *(now plural)*
2021-08-07 05:17:18 -07:00
Keavon Chambers
552cee4d6b Fix tooltips in Document panel 2021-07-19 18:02:08 -07:00
Keavon Chambers
67131a23fd Remove CLI client stub 2021-07-15 03:44:57 -07:00
Keavon Chambers
d1bf68320e Implement menu bar floating list menus (#163)
Progress towards #135
2021-05-31 11:51:32 -07:00
Keavon Chambers
b27eaf3fae Update architecture diagram around the Dispatcher 2021-05-01 13:36:05 -07:00
Keavon Chambers
b6ce559d86 Add design documentation about user input and masking 2021-04-29 00:41:38 -07:00
Keavon Chambers
e34672556d Update architecture diagram content and formatting 2021-04-07 22:33:58 -07:00
Keavon Chambers
273aa652df Rename the "Layers" panel to "Layer Graph" 2021-04-01 21:55:15 -07:00
Keavon Chambers
76598c967a Change document, viewport, and canvas terminology 2021-03-29 03:52:08 -07:00
Keavon Chambers
00fa95aa91 Improve formatting for architecture diagram 2021-03-28 01:50:23 -07:00
Keavon Chambers
8f922c7b9a Update architecture diagram with fleshed out editor state flow 2021-03-28 01:42:00 -07:00
Keavon Chambers
e293060db0 Add asset manager sources to docs outline 2021-03-27 12:56:53 -07:00
Keavon Chambers
e58f314527 Various small fixes; no longer lint on Vue CLI run 2021-03-27 00:57:48 -07:00
Keavon Chambers
bd11f9c865 Fix compiling issue broken while cleaning up last commit 2021-03-23 02:19:57 -07:00
Keavon Chambers
fb5ce7e388 Remove WebPack and let Vue CLI handle WASM. Project restructuring fixes. Add Vue SVG Loader. Fixes #29. 2021-03-23 01:09:29 -07:00
Keavon Chambers
7a9be14a10 Rename more of the project structure. Fixes #39. 2021-03-22 11:49:17 -07:00