mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #121] [MERGED] Introduce scissorRect stack for buffers (allow clipping when drawing) #304
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#304
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/121
Author: @kommander
Created: 9/1/2025
Status: ✅ Merged
Merged: 9/1/2025
Merged by: @kommander
Base:
main← Head:buffered-as-overflow-hidden📝 Commits (10+)
7e88368attempt8594c63stashb10f4a3add overflow hidden to box demo01618dastash3d858ffstash7591842name buffers91e3b73stash TRY312599cstash1b23972restore original buffered behaviour679ac15use a scissor rect stack📊 Changes
10 files changed (+345 additions, -47 deletions)
View changed files
📝
packages/core/src/Renderable.ts(+23 -0)📝
packages/core/src/buffer.ts(+12 -0)📝
packages/core/src/examples/framebuffer-demo.ts(+72 -11)📝
packages/core/src/examples/mouse-interaction-demo.ts(+25 -14)📝
packages/core/src/examples/relative-positioning-demo.ts(+1 -1)📝
packages/core/src/renderables/Box.ts(+20 -0)📝
packages/core/src/zig.ts(+27 -0)📝
packages/core/src/zig/buffer.zig(+151 -19)📝
packages/core/src/zig/lib.zig(+12 -0)📝
packages/core/src/zig/renderer.zig(+2 -2)📄 Description
Using
buffered=truein the relative-positioning-demo andoverflow=hiddenin the mouse-interaction-demo. It suffers from the alpha blending issue and it doesn't respect borders yet.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.