diff --git a/src/plugins.js b/src/plugins.js index df55f64..df15753 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -45,9 +45,15 @@ planet.onDraw(function() { planet.withSavedContext(function(context) { - context.beginPath(); + context.beginPath(); planet.path.context(context)(land); + if (config.shadow) { + context.shadowOffsetX = config.shadow.shadowOffsetX || 1; + context.shadowOffsetY = config.shadow.shadowOffsetY || 1; + context.shadowColor = config.shadow.shadowColor || 'white'; + } + if (config.fill !== false) { context.fillStyle = config.fill || 'white'; context.fill();