no more ValueToUI
This commit is contained in:
parent
e12809efba
commit
dd6dad76c8
3 changed files with 16 additions and 169 deletions
|
|
@ -1,5 +1,3 @@
|
|||
// import type { UIValue } from './types';
|
||||
import { valueToUI } from './valueToUI-compiled';
|
||||
import { render, hitTest } from './ui';
|
||||
|
||||
type UIValue = any;
|
||||
|
|
@ -92,7 +90,7 @@ export function runAppCompiled(app: App, canvas: HTMLCanvasElement, rt: any) {
|
|||
}
|
||||
|
||||
const viewResult = instance.view(instance.state);
|
||||
let viewUI = valueToUI(viewResult);
|
||||
let viewUI = viewResult;
|
||||
|
||||
if (ui.focusable) {
|
||||
viewUI = {
|
||||
|
|
@ -139,7 +137,7 @@ export function runAppCompiled(app: App, canvas: HTMLCanvasElement, rt: any) {
|
|||
|
||||
try {
|
||||
const uiValue = app.view(state)(viewport);
|
||||
const ui = valueToUI(uiValue);
|
||||
const ui = uiValue;
|
||||
const expandedUI = expandStateful(ui, [], renderedKeys);
|
||||
|
||||
// clean up unrendered instances
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue