Lines Matching refs:note
417 drawNote: function(note, offsetY) { argument
418 note.y = offsetY;
419 var actorA = note.hasManyActors() ? note.actor[0] : note.actor;
421 switch (note.placement) {
423 note.x = aX + ACTOR_MARGIN;
426 note.x = aX - ACTOR_MARGIN - note.width;
429 if (note.hasManyActors()) {
430 var bX = getCenterX(note.actor[1]);
432 note.x = Math.min(aX, bX) - overlap;
433 note.width = (Math.max(aX, bX) + overlap) - note.x;
435 note.x = aX - note.width / 2;
439 throw new Error('Unhandled note placement: ' + note.placement);
441 return this.drawTextBox(note, note.message, NOTE_MARGIN, NOTE_PADDING, this.font_, ALIGN_LEFT);