Skip to content

Commit

Permalink
fix(package): update and remove leftovers (#240)
Browse files Browse the repository at this point in the history
* fix(package): update and purge deps

Useful dependencies are updated and unused are removed.
The unused were reftovers after various changes like the switch to
PostCSS or the move of examples index page generator to vis-dev-utils.

* style: update Prettier formatting

New Prettier version seems to always mean some minor formatting changes.
  • Loading branch information
Thomaash authored and yotamberk committed Nov 18, 2019
1 parent 71b2c43 commit fbc4d42
Show file tree
Hide file tree
Showing 9 changed files with 1,810 additions and 1,639 deletions.
5 changes: 4 additions & 1 deletion lib/network/modules/components/edges/cubic-bezier-edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ export class CubicBezierEdge extends CubicBezierEdgeBase<[Point, Point]> {
x2 = this.to.x;
}

return [{ x: x1, y: y1 }, { x: x2, y: y2 }];
return [
{ x: x1, y: y1 },
{ x: x2, y: y2 }
];
}

/** @inheritdoc */
Expand Down
12 changes: 10 additions & 2 deletions lib/network/modules/components/edges/util/end-points.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,11 @@ class Triangle {
): true {
// Normalized points of closed path, in the order that they should be drawn.
// (0, 0) is the attachment point, and the point around which should be rotated
const points = [{ x: 0.02, y: 0 }, { x: -1, y: 0.3 }, { x: -1, y: -0.3 }];
const points = [
{ x: 0.02, y: 0 },
{ x: -1, y: 0.3 },
{ x: -1, y: -0.3 }
];

EndPoint.transform(points, arrowData);
EndPoint.drawPath(ctx, points);
Expand All @@ -325,7 +329,11 @@ class InvertedTriangle {
): true {
// Normalized points of closed path, in the order that they should be drawn.
// (0, 0) is the attachment point, and the point around which should be rotated
const points = [{ x: 0, y: 0.3 }, { x: 0, y: -0.3 }, { x: -1, y: 0 }];
const points = [
{ x: 0, y: 0.3 },
{ x: 0, y: -0.3 },
{ x: -1, y: 0 }
];

EndPoint.transform(points, arrowData);
EndPoint.drawPath(ctx, points);
Expand Down
2 changes: 1 addition & 1 deletion lib/network/shapes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ const shapeMap = {
* `(ctx: CanvasRenderingContext2D, ...originalArgs) => void`.
*/
export function getShape(
name: (keyof CanvasRenderingContext2D) | (keyof typeof shapeMap)
name: keyof CanvasRenderingContext2D | keyof typeof shapeMap
): any {
if (Object.prototype.hasOwnProperty.call(shapeMap, name)) {
return (shapeMap as any)[name];
Expand Down
2,577 changes: 1,764 additions & 813 deletions package-lock.json

Large diffs are not rendered by default.

57 changes: 23 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,77 +69,66 @@
"vis-util": "^1.1.8"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "7.5.5",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "7.6.3",
"@babel/preset-typescript": "7.6.0",
"@babel/register": "7.6.2",
"@babel/runtime": "7.6.3",
"@babel/runtime-corejs3": "^7.6.3",
"@egjs/hammerjs": "2.0.15",
"@semantic-release/commit-analyzer": "6.3.1",
"@babel/core": "7.7.2",
"@babel/plugin-proposal-class-properties": "7.7.0",
"@babel/plugin-transform-runtime": "7.6.2",
"@babel/preset-env": "7.7.1",
"@babel/preset-typescript": "7.7.2",
"@babel/register": "7.7.0",
"@babel/runtime-corejs3": "7.7.2",
"@egjs/hammerjs": "2.0.16",
"@semantic-release/commit-analyzer": "6.3.3",
"@semantic-release/github": "5.5.5",
"@semantic-release/npm": "5.2.0",
"@semantic-release/npm": "5.3.4",
"@semantic-release/release-notes-generator": "7.3.3",
"@types/chai": "4.2.5",
"@types/cheerio": "0.22.13",
"@types/hammerjs": "2.0.36",
"@types/mocha": "5.2.7",
"@types/prettier": "1.18.3",
"@types/sinon": "7.5.0",
"@types/timsort": "0.3.0",
"@types/yargs": "13.0.3",
"@typescript-eslint/eslint-plugin": "2.5.0",
"@typescript-eslint/parser": "2.5.0",
"@typescript-eslint/eslint-plugin": "2.8.0",
"@typescript-eslint/parser": "2.8.0",
"babel-plugin-css-modules-transform": "1.6.2",
"babel-plugin-istanbul": "5.2.0",
"babel-preset-minify": "0.5.1",
"chai": "4.2.0",
"cheerio": "1.0.0-rc.3",
"component-emitter": "1.3.0",
"cpy-cli": "2.0.0",
"cypress": "3.5.0",
"cypress": "3.6.1",
"eslint": "6.6.0",
"eslint-config-prettier": "6.6.0",
"eslint-plugin-cypress": "2.7.0",
"eslint-plugin-prettier": "3.1.1",
"gh-pages": "2.1.1",
"globby": "10.0.1",
"jsdoc": "3.6.3",
"jsdom": "15.2.0",
"jsdom": "15.2.1",
"jsdom-global": "3.0.2",
"keycharm": "0.2.0",
"keycharm": "0.3.1",
"mocha": "6.2.2",
"moment": "2.24.0",
"nyc": "14.1.1",
"opencollective": "1.0.3",
"pageres": "5.2.0",
"postcss-assets": "5.0.0",
"prettier": "1.18.2",
"prettier": "1.19.1",
"rimraf": "3.0.0",
"rollup": "1.25.2",
"rollup": "1.27.2",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-copy": "3.1.0",
"rollup-plugin-css-porter": "1.0.2",
"rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-postcss": "2.0.3",
"rollup-plugin-terser": "5.1.2",
"rollup-plugin-typescript2": "0.24.3",
"semantic-release": "15.13.28",
"rollup-plugin-typescript2": "0.25.2",
"semantic-release": "15.13.31",
"serve": "11.2.0",
"sinon": "7.5.0",
"start-server-and-test": "1.10.6",
"timsort": "0.3.0",
"typescript": "3.6.4",
"vis-data": "6.2.1",
"typescript": "3.7.2",
"vis-data": "6.2.2",
"vis-dev-utils": "1.1.0",
"vis-util": "1.1.9",
"yargs": "14.2.0"
"vis-util": "2.0.0"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/visjs"
},
"dependencies": {}
}
}
Loading

0 comments on commit fbc4d42

Please sign in to comment.