Repository navigation
feat(gtk): the Linux renderer, as the ./gtk entry point - #85
Merged
Merged
Conversation
Workspace's Linux client drew canvases with its own Cairo renderer, built on this library's parser. It lives here now, consumed as @workspace.sh/react-native-jsoncanvas/gtk, on the same core: the colour presets move to core/colors.ts so Skia and Cairo read one table instead of a copy. CanvasView takes a colorScheme as the React Native one does, and left out, follows libadwaita's Adw.StyleManager live. GTKX is an optional peer, so React Native installs don't fetch it, and the library's own tsc leaves src/gtk out: the bindings are generated in the app, which typechecks and tests this code, as table-gtk is. Refs: #84 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
./gtkentry point (src/gtk/): the Cairo renderer and GTKXCanvasViewthat Workspace's Linux client used, moved here unchanged apart from imports, formatting and one prop.colorSchemeprop like the React NativeCanvasView. Left out, it follows libadwaita'sAdw.StyleManager, live (useCanvasColorScheme).src/core/colors.ts, shared by the Skia theme and the Cairo renderer (Linux had a copy).package.json:exportsfor.and./gtk, optional@gtkx/reactand@gtkx/cairopeers, GTK keywords and description. The library'stscexcludessrc/gtk, since GTKX bindings are generated in the consuming app.Verification
tscclean, jest 122 pass, eslint 0 errors (only the 5 warnings already on develop).checkgate, and headless screenshots in light and dark.Refs: #84
🤖 Generated with Claude Code