@symbo.ls/scratch
Advanced tools
Comparing version
@@ -5,3 +5,3 @@ { | ||
"author": "symbo.ls", | ||
"version": "0.7.20", | ||
"version": "0.7.21", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "src" |
'use strict' | ||
import { toDashCase } from '@symbo.ls/utils' | ||
import { SEQUENCE, SPACING, UNIT } from '../defaultConfig' | ||
import { UNIT } from '../defaultConfig' | ||
import { CONFIG } from '../factory' | ||
@@ -86,10 +86,10 @@ import { isString } from './object' | ||
const switchSequenceOnNegative = (key, base, ratio) => { | ||
const values = Object.values(SEQUENCE) | ||
const index = values.indexOf(ratio) | ||
const diffRatio = ratio / SPACING.ratio | ||
const total = values[values.length - 1] - values[0] | ||
const avg = total / 2 | ||
const diff = avg - ratio | ||
const scale = total / ratio | ||
const finalDiff = avg + avg / diffRatio | ||
// const values = Object.values(SEQUENCE) | ||
// const index = values.indexOf(ratio) | ||
// const diffRatio = ratio / SPACING.ratio | ||
// const total = values[values.length - 1] - values[0] | ||
// const avg = total / 2 | ||
// const diff = avg - ratio | ||
// const scale = total / ratio | ||
// const finalDiff = avg + avg / diffRatio | ||
@@ -96,0 +96,0 @@ // if (key < 0) return base * Math.pow(avg, key) |
43071
0.01%