Skip to content

Commit

Permalink
Added /skip comments
Browse files Browse the repository at this point in the history
  • Loading branch information
luxmargos committed Jan 6, 2024
1 parent f0d8f3d commit 56cfcba
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions src/editor_ext/img_post_processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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;
};

Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 56cfcba

Please sign in to comment.