(v: string)
| 839 | // djb2 hash function. |
| 840 | // http://www.cse.yorku.ca/~oz/hash.html |
| 841 | function hash(v: string) { |
| 842 | let hash = 5381; |
| 843 | for (let i = 0; i < v.length; i++) { |
| 844 | hash = ((hash << 5) + hash + v.charCodeAt(i)) >>> 0; |
| 845 | } |
| 846 | return hash; |
| 847 | } |
| 848 | |
| 849 | function layerName(name: string) { |
| 850 | // All of our layers should be sub-layers of a single parent layer, so that |
no outgoing calls
no test coverage detected