g-chartframe
Advanced tools
Comparing version 5.1.5 to 5.1.6
@@ -1,1 +0,1 @@ | ||
var version = "5.1.5"; export * from "../index"; export {version}; | ||
var version = "5.1.6"; export * from "../index"; export {version}; |
@@ -254,6 +254,6 @@ (function (global, factory) { | ||
//TODO figure out a way to improve this autoPosition stuff, needs ot be configurable so we don't have to reference specific classes | ||
if(autoPosition) { | ||
if(autoPosition && (containerClass == 'ft-printgraphic' || containerClass == 'ft-socialgraphic' || containerClass == 'ft-videographic')) { | ||
margin.top = (titlePosition.y + (titleLineCount * titleLineHeight) + (subtitleLineCount * subtitleLineHeight) + (rem/3)) | ||
} else if(autoPosition) { | ||
margin.top = (titlePosition.y + (titleLineCount * titleLineHeight) + (subtitleLineCount * subtitleLineHeight) + 24) | ||
} else if(autoPosition && (containerClass == 'ft-printgraphic' || containerClass == 'ft-socialgraphic' || containerClass == 'ft-videographic')) { | ||
margin.top = (titlePosition.y + (titleLineCount * titleLineHeight) + (subtitleLineCount * subtitleLineHeight) + (rem/3)) | ||
} | ||
@@ -701,4 +701,4 @@ | ||
var f = chartFrame() | ||
.containerClass('ft-printgraphic') | ||
.autoPosition(true) | ||
.containerClass('ft-printgraphic') | ||
.backgroundColour('#FFF') | ||
@@ -835,3 +835,3 @@ .goalposts('#000') | ||
var version = "5.1.5"; | ||
var version = "5.1.6"; | ||
@@ -838,0 +838,0 @@ exports.version = version; |
{ | ||
"name": "g-chartframe", | ||
"version": "5.1.5", | ||
"version": "5.1.6", | ||
"description": "FT styled frames for D3 graphics", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
@@ -248,6 +248,6 @@ function chartFrame(configObject){ | ||
//TODO figure out a way to improve this autoPosition stuff, needs ot be configurable so we don't have to reference specific classes | ||
if(autoPosition) { | ||
if(autoPosition && (containerClass == 'ft-printgraphic' || containerClass == 'ft-socialgraphic' || containerClass == 'ft-videographic')) { | ||
margin.top = (titlePosition.y + (titleLineCount * titleLineHeight) + (subtitleLineCount * subtitleLineHeight) + (rem/3)) | ||
} else if(autoPosition) { | ||
margin.top = (titlePosition.y + (titleLineCount * titleLineHeight) + (subtitleLineCount * subtitleLineHeight) + 24) | ||
} else if(autoPosition && (containerClass == 'ft-printgraphic' || containerClass == 'ft-socialgraphic' || containerClass == 'ft-videographic')) { | ||
margin.top = (titlePosition.y + (titleLineCount * titleLineHeight) + (subtitleLineCount * subtitleLineHeight) + (rem/3)) | ||
} | ||
@@ -254,0 +254,0 @@ |
@@ -6,4 +6,4 @@ import frame from './chartframe'; | ||
var f = frame() | ||
.containerClass('ft-printgraphic') | ||
.autoPosition(true) | ||
.containerClass('ft-printgraphic') | ||
.backgroundColour('#FFF') | ||
@@ -10,0 +10,0 @@ .goalposts('#000') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package