Skip to content

Commit f0c5728

Browse files
committed
Move release notes to NEWS.md
1 parent fdbd25a commit f0c5728

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

NEWS.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# ModelingToolkitDesigner Release Notes
2+
3+
## v1.4
4+
- supports ModelingToolkit v8 and v9
5+
6+
## v1.3
7+
- updating to ModelingToolkit v9
8+
9+
## v1.1.0
10+
- easier component selection (one only needs to click inside the boarder box)
11+
12+
## v1.0.0
13+
- added icon rotation feature
14+
15+
![rotation](https://github.com/bradcarman/ModelingToolkitDesigner.jl/assets/40798837/8c904030-5d4c-4ba8-a105-f0b098ae842a)
16+
17+
- added keyboard commands
18+
- m: after selecting a component, use the `m` key to turn dragging on. This can be easier then clicking and dragging.
19+
- c: connect
20+
- r: rotate
21+
22+
23+
## v0.3.0
24+
- Connector nodes are now correctly positioned around the component with natural ordering
25+
26+
![moving](https://user-images.githubusercontent.com/40798837/242108325-0736b264-5374-4b63-8823-589c0e447de7.gif)
27+
28+
29+
## v0.2.0
30+
- Settings Files (*.toml) Updates/Breaking Changes
31+
- icon rotation now saved with key `r`, previously was `wall` which was not the best name
32+
- connectors nodes now saved with an underscore: `_name`, this helps prevent a collision with nodes named `x`, `y`, or `r`

README.md

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,9 @@
11
# ModelingToolkitDesigner.jl
22

3-
The ModelingToolkitDesigner.jl package is a helper tool for visualizing and editing ModelingToolkit.jl system connections.
4-
5-
# Updates
6-
## v1.4
7-
- supports ModelingToolkit v8 and v9
8-
9-
## v1.3
10-
- updating to ModelingToolkit v9
11-
12-
## v1.1.0
13-
- easier component selection (one only needs to click inside the boarder box)
14-
15-
## v1.0.0
16-
- added icon rotation feature
17-
18-
![rotation](https://github.com/bradcarman/ModelingToolkitDesigner.jl/assets/40798837/8c904030-5d4c-4ba8-a105-f0b098ae842a)
19-
20-
- added keyboard commands
21-
- m: after selecting a component, use the `m` key to turn dragging on. This can be easier then clicking and dragging.
22-
- c: connect
23-
- r: rotate
24-
25-
26-
## v0.3.0
27-
- Connector nodes are now correctly positioned around the component with natural ordering
28-
29-
![moving](https://user-images.githubusercontent.com/40798837/242108325-0736b264-5374-4b63-8823-589c0e447de7.gif)
30-
31-
32-
## v0.2.0
33-
- Settings Files (*.toml) Updates/Breaking Changes
34-
- icon rotation now saved with key `r`, previously was `wall` which was not the best name
35-
- connectors nodes now saved with an underscore: `_name`, this helps prevent a collision with nodes named `x`, `y`, or `r`
3+
The ModelingToolkitDesigner.jl package is a helper tool for visualizing and editing [ModelingToolkit.jl](https://github.com/SciML/ModelingToolkit.jl) system connections.
364

375
## Examples
38-
Examples can be found in the "examples" folder.
6+
Examples can be found in the `examples` folder.
397

408
### Hydraulic Example
419

@@ -49,7 +17,7 @@ Examples can be found in the "examples" folder.
4917

5018
![example3](examples/mechanical.svg)
5119

52-
# Tutorial
20+
## Tutorial
5321

5422
Let's start with a simple hydraulic system with no connections defined yet...
5523

@@ -119,14 +87,14 @@ connect(vol.port, res.port_b)
11987

12088
After the original `system()` component function is updated with the connection equations, the connections will be re-drawn automatically when using `ModelingToolkitDesigner.view()`. *Note: CairoMakie vector based images can also be generated by passing `false` to the 2nd argument of `view()` (i.e. the `interactive` variable).*
12189

122-
# Hierarchy
90+
## Hierarchy
12391
If a component has a double lined box then it is possible to "look under the hood". Simply select the component and click __open__.
12492

12593
![step8-9](https://user-images.githubusercontent.com/40798837/228666972-14ea5032-52c6-4447-a97b-383356fbcbcf.png)
12694

12795
Edits made to sub-components can be saved and loaded directly or indirectly.
12896

129-
# Pass Thrus
97+
## Pass Thrus
13098
To generate more esthetic diagrams, one can use as special kind of component called a `PassThru`, which simply defines 2 or more connected `connectors` to serve as a corner, tee, or any other junction. Simply define a component function starting with `PassThru` and ModelingToolkitDesigner.jl will recognize it as a special component type. For example for a corner with 2 connection points:
13199

132100

@@ -172,7 +140,7 @@ Adding these components to your system will then allow for corners, tees, etc. t
172140
![step10-11](https://user-images.githubusercontent.com/40798837/229201536-4444a037-18b3-4efd-bc93-d2c182abf533.png)
173141

174142

175-
# Icons
143+
## Icons
176144
ModelingToolkitDesigner.jl comes with icons for the ModelingToolkitStandardLibrary.jl pre-loaded. For custom components, icons are loaded from either the `path` variable supplied to `ODESystemDesign()` or from an `icons` folder of the package namespace. To find the paths ModelingToolkitDesign.jl is searching, run the following on the component of interest (for example `sys.vol`)
177145

178146
```julia
@@ -184,7 +152,7 @@ julia> println.(ModelingToolkitDesigner.get_icons(sys.vol, path));
184152

185153
The first file location comes from the `path` variable. The second is looking for a folder `icons` in the component parent package, in this case `ModelingToolkitStandardLibrary`, and the third path is from the `icons` folder of this `ModelingToolkitDesigner` package. The first real file is the chosen icon load path. Feel free to contribute icons here for any other public component libraries.
186154

187-
## Icon Rotation
155+
### Icon Rotation
188156
Rotate an icon using the button or key `r`. The icon rotation is controlled by the `r` atribute in the saved `.toml` design file. The default direction is "E" for east. The image direciton can change to any "N","S","E","W". For example, to rotate the capacitor icon by -90 degrees (i.e. from "E" to "N") simply edit the design file as
189157

190158
```
@@ -195,12 +163,12 @@ y = 0.29
195163
r = "N"
196164
```
197165

198-
# Colors
166+
## Colors
199167
ModelingToolkitDesigner.jl colors the connections based on `ModelingToolkitDesigner.design_colors`. Colors for the ModelingToolkitStandardLibrary.jl are already loaded. To add a custom connector color, simply use `add_color(system::ODESystem, color::Symbol)` where `system` is a reference to the connector (e.g. `sys.vol.port`) and `color` is a named color from [Colors.jl](https://juliagraphics.github.io/Colors.jl/stable/namedcolors/).
200168

201-
# TODO
169+
## TODO
202170
- Finish adding icons for the ModelingToolkitStandardLibrary.jl
203171
- Improve text positioning and fontsize
204172
- How to include connection equations automatically, maybe implement the `input` macro
205173
- Provide `PassThru`'s without requiring user to add `PassThru` components to ODESystem
206-
- Add documentation
174+
- Add documentation

0 commit comments

Comments
 (0)