Sha256: 05dad71b147f8f09ab0cefb93e58d627da558ce8141c219b1e39310b19fc6de8
Contents?: true
Size: 863 Bytes
Versions: 7
Compression:
Stored size: 863 Bytes
Contents
pageflow.sitemap.addButtonView = pageflow.sitemap.groupView.define('add_button', function(s) { this.update() .attr('transform', s.utils.fn.translate('left', 'top')) ; this.child('rect', function() { this.enter() .attr('width', s.utils.fn.d('width')) .attr('height', s.utils.fn.d('height')) .call(s.behavior.tooltipTarget(this.options.tooltipTranslationKey)) .on('mouseover', function() { d3.select(this.parentNode).classed('hover', true); }) .on('mouseout', function() { d3.select(this.parentNode).classed('hover', false); }) .on('click', s.utils.fn.trigger(this.options.click)) ; }); this.child('text', function() { this.enter() .attr('transform', function(d) { return s.utils.translate(d.width / 2, d.height / 2); }) .text("\u2795"); }); });
Version data entries
7 entries across 7 versions & 1 rubygems