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

@flourish/legend

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flourish/legend - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

{
"name": "@flourish/legend",
"version": "2.1.1",
"version": "2.1.2",
"description": "Flourish module for making legend",

@@ -5,0 +5,0 @@ "main": "legend.js",

@@ -0,1 +1,4 @@

# 2.1.2
* Fix bug for templates without layout module
# 2.1.1

@@ -2,0 +5,0 @@ * Tweak spacing

@@ -171,4 +171,4 @@ import { select } from "d3-selection";

var layout = template ? template.state.layout : undefined;
var font_family = layout ? layout.body_font.name : "sans-serif";
var font_color = s.text_color || (template && layout.font_color) || "#333333";
var font_family = layout ? layout.body_font.name : window.getComputedStyle(document.body).fontFamily;
var font_color = s.text_color || (template && layout && layout.font_color) || "#333333";
var ctx = label_canvas.node().getContext("2d");

@@ -175,0 +175,0 @@ ctx.textAlign = "center";

Sorry, the diff of this file is too big to display