Tldraw In Obsidian 1.5.0
Custom icons #44
- Add ability to override individual icons
- Add ability to select a vault folder to override icons with
Fix bug where trying to select text inside the embed view's interactive mode would exit the interactive mode.
Embed View updates
- Switch between an image mode and interactive mode in embed view
- Uses tldraw's built-in
TldrawImage
component to render an svg image - Retain viewport bounds when exiting
interactive
for the tab's editing session
- Uses tldraw's built-in
- Ability to toggle the background in
image
mode
Add ability to specify custom bounds for embed view by adding in "alt" text. for example if you have an embed called my-embed.md
you could do ![[my-embed.md|pos=525,185;size=100,120]]
where the "alt" text is pos=525,185;size=100,120
. Note that there is a semicolon separating the two properties.
size
andpos
fields are available to use in the "alt" text of the embed,size=<width>,<height>
pos=<x_offset>,<y_offset>
pos
field is optional- separate each field with
;
, e.g.size=1280,720;pos=500,20
- Added a dotted white background in the embed to differentiate transparent areas
Fix bug where embed view wouldn't reappear when returning to it after scrolling away.
Work-around for #46
- Open the command palette (CTRL+p)
- Type
.tldr
and select the "create new drawing" option - Open the recovered file containing the affected drawing
- Select all the shapes (CTRL+a), and copy them to your clipboard
- Go to the newly created
.tldr
drawing and paste - Nice.
The images should now be stored in local storage instead of the file.
Full Changelog: 1.4.2...1.5.0