UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

18 lines (12 loc) 415 B
import { TypeEditor } from "../TypeEditor.js"; import View from "../../../../src/view/View.js"; export class HTMLElementEditor extends TypeEditor { build(parent, field, registry) { const el = field.adapter?.read(parent, field.name); const view = new View(); view.el = el; // make the size small view.size.setScalar(32); return view; } }