-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #629 from lineupjs/release/v4.8.0
Release v4.8.0
- Loading branch information
Showing
179 changed files
with
5,514 additions
and
4,618 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8" /> | ||
<title>LineUp Builder Test</title> | ||
|
||
<link href="./LineUpJS.css" rel="stylesheet" /> | ||
<link href="./demo.css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<script src="./LineUpJS.js"></script> | ||
|
||
<script> | ||
window.onload = function () { | ||
const arr = []; | ||
const vs = [ | ||
'y', | ||
'yes', | ||
'true', | ||
true, | ||
'1', | ||
'1.0', | ||
1, | ||
1.0, | ||
'n', | ||
'no', | ||
'false', | ||
false, | ||
'0', | ||
'0.0', | ||
0, | ||
0.0, | ||
'on', | ||
'off', | ||
]; | ||
for (let i = 0; i < vs.length; ++i) { | ||
arr.push({ | ||
s: 'Row ' + i, | ||
bool: vs[i], | ||
custombool: i % 2 === 0 ? 'yeah' : 'nope', | ||
}); | ||
} | ||
for (let i = 0; i < vs.length; ++i) { | ||
arr.push({ | ||
s: 'Row ' + i, | ||
bool: typeof vs[i] === 'string' ? vs[i].toUpperCase() : vs[i], | ||
custombool: i % 2 === 0 ? 'yeah'.toUpperCase() : 'nope'.toUpperCase(), | ||
}); | ||
} | ||
const b = LineUpJS.builder(arr); | ||
|
||
b.column(LineUpJS.buildStringColumn('s').label('label')); | ||
b.column(LineUpJS.buildBooleanColumn('bool').label('bool')); | ||
b.column( | ||
LineUpJS.buildBooleanColumn('custombool') | ||
.label('custombool') | ||
.summary('custom true values') | ||
.trueValues(['yeah']) | ||
); | ||
|
||
b.build(document.body); | ||
}; | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
<title>Document</title> | ||
<link href="./LineUpJS.css" rel="stylesheet" /> | ||
|
||
<style> | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.lu { | ||
clear: both; | ||
position: absolute; | ||
top: 1px; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
padding: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<script src="./LineUpJS.js"></script> | ||
<script> | ||
let testData = [ | ||
{ n: 0, m: 1 }, | ||
{ n: 20, m: 10 }, | ||
{ n: 100, m: 100 }, | ||
]; | ||
for (let i = 0; i < 5; i++) { | ||
testData = [...testData, ...testData]; | ||
} | ||
const builder = LineUpJS.builder(testData); | ||
|
||
builder.column(LineUpJS.buildNumberColumn('n').label('N').custom('showMinimumRepresentation', true)); | ||
builder.column(LineUpJS.buildNumberColumn('m').label('M').custom('showMinimumRepresentation', true)); | ||
builder.column(LineUpJS.buildNumberColumn('n').label('N 2')); | ||
builder.column(LineUpJS.buildNumberColumn('m').label('M 2')); | ||
builder.buildTaggle(document.body); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* eslint-env node */ | ||
const path = require('path'); | ||
|
||
const mapper = {}; | ||
for (const d of [ | ||
'd3-dispatch', | ||
'd3-scale-chromatic', | ||
'd3-interpolate', | ||
'd3-color', | ||
'd3-scale', | ||
'd3-array', | ||
'd3-format', | ||
'd3-time', | ||
'd3-time-format', | ||
]) { | ||
mapper[`^${d}$`] = require.resolve(d).replace(`src${path.sep}index.js`, `dist${path.sep}/${d}.js`); | ||
} | ||
|
||
module.exports = { | ||
testEnvironment: 'jsdom', | ||
preset: 'ts-jest', | ||
testRegex: '/tests/.*\\.spec\\.(ts|tsx|js)$', | ||
moduleNameMapper: mapper, | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: 'tsconfig.test.json', | ||
}, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.