Skip to content

Commit

Permalink
fix: 修复 ts 类型 (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue committed Nov 21, 2022
1 parent 7a758ed commit 6777821
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,21 @@
"packages/*"
],
"scripts": {
"beta": "npm run build && npm run test && lerna publish --preid beta",
"bootstrap": "lerna bootstrap",
"build": "father build",
"build-ci": "CI=true npm run build",
"build-watch": "CI=true father build -w",
"bundle-viz": "cross-env BUNDLE_VIS=1 PACKAGE=f2 npm run build",
"changelog": "generate-changelog",
"limit-size": "limit-size",
"ci": "npm run lint && npm run build && npm run test",
"clean": "lerna clean",
"coverage": "jest --coverage",
"dev": "npm run test-watch",
"limit-size": "limit-size",
"lint": "eslint ./",
"lint-fix": "eslint --fix ./",
"bundle-viz": "cross-env BUNDLE_VIS=1 PACKAGE=f2 npm run build",
"prettier": "prettier --write './packages/**/*.{ts,tsx}'",
"publish": "npm run build && npm run test && lerna publish",
"publish": "npm run build && npm run test && lerna publish --dist-tag next",
"refresh": "lerna clean && yarn && lerna bootstrap",
"site:build": "cd ./packages/site && npm run site:build",
"site:clean": "cd ./packages/site && npm run site:clean",
Expand Down Expand Up @@ -69,20 +68,20 @@
"@types/jest-image-snapshot": "^4.3.1",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"rollup-plugin-visualizer": "^5.6.0",
"canvas-to-buffer": "^1.1.1",
"cross-env": "^6.0.3",
"eslint": "^7.32.0",
"father": "^2.30.0",
"generate-changelog": "^1.8.0",
"cross-env": "^6.0.3",
"jest": "^26.6.3",
"jest-electron": "^0.1.12",
"jest-image-snapshot": "^4.5.1",
"lerna": "^3.22.1",
"limit-size": "^0.1.4",
"pre-commit": "^1.2.2",
"rollup-plugin-visualizer": "^5.6.0",
"ts-jest": "^26.4.4",
"typescript": "^4.1.3",
"limit-size": "^0.1.4"
"typescript": "^4.1.3"
},
"limit-size": [
{
Expand Down
4 changes: 2 additions & 2 deletions packages/f2/test/canvas/animation.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Canvas', () => {
type: 'rect',
property: ['width'],
duration: 1000,
attrs: {
style: {
x: 0,
y: 0,
height: 50,
Expand Down Expand Up @@ -55,7 +55,7 @@ describe('Canvas', () => {
type: 'rect',
property: ['width'],
duration: 1000,
attrs: {
style: {
x: 0,
y: 0,
// x: attrs.x,
Expand Down
4 changes: 2 additions & 2 deletions packages/f2/test/canvas/graphic.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,15 +294,15 @@ describe('Canvas', () => {
[50, 45],
[100, 80],
[200, 80],
];
] as [number, number][];

const points2 = [
[10, 40],
[20, 60],
[50, 20],
[100, 90],
[200, 70],
];
] as [number, number][];

const clipPoints = [...points1];
clipPoints.push([200, 0], [0, 0]);
Expand Down
4 changes: 2 additions & 2 deletions packages/f2/test/components/geometry/empty-data.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Custom extends Geometry {
return (
<circle
attrs={{
x,
y,
cx: x,
cy: y,
r: '20px',
fill: '#000',
}}
Expand Down

0 comments on commit 6777821

Please sign in to comment.