Skip to content

Commit

Permalink
0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zsviczian committed Jul 27, 2023
1 parent ff7510b commit 2248cc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "excalibrain",
"name": "ExcaliBrain",
"version": "0.2.1",
"version": "0.2.2",
"minAppVersion": "1.1.6",
"description": "A clean, intuitive and editable graph view for Obsidian",
"author": "Zsolt Viczian",
Expand Down
7 changes: 6 additions & 1 deletion src/Scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,12 @@ export class Scene {
ea.clear();
const excalidrawAPI = ea.getExcalidrawAPI();
if(!retainCentralNode) {
excalidrawAPI.updateScene({elements:[]});
ea.copyViewElementsToEAforEditing(ea.getViewElements());
ea.getElements().forEach((el: Mutable<ExcalidrawElement>)=>el.isDeleted=true);
excalidrawAPI.updateScene({
elements: ea.getElements(),
});
ea.clear();
} else {
excalidrawAPI.updateScene({
elements:excalidrawAPI.getSceneElements().filter((el:ExcalidrawElement)=>this.rootNode.embeddedElementIds.includes(el.id))
Expand Down

0 comments on commit 2248cc1

Please sign in to comment.