Skip to content

Commit 4a859f8

Browse files
circuit-sketcher-core new features integration: canvas menus updates, library and nodes import/export, changed localstorage to indexedDb for library storage, bug fixes
1 parent d30fd30 commit 4a859f8

File tree

4 files changed

+30
-11
lines changed

4 files changed

+30
-11
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "circuit-sketcher",
33
"name": "Circuit Sketcher",
4-
"version": "1.2.1",
4+
"version": "1.3.0",
55
"minAppVersion": "0.15.0",
66
"description": "Draw circuits on a canvas using circuit-sketcher-core.",
77
"author": "Code Forge Temple",

package-lock.json

Lines changed: 24 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "circuit-sketcher-obsidian-plugin",
3-
"version": "1.2.1",
3+
"version": "1.3.0",
44
"main": "main.js",
55
"author": "Code Forge Temple",
66
"license": "GPL",

src/CircuitSketcherView.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class CircuitSketcherView extends TextFileView {
5151
// #!dev
5252
console.log("CircuitSketcherView.setViewData() - NEW FILE");
5353

54-
LocalStorageManager.setLibrary(await this.plugin.getLibraryFile());
54+
await LocalStorageManager.setLibrary(await this.plugin.getLibraryFile());
5555

5656
const viewDomContent = this.containerEl.children[1];
5757

@@ -77,7 +77,9 @@ export class CircuitSketcherView extends TextFileView {
7777

7878
const fileContents = CanvasManager.getInstance().stringify(true);
7979

80-
this.plugin.setLibraryFile(LocalStorageManager.getLibrary(true));
80+
LocalStorageManager.getLibrary(true).then((library) => {
81+
this.plugin.setLibraryFile(library);
82+
});
8183
this.plugin.setCacheImageFile(this.file?.path, CanvasManager.getInstance().toPng);
8284

8385
return fileContents;

0 commit comments

Comments
 (0)