1.1.1 • Published 2 years ago

react-dpe-generator v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

react-dpe-generator

Generate DPE and GES easily in React.

License: MIT Donate


Simple React implementation of dpeges indicators. DPE : Diagnostic de performance énergétique (Energy Performance Diagnostic) GES : Gaz à effet de serre (Greenhouse Gas Emissions)

Getting started

Install

npm i --save react-dpe-generator

Import the components

import { DPE, GES } from './react-dpeges'

Use them with numerical values

<DPE value={200} />
<GES value={200} />

Use them with labels

<DPE value={'A'} />       // possible standard values are: 'A', 'B', 'C', 'D', 'E', 'F'
<GES value={'A'} />       // same

All options

Option nameDescriptionRequiredDefault value
valueThe DPE or GES actual value, can be an integer or just a letterNo200
widthThe width of the generated SVG imageNo250
heightThe height of the generated SVG imageNo200
shadowAdd shadow to the imageNofalse
langThe language to use (currently supported: 'fr' and 'en')No'fr'

This work is released under the MIT License, see LICENSE file for more details.

1.1.1

2 years ago

1.1.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago