Browse Source

Fix PropertyFactory tests

up-style-manager
Artur Arseniev 5 years ago
parent
commit
487e60db8b
  1. 27
      src/style_manager/model/PropertyFactory.js

27
src/style_manager/model/PropertyFactory.js

@ -185,21 +185,28 @@ export default class PropertyFactory {
},
'float',
],
['text-shadow-h', { default: '0', units: this.unitsSizeNoPerc }, 'top'],
[
'text-shadow-h',
{
type: this.typeNumber,
default: '0',
units: this.unitsSizeNoPerc,
},
],
['text-shadow-v', {}, 'text-shadow-h'],
['text-shadow-blur', { min: 0 }, 'text-shadow-h'],
['border-radius-c', { property: 'border-radius' }, 'padding-top'],
['border-top-left-radius', {}, 'padding-top'],
['border-top-right-radius', {}, 'padding-top'],
['border-bottom-left-radius', {}, 'padding-top'],
['border-bottom-right-radius', {}, 'padding-top'],
['border-width', { default: 'medium', units: this.unitsSizeNoPerc }, 'padding-top'],
['border-radius-c', { property: 'border-radius', fixedValues: undefined }, 'padding-top'],
['border-top-left-radius', {}, 'border-radius-c'],
['border-top-right-radius', {}, 'border-radius-c'],
['border-bottom-left-radius', {}, 'border-radius-c'],
['border-bottom-right-radius', {}, 'border-radius-c'],
['border-width', { default: 'medium', units: this.unitsSizeNoPerc }, 'border-radius-c'],
['box-shadow-h', {}, 'text-shadow-h'],
['box-shadow-v', {}, 'text-shadow-h'],
['box-shadow-blur', { default: '5px' }, 'text-shadow-blur'],
['box-shadow-spread', {}, 'text-shadow-h'],
['transition-duration', { default: '2', units: this.unitsTime }, 'padding-top'],
['perspective', {}, 'padding-top'],
['transition-duration', { default: '2', units: this.unitsTime }, 'border-radius-c'],
['perspective', {}, 'border-radius-c'],
['transform-rotate-x', { functionName: 'rotateX', units: this.unitsAngle, default: '0', type: this.typeNumber }],
['transform-rotate-y', { functionName: 'rotateY' }, 'transform-rotate-x'],
['transform-rotate-z', { functionName: 'rotateZ' }, 'transform-rotate-x'],
@ -254,7 +261,7 @@ export default class PropertyFactory {
options: [{ id: 'auto' }, ...optsFlexAlign],
requiresParent: requireFlex,
},
'align-items',
'display',
],
['font-family', { default: 'Arial, Helvetica, sans-serif', options: this.optsFonts }, 'display'],
['font-weight', { default: '400', options: this.optsWeight }, 'display'],

Loading…
Cancel
Save