[PR #119] [MERGED] feat: add some utilities and missing yoga properties #1082

Closed
opened 2026-03-14 09:17:33 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/119
Author: @KurtGokhan
Created: 8/31/2025
Status: Merged
Merged: 8/31/2025
Merged by: @kommander

Base: mainHead: missing-yoga-props


📝 Commits (3)

  • 47a262e feat: add some utilities and missing yoga properties
  • 661f34e remove type-utils
  • 7476d01 make props protected

📊 Changes

5 files changed (+86 additions, -17 deletions)

View changed files

📝 packages/core/src/Renderable.ts (+76 -12)
📝 packages/core/src/examples/lib/standalone-keys.ts (+1 -1)
📝 packages/core/src/lib/KeyHandler.ts (+6 -2)
📝 packages/core/src/renderables/Box.ts (+1 -1)
📝 packages/core/tsconfig.json (+2 -1)

📄 Description

Added these yoga props:

  • alignSelf
  • flexWrap
  • overflow
  • Fixed types of min/max width/height

Added translateX and translateY which will be helpful when implementing scroll area to avoid recalculating Yoga layout. It can be used for other elements as well.

Some Typescript goodies:

  • Excluded dist to allow getting dist folder in autocomplete
  • Some type-safety stuff with generic types

Added " to open console keys. That's what I have in my keyboard :(

Emit resize event on resizes. This can be used in user-land to detect element resizes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/119 **Author:** [@KurtGokhan](https://github.com/KurtGokhan) **Created:** 8/31/2025 **Status:** ✅ Merged **Merged:** 8/31/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `missing-yoga-props` --- ### 📝 Commits (3) - [`47a262e`](https://github.com/anomalyco/opentui/commit/47a262e3b6292f5460dcc87a3a25ded4427265f5) feat: add some utilities and missing yoga properties - [`661f34e`](https://github.com/anomalyco/opentui/commit/661f34ec86fe9089d380d60eb7b9cd913ff46259) remove type-utils - [`7476d01`](https://github.com/anomalyco/opentui/commit/7476d01792e6779ec40ffabc5d83a0bf4315db75) make props protected ### 📊 Changes **5 files changed** (+86 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/Renderable.ts` (+76 -12) 📝 `packages/core/src/examples/lib/standalone-keys.ts` (+1 -1) 📝 `packages/core/src/lib/KeyHandler.ts` (+6 -2) 📝 `packages/core/src/renderables/Box.ts` (+1 -1) 📝 `packages/core/tsconfig.json` (+2 -1) </details> ### 📄 Description Added these yoga props: - alignSelf - flexWrap - overflow - Fixed types of min/max width/height Added `translateX` and `translateY` which will be helpful when implementing scroll area to avoid recalculating Yoga layout. It can be used for other elements as well. Some Typescript goodies: - Excluded `dist` to allow getting dist folder in autocomplete - Some type-safety stuff with generic types Added `"` to open console keys. That's what I have in my keyboard :( Emit `resize` event on resizes. This can be used in user-land to detect element resizes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:17:33 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#1082
No description provided.