Skip to content

Commit

Permalink
hideInnerShadow converted to showInnerShadow, shadow not rendered by …
Browse files Browse the repository at this point in the history
…default
  • Loading branch information
toorshia committed Sep 24, 2016
1 parent ce54ee2 commit b621d35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ JustGage = function(config) {
// hide min and max values
hideMinMax: kvLookup('hideMinMax', config, dataset, false),

// hideInnerShadow : bool
// hide inner shadow
hideInnerShadow: kvLookup('hideInnerShadow', config, dataset, false),
// showInnerShadow : bool
// show inner shadow
showInnerShadow: kvLookup('showInnerShadow', config, dataset, false),

// humanFriendly : bool
// convert large numbers for min, max, value to human friendly (e.g. 1234567 -> 1.23M)
Expand Down Expand Up @@ -954,7 +954,7 @@ JustGage.prototype.generateShadow = function(svg, defs) {
gaussFilter.appendChild(feComposite3);

// set shadow
if (!obj.config.hideInnerShadow) {
if (obj.config.showInnerShadow) {
obj.canvas.canvas.childNodes[2].setAttribute("filter", "url(" + window.location.pathname + "#" + sid + ")");
obj.canvas.canvas.childNodes[3].setAttribute("filter", "url(" + window.location.pathname + "#" + sid + ")");
}
Expand Down

0 comments on commit b621d35

Please sign in to comment.