Commit graph

7 commits

Author SHA1 Message Date
gabriele-cusato
c1dc48ab28 fix: resolve ESLint errors, fix parser empty values and TABLE rows, bump to 1.0.1
- Fix collapse/expand animation: use img.naturalWidth (actual SVG viewBox width)
    instead of settings.canvasWidth, which could differ when the canvas auto-widened
    on wide screens; add WAAPI animation replacing CSS height transition
  - Add resolveJsonModule to tsconfig to fix i18n.ts JSON import typing errors
  - Cast JSON.parse results to explicit types in embed.ts and svg-utils.ts
  - Replace Vault.delete() with FileManager.trashFile() in embed.ts and editor-view.ts
  - Remove unused MarkdownView import from main.ts
  - Remove stale eslint-disable comments on WAAPI style assignments
  - Fix md-parser: preserve empty comma-separated values in LIST, NUMLIST, CHECK
    and TABLE headers (removed .filter(item => item))
  - Fix md-parser TABLE: remove body-row continuation (rows ending with comma were
    merged with the next line, causing multiple rows to collapse into one)
  - Bump version to 1.0.1 in manifest.json, package.json, versions.json
2026-03-28 20:04:42 +01:00
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
gabriele-cusato
f4d585d03b spostato manifest nella root di progetto 2026-03-27 12:01:34 +01:00
gabriele-cusato
47efae3c04 modifiche qos al progetto 2026-03-25 12:56:22 +01:00
gabriele-cusato
5e76163f90 fixato anche il problema delle barre vuote nell'overlay di disegno e la versione a 1.0.0 2026-03-24 22:27:44 +01:00
gabriele-cusato
0008e40bd2 aggiunte lingue, fixati bug, mancherebbe solo il bug su mobile del ridimensionamento e l'aggiunta nelle impostazioni per l'aggiunta delle keyword 2026-03-24 18:28:50 +01:00
gabriele-cusato
d543fcdb97 primo commit, vedere claude.md per storico 2026-03-15 13:25:50 +01:00