Releases: zsviczian/obsidian-excalidraw-plugin
Releases · zsviczian/obsidian-excalidraw-plugin
Excalidraw 1.3.0
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
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
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
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
Excalidraw 1.2.20
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
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
Fixed:
- Exit full-screen mode not working on the second screen (screen without taskbar - windows 10).
Excalidraw 1.2.17
Fix:
- #130 Markdown loses focus in side by side mode
Changed feature:
- #121 and #129
Command PaletteCreate a new drawing - IN A NEW PANE - and embed into active document
andCreate a new drawing - IN THE CURRENT ACTIVE PANE - and embed into active document
will use the Vault'sDefault 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
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
---