@antv/adjust
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -1,23 +0,17 @@ | ||
// 完整版下使用支持按照某个字段进行分组的 dodge | ||
var mix = require('@antv/util/lib/mix'); | ||
var Adjust = require('./base'); | ||
var Dodge = require('./dodge'); | ||
var Stack = require('./stack'); | ||
var AdjustMixin = require('./mixin/adjust'); | ||
var DodgeMixin = require('./mixin/dodge'); | ||
var StackMixin = require('./mixin/stack'); | ||
mix(Adjust.prototype, AdjustMixin); | ||
mix(Dodge.prototype, AdjustMixin, DodgeMixin); | ||
mix(Stack.prototype, StackMixin); | ||
Adjust.Jitter = require('./jitter'); | ||
Adjust.Symmetric = require('./symmetric'); | ||
Adjust.Dodge = Dodge; | ||
Adjust.Stack = Stack; | ||
module.exports = Adjust; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var factory_1 = require("./factory"); | ||
exports.getAdjust = factory_1.getAdjust; | ||
exports.registerAdjust = factory_1.registerAdjust; | ||
var adjust_1 = require("./adjusts/adjust"); | ||
exports.Adjust = adjust_1.default; | ||
var dodge_1 = require("./adjusts/dodge"); | ||
var jitter_1 = require("./adjusts/jitter"); | ||
var stack_1 = require("./adjusts/stack"); | ||
var symmetric_1 = require("./adjusts/symmetric"); | ||
// 注册内置的 adjust | ||
factory_1.registerAdjust('Dodge', dodge_1.default); | ||
factory_1.registerAdjust('Jitter', jitter_1.default); | ||
factory_1.registerAdjust('Stack', stack_1.default); | ||
factory_1.registerAdjust('Symmetric', symmetric_1.default); | ||
//# sourceMappingURL=index.js.map |
127
package.json
{ | ||
"name": "@antv/adjust", | ||
"version": "0.1.1", | ||
"description": "Data Adjust module for G2, F2.", | ||
"browser": "build/adjust.js", | ||
"main": "build/adjust.js", | ||
"module": "lib/index.js", | ||
"version": "0.2.0", | ||
"description": "The adjust module for G2, F2.", | ||
"main": "lib/index.js", | ||
"module": "esm/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"esm", | ||
"README.md", | ||
"LICENSE" | ||
], | ||
"devDependencies": { | ||
"@antv/scale": "~0.2.0", | ||
"@antv/torch": "~1.0.5", | ||
"chai": "~4.1.2", | ||
"husky": "^3.0.4", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^1.18.2", | ||
"tslint": "^5.18.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.5.3", | ||
"rimraf": "^3.0.0" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf lib esm", | ||
"lint": "run-s lint:*", | ||
"lint:tslint": "tslint -c tslint.json 'src/**/*.ts'", | ||
"lint:prettier": "prettier --list-different 'src/**/*.{ts,tsx,js,jsx}'", | ||
"test": "torch --renderer --compile --recursive ./__tests__/", | ||
"test-live": "torch --compile --interactive --watch --recursive ./__tests__/", | ||
"coverage": "exit 0", | ||
"lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib", | ||
"lib:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm", | ||
"lib": "run-p lib:*", | ||
"build": "run-s clean lib", | ||
"ci": "run-s lint build test" | ||
}, | ||
"dependencies": { | ||
"@antv/util": "~2.0.0", | ||
"tslib": "^1.10.0" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "run-s lint build test" | ||
} | ||
}, | ||
"repository": { | ||
@@ -18,3 +59,2 @@ "type": "git", | ||
"adjust", | ||
"adjust", | ||
"g2", | ||
@@ -24,76 +64,3 @@ "f2" | ||
"author": "https://github.com/orgs/antvis/people", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"babel-eslint": "~8.0.3", | ||
"babel-loader": "^8.0.0", | ||
"babel-plugin-transform-remove-strict-mode": "~0.0.2", | ||
"body-parser": "~1.18.2", | ||
"chai": "~4.1.2", | ||
"commander": "~2.12.2", | ||
"connect": "~3.6.6", | ||
"d3-queue": "~3.0.7", | ||
"debug": "~3.1.0", | ||
"electron": "~2.0.2", | ||
"eslint": "~3.19.0", | ||
"eslint-config-airbnb": "~15.0.1", | ||
"eslint-config-egg": "~4.2.0", | ||
"eslint-plugin-html": "~3.1.1", | ||
"eslint-plugin-jsx-a11y": "~5.1.1", | ||
"eslint-plugin-react": "~7.1.0", | ||
"event-simulate": "~1.0.0", | ||
"get-port": "~3.2.0", | ||
"jszip": "~3.1.5", | ||
"nightmare": "~2.10.0", | ||
"nunjucks": "~3.0.1", | ||
"open": "~0.0.5", | ||
"parseurl": "~1.3.2", | ||
"pre-commit": "~1.2.2", | ||
"serve-static": "~1.13.2", | ||
"shelljs": "~0.7.8", | ||
"string-replace-loader": "~1.3.0", | ||
"torchjs": "~2.1.0", | ||
"uglify-js": "~3.1.10", | ||
"webpack": "~3.10.0" | ||
}, | ||
"scripts": { | ||
"build": "webpack", | ||
"build-lib": "babel src --out-dir lib", | ||
"bundler": "electron ./bundler/app.js", | ||
"ci": "npm run lint && npm run test", | ||
"compress": "uglifyjs -c -m -o dist/adjust.min.js -- build/adjust.js", | ||
"coverage": "npm run coverage-generator && npm run coverage-viewer", | ||
"coverage-generator": "torch --compile --coverage --renderer --source-pattern src/*.js,src/**/*.js --recursive test/unit", | ||
"coverage-viewer": "torch-coverage", | ||
"demos": "electron ./demos/app.js", | ||
"demos-web": "node ./demos/app.js --web --port 2046", | ||
"dev": "npm run watch & npm run demos-web", | ||
"dist": "npm run mkdir-dist && npm run build && npm run compress", | ||
"lint": "eslint --ext .html,.js ./", | ||
"lint-fix": "eslint --ext .html,.js --fix ./", | ||
"mkdir-dist": "node ./bin/mkdir-dist.js", | ||
"prepublishOnly": "npm run build-lib && npm run dist", | ||
"screenshot": "node ./bin/screenshot.js", | ||
"start": "npm run dev", | ||
"test": "torch --renderer --recursive ./test/unit", | ||
"test-all": "npm run test && npm run test-bugs", | ||
"test-bugs": "torch --compile --renderer --recursive ./test/bugs", | ||
"test-bugs-live": "torch --compile --interactive --watch --recursive ./test/bugs", | ||
"test-live": "torch --interactive --watch --recursive ./test/unit", | ||
"watch": "webpack --config webpack-dev.config.js", | ||
"win-dev": "node ./bin/win-dev.js" | ||
}, | ||
"pre-commit": { | ||
"run": [ | ||
"lint", | ||
"build", | ||
"test" | ||
], | ||
"silent": false | ||
}, | ||
"dependencies": { | ||
"@antv/util": "~1.3.1" | ||
} | ||
"license": "MIT" | ||
} |
@@ -1,2 +0,2 @@ | ||
# adjust | ||
# @antv/adjust | ||
@@ -3,0 +3,0 @@ [![](https://img.shields.io/travis/antvis/adjust.svg)](https://travis-ci.org/antvis/adjust) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
10
52
0
83328
2
1303
2
+ Addedtslib@^1.10.0
+ Added@antv/util@2.0.17(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addedtslib@1.14.12.8.1(transitive)
- Removed@antv/gl-matrix@2.7.1(transitive)
- Removed@antv/util@1.3.1(transitive)
Updated@antv/util@~2.0.0