(elems)
| 139 | } |
| 140 | |
| 141 | function canPutTextOnPath(elems) { |
| 142 | if (elems.length !== 2) return false; |
| 143 | const text = elems.find(elem => elem.tagName === "text"); |
| 144 | const path = elems.find(elem => ["ellipse", "circle", "line", "polyline", "polygon", "rect", "path"].indexOf(elem.tagName) > -1); |
| 145 | return (!!text && !!path); |
| 146 | } |
| 147 | |
| 148 | function updateContextPanel(elems) { |
| 149 | if (!elems) elems = editor.selected; |
no outgoing calls
no test coverage detected