8000 fixups for domain attrs · timonweb/plotly.js@4d5a1bd · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d5a1bd

Browse files
committed
fixups for domain attrs
1 parent c94423b commit 4d5a1bd

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/plots/domain_attributes.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,28 @@ module.exports = function(opts, extra) {
4444
dflt: [0, 1]
4545
};
4646

47-
var namePart = opts.name || '';
48-
var contPart = opts.trace ? 'trace' : 'subplot';
47+
var namePart = opts.name ? opts.name + ' ' : '';
48+
var contPart = opts.trace ? 'trace ' : 'subplot ';
49+
var descPart = extra.description ? ' ' + extra.description : '';
4950

5051
return {
5152
x: extendFlat({}, base, {
5253
description: [
53-
'Sets the horizontal domain of this',
54+
'Sets the horizontal domain of this ',
5455
namePart,
5556
contPart,
5657
'(in plot fraction).',
57-
extra.description
58-
].join(' ')
58+
descPart
59+
].join('')
5960
}),
6061
y: extendFlat({}, base, {
6162
description: [
62-
'Sets the vertical domain of this',
63+
'Sets the vertical domain of this ',
6364
namePart,
6465
contPart,
6566
'(in plot fraction).',
66-
extra.description
67-
].join(' ')
67+
descPart
68+
].join('')
6869
}),
6970
editType: opts.editType
7071
};

src/plots/geo/layout/layout_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = overrideAll({
7070
description: [
7171
'Note that geo subplots are constrained by domain.',
7272
'In general, when `projection.scale` is set to 1.',
73-
'a map will fit either its x or y domain, but not both. '
73+
'a map will fit either its x or y domain, but not both.'
7474
].join(' ')
7575
}),
7676

0 commit comments

Comments
 (0)
0