0.2.1 • Published 10 years ago

hudkit-layouts v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

hudkit-layouts

A collection of predefined layouts for hudkit.

Install

$ npm install hudkit
$ npm install hudkit-layouts

Setup:

var hk = require('hudkit');
hk.init();

var hl = require('hudkit-layouts');

Layouts

All functions return an object that collects all created widgets.

hl.v2(hk, options)

2-way vertical split.

hl.v2(hk, {
    left: 'Console',
    right: 'Canvas2D',
    split: 0.5
});

v2

hl.h2(hk, options)

2-way horizontal split.

hl.h2(hk, {
    top: 'Canvas2D',
    bottom: 'Console',
    split: 0.7
});

h2

hl.canvasAndConsole(hk, options)

Canvas at top, console at bottom.

hl.canvasAndConsole(hk, {
    split: 0.6
});

canvas-and-console

hl.canvasAndTabs(hk, options)

Canvas at top, array of tabs at bottom.

hl.canvasAndTabs(hk, {
    tabs: [
        {widget: 'Console', id: 'console'},
        {widget: 'Console', id: 'logger'}
    ]
});

canvas-and-tabs

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago