When to use this skill
ALWAYS use this skill when the user mentions:
- Aligned popup or tray windows
- Multi-monitor positioning
- Consistent placement across platforms
Trigger phrases include:
- "positioner", "align", "multi-monitor", "tray window"
- "positioning", "alignment", "multi-monitor", "tray window"
How to use this skill
- Define window alignment and anchor points
- Configure positioner plugin capabilities
- Handle multi-display coordinates and scaling factors
- Validate behavior on macOS, Windows, and Linux
Outputs
- Window positioning plan
- Multi-display scaling checklist
Scope
- Boundary: Positioner plugin usage only
- Key points: Multi-display and scaling differences
References
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/plugin/positioner/
- https://v2.tauri.app/zh-cn/plugin/positioner/
Keywords
tauri positioner, window alignment, multi-display, scaling
Common Gotchas
- Version compatibility: Note the compatibility between framework versions and dependency libraries; APIs may differ across versions
- Configuration file format: Configuration file format errors are the most common issue; it is recommended to use the editor's syntax checking
- Environment variables: Ensure all necessary environment variables are set correctly; do not hardcode sensitive information
- Dependency conflicts: When multiple versions coexist, watch out for dependency conflicts; use a lock file to pin versions
- Performance pitfalls: In large-data scenarios, pay attention to performance optimization and avoid common issues such as N+1 queries
Usage workflow
Step 1: Environment preparation
Ensure the development environment has the necessary dependencies and tools installed.
Step 2: Configuration initialization
Perform basic configuration according to project requirements.
Step 3: Using core features
Implement core features according to the example code.
Step 4: Test verification
Run tests to ensure the functionality works properly.
Step 5: Deployment and release
After development is complete, proceed with deployment and monitoring.