|
|
@ -7,13 +7,13 @@ const debounce = require('debounce') |
|
|
|
module.exports = Mascot |
|
|
|
module.exports = Mascot |
|
|
|
|
|
|
|
|
|
|
|
inherits(Mascot, Component) |
|
|
|
inherits(Mascot, Component) |
|
|
|
function Mascot () { |
|
|
|
function Mascot ({width = '200', height = '200'}) { |
|
|
|
Component.call(this) |
|
|
|
Component.call(this) |
|
|
|
this.logo = metamaskLogo({ |
|
|
|
this.logo = metamaskLogo({ |
|
|
|
followMouse: true, |
|
|
|
followMouse: true, |
|
|
|
pxNotRatio: true, |
|
|
|
pxNotRatio: true, |
|
|
|
width: 200, |
|
|
|
width, |
|
|
|
height: 200, |
|
|
|
height, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.refollowMouse = debounce(this.logo.setFollowMouse.bind(this.logo, true), 1000) |
|
|
|
this.refollowMouse = debounce(this.logo.setFollowMouse.bind(this.logo, true), 1000) |
|
|
|