We have Refs! Emit and Update event to update refs in the 'store'.

This commit is contained in:
Dustin Swan 2026-02-05 21:59:05 -07:00
parent a39c80fc74
commit 1af838126e
No known key found for this signature in database
GPG key ID: 30D46587E2100467
6 changed files with 119 additions and 20 deletions

View file

@ -11,13 +11,18 @@ import designTokensCode from './design-tokens.cg?raw';
import uiComponentsCode from './ui-components.cg?raw';
import textInputCode from './textinput-test.cg?raw';
import refTest from './test-ref.cg?raw';
// import testCode from './test.cg?raw';
// import counterApp from './counter.cg?raw';
const canvas = document.createElement('canvas') as HTMLCanvasElement;
document.body.appendChild(canvas);
const cgCode = stdlibCode + '\n' + designTokensCode + '\n' + uiComponentsCode + '\n' + textInputCode;
const cgCode = stdlibCode + '\n' +
designTokensCode + '\n' +
uiComponentsCode + '\n' +
textInputCode + '\n'
// refTest + '\n';
try {
const tokens = tokenize(cgCode);