land border shadow option
This commit is contained in:
parent
c8c4bfa4bd
commit
9557b9a61f
@ -46,6 +46,12 @@
|
|||||||
planet.onDraw(function() {
|
planet.onDraw(function() {
|
||||||
planet.withSavedContext(function(context) {
|
planet.withSavedContext(function(context) {
|
||||||
context.beginPath();
|
context.beginPath();
|
||||||
|
// nice land shadow
|
||||||
|
if (config.shadow) {
|
||||||
|
context.shadowOffsetX = config.shadow.shadowOffsetX || 1;
|
||||||
|
context.shadowOffsetY = config.shadow.shadowOffsetY || 1;
|
||||||
|
context.shadowColor = config.shadow.shadowColor || 'white';
|
||||||
|
}
|
||||||
planet.path.context(context)(land);
|
planet.path.context(context)(land);
|
||||||
|
|
||||||
if (config.fill !== false) {
|
if (config.fill !== false) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user