MCPcopy
hub / github.com/williamngan/pts / setup

Method setup

src/Dom.ts:116–124  ·  view source on GitHub ↗

* Set up various options for DOMSpace. This is usually set during instantiation, eg `new DOMSpace(...).setup( {opt} )`. * @param opt an object with these optional properties: **bgcolor** is a hex or rgba string to set initial background color of the canvas, or use `false` or "transparent" to set a

( opt:{bgcolor?:string, resize?:boolean} )

Source from the content-addressed store, hash-verified

114 * @example `space.setup({ bgcolor: "#f00", resize: true })`
115 */
116 setup( opt:{bgcolor?:string, resize?:boolean} ):this {
117 if (opt.bgcolor) {
118 this._bgcolor = opt.bgcolor;
119 }
120
121 this.autoResize = (opt.resize != undefined) ? opt.resize : false;
122
123 return this;
124 }
125
126
127 /**

Callers 15

cover.jsFile · 0.45
tempo_progress.jsFile · 0.45
sound_visual.jsFile · 0.45
image_load2.jsFile · 0.45
sound_mic.jsFile · 0.45
op_bspline_2.jsFile · 0.45
getting_started.jsFile · 0.45
op_intersect.jsFile · 0.45
sound_frequency.jsFile · 0.45
image_pattern2.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected