* 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} )
| 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 | /** |
no outgoing calls
no test coverage detected