@antv/scale
Advanced tools
Comparing version 0.3.0-beta.3 to 0.3.0-beta.4
import { isDate, isString, last } from '@antv/util'; | ||
import * as fecha from 'fecha'; | ||
import fecha from 'fecha'; | ||
import * as fecha1 from 'fecha'; | ||
import bisector from './bisector'; | ||
var FORMAT_METHOD = 'format'; | ||
export function timeFormat(time, mask) { | ||
return fecha[FORMAT_METHOD](time, mask); | ||
var method = fecha1[FORMAT_METHOD] || fecha[FORMAT_METHOD]; | ||
return method(time, mask); | ||
} | ||
@@ -8,0 +10,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var util_1 = require("@antv/util"); | ||
var fecha = require("fecha"); | ||
var fecha_1 = require("fecha"); | ||
var fecha1 = require("fecha"); | ||
var bisector_1 = require("./bisector"); | ||
var FORMAT_METHOD = 'format'; | ||
function timeFormat(time, mask) { | ||
return fecha[FORMAT_METHOD](time, mask); | ||
var method = fecha1[FORMAT_METHOD] || fecha_1.default[FORMAT_METHOD]; | ||
return method(time, mask); | ||
} | ||
@@ -10,0 +12,0 @@ exports.timeFormat = timeFormat; |
{ | ||
"name": "@antv/scale", | ||
"version": "0.3.0-beta.3", | ||
"version": "0.3.0-beta.4", | ||
"description": "The scale module for G2", | ||
@@ -5,0 +5,0 @@ "author": "https://github.com/orgs/antvis/people", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
219152
3647