fixing hitTest bounds for clickable. using Constructors for Clickable events. starting to think about design systems..

This commit is contained in:
Dustin Swan 2026-02-03 13:00:54 -07:00
parent 5af3af6b6c
commit 86996ed4ef
No known key found for this signature in database
GPG key ID: 30D46587E2100467
8 changed files with 67 additions and 26 deletions

View file

@ -5,18 +5,21 @@ import { Parser } from './parser'
import { runApp } from './runtime';
import { builtins } from './builtins';
import counterApp from './counter.cg?raw';
import stdlibCode from './stdlib.cg?raw';
import designTokensCode from './design-tokens.cg?raw';
import uiComponentsCode from './ui-components.cg?raw';
import textInputCode from './textinput-test.cg?raw';
import testCode from './test.cg?raw';
import counterApp from './counter.cg?raw';
const canvas = document.createElement('canvas');
canvas.width = 800;
canvas.height = 600;
canvas.style.border = "1px solid #000";
document.body.appendChild(canvas);
const cgCode = stdlibCode + '\n' + uiComponentsCode + '\n' + textInputCode;
const cgCode = stdlibCode + '\n' + designTokensCode + '\n' + uiComponentsCode + '\n' + textInputCode;
const tokens = tokenize(cgCode);
const parser = new Parser(tokens);