Skip to content

Commit 52909e3

Browse files
committed
Update default options and source docs
1 parent b39fb4e commit 52909e3

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

lib/node_modules/@stdlib/plot/base/ctor/lib/defaults.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,11 @@ function defaults() {
3939
o = {};
4040

4141
// Boolean indicating whether to re-render on a change event:
42-
if ( isREPL ) {
43-
o.autoRender = false;
44-
} else {
45-
o.autoRender = true;
46-
}
42+
o.autoRender = false;
43+
4744
// Boolean indicating whether to generate an updated view on a render event:
48-
if ( isREPL ) {
49-
o.autoView = false;
50-
} else {
51-
o.autoView = false;
52-
}
45+
o.autoView = false;
46+
5347
// Plot description:
5448
o.description = '';
5549

lib/node_modules/@stdlib/plot/base/ctor/lib/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ var merge = mergeFcn({
9090
* @param {Array} [x] - x values
9191
* @param {Array} [y] - y values
9292
* @param {Options} [options] - constructor options
93-
* @param {boolean} [options.autoRender=true] - indicates whether to re-render on a change event
93+
* @param {boolean} [options.autoRender=false] - indicates whether to re-render on a change event
9494
* @param {boolean} [options.autoView=false] - indicates whether to generate an updated view on a render event
9595
* @param {string} [options.description=''] - description
9696
* @param {string} [options.engine='svg'] - render engine
@@ -107,7 +107,6 @@ var merge = mergeFcn({
107107
* @param {string} [options.title=''] - title
108108
* @param {string} [options.viewer='none'] - viewer
109109
* @param {PositiveNumber} [options.width=400] - plot width
110-
* @param {Array} [options.x=[]] - x values
111110
* @param {string} [options.xAxisOrient='bottom'] - x-axis orientation
112111
* @param {string} [options.xLabel='x'] - x-axis label
113112
* @param {(Date|FiniteNumber|null)} [options.xMax=null] - maximum value of x-axis domain

0 commit comments

Comments
 (0)