Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
* Support rendering tooltips. ([#26][#26])
* Add focus outlines around nodes and edges. ([#27][#27])
* Update `stroke_style: dashed` to mean `dasharray:4`. ([#27][#27])
* Fix duplication of tailwind classes on edges. ([#28][#28])

[#26]: https://github.com/azriel91/disposition/pull/26
[#27]: https://github.com/azriel91/disposition/pull/27
[#28]: https://github.com/azriel91/disposition/pull/28


## 0.1.0 (2026-04-11)
Expand Down
4 changes: 2 additions & 2 deletions app/playground/src/components/editor/render_options_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const RADIO_LABEL_CLASS: &str = "\
///
/// Allows the user to configure:
///
/// * `edge_curvature` -- whether edges are drawn as smooth curves or orthogonal
/// * `edge_curvature`: whether edges are drawn as smooth curves or orthogonal
/// lines.
/// * `rank_dir` -- direction that edges connect nodes.
/// * `rank_dir`: direction that edges connect nodes.
#[component]
pub fn RenderOptionsPage(input_diagram: Signal<InputDiagram<'static>>) -> Element {
let edge_curvature = input_diagram.read().render_options.edge_curvature;
Expand Down
11 changes: 5 additions & 6 deletions app/playground/src/editor_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ pub struct EditorState {
///
/// # Examples
///
/// * `Some("proc_app_dev")` -- focus the process card with ID
/// `proc_app_dev`.
/// * `Some("proc_app_dev_step_2")` -- expand the `proc_app_dev` card, then
/// * `Some("proc_app_dev")`: focus the process card with ID `proc_app_dev`.
/// * `Some("proc_app_dev_step_2")`: expand the `proc_app_dev` card, then
/// focus the third step row inside it.
/// * `None` -- no field to focus (the default).
/// * `None`: no field to focus (the default).
#[serde(default, skip_serializing_if = "Option::is_none")]
pub focus_field: Option<String>,

Expand All @@ -63,8 +62,8 @@ pub struct EditorState {
///
/// # Examples
///
/// * `true` -- the SVG preview fills the page on load.
/// * `false` -- normal editor layout (the default).
/// * `true`: the SVG preview fills the page on load.
/// * `false`: normal editor layout (the default).
#[serde(default, skip_serializing_if = "is_false")]
pub svg_preview_expanded: bool,

Expand Down
6 changes: 3 additions & 3 deletions app/playground/src/undo_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ const MAX_ENTRIES: usize = 200;
///
/// # Fields
///
/// * `entries` -- the ordered list of snapshots, oldest first.
/// * `cursor` -- index into `entries` that represents the *current* state. Undo
/// * `entries`: the ordered list of snapshots, oldest first.
/// * `cursor`: index into `entries` that represents the *current* state. Undo
/// moves the cursor backwards; redo moves it forwards.
/// * `skip_next_push` -- flag used to prevent the memo that watches the
/// * `skip_next_push`: flag used to prevent the memo that watches the
/// `input_diagram` signal from recording a snapshot when the change was
/// caused by an undo/redo operation itself.
#[derive(Clone, Debug)]
Expand Down
8 changes: 4 additions & 4 deletions crate/input_ir_rt/src/input_diagram_theme_sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use crate::ThemeValueSource;
///
/// For each theme map entry, the source is:
///
/// * `UserInput` -- if the key is present in the overlay diagram.
/// * `BaseDiagram` -- if the key is only present in the base diagram.
/// * `UserInput`: if the key is present in the overlay diagram.
/// * `BaseDiagram`: if the key is only present in the base diagram.
///
/// The computation is done on-the-fly by checking the overlay diagram.
/// Since the overlay is typically small, this is efficient.
Expand Down Expand Up @@ -44,8 +44,8 @@ impl<'a> InputDiagramThemeSources<'a> {
///
/// # Parameters
///
/// * `base` -- the base diagram, typically from `InputDiagram::base()`.
/// * `overlay` -- the user's overlay diagram before merging.
/// * `base`: the base diagram, typically from `InputDiagram::base()`.
/// * `overlay`: the user's overlay diagram before merging.
pub fn new(base: &'a InputDiagram<'static>, overlay: &'a InputDiagram<'static>) -> Self {
Self { base, overlay }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const CLASSES_BUFFER_WRITE_FAIL: &str = "Failed to write string to buffer";
///
/// This struct holds a map of [`ThemeAttr`] to their resolved string values,
/// which are then used to generate the appropriate tailwind CSS classes.
#[derive(Default)]
#[derive(Clone, Default)]
pub(crate) struct TailwindClassState<'tw_state> {
/// Map of theme attributes to their resolved values.
pub(crate) attrs: Map<ThemeAttr, Cow<'tw_state, str>>,
Expand Down
Loading
Loading