Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@oncojs/sapien

Package Overview
Dependencies
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oncojs/sapien - npm Package Compare versions

Comparing version 0.4.3 to 0.5.0

5

dist/es6/index.js

@@ -22,2 +22,3 @@ import * as d3 from 'd3';

labelSize = _ref.labelSize,
tickInterval = _ref.tickInterval,
_ref$offsetLeft = _ref.offsetLeft,

@@ -44,2 +45,3 @@ offsetLeft = _ref$offsetLeft === undefined ? 0 : _ref$offsetLeft,

labelSize = labelSize || '12px';
tickInterval = tickInterval || 1000;

@@ -52,3 +54,2 @@ var plotHeight = height - 20;

}));
var tickInterval = 500;
var numberOfVerticalAxis = Math.floor(maxCases / tickInterval) + 1;

@@ -80,3 +81,3 @@

xAxisLabels.append('text').attr('y', plotHeight + 13).attr('x', x(tickInterval) * i + barStartOffset).attr('fill', 'rgb(10, 10, 10)').attr('font-size', '12px').style('text-anchor', 'middle').text(function (d) {
return tickInterval * i;
return (tickInterval * i).toLocaleString();
});

@@ -83,0 +84,0 @@ }

@@ -37,2 +37,3 @@ 'use strict';

labelSize = _ref.labelSize,
tickInterval = _ref.tickInterval,
_ref$offsetLeft = _ref.offsetLeft,

@@ -59,2 +60,3 @@ offsetLeft = _ref$offsetLeft === undefined ? 0 : _ref$offsetLeft,

labelSize = labelSize || '12px';
tickInterval = tickInterval || 1000;

@@ -67,3 +69,2 @@ var plotHeight = height - 20;

}));
var tickInterval = 500;
var numberOfVerticalAxis = Math.floor(maxCases / tickInterval) + 1;

@@ -95,3 +96,3 @@

xAxisLabels.append('text').attr('y', plotHeight + 13).attr('x', x(tickInterval) * i + barStartOffset).attr('fill', 'rgb(10, 10, 10)').attr('font-size', '12px').style('text-anchor', 'middle').text(function (d) {
return tickInterval * i;
return (tickInterval * i).toLocaleString();
});

@@ -98,0 +99,0 @@ }

6

index.js

@@ -24,2 +24,3 @@ /* @flow */

labelSize,
tickInterval,
offsetLeft = 0,

@@ -41,2 +42,3 @@ offsetTop = 0,

labelSize = labelSize || '12px';
tickInterval = tickInterval || 1000;

@@ -47,3 +49,2 @@ const plotHeight = height - 20;

const maxCases = Math.max(...data.map(d => d[caseCountKey]));
const tickInterval = 500;
const numberOfVerticalAxis = Math.floor(maxCases / tickInterval) + 1;

@@ -102,3 +103,3 @@

.style('text-anchor', 'middle')
.text(d => tickInterval * i);
.text(d => (tickInterval * i).toLocaleString());
}

@@ -293,3 +294,2 @@ }

.style('z-index', '99999');
}

@@ -296,0 +296,0 @@

@@ -17,3 +17,3 @@ {

"name": "@oncojs/sapien",
"version": "0.4.3",
"version": "0.5.0",
"description": "Organ Map of Human Body",

@@ -20,0 +20,0 @@ "browser": true,

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

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