()
| 70 | |
| 71 | React.useEffect(() => { |
| 72 | let watcher = async () => { |
| 73 | if (activeObject && activeObject.type === "StaticText") { |
| 74 | const textProperties = getTextProperties(activeObject, SAMPLE_FONTS) |
| 75 | setState({ ...state, ...textProperties }) |
| 76 | } |
| 77 | } |
| 78 | if (editor) { |
| 79 | editor.on("history:changed", watcher) |
| 80 | } |
nothing calls this directly
no test coverage detected