Wire :diagram into the CkEditor shell #54
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/054-wire-diagram-into-the-ckeditor-shell"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wire
:diagraminto the CkEditor shellAlong the way:
Touches 23 files:
Cargo.lock,ck-diagram/README.md,ck-diagram/src/canvas.rs,ck-diagram/src/history.rs,ck-diagram/src/lib.rs,ck-diagram/src/toolbox.rsand 17 more.Approving. I would have split
ck-diagram/src/history.rsdifferently, but not enough to hold this up.@ -0,0 +186,4 @@/// diagram (the canvas mutates the live shape during the drag);/// `record` just pushes the entry onto the undo stack and clears/// the redo stack.pub fn record(&mut self, entry: HistoryEntry) {recordis public. Does anything outside the crate call it, or is it pub because that was easier? Every public item is a promise.@ -0,0 +217,4 @@}#[test]fn click_inserts_above_existing_shapes_in_z() {click_inserts_above_existing_shapes_in_zreads, decides and writes in one function. The deciding part is the piece I would want to test on its own. Worth splitting?Nothing outside calls
record. It is pub(crate) inck-diagram/src/history.rsnow.Split. The decision in
click_inserts_above_existing_shapes_in_zis a pure function now, with its own tests inck-diagram/tests/toolbox.rs.Looked through
ck-diagram/src/history.rsas well. Fine by me.:diagraminto the CkEditor shell 8784571632