UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

55 lines (48 loc) 1.03 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var index_esm = require('../../core/dist/index.esm.js'); var isNumber = function isNumber(n) { return typeof n === 'number' && !isNaN(n); }; var getWidth = function getWidth(n, scale) { return index_esm.get(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + '%'); }; var config = { width: { property: 'width', scale: 'sizes', transform: getWidth }, height: { property: 'height', scale: 'sizes' }, minWidth: { property: 'minWidth', scale: 'sizes' }, minHeight: { property: 'minHeight', scale: 'sizes' }, maxWidth: { property: 'maxWidth', scale: 'sizes' }, maxHeight: { property: 'maxHeight', scale: 'sizes' }, size: { properties: ['width', 'height'], scale: 'sizes' }, overflow: true, overflowX: true, overflowY: true, display: true, verticalAlign: true }; var layout = index_esm.system(config); exports.default = layout; exports.layout = layout;