IFC.js 984 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * IFC.js
  3. *
  4. * @author realor
  5. */
  6. class IFC {
  7. static RepresentationName = 'IfcRepresentation'
  8. static UNIT_PREFIXES = {
  9. '.EXA.': { symbol: 'E', factor: 10e17 },
  10. '.PETA.': { symbol: 'P', factor: 10e14 },
  11. '.TERA.': { symbol: 'T', factor: 10e11 },
  12. '.GIGA.': { symbol: 'G', factor: 10e8 },
  13. '.MEGA.': { symbol: 'M', factor: 10e5 },
  14. '.KILO.': { symbol: 'k', factor: 10e2 },
  15. '.HECTO.': { sybol: 'h', factor: 100 },
  16. '.DECA.': { symbol: 'da', factor: 10 },
  17. '.DECI.': { symbol: 'd', factor: 0.1 },
  18. '.CENTI.': { symbol: 'c', factor: 0.01 },
  19. '.MILLI.': { symbol: 'm', factor: 0.001 },
  20. '.MICRO.': { symbol: 'u', factor: 10e-7 },
  21. '.NANO.': { symbol: 'n', factor: 10e-10 },
  22. '.PICO.': { symbol: 'p', factor: 10e-13 },
  23. '.FEMTO.': { symbol: 'f', factor: 10e-16 },
  24. '.ATTO.': { symbol: 'a', factor: 10e-19 }
  25. }
  26. }
  27. export { IFC }