Skip to content

Releases: zsviczian/obsidian-excalidraw-plugin

Excalidraw 1.3.0

03 Sep 16:47
Compare
Choose a tag to compare

New Features

I have extended ExcalidrawAutomate with functions that allow a script to directly add elements to an active Excalidraw View. This paves the way to feature-rich Excalidraw macros, such as adding activities to a flowchart.

2021-09-03.09-24-32.mp4

These are the new functions:

getElements():ExcalidrawElement[];
getElement(id:string):ExcalidrawElement;
//View Manipulation
targetView: ExcalidrawView;
setView(view:ExcalidrawView|"first"|"active"):ExcalidrawView;
getExcalidrawAPI():any;
getViewSelectedElement():ExcalidrawElement;
connectObjectWithViewSelectedElement(
  objectA:string,
  connectionA: ConnectionPoint, 
  connectionB: ConnectionPoint, 
  formatting?: { 
    numberOfPoints?: number,
    startArrowHead?:string,
    endArrowHead?:string, 
    padding?: number
}):boolean;
addElementsToView(repositionToCursor:boolean, save:boolean):Promise<boolean>;

You can find further details about the API functions here: https://zsviczian.github.io/obsidian-excalidraw-plugin/#api-documentation

Excalidarw 1.2.24

31 Aug 18:40
Compare
Choose a tag to compare

Fixed

  • #133 gridSize is not picked up from Template
  • also added ExcalidrawAutomate.canvas.gridSize parameter to the automation interface.
  • Template now does not need to include the .md file extension

Excalidraw 1.2.23

29 Aug 16:59
Compare
Choose a tag to compare

Fixed

  • Error when leaving fullscreen, if two Excalidraw drawings were open side by side
  • Error when text element is not yet present in the underlying markdown document and a link-hover event is triggered
  • Name of the command palette action to switch between RAW and PREVIEW mode, changed from LOCK/UNLOCK to RAW/PREVIEW.

New

  • Published wrapText(text:string, lineLen:number):string via ExcalidrawAutomate.

Excalidraw 1.2.22

29 Aug 08:32
Compare
Choose a tag to compare

Fixed:

  • Transclusion of blocks did not work as expected when the block was a bullet point.

Improved:

  • When hovering a block reference, the block text will appear in the hover preview, not the entire document

Excalidraw 1.2.21

28 Aug 14:20
Compare
Choose a tag to compare

Fixed

  • Blockquote transclusion

image

Excalidraw 1.2.20

28 Aug 13:56
Compare
Choose a tag to compare

New Feature

  • Implemented basic word wrapping for embedded text. This partially resolves: #118
    Include max line length after transclusion in curly brackets: ![[File#^blockref]]{40}
    This example will wrap text to achieve max 40 characters per line.

Excalidraw 1.2.19

28 Aug 09:57
Compare
Choose a tag to compare

New Feature

  • improved block embedding. Now supports
    • multiline blocks
    line 1
    line 2
    line 3 
    ^blockref
  • and heading references e.g. ![[file#section]]

Excalidraw 1.2.18

27 Aug 17:12
Compare
Choose a tag to compare

Fixed:

  • Exit full-screen mode not working on the second screen (screen without taskbar - windows 10).

Excalidraw 1.2.17

25 Aug 18:48
Compare
Choose a tag to compare

Fix:

  • #130 Markdown loses focus in side by side mode

Changed feature:

  • #121 and #129
    Command Palette Create a new drawing - IN A NEW PANE - and embed into active document and Create a new drawing - IN THE CURRENT ACTIVE PANE - and embed into active document will use the Vault's Default location for new attachments setting + the filename of the active file + "_" + Excalidraw's filename date setting for the filename of the new drawing.
  • Excalidraw will now process ![[drawing.md|100%|css-class]] correctly. The width of the drawing in the resulting HTML will correctly show 100%. This feature is useful when including Excalidraw images into presentations with the Slides core plugin.

Excalidraw 1.2.16

22 Aug 11:05
Compare
Choose a tag to compare

Fixes

  • On rare occasions, when closing Obsidian with an Excalidraw file open, syncing the drawing with the underlying markdown before saving was in a race condition that resulted in an invalid JSON. I moved this code into an await block
  • Changed fullscreen mode, to be even more fullscreen
  • Hover preview did not show in fullscreen mode, I added an ugly workaround, for now, to reattach the popover to the contentEl, because in fullscreen mode only the contentEl is visible, other DIVs are hidden.
  • Changed how image updates happen after settings changes. Moved reloadRequests and embedUpdates to settings.hide().

New feature

  • Added setting to have a different prefix for URL links.
  • Added a new frontmatter switch for document-specific URL prefix.
---

excalidraw-plugin: parsed/raw
excalidraw-link-prefix: "📍"
excalidraw-url-prefix: "🌐"
excalidraw-link-brackets: false/true

---