UNPKG
@vx/scale
Version:
beta (0.0.165-beta.1)
latest (0.0.199)
0.0.199
0.0.198
0.0.197
0.0.196
0.0.195
0.0.194
0.0.193
0.0.193-alpha.2
0.0.193-alpha.1
0.0.193-alpha.0
0.0.192
0.0.190
0.0.189
0.0.182
0.0.179
0.0.178
0.0.165
0.0.165-beta.1
0.0.165-beta.0
0.0.161
0.0.153
0.0.152
0.0.143
0.0.140
0.0.136
0.0.127
0.0.126
0.0.125
0.0.121
0.0.117
0.0.114
0.0.111
0.0.110
0.0.109
0.0.92
0.0.85
0.0.84
0.0.79
0.0.76
0.0.75
0.0.68
0.0.49
0.0.36
0.0.33
0.0.32
0.0.19
vx scale
github.com/hshoff/vx
hshoff/vx
@vx/scale
/
esm
/
operators
/
constant.js
5 lines
•
192 B
JavaScript
View Raw
1
2
3
4
5
export
default
function
applyConstant
(
scale, config
) {
if
(
'constant'
in
scale &&
'constant'
in
config &&
typeof
config.
constant
!==
'undefined'
) { scale.
constant
(config.
constant
); } }