From 906b3bdf92f14bbe9dba5cef5d987246e667ed2c Mon Sep 17 00:00:00 2001 From: mxsdlr <117722660+mxsdlr@users.noreply.github.com> Date: Tue, 24 Sep 2024 11:43:29 +0200 Subject: [PATCH 1/2] Update color palette details in README - Change `customColorPalette` to `colorPalette` - Add section about `topPicks` --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cc2aa684..75148a9a 100644 --- a/README.md +++ b/README.md @@ -104,11 +104,13 @@ Plugin settings are grouped into the following sections: - Via the template, you can customize the color palette used by Excalidraw. - Switch to Markdown view. - Scroll down to the bottom of the file and find `"AppState": {`. - - Find `"customColorPalette": {` at the end of the AppState section. - - You may specify the 3 palettes used in Excalidraw by adding any or all of the following 3 variables: - - `"canvasBackground":[], "elementBackground":[], "elementStroke": []`. - - Add a comma-separated list of valid HTML colors (e.g. `#FF0000` for red). - in the array for each of the variables. + - Find `"colorPalette": {` at the end of the AppState section. + - You may specify the 3 palettes used in Excalidraw by adding any or all of the following 3 variables: + - `"canvasBackground":[], "elementBackground":[], "elementStroke": []`. + - Add a comma-separated list of valid HTML colors (e.g. `#FF0000` for red) in the array for each of the variables. + - To change the previewed colors, a `"topPicks": {` may be specified containing the same three keys: + - `"canvasBackground":[], "elementBackground":[], "elementStroke": []`. + - Note that the corresponding arrays must contain 5 elements. - See my videos above for further help. #### Export From 0b5c74dde813562240f5cdb8c60633b202921823 Mon Sep 17 00:00:00 2001 From: mxsdlr <117722660+mxsdlr@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:33:10 +0200 Subject: [PATCH 2/2] Add Decompress JSON hint to README.md - Add hint to "Decompress Excalidraw JSON in Markdown View" setting when editing JSON content --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 75148a9a..4c0d7cd3 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ Plugin settings are grouped into the following sections: #### Templates -- Template for new drawings. The template will restore stroke properties. This means you can set up defaults in your template for stroke color, stroke width, opacity, font family, font size, fill style, stroke style, etc. This also applies to ExcalidrawAutomate. +- Template for new drawings. The template will restore stroke properties. This means you can set up defaults in your template for stroke color, stroke width, opacity, font family, font size, fill style, stroke style, etc. This also applies to ExcalidrawAutomate. With versions 1.6.13 or higher make sure to enable "Decompress Excalidraw JSON in Markdown View" in the settings before editing the JSON in the template. This can be disabled after the canges are performed. - Via the template, you can customize the color palette used by Excalidraw. - Switch to Markdown view. - Scroll down to the bottom of the file and find `"AppState": {`. @@ -229,6 +229,7 @@ For more details, see this [video](https://youtu.be/yZQoJg2RCKI) - `excalidraw-export-dark`: true == Dark mode / false == light mode. - `excalidraw-export-padding`: Specify the export padding for the image. - `excalidraw-export-pngscale`: This only affects export to PNG. Specify the export scale for the image. The typical range is between 0.5 and 5, but you can experiment with other values as well. +- Since 1.6.13, enable "Decompress Excalidraw JSON in Markdown View" in the settings if you want to change any JSON content. ### Embed complete markdown files into your drawings