From 3ba8938a800ffc984addda3fc58a6392f763a48c Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 13 Apr 2021 22:29:25 +0200 Subject: [PATCH] Fixed not being able to create more than 1 stylegroup --- juggl/pane/StyleGroups.svelte | 2 +- juggl/viz/stylesheet.ts | 2 +- manifest.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/juggl/pane/StyleGroups.svelte b/juggl/pane/StyleGroups.svelte index 5e5ddbf..cb6371f 100644 --- a/juggl/pane/StyleGroups.svelte +++ b/juggl/pane/StyleGroups.svelte @@ -11,7 +11,7 @@ export let onChangeGroups; export let plugin: JugglPlugin; let onNewGroup = function() { - groups.push(emptyStyleGroup); + groups.push({...emptyStyleGroup}); groups = groups; onChangeGroups(); } diff --git a/juggl/viz/stylesheet.ts b/juggl/viz/stylesheet.ts index 12ce4ca..2eabfd0 100644 --- a/juggl/viz/stylesheet.ts +++ b/juggl/viz/stylesheet.ts @@ -30,7 +30,7 @@ export type Shape = typeof SHAPES[number]; export class Icon { path: string; name: string; - color: string = 'black'; + color: string = '#000000'; } export class StyleGroup { filter: string; diff --git a/manifest.json b/manifest.json index 16886f7..c3b8105 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "juggl", "name": "Juggl", - "version": "1.0.3", + "version": "1.0.4", "minAppVersion": "0.11.5", "description": "Adds a completely interactive, stylable and expandable graph view to Obsidian.", "author": "Emile",