fixing hitTest bounds for clickable. using Constructors for Clickable events. starting to think about design systems..
This commit is contained in:
parent
5af3af6b6c
commit
86996ed4ef
8 changed files with 67 additions and 26 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue