add tool tip for timeline/clock bar

This commit is contained in:
Stewart Allen 2024-06-02 01:11:10 -04:00
commit 47692e7a33

View file

@ -472,14 +472,15 @@ CAM.init = function(kiri, api) {
let scale = API.view.unit_scale();
let notime = false;
oplist.forEach((rec,i) => {
let title = '';
let clock = rec.type === '|';
let label = clock ? `` : rec.type;
let clazz = notime ? [ "draggable", "notime" ] : [ "draggable" ];
let notable = rec.note?.split(' ').filter(v => v.charAt(0) === '#');
if (clock) clazz.push('clock');
if (clock) { clazz.push('clock'); title = ` title="end of ops chain\ndrag/drop like an op\nops after this are disabled"` }
if (notable?.length) label = notable[0].slice(1);
html.appendAll([
`<div id="${mark+i}" class="${clazz.join(' ')}">`,
`<div id="${mark+i}" class="${clazz.join(' ')}"${title}>`,
`<label class="label">${label}</label>`,
clock ? '' :
`<label id="${mark+i}-x" class="del"><i class="fa fa-trash"></i></label>`,