@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
18 lines (11 loc) • 385 B
JavaScript
import {CanvasView} from "../../../../view/elements/CanvasView.js";
import AABB2 from "../../../../core/geom/2d/aabb/AABB2.js";
export class UIContext{
constructor(curve, size, margin){
this.curve = curve
this.margin = margin
this.graph = new CanvasView();
this.graph.size.copy(size)
this.frame = new AABB2();
}
}