Mercurial > code > home > repos > light9
changeset 1435:da8f36f809f1
shorten note labels
Ignore-this: d84baceec8da54ec2c9e6fb6e2e238b8
author | drewp@bigasterisk.com |
---|---|
date | Sat, 11 Jun 2016 17:18:05 +0000 |
parents | b8d42a411e17 |
children | d0d5900a8031 |
files | light9/web/timeline/timeline.coffee |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/web/timeline/timeline.coffee Sat Jun 11 17:17:23 2016 +0000 +++ b/light9/web/timeline/timeline.coffee Sat Jun 11 17:18:05 2016 +0000 @@ -366,8 +366,8 @@ screenPos = (pt) => $V([@zoomInX(pt.e(1)), @offsetTop + (1 - pt.e(2)) * @offsetHeight]) - @dia.setNote(@uri, (screenPos(pt) for pt in worldPts), - @graph.uriValue(@uri, U(':effectClass'))) + label = @graph.uriValue(@uri, U(':effectClass')).replace(/.*\//, '') + @dia.setNote(@uri, (screenPos(pt) for pt in worldPts), label) catch e log("during resize of #{@uri}: #{@e}")