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

charted

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

charted - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

13

lib/Line/LineChartView.js

@@ -43,2 +43,3 @@ /**

this.listenTo(this.model, 'change:multi_y', this.toggleMultiY)
this.listenTo(this.model.plots, 'change:visible add remove reset', this.onAxisChange);
this.listenTo(this.model.get('data'), 'add remove reset update', this.render);

@@ -99,5 +100,15 @@ this.listenTo(this.model, 'destroy', this.remove);

var yaxes = this.subview('yaxes');
if (yaxes) yaxes.toggleMultiY();
if (yaxes) {
yaxes.toggleMultiY();
}
},
onAxisChange: function() {
this.lockDimensions();
var yaxes = this.subview('yaxes');
if (yaxes) {
yaxes.onAxisChange();
}
},
lockDimensions: function() {

@@ -104,0 +115,0 @@ // Lock height to prevent scrollbar craziness

14

lib/Line/YaxesView.js

@@ -16,6 +16,2 @@ /**

this.setupSubviews();
this.listenTo(this.collection, 'add remove reset change:visible', function() {
this.setupSubviews();
this.model.trigger('trigger_render');
});
},

@@ -33,2 +29,12 @@

onAxisChange: function() {
var oldWidth = this.$el.width();
this.setupSubviews();
this.model.trigger('trigger_render');
var newWidth = this.$el.width();
var change = newWidth - oldWidth;
var new_vp_width = this.model.get('vp_width') - change;
this.model.set({'vp_width': new_vp_width}, {validate: true});
},
setupSubviews: function() {

@@ -35,0 +41,0 @@ this.trigger('clean_up');

{
"name": "charted",
"version": "0.1.1",
"version": "0.1.2",
"description": "Charts an entire collection of data. Single or multiple y-axes. Support for 64-bit integers. Auto-resizing axes.",

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

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