(c: Composition)
| 1044 | } |
| 1045 | |
| 1046 | function wireCompositionEvents(c: Composition) { |
| 1047 | c.on("patch", (e) => { |
| 1048 | patchCount++; |
| 1049 | logEntry(`patch #${patchCount}`, e.patches); |
| 1050 | schedulePreviewUpdate(); |
| 1051 | renderElementList(); |
| 1052 | renderInspectorContent(); |
| 1053 | renderTimeline(); |
| 1054 | }); |
| 1055 | c.on("persist:error", (e) => logEntry("persist:error", e)); |
| 1056 | c.on("selectionchange", onSelectionChange); |
| 1057 | } |
| 1058 | |
| 1059 | function onSelectionChange(ids: string[]) { |
| 1060 | const id = ids[0] ?? null; |
no test coverage detected