This repository was archived by the owner on Aug 31, 2023. It is now read-only.
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-svg-filler" ,
3
3
"description" : " Vue component for custom your svg file." ,
4
- "version" : " 1.0.6 " ,
4
+ "version" : " 1.0.7 " ,
5
5
"author" : " Pongsatorn Nitithammawoot <biig_pongsatorn@hotmail.com>" ,
6
6
"license" : " MIT" ,
7
7
"main" : " dist/vue-svg-filler.min.js" ,
Original file line number Diff line number Diff line change @@ -80,24 +80,24 @@ export default {
80
80
const tagSvg = elementSvg . getElementsByTagName ( 'svg' ) [ 0 ]
81
81
const pathOfSvg = elementSvg . getElementsByTagName ( 'path' ) [ 0 ]
82
82
if ( ! pathOfSvg ) {
83
- _errorLog ( `No svg path element in your svg file.\nPath : ${ source } ` )
83
+ this . _errorLog ( `No svg path element in your svg file.\nPath : ${ source } ` )
84
84
return
85
85
}
86
86
this . viewBox = tagSvg . getAttribute ( 'viewBox' )
87
87
this . updateSrcSvgElement ( pathOfSvg . getAttribute ( 'd' ) )
88
88
this . updateFillColor ( this . fill )
89
89
this . updateStrokeColor ( this . stroke )
90
90
} else {
91
- _errorLog ( `Can't load element from this path.\nPath : ${ source } ` )
91
+ this . _errorLog ( `Can't load element from this path.\nPath : ${ source } ` )
92
92
}
93
93
}
94
94
request . onerror = ( ) => {
95
- _errorLog ( `Can't load element from this path.\nPath : ${ source } ` )
95
+ this . _errorLog ( `Can't load element from this path.\nPath : ${ source } ` )
96
96
}
97
97
request . send ( )
98
98
} ,
99
99
updateSrcSvgElement ( val ) {
100
- val ? this . dataOfPath = val : _errorLog ( `Can't get attribute 'd' from your SVG file.` )
100
+ val ? this . dataOfPath = val : this . _errorLog ( `Can't get attribute 'd' from your SVG file.` )
101
101
} ,
102
102
updateFillColor ( val ) {
103
103
this . fillColor = val
You can’t perform that action at this time.
0 commit comments