File tree Expand file tree Collapse file tree 3 files changed +1
-11
lines changed Expand file tree Collapse file tree 3 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 2
2
* General Transitive utilities library
3
3
*/
4
4
5
- import isNumeric from 'isnumeric/isNumeric'
6
5
import SphericalMercator from 'sphericalmercator'
7
6
8
7
const TOLERANCE = 0.000001
@@ -199,7 +198,7 @@ const sm = new SphericalMercator()
199
198
* @returns A CSS font size ending with the provided CSS unit or 'px' if none provided.
200
199
*/
201
200
function getFontSizeWithUnit ( fontSize ) {
202
- return fontSize + ( isNumeric ( fontSize ) ? 'px' : '' )
201
+ return fontSize + ( isFinite ( fontSize ) ? 'px' : '' )
203
202
}
204
203
205
204
export {
Original file line number Diff line number Diff line change 19
19
"component-emitter" : " 1.2.1" ,
20
20
"d3" : " ^3.5.8" ,
21
21
"debug" : " ^2.5.1" ,
22
- "isnumeric" : " ^0.2.0" ,
23
22
"lodash.foreach" : " ^4.5.0" ,
24
23
"measure-text" : " ^0.0.4" ,
25
24
"priorityqueuejs" : " 1.0.0" ,
Original file line number Diff line number Diff line change @@ -14871,7 +14871,6 @@ npm@^6.14.8:
14871
14871
cmd-shim "^3.0.3"
14872
14872
columnify "~1.5.4"
14873
14873
config-chain "^1.1.12"
14874
- debuglog "*"
14875
14874
detect-indent "~5.0.0"
14876
14875
detect-newline "^2.1.0"
14877
14876
dezalgo "~1.0.3"
@@ -14886,7 +14885,6 @@ npm@^6.14.8:
14886
14885
has-unicode "~2.0.1"
14887
14886
hosted-git-info "^2.8.8"
14888
14887
iferr "^1.0.2"
14889
- imurmurhash "*"
14890
14888
infer-owner "^1.0.4"
14891
14889
inflight "~1.0.6"
14892
14890
inherits "^2.0.4"
@@ -14905,14 +14903,8 @@ npm@^6.14.8:
14905
14903
libnpx "^10.2.4"
14906
14904
lock-verify "^2.1.0"
14907
14905
lockfile "^1.0.4"
14908
- lodash._baseindexof "*"
14909
14906
lodash._baseuniq "~4.6.0"
14910
- lodash._bindcallback "*"
14911
- lodash._cacheindexof "*"
14912
- lodash._createcache "*"
14913
- lodash._getnative "*"
14914
14907
lodash.clonedeep "~4.5.0"
14915
- lodash.restparam "*"
14916
14908
lodash.union "~4.6.0"
14917
14909
lodash.uniq "~4.5.0"
14918
14910
lodash.without "~4.4.0"
You can’t perform that action at this time.
0 commit comments