[PR #25] [MERGED] Replace yoga enum usage with browser like string values #1007

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

📋 Pull Request Information

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

Base: mainHead: string-vs-enum-options


📝 Commits (6)

📊 Changes

9 files changed (+319 additions, -64 deletions)

View changed files

📝 packages/core/src/Renderable.ts (+16 -17)
📝 packages/core/src/console.ts (+0 -1)
📝 packages/core/src/examples/ascii-font-selection-demo.ts (+1 -1)
📝 packages/core/src/examples/input-select-layout-demo.ts (+2 -3)
📝 packages/core/src/examples/relative-positioning-demo.ts (+6 -9)
📝 packages/core/src/examples/simple-layout-example.ts (+26 -29)
📝 packages/core/src/examples/text-selection-demo.ts (+2 -3)
packages/core/src/lib/yoga.options.ts (+264 -0)
📝 packages/core/src/renderables/Box.ts (+2 -1)

📄 Description

Replace yoga enum usage with browser like string values


🔄 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/25 **Author:** [@kommander](https://github.com/kommander) **Created:** 8/15/2025 **Status:** ✅ Merged **Merged:** 8/15/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `string-vs-enum-options` --- ### 📝 Commits (6) - [`fc578df`](https://github.com/anomalyco/opentui/commit/fc578df7c0c7878b702dd38eab60bdc409cabab4) setup conversion functions - [`0978c4f`](https://github.com/anomalyco/opentui/commit/0978c4f37543dad9faf7091c136041e85239c1c9) string types - [`fd6ace5`](https://github.com/anomalyco/opentui/commit/fd6ace5140c8363ede0329cfdecd2ef3b799be80) sane defaults - [`28be184`](https://github.com/anomalyco/opentui/commit/28be18434f7bc0a0ec6ba20391e980e9d8704fc1) replace enums - [`fedcd21`](https://github.com/anomalyco/opentui/commit/fedcd21f481178719575ad76c6c00f169d91262d) remove node type - [`6b72452`](https://github.com/anomalyco/opentui/commit/6b72452e95cd292fffb0895611aeac3f517eee91) cleanup ### 📊 Changes **9 files changed** (+319 additions, -64 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/Renderable.ts` (+16 -17) 📝 `packages/core/src/console.ts` (+0 -1) 📝 `packages/core/src/examples/ascii-font-selection-demo.ts` (+1 -1) 📝 `packages/core/src/examples/input-select-layout-demo.ts` (+2 -3) 📝 `packages/core/src/examples/relative-positioning-demo.ts` (+6 -9) 📝 `packages/core/src/examples/simple-layout-example.ts` (+26 -29) 📝 `packages/core/src/examples/text-selection-demo.ts` (+2 -3) ➕ `packages/core/src/lib/yoga.options.ts` (+264 -0) 📝 `packages/core/src/renderables/Box.ts` (+2 -1) </details> ### 📄 Description Replace yoga enum usage with browser like string values --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:13:29 +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#1007
No description provided.