improvements

This commit is contained in:
Henry Jameson 2024-10-24 21:36:03 +03:00
commit f6f2e14c19
3 changed files with 19 additions and 10 deletions

View file

@ -123,7 +123,7 @@ export default {
try {
let result
const serialized = this.cValue.map(x => serializeShadow(x)).join(',')
deserializeShadow(serialized) // validate
serialized.split(/,/).map(deserializeShadow) // validate
const expandedShadow = flattenDeep(findShadow(this.cValue, { dynamicVars: {}, staticVars: this.staticVars }))
const fixedShadows = expandedShadow.map(x => ({ ...x, color: console.log(x) || rgb2hex(x.color) }))