source: imaps-frontend/src/scripts/util/ShapeCount.js@ 0c6b92a

main
Last change on this file since 0c6b92a was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago

Pred finalna verzija

  • Property mode set to 100644
File size: 362 bytes
Line 
1const shapeCount = {
2 infoPin: 0,
3 wall: 0,
4 entrance: 0,
5 room: 0,
6 stairs: 0
7};
8
9const updateShapeCount = (key) => {
10 shapeCount[key]++;
11}
12const getShapeCount = (key) => {
13 return shapeCount[key];
14}
15
16export {updateShapeCount, getShapeCount};
17
18// todo za da sa incrementvit i posle restart na browwser, trebit vo baza nova tabela za broenje
Note: See TracBrowser for help on using the repository browser.