Skip to content

Commit

Permalink
Edit documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed Feb 15, 2024
1 parent a84624d commit e39817a
Show file tree
Hide file tree
Showing 16 changed files with 471 additions and 630 deletions.
Binary file added docs/4-user-guide/interface-labeled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions docs/4-user-guide/interface.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
sidebar_position: 2
---

# User Interface

Visualiser's interface is made of composable panels. You can add, remove, and rearrange the UI to your desire. This allows Visualiser to support a range of tasks, whether you're using it to learn, showcase, or debug algorithms.

![Alt text](interface.png)

![Alt text](interface-labeled.png)

## Core Panels

When you first open Visualiser, it displays the following panels:

### Recipes

### Layers

Allows you to inspect and edit the layers that are currently being rendered.

[See more information on the Layers Panel](./layers).

### Viewport

Displays the visualisation.

[See more information on the Viewport Panel](./viewport).

### Steps

Displays the steps of the visualisation.

[See more information on the Steps Panel](./steps).

## Customising Panels

### Choosing Content for a Panel

You can choose what content to display in a panel by clicking the dropdown menu on the top left.

![Alt text](page-select.png)

### Add and Remove Panels

You can find panel controls in the extras menu on the top right. Add more panels by splitting existing menus horizontally or vertically.

![Alt text](split.png)
Binary file added docs/4-user-guide/interface.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/4-user-guide/layers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 4
---

# Layers Panel

[TODO]
Binary file added docs/4-user-guide/page-select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/4-user-guide/split.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/4-user-guide/steps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 5
---

# Steps Panel

[TODO]
17 changes: 17 additions & 0 deletions docs/4-user-guide/viewport.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
sidebar_position: 3
---

# Viewport Panel

[TODO]

Pipe Adapter

Weighted A*
-> Map support
--> Edit Layer options to specify color of tile
--> Make changes to grid parser
-> Multiple solution

Layer name bug
Binary file added docs/5-tutorials/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 10 additions & 8 deletions docs/5-tutorials/single-agent-grid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ This should be the result:

![Loaded map](load-grid.png)

Or an example can be downloaded [here](SmallMaze.GRID)


## Prepare the Search Trace

You can generate the search trace in a number of ways depending on your solver.
Expand All @@ -47,7 +44,6 @@ You can generate the search trace in a number of ways depending on your solver.
<TabItem value="raw" label="Demo Search Trace">
Download [this](./cross-example.trace.yaml) pre-computed search trace.


The file should start like this:

```yaml title="example.trace.yaml"
Expand All @@ -74,7 +70,7 @@ You can generate the search trace in a number of ways depending on your solver.
id: 96
x: 0
y: 0
- type: destination
- type: destination
id: 228
x: 4
y: 4
Expand All @@ -90,15 +86,21 @@ You can generate the search trace in a number of ways depending on your solver.
- For **Trace**, choose **Choose File**, then pick the search trace from your system.
- Close the **Edit Layer** modal.
- In the **Viewport** panel, click **Fit** to fit the map to the viewport.
</TabItem>
<TabItem value="warthog" label="Warthog">
by default the solver(warthog) comes with a set of algorithms that users are able to choose
TODO: explain on how warthog can be download and used through the terminal and produce a search trace
</TabItem>
<TabItem value="query" label="Query">
By default, Visualiser is bundled with a WebAssembly version of Warthog, a solver for grid maps.
Check that **Warthog (WebAssembly)** is enabled in the **Settings** panel, in the **Connections** tab.
![Alt text](image.png)
## Adding the Query
- In the **Layer** panel, click **+ Layer** to add a new layer.
Expand All @@ -112,10 +114,10 @@ You can generate the search trace in a number of ways depending on your solver.
- Left click on any part of the map that you wanted to be set as a source, then **Set as Source**
- Do the same for the destination click **Set as Destination**
- A green pixel will show up marking the source
</TabItem>
</Tabs>
## Step through the Search Trace
- In the **Steps** panel, choose the search trace layer from the layer dropdown. Here, the layer is named **Cross Example**.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit e39817a

Please sign in to comment.