Skip to content

fix(visualise): improve canvas navigation and initial view#2

Open
melkamzeranteneh wants to merge 1 commit into
MesTTo:mainfrom
melkamzeranteneh:webview-fixes
Open

fix(visualise): improve canvas navigation and initial view#2
melkamzeranteneh wants to merge 1 commit into
MesTTo:mainfrom
melkamzeranteneh:webview-fixes

Conversation

@melkamzeranteneh

Copy link
Copy Markdown

Summary
This PR improves the usability of the MeTTaGrapher webview by enhancing interaction and resolving a packaging
configuration issue.

  • Canvas Navigation: Added drag-to-pan functionality. Dragging now only initiates on the canvas background,
    preserving existing node-interaction behavior.
  • Initial View: Added an automatic fitView() call on initial load to ensure graphs are properly centered and
    visible regardless of code length.
  • Packaging: Added node_modules/metta-ts-typescript-plugin to .vscodeignore to resolve VSIX packaging/compilation
    issues.

Implementation Checkpoint

  • Initial graph framing: fitView() now triggered automatically on load.
  • Drag-to-pan navigation: Implemented (background-click only).
  • Packaging fix: Updated .vscodeignore.

node_modules/metta-typescript-plugin at .vscodeignore - ln42

2. The graph now can be moved by using the cursor sliding.
@MesTTo MesTTo added the dependencies Dependency updates or dependency compatibility. label Jul 14, 2026
@MesTTo

MesTTo commented Jul 14, 2026

Copy link
Copy Markdown
Owner

this requires a metta ts fix, which ill be working on. and also running npm run package die with error: not a file: node_modules/metta-ts-typescript -plugin , and also the file:./typescript-plugin dependency itself, because npm documented default is install-links=false you make the symlink and vsce fails.. now with it true, it would copy it at install time, but taht would stil lead to module not found. anyways thank you for flagging this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates or dependency compatibility.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants