@aitmed/uidl-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.17 • Public • Published

User Interface Data Layout (UIDL) Parser

Todos

  • resolveBorder
  • Create a transformer for the "border" style (look on slack)

Done

  • Transform the positioning number values to represent percentages
  • Implemented resolveAlign
  • Fix the inconsistency output values between width/height from top level blocks
  • Remove the "type' and "style" attrs being included into block components
  • Narrowed down the returned block component props
  • Implemented decimalToWhole
  • Implemented hasLetter
  • Implemented hasDecimal
  • Implemented toPercentage

Unit tests

  • resolvePositionAttrs
  • resolveSizeAttrs
  • resolveAlign

Concerns

  • align: centerX and align: centerY needs some more computational testing

Readme

Keywords

none

Package Sidebar

Install

npm i @aitmed/uidl-parser

Weekly Downloads

1

Version

1.0.17

License

ISC

Unpacked Size

405 kB

Total Files

36

Last publish

Collaborators

  • atslotus
  • dazhoutong
  • yongjian.yu
  • chenchen.xu
  • pfftdammitchris2
  • pfftdammitchris
  • blairgao