| 810 | FUNCTION parseWidthHeight |
| 811 | ------------------------------------------------------------------*/ |
| 812 | function parseWidthHeight(wh,field){ |
| 813 | const imageSize=DEVICE_RESOLUTION; |
| 814 | let half,full; |
| 815 | if (wh == 'w') { |
| 816 | half = imageSize.width/2; |
| 817 | full = imageSize.width; |
| 818 | } else { |
| 819 | half = imageSize.height/2; |
| 820 | full = imageSize.height; |
| 821 | } |
| 822 | return eval(`${field}`); |
| 823 | } |
| 824 | /*------------------------------------------------------------------ |
| 825 | FUNCTION parseCoordinates |
| 826 | ------------------------------------------------------------------*/ |