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

@geoblocks/d3-helper

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geoblocks/d3-helper - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

5

lib/base-d3-chart-svg.d.ts

@@ -37,2 +37,7 @@ /**

/**
* Update the size of the svg element.
* The element svg must be redrawn after.
*/
protected updateSize_(element: Element): void;
/**
* Remove de SVG.

@@ -39,0 +44,0 @@ */

@@ -37,2 +37,10 @@ import { select as d3Select } from 'd3-selection';

/**
* Update the size of the svg element.
* The element svg must be redrawn after.
*/
updateSize_(element) {
this.width_ = element.offsetWidth;
this.height_ = element.offsetHeight;
}
/**
* Remove de SVG.

@@ -39,0 +47,0 @@ */

9

lib/cartesian-chart.d.ts

@@ -31,2 +31,6 @@ import { BaseD3ChartSVG, Margins } from './base-d3-chart-svg';

/**
* Color For axis label.
*/
color?: number[];
/**
* Axis static label.

@@ -114,7 +118,2 @@ * If not set, the chart may try to use the axis column as label.

/**
* Update the size of the svg element.
* The element svg must be redrawn after.
*/
protected updateSize_(element: Element): void;
/**
* Reset the chart.

@@ -121,0 +120,0 @@ * Remove, update the size, and draw the SVG again.

@@ -66,10 +66,2 @@ import { min as d3Min, max as d3Max } from 'd3-array';

/**
* Update the size of the svg element.
* The element svg must be redrawn after.
*/
updateSize_(element) {
this.width_ = element.offsetWidth;
this.height_ = element.offsetHeight;
}
/**
* Reset the chart.

@@ -124,3 +116,3 @@ * Remove, update the size, and draw the SVG again.

if (!this.config_.xAxis.hideAxis) {
this.drawXAxis_(this.color_, data);
this.drawXAxis_(axisConfig.color || this.color_, data);
}

@@ -143,3 +135,3 @@ }

if (!this.config_.yAxis.hideAxis) {
this.drawYAxis_(this.color_, data);
this.drawYAxis_(axisConfig.color || this.color_, data);
}

@@ -161,3 +153,3 @@ }

this.oppositeYScale_ = this.getScale_(this.oppositeYData_, axisType, [drawableHeight, 0]);
this.drawOppositeYAxis_(this.color_, data);
this.drawOppositeYAxis_(axisConfig.color || this.color_, data);
}

@@ -164,0 +156,0 @@ /**

{
"name": "@geoblocks/d3-helper",
"version": "1.0.7",
"version": "1.0.8",
"description": "d3 helper classes",

@@ -5,0 +5,0 @@ "license": "bsd",

@@ -56,4 +56,3 @@ # d3-helper

* More examples.
* Tooltips helpers for data.
* Tests.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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