GNU bug report logs -
#20896
25.0.50; [js-mode][FR] support chain syntax indentation
Previous Next
Reported by: Rasmus <rasmus <at> gmx.us>
Date: Thu, 25 Jun 2015 15:39:02 UTC
Severity: wishlist
Found in version 25.0.50
Done: Tom Tromey <tom <at> tromey.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
Rasmus <rasmus <at> gmx.us> writes:
> var an_axis = axes.append("g")
> .call(d3.svg.axis()
> .scale(Scale)
> .orient("bottom"));
Actually, this case is not as crazy as first assumed and should ideally be
supported. Here's a pretty reasonable example (except for names being too
long):
plot.axes.yScale = d3.scale.ordinal()
.domain(d3.range(bar.ybins).map(function(d){return d*10;}))
.range(d3.range(bar.ybins)
.map(function(d,i) {
return plot.height-plot.height/bar.ybins * i;}));
Also, notice there's another, potential, indentation typo in this code.
The last "return" should be one character to the right IMO, i.e.
.map(function(d,i) {
return plot.height-plot.height/bar.ybins * i;}));
Thanks,
Rasmus
--
Dung makes an excellent fertilizer
This bug report was last modified 8 years and 192 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.