Browse Source

Merge pull request 'Update dependencies' (#1) from update-deps into main

Reviewed-on: #1
pull/2/head
rozetko 11 months ago
parent
commit
784a5b4822
  1. 1
      .gitignore
  2. 16
      demo.html
  3. 21
      package.json
  4. 3
      src/index.ts
  5. 3200
      yarn.lock

1
.gitignore vendored

@ -1,3 +1,4 @@
node_modules
.vscode
dist

16
demo.html

@ -1,16 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<script src="./dist/index.js" type="text/javascript"></script>
</head>
<body>
<div id="chart" style="width: 500px; height: 500px;"></div>
<script type="text/javascript">
new ChartwerkPod(document.getElementById('chart'))
</script>
</body>
</html>

21
package.json

@ -1,9 +1,12 @@
{
"name": "@chartwerk/core",
"version": "0.6.13",
"version": "0.6.14",
"description": "Chartwerk core",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"/dist"
],
"scripts": {
"build": "webpack --config build/webpack.prod.conf.js",
"dev": "webpack --config build/webpack.dev.conf.js",
@ -16,15 +19,15 @@
"author": "CorpGlory Inc.",
"license": "ISC",
"dependencies": {
"d3": "^5.7.2",
"lodash": "^4.14.149"
"d3": "^5.16.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"css-loader": "^3.4.2",
"style-loader": "^1.1.3",
"ts-loader": "^6.2.1",
"typescript": "^3.8.3",
"webpack": "^4.42.0",
"webpack-cli": "^3.3.11"
"css-loader": "^6.8.1",
"style-loader": "^3.3.3",
"ts-loader": "^9.4.3",
"typescript": "^5.1.3",
"webpack": "^5.87.0",
"webpack-cli": "^5.1.4"
}
}

3
src/index.ts

@ -32,10 +32,8 @@ import * as d3 from 'd3';
import first from 'lodash/first';
import last from 'lodash/last';
import debounce from 'lodash/debounce';
import isNil from 'lodash/isNil';
const DEFAULT_TICK_COUNT = 4;
const DEFAULT_TICK_SIZE = 2;
const MILISECONDS_IN_MINUTE = 60 * 1000;
@ -86,7 +84,6 @@ abstract class ChartwerkPod<T extends Serie, O extends Options> {
this.options = new CoreOptions(_options);
this.series = new CoreSeries(_series);
this.d3Node = d3.select(this.el);
this.addEventListeners();

3200
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save