Skip to content

Commit 0e4dd5e

Browse files
.
2 parents 2a32e1b + c2530cc commit 0e4dd5e

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ Please consider supporting the plugin. There are many hours of work and effort b
7474
<img src="https://storage.ko-fi.com/cdn/brandasset/v2/support_me_on_kofi_beige.png" alt="Support me on Ko-fi" width="200"/>
7575
</a>
7676

77-
<img src="https://img.shields.io/endpoint?url=https://wakapi.by-mika.dev/api/compat/shields/v1/mika.dev/interval:any/project:obsidian-advanced-canvas&label=Time%20Spent&style=flat&colorA=f4efe7&colorB=ff5e5b" alt="Time Spent" width="200"/>
78-
7977
## Terminology
8078
- **Canvas**: The canvas view is the view in which nodes and edges are displayed.
8179
- **Node**: A node is a single element in a canvas that can contain text, files, or links. (Some people also call it *card* or *element* - but please always use **node**.)
@@ -212,42 +210,42 @@ You can customize the default node styles using the settings. This includes vari
212210
#### Shapes
213211
<details>
214212
<summary>Terminal Shape</summary>
215-
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/docs/flowchart-nodes/terminal.png" alt="Terminal Shape"/>
213+
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/flowchart-nodes/terminal.png" alt="Terminal Shape"/>
216214
</details>
217215

218216
<details>
219217
<summary>Process/Center Shape</summary>
220-
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/docs/flowchart-nodes/process.png" alt="Process/Center Shape"/>
218+
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/flowchart-nodes/process.png" alt="Process/Center Shape"/>
221219
</details>
222220

223221
<details>
224222
<summary>Decision Shape</summary>
225-
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/docs/flowchart-nodes/decision.png" alt="Decision Shape"/>
223+
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/flowchart-nodes/decision.png" alt="Decision Shape"/>
226224
</details>
227225

228226
<details>
229227
<summary>Input/Output Shape</summary>
230-
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/docs/flowchart-nodes/input-output.png" alt="Input/Output Shape"/>
228+
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/flowchart-nodes/input-output.png" alt="Input/Output Shape"/>
231229
</details>
232230

233231
<details>
234232
<summary>On-page Reference Shape</summary>
235-
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/docs/flowchart-nodes/reference.png" alt="On-page Reference Shape"/>
233+
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/flowchart-nodes/reference.png" alt="On-page Reference Shape"/>
236234
</details>
237235

238236
<details>
239237
<summary>Predefined Process Shape</summary>
240-
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/docs/flowchart-nodes/predefined-process.png" alt="Predefined Process Shape"/>
238+
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/flowchart-nodes/predefined-process.png" alt="Predefined Process Shape"/>
241239
</details>
242240

243241
<details>
244242
<summary>Document Shape</summary>
245-
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/docs/flowchart-nodes/document.png" alt="Document Shape"/>
243+
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/flowchart-nodes/document.png" alt="Document Shape"/>
246244
</details>
247245

248246
<details>
249247
<summary>Database Shape</summary>
250-
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/docs/flowchart-nodes/database.png" alt="Database Shape"/>
248+
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/flowchart-nodes/database.png" alt="Database Shape"/>
251249
</details>
252250

253251
### Border Styles

src/canvas-extensions/frontmatter-control-button-canvas-extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class FrontmatterControlButtonCanvasExtension extends CanvasExten
2828
callback: () => {
2929
const propertiesPlugin = this.plugin.app.internalPlugins.plugins['properties']
3030
if (!propertiesPlugin?._loaded) {
31-
new Notice(`Core plugin "Properties" was not found or isn't enabled.`)
31+
new Notice(`Core plugin "Properties view" was not found or isn't enabled. Enable it and restart Obsidian.`)
3232
return
3333
}
3434

src/patchers/properties-patcher.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { TFile } from "obsidian"
55
export default class PropertiesPatcher extends Patcher {
66
protected async patch() {
77
if (!this.plugin.settings.getSetting('canvasMetadataCompatibilityEnabled')) return
8+
if (!this.plugin.app.viewRegistry.viewByType["file-properties"]) return // Core plugin not enabled
89

910
const that = this
1011
await Patcher.waitForViewRequest<PropertiesView>(this.plugin, "file-properties", view => {

0 commit comments

Comments
 (0)