@symbo.ls/scratch 0.3.12 → 0.3.13

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "Symbols",
5
- "version": "0.3.12",
5
+ "version": "0.3.13",
6
6
  "files": [
7
7
  "src"
8
8
  ],
@@ -282,7 +282,7 @@ const setSequenceValue = ({ key, variable, value, scaling, state, index }) => {
282
282
  state.scales[variable] = scaling
283
283
  }
284
284
 
285
- export const generateSubSequence = ({ key, base, value, ratio, variable, state }) => {
285
+ export const generateSubSequence = ({ key, base, value, ratio, variable, state, index }) => {
286
286
  const next = value * ratio
287
287
  const smallscale = (next - value) / ratio
288
288
 
@@ -303,7 +303,7 @@ export const generateSubSequence = ({ key, base, value, ratio, variable, state }
303
303
  const scaling = Math.round(v / base * 1000) / 1000
304
304
  const newVar = variable + (k + 1)
305
305
 
306
- return setSequenceValue({ key: key + (k + 1), variable: newVar, value: v, scaling, state })
306
+ return setSequenceValue({ key: key + (k + 1), variable: newVar, value: v, scaling, state, index: index + (k + 1) / 10 })
307
307
  })
308
308
  }
309
309
 
@@ -319,7 +319,7 @@ export const generateSequence = ({ type, base, ratio, range, subSequence, ...sta
319
319
 
320
320
  setSequenceValue({ key: letterKey, variable, value, scaling, state, index: key })
321
321
 
322
- if (subSequence) generateSubSequence({ key: letterKey, base, value, ratio, variable, state })
322
+ if (subSequence) generateSubSequence({ key: letterKey, base, value, ratio, variable, state, index: key })
323
323
  }
324
324
  return state
325
325
  }