@symbo.ls/scratch 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/sequence.js +6 -0
package/package.json
CHANGED
package/src/utils/sequence.js
CHANGED
|
@@ -149,6 +149,12 @@ export const getSequenceValue = (value = 'A', sequenceProps) => {
|
|
|
149
149
|
absValue = absValue.split('-')[0]
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
// if subsequence is not set but value is applied
|
|
153
|
+
if (absValue.length === 2) {
|
|
154
|
+
if (CONFIG.verbose) console.warn(absValue, '- value is not found because `subSequence` is set to false')
|
|
155
|
+
absValue = absValue.slice(0, 1)
|
|
156
|
+
}
|
|
157
|
+
|
|
152
158
|
if (useVariable || CONFIG.useVariable) {
|
|
153
159
|
const varValue = `var(${prefix}${absValue}${mediaName})`
|
|
154
160
|
return isNegative ? `calc(${varValue} * -1)` : varValue
|