Skip to content

Commit 016b8e4

Browse files
committed
rename noCrisp -> crisp
1 parent 3b8f7af commit 016b8e4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/plots/cartesian/axes.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,7 @@ axes.drawTicks = function(gd, ax, opts) {
19461946
ticks.enter().append('path')
19471947
.classed(cls, 1)
19481948
.classed('ticks', 1)
1949-
.classed('crisp', !opts.noCrisp)
1949+
.classed('crisp', opts.crisp !== false)
19501950
.call(Color.stroke, ax.tickcolor)
19511951
.style('stroke-width', Drawing.crispRound(gd, ax.tickwidth, 1) + 'px')
19521952
.attr('d', opts.path);
@@ -1966,7 +1966,7 @@ axes.drawGrid = function(gd, ax, opts) {
19661966

19671967
grid.enter().append('path')
19681968
.classed(cls, 1)
1969-
.classed('crisp', !opts.noCrisp)
1969+
.classed('crisp', opts.crisp !== false)
19701970
.attr('d', opts.path)
19711971
.each(function(d) {
19721972
if(ax.zeroline && (ax.type === 'linear' || ax.type === '-') &&
@@ -1998,7 +1998,7 @@ axes.drawZeroLine = function(gd, ax, opts) {
19981998
zl.enter().append('path')
19991999
.classed(cls, 1)
20002000
.classed('zl', 1)
2001-
.classed('crisp', !opts.noCrisp)
2001+
.classed('crisp', opts.crisp !== false)
20022002
.attr('d', opts.path)
20032003
.each(function() {
20042004
// use the fact that only one element can enter to trigger a sort.

src/plots/polar/polar.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -412,15 +412,15 @@ proto.updateRadialAxis = function(fullLayout, polarLayout) {
412412
layer: layers['radial-axis'],
413413
path: Axes.makeTickPath(ax, 0, tickSign),
414414
transFn: transFn,
415-
noCrisp: true
415+
crisp: false
416416
});
417417

418418
Axes.drawGrid(gd, ax, {
419419
vals: valsClipped,
420420
layer: layers['radial-grid'],
421421
path: gridPathFn,
422422
transFn: Lib.noop,
423-
noCrisp: true
423+
crisp: false
424424
});
425425

426426
Axes.drawLabels(gd, ax, {
@@ -625,15 +625,15 @@ proto.updateAngularAxis = function(fullLayout, polarLayout) {
625625
layer: layers['angular-axis'],
626626
path: 'M' + (tickSign * pad) + ',0h' + (tickSign * ax.ticklen),
627627
transFn: transFn2,
628-
noCrisp: true
628+
crisp: false
629629
});
630630

631631
Axes.drawGrid(gd, ax, {
632632
vals: vals,
633633
layer: layers['angular-grid'],
634634
path: gridPathFn,
635635
transFn: Lib.noop,
636-
noCrisp: true
636+
crisp: false
637637
});
638638

639639
Axes.drawLabels(gd, ax, {

src/plots/ternary/ternary.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -446,15 +446,15 @@ proto.drawAx = function(ax) {
446446
layer: axLayer,
447447
path: tickPath,
448448
transFn: transFn,
449-
noCrisp: true
449+
crisp: false
450450
});
451451

452452
Axes.drawGrid(gd, ax, {
453453
vals: valsClipped,
454454
layer: _this.layers[axLetter + 'grid'],
455455
path: gridPath,
456456
transFn: transFn,
457-
noCrisp: true
457+
crisp: false
458458
});
459459

460460
var labelFns = Axes.makeLabelFns(ax, 0, counterAngle);

0 commit comments

Comments
 (0)