Alphabetize element default options (#7170)

* Alphabetize element default options

* Add arc

* Add missing comma
This commit is contained in:
Ben McCann
2020-03-01 06:57:39 -08:00
committed by GitHub
parent 5ef519e4d2
commit 788dbd4499
3 changed files with 10 additions and 11 deletions

View File

@@ -6,9 +6,9 @@ const TAU = Math.PI * 2;
defaults.set('elements', {
arc: {
backgroundColor: defaults.color,
borderAlign: 'center',
borderColor: '#fff',
borderWidth: 2,
borderAlign: 'center'
borderWidth: 2
}
});

View File

@@ -13,16 +13,16 @@ const defaultColor = defaults.color;
defaults.set('elements', {
line: {
tension: 0.4,
backgroundColor: defaultColor,
borderWidth: 3,
borderColor: defaultColor,
borderCapStyle: 'butt',
borderColor: defaultColor,
borderDash: [],
borderDashOffset: 0.0,
borderDashOffset: 0,
borderJoinStyle: 'miter',
borderWidth: 3,
capBezierPoints: true,
fill: true
fill: true,
tension: 0.4
}
});

View File

@@ -6,15 +6,14 @@ const defaultColor = defaults.color;
defaults.set('elements', {
point: {
radius: 3,
pointStyle: 'circle',
backgroundColor: defaultColor,
borderColor: defaultColor,
borderWidth: 1,
// Hover
hitRadius: 1,
hoverBorderWidth: 1,
hoverRadius: 4,
hoverBorderWidth: 1
pointStyle: 'circle',
radius: 3
}
});