An object that controls behavior of the HTML page, regarding where things go like the simulation canvas, the graph, controls, etc. and when they are visible.

interface Layout {
    addControl(control, opt_add?): LabControl;
    getSubjects(): Subject[];
    showTerminal(visible): void;
    toStringShort(): string;

Hierarchy (view full)

Implemented by


  • Add the control to the set of simulation controls.


    • control: LabControl
    • Optional opt_add: boolean

      whether to also add to SimControls, default is true

    Returns LabControl

    the control that was passed in

  • Change layout to hide or show terminal text editor.


    • visible: boolean

      whether terminal should be visible

    Returns void

  • Returns a minimal string representation of this object, usually giving just identity information like the class name and name of the object.

    For an object whose main purpose is to represent another Printable object, it is recommended to include the result of calling toStringShort on that other object. For example, calling toStringShort() on a DisplayShape might return something like this:


    Returns string

    a minimal string representation of this object.

Generated using TypeDoc