(value, primitiveTool, method, param)
| 172 | } |
| 173 | |
| 174 | export function setPrimitiveToolValue(value, primitiveTool, method, param) { |
| 175 | primitiveTool[method](value); |
| 176 | const selector = `[data-id="${param}"]`; |
| 177 | const ctl = document.querySelector(selector); |
| 178 | console.log(ctl, value); |
| 179 | |
| 180 | if (ctl) { |
| 181 | if (method === "setShadowOn") { |
| 182 | ctl.setAttribute("data-value", value ? "true" : "false"); |
| 183 | } else { |
| 184 | ctl.value = value; |
| 185 | } |
| 186 | } else { |
| 187 | console.warn(`Control not found: ${selector}`); |
| 188 | } |
| 189 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…