Skip to content

Commit 1eaa130

Browse files
committed
bar: set base, offset and width default to null
* Null defaults are used to denote optional properties. * Note that null values are ignored by `Lib.nestedProperty(/**/).set()`, so that the pattern `fullTrace.base === undefined` still works.
1 parent 655b3b9 commit 1eaa130

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/traces/bar/attributes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ module.exports = {
5050

5151
base: {
5252
valType: 'any',
53+
dflt: null,
5354
arrayOk: true,
5455
role: 'info',
5556
description: [
@@ -62,6 +63,7 @@ module.exports = {
6263

6364
offset: {
6465
valType: 'number',
66+
dflt: null,
6567
arrayOk: true,
6668
role: 'info',
6769
description: [
@@ -75,6 +77,7 @@ module.exports = {
7577

7678
width: {
7779
valType: 'number',
80+
dflt: null,
7881
min: 0,
7982
arrayOk: true,
8083
role: 'info',

0 commit comments

Comments
 (0)