From 19dc4a1637eb791be2a879d57aea021b64c4732f Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Fri, 8 Mar 2024 17:11:14 +0300 Subject: [PATCH] add transformers --- src/constants/dict.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constants/dict.js b/src/constants/dict.js index 1a116c4..4b4121d 100644 --- a/src/constants/dict.js +++ b/src/constants/dict.js @@ -86,7 +86,7 @@ const dict = { color: { alias: 'c', type: 'string' }, 'column-count': { alias: 'colmc', type: 'string' }, 'column-fill': { alias: 'colmf', type: 'string' }, - 'column-gap': { alias: 'colmg', type: 'string' }, + 'column-gap': { alias: 'colmg', type: 'string', scale: 'space', transformer: 'pixel' }, 'column-rule': { alias: 'colmr', type: 'string' }, 'column-rule-color': { alias: 'colmrc', type: 'string' }, 'column-rule-style': { alias: 'colmrs', type: 'string' }, @@ -138,7 +138,7 @@ const dict = { 'font-variant-position': { alias: 'fvp', type: 'string' }, 'font-variation-settings': { alias: 'fvs', type: 'string' }, 'font-weight': { alias: 'fw', type: ['number', 'string'] }, - gap: { alias: 'g', type: 'string' }, + gap: { alias: 'g', type: 'string', scale: 'space', transformer: 'pixel' }, grid: { alias: 'gd', type: 'string' }, 'grid-area': { alias: 'gda', type: 'string', process: false }, 'grid-auto-columns': { alias: 'gdac', type: 'string' }, @@ -257,7 +257,7 @@ const dict = { 'ratio-padding': { type: ['number', 'string'] }, resize: { alias: 'rsz', type: 'string' }, right: { alias: 'r', transformer: 'pixel', type: ['number', 'string'] }, - 'row-gap': { alias: 'rowg', type: 'string' }, + 'row-gap': { alias: 'rowg', type: 'string', scale: 'space', transformer: 'pixel' }, 'scroll-behavior': { type: 'string' }, 'size-height': { type: 'string' }, 'size-width': { type: 'string' },