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

@oncojs/survivalplot

Package Overview
Dependencies
Maintainers
10
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oncojs/survivalplot - npm Package Compare versions

Comparing version 0.7.2 to 0.8.1

13

index.dist.js

@@ -24,10 +24,6 @@ 'use strict';

var _lodash7 = require('lodash.uniqby');
var _lodash7 = require('lodash.groupby');
var _lodash8 = _interopRequireDefault(_lodash7);
var _lodash9 = require('lodash.groupby');
var _lodash10 = _interopRequireDefault(_lodash9);
var _debug = require('debug');

@@ -41,3 +37,2 @@

var error = (0, _debug2.default)('survivalplot:error');
var log = (0, _debug2.default)('survivalplot:log');

@@ -62,3 +57,3 @@

},
shouldShowConfidenceIntervals: false,
shouldShowConfidenceIntervals: true,
confidenceAreaOpacity: 0.2

@@ -148,3 +143,3 @@ };

}).classed('minor', true);
gy.selectAll('text').attr('x', -20);
gy.selectAll('text').attr('x', -30).attr('text-anchor', 'end');
gy.append('svg:text').attr('class', 'axis-label').attr('text-anchor', 'middle').attr('transform', 'rotate(-90)').attr('y', -40).attr('x', -(axisHeight / 2)).text(yAxisLabel);

@@ -213,3 +208,3 @@

};
var groupedDonors = (0, _lodash10.default)(donorsInRange, groupingFunction);
var groupedDonors = (0, _lodash8.default)(donorsInRange, groupingFunction);
var sampledDataPoints = Object.values(groupedDonors).map(function (x) {

@@ -216,0 +211,0 @@ return x[0];

@@ -5,7 +5,5 @@ import d3 from 'd3'

import inRange from 'lodash.inrange'
import uniqBy from 'lodash.uniqby'
import groupBy from 'lodash.groupby'
import debug from 'debug'
const error = debug('survivalplot:error')
const log = debug('survivalplot:log')

@@ -30,3 +28,3 @@

},
shouldShowConfidenceIntervals: false,
shouldShowConfidenceIntervals: true,
confidenceAreaOpacity: 0.2,

@@ -83,3 +81,3 @@ }

.map(data => data.donors.slice(-1)[0].time))
var xDomain = params.xDomain || [0, longestDuration]

@@ -133,3 +131,4 @@ var onDomainChange = params.onDomainChange

gy.selectAll('text')
.attr('x', -20)
.attr('x', -30)
.attr('text-anchor', 'end')
gy.append('svg:text')

@@ -196,3 +195,3 @@ .attr('class', 'axis-label')

.y(d => y(d.survivalEstimate))
var confidenceArea = (

@@ -233,3 +232,3 @@ d3.svg

.attr('stroke', setColor)
// Draw the confidence interval

@@ -236,0 +235,0 @@ shouldShowConfidenceIntervals && setGroup.append('svg:path')

{
"name": "@oncojs/survivalplot",
"version": "0.7.2",
"version": "0.8.1",
"browser": true,

@@ -5,0 +5,0 @@ "dependencies": {

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