1
0
Fork 0

Update head.mjs

This commit is contained in:
Wouter van Wageningen 2024-09-26 22:40:50 -07:00 committed by GitHub
parent 217de7721b
commit fb94c24d17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -624,8 +624,7 @@ const options = {
min: 100,
max: 500,
menu: 'style',
// eslint-disable-next-line no-unused-vars
toAbs: (val, { options }, mergedOptions) =>
toAbs: (val, _, mergedOptions) =>
((mergedOptions.sizeConstant * mergedOptions.size * 2) / Math.PI) *
val *
(mergedOptions.type === 'octopus' ? 2 : mergedOptions.type === 'squid' ? 1.8 : 1),