-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
CHANGELOG
52 lines (36 loc) · 2.21 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.6.0] - 20.12.2024
### Changed
- Zooming now uses egui's zoom_delta from Input.
This means that zooming is now performed by ctrl+scroll (cmd+scroll on mac) or pinching.
Previously it was performed by scrolling alone, which collided with scrolling through content in the node's widgets and didn't work for touch controls.
### Added
- NodeLayout enum
To control layout of nodes in the graph
Can be set globally in SnarlStyle and overridden per node with SnarlViewer::node_layout
Defaults to NodeLayout::Basic which is the previous layout
NodeLayout::Sandwich is a new layout that places inputs, body and outputs vertically with inputs on top and outputs on bottom
NodeLayout::FlippedSandwich is the same as Sandwich but with outputs on top and inputs on bottom
- SnarlViewer::draw_input_pin/draw_output_pin can be used to override how pins are drawn.
Default implementation matches old behavior.
This mechanism is meant to replace PinShape::Custom that was removed.
- SnarlViewer::draw_node_background can be used to override how node background is drawn.
Default implementation matches old behavior.
This mechanism is meant to replace BackgroundPattern::Custom that was removed.
- PinPlacement style option in SnarlStyle
This option controls how pins are placed in the node
Inside - pins are placed inside the node frame - default, old behavior
Edge - pin centers are placed on the edge of the node frame
Outside - pins are placed outside the node frame with specified margin
### Removed
- BackgroundPattern::Custom is removed.
It contained opaque function to draw custom background pattern
and permitted !Send and !Sync captures which made SnarlStyle !Send and !Sync as well
- PinShape::Custom is removed.
It is replaced by SnarlViewer::draw_input_pin/draw_output_pin which is more flexible.
- BasicPinShape is removed. SnarlStyle::pin_shape has PinShape type now.
### Fixed
- Crash after centering graph when no nodes are present and adding a node afterwards