diff --git a/docs/api/assets/js/search.js b/docs/api/assets/js/search.js index 027f0e5..c9a28dc 100644 --- a/docs/api/assets/js/search.js +++ b/docs/api/assets/js/search.js @@ -1,3 +1,3 @@ var typedoc = typedoc || {}; typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","2097152":"Object literal","4194304":"Type alias"},"rows":[{"id":0,"kind":1,"name":"\"types/styles\"","url":"modules/_types_styles_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"GroupComponentStyle","url":"interfaces/_types_styles_.groupcomponentstyle.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"types/styles\""},{"id":2,"kind":1024,"name":"direction","url":"interfaces/_types_styles_.groupcomponentstyle.html#direction","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types/styles\".GroupComponentStyle"},{"id":3,"kind":1024,"name":"wrap","url":"interfaces/_types_styles_.groupcomponentstyle.html#wrap","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types/styles\".GroupComponentStyle"},{"id":4,"kind":1024,"name":"noBorder","url":"interfaces/_types_styles_.groupcomponentstyle.html#noborder","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types/styles\".GroupComponentStyle"},{"id":5,"kind":256,"name":"LabelComponentStyle","url":"interfaces/_types_styles_.labelcomponentstyle.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"types/styles\""},{"id":6,"kind":1024,"name":"bold","url":"interfaces/_types_styles_.labelcomponentstyle.html#bold","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types/styles\".LabelComponentStyle"},{"id":7,"kind":2097152,"name":"GROUP_DEFAULT_STYLE","url":"modules/_types_styles_.html#group_default_style","classes":"tsd-kind-object-literal tsd-parent-kind-external-module","parent":"\"types/styles\""},{"id":8,"kind":32,"name":"direction","url":"modules/_types_styles_.html#group_default_style.direction","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"types/styles\".GROUP_DEFAULT_STYLE"},{"id":9,"kind":2097152,"name":"LABEL_DEFAULT_STYLE","url":"modules/_types_styles_.html#label_default_style","classes":"tsd-kind-object-literal tsd-parent-kind-external-module","parent":"\"types/styles\""},{"id":10,"kind":32,"name":"bold","url":"modules/_types_styles_.html#label_default_style.bold","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"types/styles\".LABEL_DEFAULT_STYLE"},{"id":11,"kind":1,"name":"\"components/base\"","url":"modules/_components_base_.html","classes":"tsd-kind-external-module"},{"id":12,"kind":128,"name":"Component","url":"classes/_components_base_.component.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/base\""},{"id":13,"kind":1,"name":"\"components/group\"","url":"modules/_components_group_.html","classes":"tsd-kind-external-module"},{"id":14,"kind":128,"name":"Group","url":"classes/_components_group_.group.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/group\""},{"id":15,"kind":512,"name":"constructor","url":"classes/_components_group_.group.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"components/group\".Group"},{"id":16,"kind":2048,"name":"addChild","url":"classes/_components_group_.group.html#addchild","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/group\".Group"},{"id":17,"kind":2048,"name":"setTitle","url":"classes/_components_group_.group.html#settitle","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/group\".Group"},{"id":18,"kind":1,"name":"\"components/button\"","url":"modules/_components_button_.html","classes":"tsd-kind-external-module"},{"id":19,"kind":128,"name":"Button","url":"classes/_components_button_.button.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/button\""},{"id":20,"kind":512,"name":"constructor","url":"classes/_components_button_.button.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"components/button\".Button"},{"id":21,"kind":2048,"name":"addListener","url":"classes/_components_button_.button.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/button\".Button"},{"id":22,"kind":4194304,"name":"Listener","url":"modules/_components_button_.html#listener","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"components/button\""},{"id":23,"kind":65536,"name":"__type","url":"modules/_components_button_.html#listener.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"\"components/button\".Listener"},{"id":24,"kind":1,"name":"\"components/label\"","url":"modules/_components_label_.html","classes":"tsd-kind-external-module"},{"id":25,"kind":128,"name":"Label","url":"classes/_components_label_.label.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/label\""},{"id":26,"kind":512,"name":"constructor","url":"classes/_components_label_.label.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"components/label\".Label"},{"id":27,"kind":2048,"name":"setText","url":"classes/_components_label_.label.html#settext","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/label\".Label"},{"id":28,"kind":1,"name":"\"components/slider_button\"","url":"modules/_components_slider_button_.html","classes":"tsd-kind-external-module"},{"id":29,"kind":128,"name":"SliderButton","url":"classes/_components_slider_button_.sliderbutton.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/slider_button\""},{"id":30,"kind":512,"name":"constructor","url":"classes/_components_slider_button_.sliderbutton.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"components/slider_button\".SliderButton"},{"id":31,"kind":2048,"name":"addListener","url":"classes/_components_slider_button_.sliderbutton.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/slider_button\".SliderButton"},{"id":32,"kind":2048,"name":"setValue","url":"classes/_components_slider_button_.sliderbutton.html#setvalue","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/slider_button\".SliderButton"},{"id":33,"kind":4194304,"name":"Listener","url":"modules/_components_slider_button_.html#listener","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"components/slider_button\""},{"id":34,"kind":65536,"name":"__type","url":"modules/_components_slider_button_.html#listener.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"\"components/slider_button\".Listener"},{"id":35,"kind":4194304,"name":"SliderMode","url":"modules/_components_slider_button_.html#slidermode","classes":"tsd-kind-type-alias tsd-parent-kind-external-module","parent":"\"components/slider_button\""},{"id":36,"kind":1,"name":"\"components/switch\"","url":"modules/_components_switch_.html","classes":"tsd-kind-external-module"},{"id":37,"kind":128,"name":"Switch","url":"classes/_components_switch_.switch.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/switch\""},{"id":38,"kind":512,"name":"constructor","url":"classes/_components_switch_.switch.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"components/switch\".Switch"},{"id":39,"kind":2048,"name":"addListener","url":"classes/_components_switch_.switch.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/switch\".Switch"},{"id":40,"kind":2048,"name":"setValue","url":"classes/_components_switch_.switch.html#setvalue","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/switch\".Switch"},{"id":41,"kind":4194304,"name":"Listener","url":"modules/_components_switch_.html#listener","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"components/switch\""},{"id":42,"kind":65536,"name":"__type","url":"modules/_components_switch_.html#listener.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"\"components/switch\".Listener"},{"id":43,"kind":1,"name":"\"index\"","url":"modules/_index_.html","classes":"tsd-kind-external-module"},{"id":44,"kind":128,"name":"LightDesk","url":"classes/_index_.lightdesk.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"index\""},{"id":45,"kind":1024,"name":"server","url":"classes/_index_.lightdesk.html#server","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":46,"kind":1024,"name":"rootGroup","url":"classes/_index_.lightdesk.html#rootgroup","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":47,"kind":1024,"name":"componentIDMap","url":"classes/_index_.lightdesk.html#componentidmap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":48,"kind":1024,"name":"connections","url":"classes/_index_.lightdesk.html#connections","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":49,"kind":512,"name":"constructor","url":"classes/_index_.lightdesk.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"index\".LightDesk"},{"id":50,"kind":2048,"name":"setRoot","url":"classes/_index_.lightdesk.html#setroot","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"index\".LightDesk"},{"id":51,"kind":2048,"name":"updateTree","url":"classes/_index_.lightdesk.html#updatetree","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"index\".LightDesk"},{"id":52,"kind":2048,"name":"onNewConnection","url":"classes/_index_.lightdesk.html#onnewconnection","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":53,"kind":2048,"name":"onClosedConnection","url":"classes/_index_.lightdesk.html#onclosedconnection","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":54,"kind":2048,"name":"onMessage","url":"classes/_index_.lightdesk.html#onmessage","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":55,"kind":32,"name":"DEFAULT_PORT","url":"modules/_index_.html#default_port","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"index\""}]}; \ No newline at end of file + typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","2097152":"Object literal","4194304":"Type alias"},"rows":[{"id":0,"kind":1,"name":"\"types/styles\"","url":"modules/_types_styles_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"GroupComponentStyle","url":"interfaces/_types_styles_.groupcomponentstyle.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"types/styles\""},{"id":2,"kind":1024,"name":"direction","url":"interfaces/_types_styles_.groupcomponentstyle.html#direction","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types/styles\".GroupComponentStyle"},{"id":3,"kind":1024,"name":"wrap","url":"interfaces/_types_styles_.groupcomponentstyle.html#wrap","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types/styles\".GroupComponentStyle"},{"id":4,"kind":1024,"name":"noBorder","url":"interfaces/_types_styles_.groupcomponentstyle.html#noborder","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types/styles\".GroupComponentStyle"},{"id":5,"kind":256,"name":"LabelComponentStyle","url":"interfaces/_types_styles_.labelcomponentstyle.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"types/styles\""},{"id":6,"kind":1024,"name":"bold","url":"interfaces/_types_styles_.labelcomponentstyle.html#bold","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types/styles\".LabelComponentStyle"},{"id":7,"kind":2097152,"name":"GROUP_DEFAULT_STYLE","url":"modules/_types_styles_.html#group_default_style","classes":"tsd-kind-object-literal tsd-parent-kind-external-module","parent":"\"types/styles\""},{"id":8,"kind":32,"name":"direction","url":"modules/_types_styles_.html#group_default_style.direction","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"types/styles\".GROUP_DEFAULT_STYLE"},{"id":9,"kind":2097152,"name":"LABEL_DEFAULT_STYLE","url":"modules/_types_styles_.html#label_default_style","classes":"tsd-kind-object-literal tsd-parent-kind-external-module","parent":"\"types/styles\""},{"id":10,"kind":32,"name":"bold","url":"modules/_types_styles_.html#label_default_style.bold","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"types/styles\".LABEL_DEFAULT_STYLE"},{"id":11,"kind":1,"name":"\"components/base\"","url":"modules/_components_base_.html","classes":"tsd-kind-external-module"},{"id":12,"kind":128,"name":"Component","url":"classes/_components_base_.component.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/base\""},{"id":13,"kind":1,"name":"\"components/group\"","url":"modules/_components_group_.html","classes":"tsd-kind-external-module"},{"id":14,"kind":128,"name":"Group","url":"classes/_components_group_.group.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/group\""},{"id":15,"kind":512,"name":"constructor","url":"classes/_components_group_.group.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"components/group\".Group"},{"id":16,"kind":2048,"name":"addChild","url":"classes/_components_group_.group.html#addchild","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/group\".Group"},{"id":17,"kind":2048,"name":"setTitle","url":"classes/_components_group_.group.html#settitle","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/group\".Group"},{"id":18,"kind":1,"name":"\"components/button\"","url":"modules/_components_button_.html","classes":"tsd-kind-external-module"},{"id":19,"kind":128,"name":"Button","url":"classes/_components_button_.button.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/button\""},{"id":20,"kind":512,"name":"constructor","url":"classes/_components_button_.button.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"components/button\".Button"},{"id":21,"kind":2048,"name":"addListener","url":"classes/_components_button_.button.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/button\".Button"},{"id":22,"kind":4194304,"name":"Listener","url":"modules/_components_button_.html#listener","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"components/button\""},{"id":23,"kind":65536,"name":"__type","url":"modules/_components_button_.html#listener.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"\"components/button\".Listener"},{"id":24,"kind":1,"name":"\"components/label\"","url":"modules/_components_label_.html","classes":"tsd-kind-external-module"},{"id":25,"kind":128,"name":"Label","url":"classes/_components_label_.label.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/label\""},{"id":26,"kind":512,"name":"constructor","url":"classes/_components_label_.label.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"components/label\".Label"},{"id":27,"kind":2048,"name":"setText","url":"classes/_components_label_.label.html#settext","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/label\".Label"},{"id":28,"kind":1,"name":"\"components/slider_button\"","url":"modules/_components_slider_button_.html","classes":"tsd-kind-external-module"},{"id":29,"kind":128,"name":"SliderButton","url":"classes/_components_slider_button_.sliderbutton.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/slider_button\""},{"id":30,"kind":512,"name":"constructor","url":"classes/_components_slider_button_.sliderbutton.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"components/slider_button\".SliderButton"},{"id":31,"kind":2048,"name":"addListener","url":"classes/_components_slider_button_.sliderbutton.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/slider_button\".SliderButton"},{"id":32,"kind":2048,"name":"setValue","url":"classes/_components_slider_button_.sliderbutton.html#setvalue","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/slider_button\".SliderButton"},{"id":33,"kind":4194304,"name":"Listener","url":"modules/_components_slider_button_.html#listener","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"components/slider_button\""},{"id":34,"kind":65536,"name":"__type","url":"modules/_components_slider_button_.html#listener.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"\"components/slider_button\".Listener"},{"id":35,"kind":4194304,"name":"SliderMode","url":"modules/_components_slider_button_.html#slidermode","classes":"tsd-kind-type-alias tsd-parent-kind-external-module","parent":"\"components/slider_button\""},{"id":36,"kind":1,"name":"\"components/switch\"","url":"modules/_components_switch_.html","classes":"tsd-kind-external-module"},{"id":37,"kind":128,"name":"Switch","url":"classes/_components_switch_.switch.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"components/switch\""},{"id":38,"kind":512,"name":"constructor","url":"classes/_components_switch_.switch.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"components/switch\".Switch"},{"id":39,"kind":2048,"name":"addListener","url":"classes/_components_switch_.switch.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/switch\".Switch"},{"id":40,"kind":2048,"name":"setValue","url":"classes/_components_switch_.switch.html#setvalue","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"components/switch\".Switch"},{"id":41,"kind":4194304,"name":"Listener","url":"modules/_components_switch_.html#listener","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"components/switch\""},{"id":42,"kind":65536,"name":"__type","url":"modules/_components_switch_.html#listener.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"\"components/switch\".Listener"},{"id":43,"kind":1,"name":"\"index\"","url":"modules/_index_.html","classes":"tsd-kind-external-module"},{"id":44,"kind":256,"name":"LightDeskOptions","url":"interfaces/_index_.lightdeskoptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"index\""},{"id":45,"kind":1024,"name":"port","url":"interfaces/_index_.lightdeskoptions.html#port","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".LightDeskOptions"},{"id":46,"kind":128,"name":"LightDesk","url":"classes/_index_.lightdesk.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"index\""},{"id":47,"kind":1024,"name":"server","url":"classes/_index_.lightdesk.html#server","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":48,"kind":1024,"name":"rootGroup","url":"classes/_index_.lightdesk.html#rootgroup","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":49,"kind":1024,"name":"componentIDMap","url":"classes/_index_.lightdesk.html#componentidmap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":50,"kind":1024,"name":"connections","url":"classes/_index_.lightdesk.html#connections","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":51,"kind":512,"name":"constructor","url":"classes/_index_.lightdesk.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"index\".LightDesk"},{"id":52,"kind":2048,"name":"setRoot","url":"classes/_index_.lightdesk.html#setroot","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"index\".LightDesk"},{"id":53,"kind":2048,"name":"updateTree","url":"classes/_index_.lightdesk.html#updatetree","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"index\".LightDesk"},{"id":54,"kind":2048,"name":"onNewConnection","url":"classes/_index_.lightdesk.html#onnewconnection","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":55,"kind":2048,"name":"onClosedConnection","url":"classes/_index_.lightdesk.html#onclosedconnection","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":56,"kind":2048,"name":"onMessage","url":"classes/_index_.lightdesk.html#onmessage","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"index\".LightDesk"},{"id":57,"kind":2097152,"name":"DEFAULT_LIGHT_DESK_OPTIONS","url":"modules/_index_.html#default_light_desk_options","classes":"tsd-kind-object-literal tsd-parent-kind-external-module","parent":"\"index\""},{"id":58,"kind":32,"name":"port","url":"modules/_index_.html#default_light_desk_options.port","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"index\".DEFAULT_LIGHT_DESK_OPTIONS"}]}; \ No newline at end of file diff --git a/docs/api/classes/_index_.lightdesk.html b/docs/api/classes/_index_.lightdesk.html index 8d5a469..eab2562 100644 --- a/docs/api/classes/_index_.lightdesk.html +++ b/docs/api/classes/_index_.lightdesk.html @@ -121,19 +121,19 @@

Constructors

constructor

diff --git a/docs/api/interfaces/_index_.lightdeskoptions.html b/docs/api/interfaces/_index_.lightdeskoptions.html new file mode 100644 index 0000000..817dda8 --- /dev/null +++ b/docs/api/interfaces/_index_.lightdeskoptions.html @@ -0,0 +1,230 @@ + + + + + + LightDeskOptions | API Reference - Synesthesia Project Light Desk + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface LightDeskOptions

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + LightDeskOptions +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

port

+
port: number
+ +
+
+
+ +
+
+ +
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/docs/api/modules/_index_.html b/docs/api/modules/_index_.html index b965ff9..c1c5f97 100644 --- a/docs/api/modules/_index_.html +++ b/docs/api/modules/_index_.html @@ -76,26 +76,42 @@

Classes

  • LightDesk
  • -
    -

    Variables

    +
    +

    Interfaces

    +
    +
    +

    Object literals

    +
    -
    -

    Variables

    -
    - -

    Const DEFAULT_PORT

    -
    DEFAULT_PORT: 1337 = 1337
    +
    +

    Object literals

    +
    + +

    Const DEFAULT_LIGHT_DESK_OPTIONS

    +
    DEFAULT_LIGHT_DESK_OPTIONS: object
    +
    + +

    port

    +
    port: number = 1337
    + +
    @@ -136,8 +152,11 @@

    Const DEFAULT_PORT

  • LightDesk
  • -
  • - DEFAULT_PORT +
  • + LightDeskOptions +
  • +
  • + DEFAULT_LIGHT_DESK_OPTIONS
  • diff --git a/src/backend/index.ts b/src/backend/index.ts index fe2609a..82f0e84 100644 --- a/src/backend/index.ts +++ b/src/backend/index.ts @@ -1,3 +1,5 @@ +import {extend} from 'lodash'; + import {Parent} from './components/base'; import {Group} from './components/group'; import {IDMap} from './util/id-map'; @@ -6,7 +8,13 @@ import * as proto from '../shared/proto'; import {Connection, Server} from './server'; -const DEFAULT_PORT = 1337; +export interface LightDeskOptions { + port: number; +} + +export const DEFAULT_LIGHT_DESK_OPTIONS: LightDeskOptions = { + port: 1337 +}; export class LightDesk implements Parent { @@ -18,10 +26,11 @@ export class LightDesk implements Parent { private readonly componentIDMap = new IDMap(); private readonly connections = new Set(); - constructor(port = DEFAULT_PORT) { - console.log('Starting light desk on port:', port); + constructor(options: Partial = {}) { + const fullOptions = extend({}, DEFAULT_LIGHT_DESK_OPTIONS, options); + console.log('Starting light desk on port:', fullOptions.port); this.server = new Server( - port, + fullOptions.port, this.onNewConnection.bind(this), this.onClosedConnection.bind(this), this.onMessage.bind(this));