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