()
| 280 | } |
| 281 | |
| 282 | getParams() { |
| 283 | const params = {}; |
| 284 | // Number inputs return the .value if defined as objects. |
| 285 | for (let attributeName in config.TOOL.attributes) { |
| 286 | const attribute = config.TOOL.attributes[attributeName]; |
| 287 | if (!isNaN(attribute.value) && attribute.value != null) { |
| 288 | if (typeof attribute.value === 'string') { |
| 289 | params[attributeName] = attribute; |
| 290 | } else { |
| 291 | params[attributeName] = attribute.value; |
| 292 | } |
| 293 | } else { |
| 294 | params[attributeName] = attribute; |
| 295 | } |
| 296 | } |
| 297 | return params; |
| 298 | } |
| 299 | |
| 300 | adaptSize(value, type = "width") { |
| 301 | var response; |
no outgoing calls
no test coverage detected