Commit graph

18 commits

Author SHA1 Message Date
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
791e5870c9 fix: apply all required Obsidian community plugin bot fixes
Required fixes:
  - recognizer.ts: fetch() → requestUrl() (Obsidian API)
  - settings.ts: createEl('h2') → Setting.setHeading()
  - parser.test.ts: console.log → console.debug (4 occurrences)
  - md-parser.ts: remove unnecessary escape in char class [^\s\-] → [^\s-]
  - main.ts: async callbacks → void (async()=>{})() pattern; menu as any → as unknown as
  - embed.ts / editor-view.ts: innerHTML → setIcon(); key: string → I18nKey; async handlers wrapped in void
  - editor-view.ts: setState(state: any) → (state: unknown, result: ViewStateResult); querySelector generic
  - i18n.ts: window as any → typed cast; export type I18nKey
  - styles.css: CSS utility classes and CSS vars replace inline styles

  Bug fixes found during testing:
  - setCssProps is a method (el.setCssProps), not a standalone export — caused white modal
  - collapse animation broken after expand: replaced rAF with forced reflow (void wrapper.offsetHeight)
  - md-parser: // LIST with space not recognized — added \s* after // in both regexes
2026-03-28 00:54:31 +01:00
gabriele-cusato
e02f936401 aggiunto layer di caricamento quando faccio partire la conversione 2026-03-25 20:52:33 +01:00
gabriele-cusato
d8e5aa0b30 merge del branch feature overlay 2026-03-25 13:03:55 +01:00
gabriele-cusato
8dd8244d4f piccola modifica alle settings per la chiave gemini 2026-03-25 13:02:58 +01:00
gabriele-cusato
47efae3c04 modifiche qos al progetto 2026-03-25 12:56:22 +01:00
gabriele-cusato
7da1c09850 abbiamo quasi finito, manca solo il fatto di non pixelare il disegno seppur mantenendo schermo intero nell'overlay per avere piu spazio per disegnare. E ovviamente quello nelle impostazioni per mettere keyword custom 2026-03-24 20:50:36 +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
e94264e3cf migliorato ocr, aggiungendo anche il supporto alle <keyword> 2026-03-23 22:21:57 +01:00
gabriele-cusato
0479205d6e commit dopo il pull necessario 2026-03-23 18:59:31 +01:00
gabriele-cusato
dd8db22ba2 aggiustato piccolo bug grafico su android 2026-03-23 15:45:35 +01:00
gabriele-cusato
3993877e1b siamo arrivati ad un buon livello di grafica e funzionalità 2026-03-23 15:15:12 +01:00
gabriele-cusato
315e5f597e accettato il limite dell'handwriting, corretti vari bug 2026-03-23 02:03:11 +01:00
gabriele-cusato
32f1e76ce5 test di passare all'svg 2026-03-22 22:03:45 +01:00
gabriele-cusato
f1dadea134 provato modifiche per far funzionare handwriting ma non c'è nulla da fare, anche handwriting notes non funziona, quindi non c'è nulla da fare per adesso. Per monitorare il problema:
il posto migliore è il repository Chromium, che è il motore WebView di Android:

  - Bug tracker Chromium: https://bugs.chromium.org — cerca "StylusWritingManager" o "stylus handwriting WebView"                                                                                                                       - Issue del plugin Ink (stessa identica situazione): https://github.com/daledesilva/obsidian_ink/issues/156 — se qualcuno trova un fix lì, vale anche per noi
                                                                                                                                                                                                                                        Il problema è a livello di Chromium/Android WebView, quindi un fix arriverebbe tramite un aggiornamento di Chrome/WebView sul dispositivo, non tramite Obsidian.
2026-03-22 18:23:41 +01:00
gabriele-cusato
71eef066b7 confermato che purtroppo è un limite di obsidian / chrome, non si puo risolvere, farò una semplice preview e basta nel documento 2026-03-16 08:54:35 +01:00
gabriele-cusato
d51f8f54ba verificato limite architetturale, anche con svg, se scrivo nel canvas nel documento si attiva la modalità drawing e non viene piu preso l'handwriting. Ormai le strade da provare su questo sono poche. Si potrebbe mettere uno switch, ovvero se io voglio handwriting, i riquadri non si vedono ma se ci clicco poi si apre la nuova scheda, altrimenti se non mi interessa posso avere la preview direttamente nel documento. 2026-03-16 00:03:31 +01:00
gabriele-cusato
d543fcdb97 primo commit, vedere claude.md per storico 2026-03-15 13:25:50 +01:00