Skip to content

Commit ed04e89

Browse files
authored
prep for 0.0.16 (#180)
* Set pan duration to 300ms * Add panzoom demo to the readme * Prep changelog for release * Bump version
1 parent d59c227 commit ed04e89

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
66

77
## [Unreleased]
88

9+
## [0.0.16] - 2025-05-07
10+
911
### Added
1012

13+
- Pan & zoom for the graphs in both the IDE extensions and the web version
1114
- Documentation now renders `dot` and `dot-cfg` (CFG-styled DOT diagrams)
12-
- Documentation about our usage of Graphviz
13-
- Documentation about the representation of control flow in the graph
15+
- Added docs about GraphViz tips and tricks
16+
- Added docs about our choices of visuals
1417
- Added support for "special" function detection and process-terminating nodes in the graph.
1518
This is currently only enabled in the `/render` page to slowly build up a collection of
1619
functions to match and confidence in the representation before adding to the main tool.
17-
- When changing the code language, the URL is updated to reflect that.
18-
- Pan & zoom for the graphs in both the IDE extensions and the web version
20+
- In the web demo, URL now updates to reflect the selected language.
1921

2022
### Fixed
2123

@@ -31,8 +33,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
3133
with unexpected recursion in the command. It is also a nicer name.
3234
- Language definitions are now more unified, making it easier to add new languages.
3335
- `language` URL query parameter now takes language name instead of index.
34-
- Sharing now shares full config in addition to code.
35-
- Sharing now uses the `compressed=` query parameter for all information.
36+
- Sharing now includes configuration (color scheme, switch handling, highlighting) in addition to the code.
3637
- Migrated from Bun Test to Vitest. Tests are now run using `bun vitest`.
3738
- Web version layout changed to always fit in one screen (no scrollbar).
3839

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ Custom color schemes are created via the [interactive demo](https://tmr232.githu
5252
4. Paste the config into the `Custom Color Scheme` field in the VSCode extension settings.<br/>
5353
![The Custom Color Scheme field in the settings](media/screenshots/color-scheme/settings-custom.png)
5454

55+
## Pan & Zoom
56+
57+
If the graph is too small, enable the "Pan & Zoom" checkbox.
58+
You can zoom with the mouse wheel, and pan by dragging the mouse.
59+
Additionally, the view will automatically pan to the highlighted node when it changes.
60+
61+
![Demonstration of pan & zoom in VSCode](media/gif/panzoom-demo.gif)
62+
5563
## Supported Languages
5664

5765
- [Go](https://tmr232.github.io/function-graph-overview/?language=go)

media/gif/panzoom-demo.gif

1.72 MB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"//": "START EXTENSION ATTRIBUTES",
9191
"publisher": "tamir-bahar",
9292
"name": "function-graph-overview",
93-
"version": "0.0.15",
93+
"version": "0.0.16",
9494
"description": "Function Graph Overview",
9595
"displayName": "Function Graph Overview",
9696
"icon": "./media/icon.png",

src/components/PanzoomComp.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const zoomable: Action<HTMLElement, ZoomConfig> = (
7979
minScale: 1,
8080
contain: "outside",
8181
cursor: "default",
82+
duration: 300,
8283
});
8384
node.parentElement?.addEventListener("wheel", panzoom.zoomWithWheel);
8485
registerPanzoomOnclick(

0 commit comments

Comments
 (0)