You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,15 @@ Advanced Canvas enables .canvas files to be indexed by the metadata cache. This
124
124
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/edge-metadata-cache.png" alt="Outgoing Link Using An Edge Example"/>
125
125
</details>
126
126
127
+
### Technical Details
128
+
- The file cache of a .canvas file now contains a value for the hash key (Generated from the filepath) instead of an empty string
129
+
- Check the `app.metadataCache.fileCache[<filepath>]` object to see the changes
130
+
- The metadata cache is located in the `app.metadataCache` object - the same object that is used by Obsidian for markdown files
131
+
- e.g. `app.metadataCache.getCache`/`app.metadataCache.getFileCache` now works with .canvas files
132
+
- The `position` object which is found inside metadata cache entries now contains a new key `nodeId` for .canvas files
133
+
- The resolved links object now has entries for .canvas files
134
+
- The `app.metadataCache.resolvedLinks` object values for .canvas files are implemented in the exact same way as for markdown files
0 commit comments