diff --git a/manifest.json b/manifest.json index 6d6ed67..699fd49 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "image-magician", "name": "Image Magician", - "version": "0.1.4", + "version": "0.1.5", "minAppVersion": "0.15.0", "description": "Supports viewing and exporting various image formats powerd by ImageMagick.", "author": "luxmargos", diff --git a/package.json b/package.json index f7677f5..c7c9ed9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-image-magician-plugin", - "version": "0.1.4", + "version": "0.1.5", "description": "This is a plugin for Obsidian (https://obsidian.md). Supports viewing and exporting various image formats using ImageMagick.", "main": "main.js", "scripts": { diff --git a/src/editor_ext/img_post_processor.ts b/src/editor_ext/img_post_processor.ts index 831b662..14988be 100644 --- a/src/editor_ext/img_post_processor.ts +++ b/src/editor_ext/img_post_processor.ts @@ -273,10 +273,6 @@ export function linkedImgHandler( if (!titleNode.classList.contains("imgk-plugin-hidden")) { titleNode.classList.add("imgk-plugin-hidden"); } - - // titleNode.style.height = "0px"; - // titleNode.style.opacity = "0"; - // titleNode.style.pointerEvents = "none"; } internalEmbed.classList.remove("file-embed"); @@ -547,9 +543,13 @@ export function attachImgFollower( const newWidth = `${imgRect.width}px`; const newHeight = `${imgRect.height}px`; + // /skip : obsidian. This code is intentionally designed for dynamic positioning. imgOverlayEl!.style.left = newLeft; + // /skip : obsidian. This code is intentionally designed for dynamic positioning. imgOverlayEl!.style.top = newTop; + // /skip : obsidian. This code is intentionally designed for dynamic positioning. imgOverlayEl!.style.width = newWidth; + // /skip : obsidian. This code is intentionally designed for dynamic positioning. imgOverlayEl!.style.height = newHeight; }; diff --git a/src/main.ts b/src/main.ts index cc53e8d..e7834de 100644 --- a/src/main.ts +++ b/src/main.ts @@ -419,6 +419,7 @@ export default class ImgMagicianPlugin extends MainPlugin { this.baseResourcePathIdx = -1; if ( Platform.isDesktopApp && + // /skip: obsidian. The plugin will bypass errors, handling them on a case-by-case basis, whether it's on desktop or mobile this.app.vault.adapter instanceof FileSystemAdapter ) { this.baseResourcePath = diff --git a/versions.json b/versions.json index e7ea962..a9cb110 100644 --- a/versions.json +++ b/versions.json @@ -3,5 +3,6 @@ "0.1.1": "0.15.0", "0.1.2": "0.15.0", "0.1.3": "0.15.0", - "0.1.4": "0.15.0" + "0.1.4": "0.15.0", + "0.1.5": "0.15.0" } \ No newline at end of file