@flourish/chart-layout
Advanced tools
Comparing version 4.0.0-prerelease.1 to 4.0.0
{ | ||
"name": "@flourish/chart-layout", | ||
"version": "4.0.0-prerelease.1", | ||
"version": "4.0.0", | ||
"description": "Create axes", | ||
@@ -5,0 +5,0 @@ "main": "chart-layout.js", |
@@ -1,4 +0,8 @@ | ||
# 4.0.0 (prerelease 1) | ||
# 4.0.0 | ||
* Add support for custom ticks | ||
* Fix margin bug with y2 axis | ||
# 3.0.3 | ||
* Add missing default parameters fot Min (date) and Max (date) | ||
# 3.0.2 | ||
@@ -5,0 +9,0 @@ * Improve fallback range for log scales |
@@ -160,3 +160,3 @@ import { remToPx, getFont } from "../common"; | ||
var tick_padding = y2_ticks.length ? remToPx(y2.tick_padding) : 0; | ||
var tick_label_space = instance.y2Ticks().max_box_width || 0; | ||
var tick_label_space = y2_ticks.max_box_width || 0; | ||
var title_space = !instance.y2Hide() ? getY2TitleHeight(instance, state) : 0; | ||
@@ -163,0 +163,0 @@ var axis_width = tick_space + tick_padding + tick_label_space + title_space; |
@@ -12,2 +12,4 @@ import { fillInDefaults } from "./common"; | ||
log_max: null, | ||
datetime_min: "", | ||
datetime_max: "", | ||
@@ -14,0 +16,0 @@ line_visible: true, |
@@ -30,4 +30,5 @@ import { select } from "d3-selection"; | ||
var ticks_labels_below = x.tick_label_position === "default"; | ||
var axis_height = instance.xTicks().max_box_height; | ||
var tick_padding = remToPx(x.tick_padding); | ||
var x_ticks = instance.xTicks(); | ||
var axis_height = x_ticks.max_box_height; | ||
var tick_padding = x_ticks.length ? remToPx(x.tick_padding) : 0; | ||
if (x.axis_position == "top" || x.axis_position == "bottom") axis_height += tick_padding; | ||
@@ -34,0 +35,0 @@ var ticks_out = x.tick_side === "out"; |
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
368035
9252
1