New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@flourish/chart-layout

Package Overview
Dependencies
Maintainers
12
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flourish/chart-layout - npm Package Compare versions

Comparing version 4.0.0-prerelease.1 to 4.0.0

2

package.json
{
"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

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