mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2026-11-27 06:32:42 +00:00
feat: add frame anchors, thumbnails and navigation (#3042)
This commit is contained in:
1 parent
407e11d9e8
commit
87c5de54ed
43 files changed
+1641
-328
No files matched your search
@@ -21,9 +21,11 @@ test("padding edits preserve wiki, Markdown, encoded paths, titles, aliases and
|
||||
['', ''],
|
||||
]) assert.equal(rewriteEmbedPadding(text, 50), expected);
|
||||
assert.equal(rewriteEmbedPadding("![[Map#^area=abcdefgh,padding=50|200]]", null), "![[Map#^area=abcdefgh|200]]");
|
||||
for (const target of ["Map", "Map#^text", "Map#^group=abcdefgh", "Map#^frame=Frame", "Map#^clippedframe=Frame", "Map#^area=", "Map#^area=abc,padding=-1", "Map#^area=abc,padding=1,padding=2"])
|
||||
for (const target of ["Map", "Map#^text", "Map#^group=abcdefgh", "Map#^frame=", "Map#^area=", "Map#^area=abc,padding=-1", "Map#^area=abc,padding=1,padding=2"])
|
||||
assert.equal(withAreaPadding(target, 10), null, target);
|
||||
for (const value of [-1, 2001, NaN, Infinity]) assert.equal(withAreaPadding("Map#^area=abc", value), null);
|
||||
assert.equal(withAreaPadding("Map#^frame=Part, One,padding=20", 50), "Map#^frame=Part, One,padding=50");
|
||||
assert.equal(withAreaPadding("Map#^clippedframe=Part,padding=20, Two", 50), "Map#^clippedframe=Part,padding=20, Two,padding=50");
|
||||
});
|
||||
|
||||
test("padding changes only the owned repeated occurrence in one undo step and preserves target guards", () => {
|
||||
|
||||
Reference in new issue
Block a user