Skip to content

Commit f9311dc

Browse files
author
Nicolò Maria Mezzopera
authored
Merge pull request #313 from bytesnz/fix-polyline-fill
Default fill to false on Polylines
2 parents 44cb845 + a3f0d46 commit f9311dc

File tree

6 files changed

+28
-4
lines changed

6 files changed

+28
-4
lines changed

docs/mixins/circle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
### Props
22
```js
33
{
4+
fill: {
5+
type: Boolean,
6+
custom: true,
7+
default: true
8+
},
49
radius: {
510
type: Number,
611
default: null

docs/mixins/path.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
fill: {
5050
type: Boolean,
5151
custom: true,
52-
default: true
52+
default: false
5353
},
5454
fillColor: {
5555
type: String,

docs/mixins/polygon.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
### Props
2-
3-
`Polygon` does not have any props
2+
```js
3+
{
4+
fill: {
5+
type: Boolean,
6+
custom: true,
7+
default: true
8+
}
9+
}
10+
```
411

512
### Methods
613

src/mixins/Circle.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import Path from './Path';
33
export default {
44
mixins: [Path],
55
props: {
6+
fill: {
7+
type: Boolean,
8+
custom: true,
9+
default: true
10+
},
611
radius: {
712
type: Number,
813
default: null

src/mixins/Path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default {
5252
fill: {
5353
type: Boolean,
5454
custom: true,
55-
default: true
55+
default: false
5656
},
5757
fillColor: {
5858
type: String,

src/mixins/Polygon.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ import Polyline from './Polyline';
22

33
export default {
44
mixins: [Polyline],
5+
props: {
6+
fill: {
7+
type: Boolean,
8+
custom: true,
9+
default: true
10+
}
11+
},
512
mounted () {
613
this.polygonOptions = this.polyLineOptions;
714
},

0 commit comments

Comments
 (0)