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

@d3fc/d3fc-label-layout

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@d3fc/d3fc-label-layout - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## 7.0.1 (2020-07-14)
**Note:** Version bump only for package @d3fc/d3fc-label-layout
# 7.0.0 (2020-04-16)

@@ -8,0 +16,0 @@

9

package.json
{
"name": "@d3fc/d3fc-label-layout",
"version": "7.0.0",
"version": "7.0.1",
"description": "A D3 layout that places labels avoiding overlaps using either a greedy or simulated annealing strategy",

@@ -21,8 +21,7 @@ "license": "MIT",

"bundle": "npx rollup -c ../../scripts/rollup.config.js",
"test": " npx jasmine --config=../../scripts/jasmine.json",
"start": "npm start --prefix ../d3fc -- --configPkg=d3fc-label-layout"
},
"dependencies": {
"@d3fc/d3fc-data-join": "^6.0.0",
"@d3fc/d3fc-rebind": "^6.0.0"
"@d3fc/d3fc-data-join": "^6.0.1",
"@d3fc/d3fc-rebind": "^6.0.1"
},

@@ -37,3 +36,3 @@ "peerDependencies": {

},
"gitHead": "42460bbd9e769aa24b07ae8e6dc7037c63d3bea8"
"gitHead": "3c6890b82dbb430bafd52420c0dd506861f16f5d"
}

@@ -9,9 +9,9 @@ import jsdom from 'jsdom';

virtualConsole: jsdom.createVirtualConsole().sendTo({
error: fail
error: done
}),
scripts: [
require.resolve('d3/dist/d3.js'),
'./node_modules/@d3fc/d3fc-data-join/build/d3fc-data-join.js',
'./node_modules/@d3fc/d3fc-rebind/build/d3fc-rebind.js',
'./build/d3fc-label-layout.js'
require.resolve('../node_modules/@d3fc/d3fc-data-join/build/d3fc-data-join.js'),
require.resolve('../node_modules/@d3fc/d3fc-rebind/build/d3fc-rebind.js'),
require.resolve('../build/d3fc-label-layout.js')
],

@@ -18,0 +18,0 @@ done: (_, win) => {

@@ -26,3 +26,3 @@ import { select } from 'd3-selection';

expect(svg.children.length).toEqual(3);
expect(svg.children).toHaveLength(3);
expect(svg.children[0].getAttribute('style')).toEqual('display:inherit');

@@ -29,0 +29,0 @@ expect(svg.children[1].getAttribute('style')).toEqual('display:none');

@@ -13,3 +13,3 @@ import removeOverlaps from '../src/removeOverlaps';

const result = strategy(data);
expect(result.filter(r => r.hidden).length).toEqual(0);
expect(result.filter(r => r.hidden)).toHaveLength(0);
});

@@ -23,3 +23,3 @@

const result = strategy(data);
expect(result.filter(r => r.hidden).length).toEqual(1);
expect(result.filter(r => r.hidden)).toHaveLength(1);
});

@@ -35,3 +35,3 @@

const result = strategy(data);
expect(result.filter(r => r.hidden).length).toEqual(1);
expect(result.filter(r => r.hidden)).toHaveLength(1);
expect(data[1].hidden).toEqual(true);

@@ -38,0 +38,0 @@ });

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