Skip to content

Commit

Permalink
docs: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Raúl Gotor committed Jan 14, 2024
1 parent 2815fde commit 3b660a1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to
* `hide-name`, `hide-address` and `hide-size` style properties to hide specific visual elements
* `flags` can be specified at map file as well
* `size` property at root level to modify the document size
* `labels` property can go on the left side as well

## [0.2.0] - 2023-12-14

Expand Down
43 changes: 39 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ For each area, the following characteristics of an area can be defined:
- area size in pixels
- `range`: **[Optional, (0, no limit)]** **[min, max]**
- range of addresses that will be taken into account in this area.
// - `start`: **[start, end]** force area to start in to a given address
# - `start`: **[start, end]** force area to start in to a given address
- `section-size`: **[Optional, (0, no limit)]** **[min, max]**
- size range of the sections that should be shown. Exclude others.
- `style`: **[Optional, default: parent style]**
Expand All @@ -201,6 +201,20 @@ For each area, the following characteristics of an area can be defined:
- flags to append to the specified section/s. See [Flags](#### Section flags) section.
- `style`: **[Optional, parent style]**
- style properties to or modify to the specified section/s
- `labels`: **[Optional, none]**
- Add text labels to specific memory positions of the current area
- `address`:
- Memory address where the label should be placed
- `text`:
- Text to display for this label
- `lenght`: **[Optional, none]**
- lenght of the label line in pixels
- `directions`: **[Optional, none]**
- direction or list of directions for the arrow head. Possible values are none, `in`, `out` or both.
- `side`: **[Optional, `right`]**
- Area side at which the label should be placed
- `style`: **[Optional, parent style]**
- style properties to or modify to the specified section/s

Below an example of area definition:

Expand All @@ -220,6 +234,27 @@ areas:
style:
hide-size: true
```
#### Labels

Labels can bind a text string with a specific memory position. This property falls inside `area`. A partial example can
be seen below:

```yaml
areas:
- area:
labels:
- address: 0xe8043800
text: In direction
length: 150
directions: in
style:
stroke-dasharray: '5,1,3,1,3'
# ...
```

<img style="display: block; margin-left: auto; margin-right: auto;" src="examples/label_example_map.svg">

> See `examples/label_example_config.yaml` for a full example.

#### Section flags

Expand Down Expand Up @@ -306,13 +341,13 @@ At the folder examples, there are a series of configurations and map `.yaml` fil

- [x] Labels at specific memory addresses
- [x] Area titles
- [ ] Links across specific areas
- [ ] Choose side of the labels
- [x] Links across specific areas
- [x] Choose side of the labels
- [x] Memory direction
- [x] Hide specific elements
- [ ] Memory size in bytes
- [ ] Section links across breaks
- [ ] Friendly name and identifier
- [x] Friendly name and identifier
- [ ] Legend
- [ ] Area representation different from section
- [ ] Make `type` default to `section`
Expand Down
2 changes: 1 addition & 1 deletion examples/label_example_map.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3b660a1

Please sign in to comment.