add tool tip for timeline/clock bar
This commit is contained in:
parent
e055f3c157
commit
47692e7a33
1 changed files with 3 additions and 2 deletions
|
|
@ -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>`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue