gabriele-cusato_HandTranscr.../HandTranscriptMd/package.json
gabriele-cusato 61329f2f43 fix: collapse/expand animation uses img.naturalWidth for correct height calculation
The collapse animation in the inline SVG embed was broken on Windows due to
  three compounding issues: CSS height transitions don't animate from auto→px in
  Electron; the guard direction was inverted for SVGs shorter than canvasHeight;
  and the canvas auto-widens when the modal is opened on wide screens
  (expandWorld=true), making the real SVG naturalWidth differ from
  settings.canvasWidth, causing the computed target height to be larger than the
  current rendered height and inverting the animation direction.

  Fix: use img.naturalWidth (actual SVG viewBox width) instead of
  settings.canvasWidth for the collapsed height calculation. Also moves
  touch-action from JS style.setProperty to CSS (.hwm_canvas) to resolve the
  Obsidian Required ESLint violation.
2026-03-28 19:03:17 +01:00

31 lines
836 B
JSON

{
"name": "handwriting-to-markdown",
"version": "1.0.0",
"description": "Inline handwriting canvas with conversion to structured markdown",
"main": "main.js",
"type": "module",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json",
"lint": "eslint src/"
},
"keywords": [],
"license": "MIT",
"devDependencies": {
"@eslint/eslintrc": "^3.3.5",
"@types/node": "^16.11.6",
"@typescript-eslint/parser": "^8.57.2",
"esbuild": "0.25.5",
"eslint": "^9.39.4",
"eslint-plugin-obsidianmd": "^0.1.9",
"globals": "^17.4.0",
"jiti": "^2.6.1",
"tslib": "2.4.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.57.2"
},
"dependencies": {
"obsidian": "latest"
}
}