@d3fc/d3fc-label-layout
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -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 @@ |
{ | ||
"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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
259137
27
1124
Updated@d3fc/d3fc-data-join@^6.0.1
Updated@d3fc/d3fc-rebind@^6.0.1