Skip to main content

Extensions

Adapters

Adapters implement the Visualiser Adapter Protocol to connect solvers to Posthoc.

Built-in adapters

NameURLConnection TypeDescription
Basic Mapsinternal://basic-mapsInternalA collection of basic grid maps.

Other adapters

NameURLConnection TypeDescription
Warthog (WebAssembly)https://cdn.jsdelivr.net/gh/ShortestPathLab/posthoc-app@adapter-warthog-wasm-dist/warthog-wasm.mjsWeb WorkerSolver adapter for Warthog & Roadhog

You can find more adapters here.

Renderers

Renderers are used by the viewport view to render visualisations. They're defined by the primitives they support. For example, the Pixel renderer supports drawing rect, circle etc., so any map or search trace that compiles to those primitives can be drawn by Pixel. The API for renderers are yet to be finalised. We'll soon let you define custom renderers.

Built-in renderers

NameURLConnection TypeDescription
Pixelinternal://d2-rendererInternalComfortably performant 2D renderer. Provides rect, circle, path, polygon.
Pixel Nanointernal://d2-minimal-rendererInternalSimple 2D renderer. Provides rect, circle, path, polygon.

Map support

Maps are an escape-hatch from search traces, and allows you to hard-code a visualisation for any filetype.

Posthoc supports the following map formats by default. This list also shows up in Settings view > Extensions > Map support. We'll soon let you define custom formats via extensions.

Read about built-in map support here.