-
-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf2baaa
commit d335ade
Showing
24 changed files
with
3,807 additions
and
2,767 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,10 +1,4 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": ["react-app", "prettier"], | ||
"env": { | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module" | ||
} | ||
"extends": ["react-app", "prettier"] | ||
// "parser": "babel-eslint" | ||
} |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ build | |
dist | ||
artifacts | ||
.rpt2_cache | ||
d3/index.js | ||
|
||
# misc | ||
.DS_Store | ||
|
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,22 @@ | ||
import path from 'path' | ||
import node from 'rollup-plugin-node-resolve' | ||
// import { terser } from 'rollup-plugin-terser' | ||
|
||
export default [ | ||
{ | ||
input: path.join(__dirname, 'entry.js'), | ||
output: { | ||
format: 'es', | ||
file: path.join(__dirname, 'index.js'), | ||
}, | ||
plugins: [node()], | ||
onwarn, | ||
}, | ||
] | ||
|
||
function onwarn(message) { | ||
if (message.code === 'CIRCULAR_DEPENDENCY') { | ||
return | ||
} | ||
console.error(message) | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
[{"timestamp":1590788251975,"files":[{"filename":"react-charts.production.min.js","size":36178,"delta":19703}]},{"timestamp":1585154943498,"files":[{"filename":"react-charts.production.min.js","size":16475,"delta":16475}]}] | ||
[{"timestamp":1591076297995,"files":[{"filename":"react-charts.production.min.js","size":38874,"delta":2933}]},{"timestamp":1590960432591,"files":[{"filename":"react-charts.production.min.js","size":35941,"delta":-237}]},{"timestamp":1590788251975,"files":[{"filename":"react-charts.production.min.js","size":36178,"delta":19703}]},{"timestamp":1585154943498,"files":[{"filename":"react-charts.production.min.js","size":16475,"delta":16475}]}] |
This file was deleted.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import React from "react"; | ||
import React from 'react' | ||
// | ||
|
||
const defaultStyle = { | ||
r: 2, | ||
strokeWidth: "1", | ||
stroke: "#000000", | ||
fill: "#000000", | ||
opacity: 1 | ||
}; | ||
strokeWidth: '1', | ||
stroke: '#000000', | ||
fill: '#000000', | ||
opacity: 1, | ||
} | ||
|
||
export default function Circle({ x, y, r, style, ...rest }) { | ||
const resolvedStyle = { | ||
...defaultStyle, | ||
...style | ||
}; | ||
...style, | ||
} | ||
|
||
return ( | ||
<circle {...rest} cx={x || 0} cy={y || 0} r={1} style={resolvedStyle} /> | ||
); | ||
) | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import React from "react"; | ||
import React from 'react' | ||
|
||
export default React.forwardRef(function Group(props, ref) { | ||
return <g {...props} ref={ref} />; | ||
}); | ||
return <g {...props} ref={ref} /> | ||
}) |
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 |
---|---|---|
@@ -1,21 +1,17 @@ | ||
import React from "react"; | ||
import React from 'react' | ||
// | ||
|
||
const defaultStyle = { | ||
strokeWidth: 1, | ||
fill: "transparent", | ||
opacity: 1 | ||
}; | ||
|
||
export default class Line extends React.Component { | ||
render() { | ||
const { style, ...rest } = this.props; | ||
|
||
const resolvedStyle = { | ||
...defaultStyle, | ||
...style | ||
}; | ||
fill: 'transparent', | ||
opacity: 1, | ||
} | ||
|
||
return <line {...rest} style={resolvedStyle} />; | ||
export default function Line({ style, ...rest }) { | ||
const resolvedStyle = { | ||
...defaultStyle, | ||
...style, | ||
} | ||
|
||
return <line {...rest} style={resolvedStyle} /> | ||
} |
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import React from "react"; | ||
import React from 'react' | ||
// | ||
|
||
const defaultStyle = { | ||
strokeWidth: 2, | ||
stroke: "#6b6b6b", | ||
fill: "transparent", | ||
opacity: 1 | ||
}; | ||
stroke: '#6b6b6b', | ||
fill: 'transparent', | ||
opacity: 1, | ||
} | ||
|
||
export default function Path({ style, ...rest }) { | ||
const resolvedStyle = { | ||
...defaultStyle, | ||
...style | ||
}; | ||
...style, | ||
} | ||
|
||
return <path {...rest} style={resolvedStyle} />; | ||
return <path {...rest} style={resolvedStyle} /> | ||
} |
Oops, something went wrong.