Skip to content

Commit bd77e7b

Browse files
committed
fix: correct link positions during zoom and enable workspace examples
- Update Pin component to report unscaled relative coordinates to maintain consistency. - Adjust link path computation and hit-testing to correctly scale world-space pin offsets by zoom. - Enable workspace and add default Slint backend features (winit, femtovg) to allow examples to run. - Update documentation and example Cargo.toml files to use workspace dependencies.
1 parent ec9da72 commit bd77e7b

14 files changed

Lines changed: 3637 additions & 585 deletions

File tree

AGENTS.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ This is the **Slint Node Editor** library (`slint-node-editor`), a generic Slint
88

99
## Build Commands
1010

11+
All examples can be run from the root directory using the `-p` (package) flag:
12+
1113
```bash
1214
# Build and run the full-featured example
1315
cargo run -p advanced
@@ -18,11 +20,17 @@ cargo run -p minimal
1820
# Build and run the custom shapes example
1921
cargo run -p custom-shapes
2022

23+
# Build and run the animated links example
24+
cargo run -p animated-links
25+
26+
# Build and run the pin compatibility example
27+
cargo run -p pin-compatibility
28+
2129
# Build and run the zoom stress test (LOD system demo)
2230
cargo run -p zoom-stress-test
2331

24-
# Check compilation without running
25-
cargo check
32+
# Check compilation of the library and all examples
33+
cargo check --workspace
2634
```
2735

2836
## Key Files

0 commit comments

Comments
 (0)