()
| 122 | } |
| 123 | |
| 124 | getConfigCode(){ |
| 125 | const bg = this.getAttrValue("styling.backgroundColor") |
| 126 | |
| 127 | const fitWidth = this.state.fitContent.width |
| 128 | const fitHeight = this.state.fitContent.height |
| 129 | |
| 130 | const {width, height} = this.getSize() |
| 131 | |
| 132 | const {layout} = this.getParentLayout() |
| 133 | |
| 134 | const config = { |
| 135 | bg: `"${bg}"` |
| 136 | } |
| 137 | |
| 138 | if (layout !== Layouts.PLACE){ |
| 139 | if (!fitWidth){ |
| 140 | config['width'] = width |
| 141 | } |
| 142 | |
| 143 | if (!fitHeight){ |
| 144 | config['height'] = height |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | return config |
| 149 | } |
| 150 | |
| 151 | |
| 152 | generateCode(variableName, parent){ |
no outgoing calls
no test coverage detected