forked from ant-design/ant-design-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
178 changed files
with
2,629 additions
and
2,935 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
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 |
---|---|---|
|
@@ -5,3 +5,7 @@ package.json | |
.umi | ||
.umi-production | ||
.umi-test | ||
lib | ||
es | ||
dist | ||
node_modules |
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,15 @@ | ||
{ | ||
"version": "*", | ||
"npmClient": "npm", | ||
"command": { | ||
"publish": { | ||
"ignoreChanges": ["*.md", "**/**/*.test.js"], | ||
"message": "chore(release): publish", | ||
"registry": "https://npm.pkg.github.com" | ||
}, | ||
"bootstrap": { | ||
"npmClientArgs": ["--no-package-lock", "--no-ci"] | ||
} | ||
}, | ||
"packages": ["packages/*"] | ||
} |
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,49 @@ | ||
{ | ||
"name": "@ant-design/charts", | ||
"version": "2.0.0-beta.0", | ||
"description": "AntV upper level visual component library", | ||
"bugs": { | ||
"url": "https://github.com/ant-design/ant-design-charts/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ant-design/ant-design-charts.git" | ||
}, | ||
"main": "lib/index.js", | ||
"unpkg": "dist/charts.min.js", | ||
"module": "es/index.js", | ||
"types": "es/index.d.ts", | ||
"files": [ | ||
"/lib", | ||
"/es", | ||
"/dist" | ||
], | ||
"scripts": { | ||
"build": "run-s clean lib dist", | ||
"ci": "npm run build && npm run test:coverage", | ||
"clean": "rimraf lib es dist", | ||
"dist": "webpack --config webpack.config.js --mode production", | ||
"profile": "webpack --config webpack.config.js --mode production --profile --json > stats.json", | ||
"lib": "run-p lib:*", | ||
"lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib", | ||
"lib:es": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir es" | ||
}, | ||
"dependencies": { | ||
"@ant-design/plots": "^0.0.1", | ||
"@ant-design/graphs": "^0.0.1", | ||
"@ant-design/flowchart": "^0.0.1" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8.4", | ||
"react-dom": ">=16.8.4" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"np": { | ||
"yarn": false, | ||
"contents": "dist" | ||
}, | ||
"sideEffects": false, | ||
"license": "MIT" | ||
} |
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,4 @@ | ||
// @ts-nocheck | ||
export * from '@ant-design/plots'; | ||
export * from '@ant-design/flowchart'; | ||
export * from '@ant-design/graphs'; |
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,52 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "esnext", | ||
"target": "esnext", | ||
"lib": ["esnext", "dom"], | ||
"sourceMap": false, | ||
"baseUrl": ".", | ||
"jsx": "react", | ||
"allowJs": false, | ||
"allowSyntheticDefaultImports": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noImplicitReturns": true, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"noUnusedLocals": true, | ||
"experimentalDecorators": true, | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
"outDir": "dist", | ||
"declaration": true | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"build", | ||
"dist", | ||
"lib", | ||
"es", | ||
"config", | ||
"scripts", | ||
"webpack", | ||
"jest", | ||
"tslint:latest", | ||
"tslint-config-prettier", | ||
"example", | ||
"_test_" | ||
], | ||
"include": [ | ||
"**/src/**/*", | ||
"**/docs/**/*", | ||
"scripts/**/*", | ||
"**/demos", | ||
".eslintrc.js", | ||
"tests", | ||
"jest.config.js", | ||
"**/fixtures", | ||
"./tests/no-duplicated.ts" | ||
], | ||
"paths": { | ||
"@@/*": ["src/.umi/*"] | ||
} | ||
} |
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,12 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"browsers": ["last 1 version", "> 1%", "IE 9"] | ||
} | ||
} | ||
] | ||
] | ||
} |
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,52 @@ | ||
{ | ||
"name": "@ant-design/flowchart", | ||
"version": "0.0.1", | ||
"description": "Flowchart", | ||
"bugs": { | ||
"url": "https://github.com/ant-design/ant-design-charts/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ant-design/ant-design-charts.git" | ||
}, | ||
"main": "lib/index.js", | ||
"unpkg": "dist/flowChart.min.js", | ||
"module": "es/index.js", | ||
"types": "es/index.d.ts", | ||
"files": [ | ||
"/lib", | ||
"/es", | ||
"/dist" | ||
], | ||
"scripts": { | ||
"build": "run-s clean lib dist", | ||
"ci": "npm run build && npm run test:coverage", | ||
"clean": "rimraf lib es dist", | ||
"dist": "webpack --config webpack.config.js --mode production", | ||
"profile": "webpack --config webpack.config.js --mode production --profile --json > stats.json", | ||
"lib": "run-p lib:*", | ||
"lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib", | ||
"lib:es": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir es", | ||
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx --fix --format=pretty ./src && npm run lint:prettier", | ||
"lint:prettier": "npm run prettier && git diff && prettier --version && prettier --check \"src/**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto", | ||
"prettier": "prettier --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"", | ||
"test": "umi-test", | ||
"test:coverage": "umi-test --coverage" | ||
}, | ||
"dependencies": { | ||
"@antv/x6": "^1.25.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8.4", | ||
"react-dom": ">=16.8.4" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"np": { | ||
"yarn": false, | ||
"contents": "dist" | ||
}, | ||
"sideEffects": false, | ||
"license": "MIT" | ||
} |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React, { useEffect } from 'react'; | ||
import { Graph } from '@antv/x6'; | ||
|
||
const X6Graph: React.FC = (props) => { | ||
const container = React.useRef(null); | ||
|
||
useEffect(() => { | ||
new Graph({ | ||
container: container.current as any, | ||
width: 800, | ||
height: 600, | ||
}); | ||
}, []); | ||
|
||
return <div ref={container} />; | ||
}; | ||
|
||
export default X6Graph; |
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,3 @@ | ||
import X6Graph from './graph'; | ||
|
||
export { X6Graph }; |
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,4 @@ | ||
// X6 | ||
import { X6Graph } from './flowChart'; | ||
|
||
export { X6Graph }; |
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,3 @@ | ||
import { isType, clone, hasPath, setPath, deepClone } from './utils'; | ||
|
||
export { isType, clone, hasPath, setPath, deepClone }; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "esnext", | ||
"target": "esnext", | ||
"lib": ["esnext", "dom"], | ||
"sourceMap": false, | ||
"baseUrl": ".", | ||
"jsx": "react", | ||
"allowJs": false, | ||
"allowSyntheticDefaultImports": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noImplicitReturns": true, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"noUnusedLocals": true, | ||
"experimentalDecorators": true, | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
"outDir": "dist", | ||
"declaration": true | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"build", | ||
"dist", | ||
"lib", | ||
"es", | ||
"config", | ||
"scripts", | ||
"webpack", | ||
"jest", | ||
"tslint:latest", | ||
"tslint-config-prettier", | ||
"example", | ||
"_test_" | ||
], | ||
"include": [ | ||
"**/src/**/*", | ||
"**/docs/**/*", | ||
"scripts/**/*", | ||
"**/demos", | ||
".eslintrc.js", | ||
"tests", | ||
"jest.config.js", | ||
"**/fixtures", | ||
"./tests/no-duplicated.ts" | ||
], | ||
"paths": { | ||
"@@/*": ["src/.umi/*"] | ||
} | ||
} |
Oops, something went wrong.