smithery/christian289

rendering-absolute-coords

Renders MewUI custom elements using absolute Bounds coordinates. Use when alignment appears ignored or element renders at top-left.

Installation

$ npx skills add smithery/christian289 --skill rendering-absolute-coords

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/christian289.

npx skills add smithery/christian289

Browse all from smithery/christian289

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 933 B
  • docs SUMMARY.md 164 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

MewUI Absolute Coordinates

MewUI does NOT apply coordinate transforms. Each element must render at its absolute Bounds position.

Problem

// ❌ WRONG - Always draws at top-left
public override void Render(IGraphicsContext context)
{
    context.FillRectangle(new Rect(0, 0, Width, Height), color);
}

Solution

// ✅ CORRECT - Use Bounds.X and Bounds.Y
public override void Render(IGraphicsContext context)
{
    double ox = Bounds.X;
    double oy = Bounds.Y;

    context.FillRectangle(new Rect(ox, oy, Width, Height), color);
}

Checklist

  • Use Bounds.X and Bounds.Y as offset in Render
  • Apply offset to ALL drawing operations
  • Override MeasureContent to return new Size(Width, Height)