Skip to content

Commit 6e97b2b

Browse files
Updated documentation
1 parent 9134c43 commit 6e97b2b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ Advanced Canvas enables .canvas files to be indexed by the metadata cache. This
124124
<img src="https://raw.githubusercontent.com/Developer-Mike/obsidian-advanced-canvas/main/assets/edge-metadata-cache.png" alt="Outgoing Link Using An Edge Example"/>
125125
</details>
126126

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
135+
127136
## Better Default Settings
128137
- Enforce all new nodes to be aligned to the grid
129138
- Customize default text node size

assets/metadata-cache-support.png

-14.8 KB
Loading

0 commit comments

Comments
 (0)