Go to file
echo 898322a398 Phase 4: Pen tablet pressure support via Pen_Tablet_State
- 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).
2026-05-28 15:47:26 +02:00
.github/workflows check point 2026-05-24 12:41:31 +02:00
odin Phase 4: Pen tablet pressure support via Pen_Tablet_State 2026-05-28 15:47:26 +02:00
public init state 2026-05-18 19:58:01 +02:00
src init state 2026-05-18 19:58:01 +02:00
.env.example init state 2026-05-18 19:58:01 +02:00
.gitignore init state 2026-05-18 19:58:01 +02:00
.gitmodules check point 2026-05-24 12:41:31 +02:00
AGENTS.md current state 2026-05-28 15:20:02 +02:00
app current state 2026-05-28 15:20:02 +02:00
eslint.config.js init state 2026-05-18 19:58:01 +02:00
index.html init state 2026-05-18 19:58:01 +02:00
package-lock.json check point 2026-05-21 06:10:32 +02:00
package.json init state 2026-05-18 19:58:01 +02:00
postcss.config.js init state 2026-05-18 19:58:01 +02:00
README.md init state 2026-05-18 19:58:01 +02:00
tailwind.config.js init state 2026-05-18 19:58:01 +02:00
tests current state 2026-05-28 15:20:02 +02:00
tsconfig.app.json init state 2026-05-18 19:58:01 +02:00
tsconfig.json init state 2026-05-18 19:58:01 +02:00
tsconfig.node.json init state 2026-05-18 19:58:01 +02:00
vite.config.ts init state 2026-05-18 19:58:01 +02:00
vitest.config.ts init state 2026-05-18 19:58:01 +02:00

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:

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...
    },
  },
])