File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/particles-bg/particles Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " particles-bg-vue" ,
3
- "version" : " 1.3.2 " ,
3
+ "version" : " 1.3.5 " ,
4
4
"description" : " Vue.js component for particles backgrounds" ,
5
- "author" : " creotip@gmail .com" ,
5
+ "author" : " lindelof@protonmail .com" ,
6
6
"license" : " MIT" ,
7
7
"bugs" : {
8
8
"url" : " https://github.com/lindelof/particles-bg-vue/issues"
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ export default {
27
27
methods: {
28
28
initCanvas : function () {
29
29
const canvas = this .$refs .canvasRef ;
30
- const width = window . innerWidth ;
31
- const height = window . innerHeight ;
30
+ const width = canvas . clientWidth ;
31
+ const height = canvas . clientHeight ;
32
32
canvas .width = width;
33
33
canvas .height = height;
34
34
@@ -41,8 +41,8 @@ export default {
41
41
},
42
42
resize : function () {
43
43
const canvas = this .$refs .canvasRef ;
44
- const width = window . innerWidth ;
45
- const height = window . innerHeight ;
44
+ const width = canvas . clientWidth ;
45
+ const height = canvas . clientHeight ;
46
46
canvas .width = width;
47
47
canvas .height = height;
48
48
this .$emit (" canvasResize" , { width, height });
You can’t perform that action at this time.
0 commit comments