@symbo.ls/scratch
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -5,3 +5,3 @@ { | ||
"author": "symbo.ls", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "src" |
@@ -8,3 +8,3 @@ 'use strict' | ||
base: 150, | ||
type: 'duration', | ||
type: 'timing', | ||
ratio: SEQUENCE['perfect-fourth'], | ||
@@ -11,0 +11,0 @@ range: [-3, +12], |
@@ -15,6 +15,8 @@ 'use strict' | ||
export const getTimingFunction = value => TIMING[value] || value | ||
export const getTimingByKey = value => getSequenceValuePropertyPair( | ||
value, | ||
'duration', | ||
'timing', | ||
TIMING | ||
) |
@@ -161,3 +161,3 @@ 'use strict' | ||
if (unit === 'ms' || unit === 's') { | ||
return isNegative + sequenceItem.value + unit | ||
return isNegative + sequenceItem.val + unit | ||
} | ||
@@ -164,0 +164,0 @@ |
'use strict' | ||
import { MEDIA } from '../defaultConfig' | ||
import { MEDIA, TIMING } from '../defaultConfig' | ||
import { CONFIG, CSS_VARS } from '../factory' | ||
@@ -29,3 +29,3 @@ import { isObjectLike } from './object' | ||
const item = sequence[key] | ||
const value = (props.type === 'duration' ? sequence[key].val : scales[key]) + unit | ||
const value = (props.type === TIMING.type ? sequence[key].val : scales[key]) + unit | ||
@@ -32,0 +32,0 @@ if (mediaName) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41208
1271