@flourish/header
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -12,4 +12,4 @@ (function (global, factory) { | ||
var HEADER_DEFAULTS = { | ||
header_title: "German Elections 2017", | ||
header_subtitle: "A closer look at the polling data", | ||
header_title: "", | ||
header_subtitle: "", | ||
header_color: "#333333", | ||
@@ -16,0 +16,0 @@ header_align: "left", |
{ | ||
"name": "@flourish/header", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Adds header", | ||
@@ -5,0 +5,0 @@ "main": "header.js", |
@@ -1,1 +0,19 @@ | ||
README.md | ||
# Flourish footer | ||
Let's you add a header to your visualisations. | ||
## Install | ||
`npm install @flourish/header` | ||
## Usage | ||
There are 3 functions | ||
`createHeader(target_el, state)` appends a div in the target element, and adds header state properties | ||
`updateHeader()` updates the footer contents and styles | ||
`getHeaderHeight()` returns the total footer height (including margins) | ||
`header_el` is the header node element |
@@ -11,2 +11,2 @@ import nodeResolve from "rollup-plugin-node-resolve"; | ||
] | ||
}; | ||
}; |
@@ -5,4 +5,4 @@ var state; | ||
var HEADER_DEFAULTS = { | ||
header_title: "German Elections 2017", | ||
header_subtitle: "A closer look at the polling data", | ||
header_title: "", | ||
header_subtitle: "", | ||
header_color: "#333333", | ||
@@ -9,0 +9,0 @@ header_align: "left", |
Sorry, the diff of this file is not supported yet
8137
157
20