Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

g-chartframe

Package Overview
Dependencies
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

g-chartframe - npm Package Compare versions

Comparing version 5.1.5 to 5.1.6

2

build/bundle.js

@@ -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')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc