docs/PORTING.md maps GPUI's architecture onto MoonBit packages, separates pure logic from platform code, surveys mooncakes packages and their backends, recommends a js + Canvas2D first backend behind a small Platform trait, lists the Rust idioms that need a different design, and gives an ordered roadmap. First slice (pure, tested on wasm, wasm-gc, js and native): - geometry: Pixels/ScaledPixels/DevicePixels/Rems, Absolute/Definite/Length with parsing, Point/Size/Bounds/Edges/Corners, Anchor, Axis, ContentMask - color: Rgba/Hsla with conversions, hex parsing, blending, Background (solid, linear gradient, patterns) - scene: primitives (Quad, Shadow, Path, Underline, sprites), transformation matrix, BoundsTree draw ordering, layers, finish/batches, replay Derived from Zed's GPUI (Apache-2.0); see LICENSE and NOTICE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
785 B
Plaintext
21 lines
785 B
Plaintext
moon-gpui
|
|
=========
|
|
|
|
This project is a MoonBit port of GPUI, the GPU-accelerated UI framework of
|
|
the Zed editor:
|
|
|
|
https://github.com/zed-industries/zed/tree/main/crates/gpui
|
|
Copyright 2022 - 2025 Zed Industries, Inc.
|
|
Licensed under the Apache License, Version 2.0.
|
|
|
|
Source files in this repository are derived from GPUI's Rust sources (the
|
|
reference snapshot is zed-industries/zed commit
|
|
f98c2c100d217ace3ca99564cfc4573612d43d47). They have been translated to
|
|
MoonBit and modified; each package documents where it deviates from the
|
|
original. See docs/PORTING.md for the mapping between GPUI modules and the
|
|
MoonBit packages.
|
|
|
|
This port is distributed under the same license, the Apache License,
|
|
Version 2.0 (see LICENSE). It is not affiliated with or endorsed by Zed
|
|
Industries.
|