sync highlighting with tone draw
This commit is contained in:
parent
cad81acc44
commit
1375932c05
4 changed files with 15 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ export default function CodeMirror({ value, onChange, options, editorDidMount }:
|
|||
return <CodeMirror2 value={value} options={options} onBeforeChange={onChange} editorDidMount={editorDidMount} />;
|
||||
}
|
||||
|
||||
export const markEvent = (editor) => (event) => {
|
||||
export const markEvent = (editor) => (time, event) => {
|
||||
const locs = event.value.locations;
|
||||
if (!locs || !editor) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue