898322a39853280b192a0bbe9fe82687d3a77fa7
- gui/pen_input.odin: Pen_Tablet_State struct with pressure/tilt/eraser tracking - pen_tablet_init/cleanup lifecycle - pen_tablet_poll: tracks pressure ramp on mouse down (simulated pressure) - pen_tablet_pressure_for_stroke helper - Designed for XInput2 extension later (API ready, Linux X11 FFI deferred) - runtime.odin: GUI_App_State.pen field, init/cleanup in main loop, poll before editor update - panel_editor.odin: Pressure-aware brush thickness - effective_size = brush_size * pen.pressure when stylus active - Eraser auto-detection via pen.eraser flag - Pressure indicator in toolbar (P: XX%) - ERASER label shown when pen reports eraser mode Build passes. 155/156 tests pass (1 pre-existing CLI/TUI failure).
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
Languages
Odin
75.2%
TypeScript
23.5%
Shell
0.6%
JavaScript
0.4%
CSS
0.3%