Skip to content

Releases: holxsam/tldraw-in-obsidian

1.12.0

04 Nov 17:46
Compare
Choose a tag to compare
  • Removed persistence key based cross-tab synchronization of drawings, and replaced it with a custom implementation
  • Improved file data consistency when editing the same tldraw markdown file across multiple tabs
  • Better resource management for assets
  • When tldraw json in markdown file is modified by hand, update any existing views.
  • Fix some css styling issues on light mode
  • better memory management within FileView implementations
  • Add basic ability to view asset library by clicking the new "library" icon button in the tldraw views
  • Patch tldraw package to add support for pop-out windows
  • Change file destination options to allow for colocation of files
  • Update file search modal for user experience
  • Various code refactoring

Full Changelog: 1.9.0...1.12.0

1.9.0

13 Oct 12:30
Compare
Choose a tag to compare

Add an option to download default icons and default fonts in the settings tab for offline use #44
Full Changelog: 1.8.1...1.9.0

1.8.1

05 Oct 03:58
Compare
Choose a tag to compare

Issue: #55

  • Add a setting to control showing the background for markdown embeds
  • Add a setting to control showing the background dotted pattern for markdown embeds
  • Add alt text property showBg to control showing the background for an individual markdown embed
    • showBg=<value> where <value> is one of the following yes, no, true, or false
  • Fix bug that prevented loading the plugin when loading settings in now deleted release 1.8.0

Full Changelog: 1.7.3...1.8.1

Tldraw in Obsidian 1.7.3

30 Sep 15:13
Compare
Choose a tag to compare

Tldraw In Obsidan 1.7.2

18 Sep 14:37
Compare
Choose a tag to compare

Bug fix:

  • Read assets that were previously stored in indexedDB

Full Changelog: 1.7.1...1.7.2

Tldraw In Obsidan 1.7.1

18 Sep 12:00
Compare
Choose a tag to compare

This release should effectively allow you to synchronize your drawings with a sync service since it stores all images that are referenced in the drawings as files in your vault.

  • Store images inserted into tldraw drawing as attachments by implementing the TLAssetStore interface
  • Track image attachments inside tldraw drawing by inserting an embed link and block reference in the markdown file
  • Patch TldrawImage component so that it can utitize our custom TLAssetStore interface
  • Add a newline character after the TLDATE_DELIMITER_END due to cached metadata not being parsed after the json code block in the markdown file

There was an issue with the previous release, 1.7.0 which was deleted quickly after publishing. Images that were previously attached to drawings before this update did not show up. I have updated the way block references are stored in the tldraw json data in 1.7.1 vs 1.7.0, so for this reason I have removed that release. There should be no issue with this release regarding that problem.

Full Changelog: 1.6.0...1.7.1

1.6.0

14 Sep 11:50
Compare
Choose a tag to compare
  • Synchronize tldraw document across multiple workspace leafs
  • Listen to updates on tldraw markdown file when it is embed in markdown
Screencast.from.2024-09-14.07-52-49.mp4
Screencast.from.2024-09-14.07-54-10.mp4

Full Changelog: 1.5.2...1.6.0

Tldraw In Obsidian 1.5.2

06 Sep 08:13
Compare
Choose a tag to compare
  • Replace embed context bar with context menu
  • Improve mobile touch interactions with embed view
  • Fix a small bug where image bounds weren't reset when removing them from alt text in embed view

Tldraw In Obsidian 1.5.0

05 Sep 22:06
Compare
Choose a tag to compare

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
  • 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 and pos 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

Tldraw In Obsidian 1.4.2

29 Aug 08:33
Compare
Choose a tag to compare

#41 cont'd
Full Changelog: 1.4.1...1.4.2