@antv/scale
Advanced tools
Comparing version
@@ -7,2 +7,3 @@ import Category from './base'; | ||
declare class TimeCat extends Category { | ||
readonly type: string; | ||
mask: any; | ||
@@ -9,0 +10,0 @@ /** |
@@ -12,3 +12,5 @@ import { __extends } from "tslib"; | ||
function TimeCat() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this.type = 'timeCat'; | ||
return _this; | ||
} | ||
@@ -15,0 +17,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export declare function timeFormat(time: any, mask: any): any; | ||
export declare function timeFormat(time: any, mask: any): string; | ||
/** | ||
@@ -3,0 +3,0 @@ * 转换成时间戳 |
@@ -7,2 +7,3 @@ import Category from './base'; | ||
declare class TimeCat extends Category { | ||
readonly type: string; | ||
mask: any; | ||
@@ -9,0 +10,0 @@ /** |
@@ -14,3 +14,5 @@ "use strict"; | ||
function TimeCat() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this.type = 'timeCat'; | ||
return _this; | ||
} | ||
@@ -17,0 +19,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.registerScale = exports.getScale = exports.Scale = void 0; | ||
var base_1 = require("./base"); | ||
@@ -4,0 +5,0 @@ exports.Scale = base_1.default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getTickMethod = exports.registerScale = exports.getScale = exports.Scale = exports.Quantize = exports.Quantile = exports.TimeCat = exports.Time = exports.Pow = exports.Log = exports.Linear = exports.Identity = exports.Category = void 0; | ||
var base_1 = require("./base"); | ||
@@ -22,8 +23,8 @@ exports.Scale = base_1.default; | ||
var factory_1 = require("./factory"); | ||
exports.getScale = factory_1.getScale; | ||
exports.registerScale = factory_1.registerScale; | ||
Object.defineProperty(exports, "getScale", { enumerable: true, get: function () { return factory_1.getScale; } }); | ||
Object.defineProperty(exports, "registerScale", { enumerable: true, get: function () { return factory_1.registerScale; } }); | ||
var index_1 = require("./identity/index"); | ||
exports.Identity = index_1.default; | ||
var index_2 = require("./tick-method/index"); | ||
exports.getTickMethod = index_2.getTickMethod; | ||
Object.defineProperty(exports, "getTickMethod", { enumerable: true, get: function () { return index_2.getTickMethod; } }); | ||
factory_1.registerScale('cat', base_2.default); | ||
@@ -30,0 +31,0 @@ factory_1.registerScale('category', base_2.default); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getTickMethod = void 0; | ||
var cat_1 = require("./cat"); | ||
@@ -11,3 +12,3 @@ var d3_linear_1 = require("./d3-linear"); | ||
var register_1 = require("./register"); | ||
exports.getTickMethod = register_1.getTickMethod; | ||
Object.defineProperty(exports, "getTickMethod", { enumerable: true, get: function () { return register_1.getTickMethod; } }); | ||
var time_1 = require("./time"); | ||
@@ -14,0 +15,0 @@ var time_cat_1 = require("./time-cat"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.registerTickMethod = exports.getTickMethod = void 0; | ||
var methodCache = {}; | ||
@@ -4,0 +5,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.D3Linear = void 0; | ||
function d3Linear(cfg) { | ||
@@ -4,0 +5,0 @@ var min = cfg.min, max = cfg.max, nice = cfg.nice, tickCount = cfg.tickCount; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ALL_Q = exports.DEFAULT_Q = void 0; | ||
var util_1 = require("@antv/util"); | ||
@@ -4,0 +5,0 @@ exports.DEFAULT_Q = [1, 5, 2, 2.5, 4, 3]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getLogPositiveMin = exports.log = exports.calBase = void 0; | ||
var util_1 = require("@antv/util"); | ||
@@ -4,0 +5,0 @@ // 求以a为次幂,结果为b的基数,如 x^^a = b;求x |
@@ -1,2 +0,2 @@ | ||
export declare function timeFormat(time: any, mask: any): any; | ||
export declare function timeFormat(time: any, mask: any): string; | ||
/** | ||
@@ -3,0 +3,0 @@ * 转换成时间戳 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getTickInterval = exports.YEAR = exports.MONTH = exports.DAY = exports.HOUR = exports.MINUTE = exports.SECOND = exports.toTimeStamp = exports.timeFormat = void 0; | ||
var util_1 = require("@antv/util"); | ||
@@ -4,0 +5,0 @@ var fecha_1 = require("fecha"); |
{ | ||
"name": "@antv/scale", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "The scale module for G2", | ||
@@ -44,13 +44,13 @@ "author": "https://github.com/orgs/antvis/people", | ||
"devDependencies": { | ||
"@types/jest": "^24.0.18", | ||
"husky": "^3.0.4", | ||
"@types/jest": "^25.2.1", | ||
"husky": "^4.2.5", | ||
"jest": "^24.9.0", | ||
"jest-electron": "^0.1.6", | ||
"lint-staged": "^9.2.3", | ||
"lint-staged": "^10.2.2", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^1.18.2", | ||
"prettier": "^2.0.5", | ||
"rimraf": "^3.0.0", | ||
"ts-jest": "^24.1.0", | ||
"tslint": "^5.18.0", | ||
"ts-loader": "^5.3.1", | ||
"tslint": "^6.1.2", | ||
"ts-loader": "^7.0.4", | ||
"babel-loader": "^8.0.4", | ||
@@ -64,4 +64,4 @@ "tslint-config-prettier": "^1.18.0", | ||
"@antv/util": "~2.0.3", | ||
"fecha": "~3.0.3", | ||
"tslib": "^1.10.0" | ||
"fecha": "~4.2.0", | ||
"tslib": "^2.0.0" | ||
}, | ||
@@ -68,0 +68,0 @@ "lint-staged": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
263729
1.3%4227
0.33%1
Infinity%+ Added
- Removed
- Removed
Updated
Updated