{"code":"/**\r\n * @module GeometryConstructor\r\n */\r\nimport { quadkeyToTile } from \"@mapbox/tilebelt\";\r\nimport VT from \"@mapbox/vector-tile\";\r\nimport colorParse from \"color-parse\";\r\nimport vertexNormals from \"face-normals\";\r\nimport { dist, normalize, sub } from \"gl-vec2\";\r\nimport Protobuf from \"pbf\";\r\nimport xhr from \"xhr\";\r\nimport { lineString } from \"./linestring\";\r\nimport { polygon } from \"./polygon\";\r\nvar DataTypes;\r\n(function (DataTypes) {\r\n    DataTypes[DataTypes[\"Linestring\"] = 2] = \"Linestring\";\r\n    DataTypes[DataTypes[\"Polygon\"] = 3] = \"Polygon\";\r\n})(DataTypes || (DataTypes = {}));\r\n/**\r\n * @hidden\r\n */\r\nconst funcRegex = /function/g;\r\n/**\r\n * Parses function string to function & executes it returning its value.\r\n *\r\n * @param func - Function string.\r\n * @param feature - MVT feature properties.\r\n * @example `readStyleFunction('(feature) => {return feature.height}, {...});`\r\n */\r\nfunction readStyleFunction(func, feature) {\r\n    return Function(`return (${func}(${JSON.stringify(feature)}))`)();\r\n}\r\n/**\r\n * Requests tile from given URL and returns its buffer asynchronously.\r\n *\r\n * @param {string} url - Tile's URL.\r\n * @example `requestTile('https://awesometiles.com/10/15/12');`\r\n */\r\nasync function requestTile(url) {\r\n    return new Promise((resolve) => {\r\n        xhr({\r\n            method: \"GET\",\r\n            responseType: \"arraybuffer\",\r\n            url,\r\n            useXDR: true,\r\n        }, (err, resp, data) => {\r\n            return resolve(data);\r\n        });\r\n    });\r\n}\r\n/**\r\n * Protection against z-fighting\r\n */\r\nconst layerOrderLevels = [100, 100, 100, 80, 60, 50, 30, 25, 20, 20, 10, 5, 2, 1, 0.5, 0.1, 0.1];\r\nself.addEventListener(\"message\", async (ev) => {\r\n    const tileData = new VT.VectorTile(new Protobuf(await requestTile(ev.data.url)));\r\n    const workerDataBuffers = {\r\n        colData: [],\r\n        cups: [],\r\n        feature: undefined,\r\n        inxData: [],\r\n        layerOrder: 0,\r\n        tile: quadkeyToTile(ev.data.id),\r\n        vecData: [],\r\n    };\r\n    let style;\r\n    let mapFeature;\r\n    let shown;\r\n    for (const layer of ev.data.style.layers) {\r\n        if (tileData.layers[layer.name]) {\r\n            workerDataBuffers.layerOrder += layerOrderLevels[workerDataBuffers.tile[2]];\r\n            style = layer;\r\n            for (let i = 0; i < tileData.layers[layer.name].length; i++) {\r\n                mapFeature = tileData.layers[layer.name].feature(i);\r\n                shown = false;\r\n                workerDataBuffers.feature = mapFeature;\r\n                if (typeof style.color === \"string\" && style.color.match(funcRegex)) {\r\n                    style.color_tmp = colorParse(readStyleFunction(style.color, mapFeature.properties));\r\n                }\r\n                else {\r\n                    style.color_tmp = colorParse(style.color).values;\r\n                }\r\n                if (typeof style.show === \"boolean\") {\r\n                    style.show_tmp = style.show;\r\n                }\r\n                else if (typeof style.show === \"string\") {\r\n                    style.show_tmp = readStyleFunction(style.show, mapFeature.properties);\r\n                }\r\n                if (style.show_tmp) {\r\n                    shown = true;\r\n                    if (mapFeature.type === DataTypes.Linestring) {\r\n                        if (style.type === \"LINESTRING\" || \"ALL\") {\r\n                            if (typeof style.width === \"string\") {\r\n                                style.width_tmp = readStyleFunction(style.width, mapFeature.properties) / 2;\r\n                            }\r\n                            else if (typeof style.width === \"number\") {\r\n                                style.width_tmp = style.width;\r\n                            }\r\n                            lineString(workerDataBuffers, style);\r\n                        }\r\n                    }\r\n                    else if (mapFeature.type === DataTypes.Polygon) {\r\n                        if (style.type === \"POLYGON\" || \"ALL\") {\r\n                            if (typeof style.height === \"string\") {\r\n                                style.height_tmp = readStyleFunction(style.height, mapFeature.properties);\r\n                            }\r\n                            else if (typeof style.height === \"number\") {\r\n                                style.height_tmp = style.height;\r\n                            }\r\n                            if (typeof style.min_height === \"string\") {\r\n                                style.min_height_tmp = readStyleFunction(style.min_height, mapFeature.properties);\r\n                            }\r\n                            else if (typeof style.min_height === \"number\") {\r\n                                style.min_height_tmp = style.min_height;\r\n                            }\r\n                            polygon(workerDataBuffers, style);\r\n                        }\r\n                    }\r\n                }\r\n                // @ts-ignore\r\n                self.postMessage({ type: \"feature\", realData: { feature: mapFeature, shown } });\r\n            }\r\n            if (style.cups) {\r\n                cupBuilder(style, workerDataBuffers);\r\n            }\r\n        }\r\n    }\r\n    const normalBuffer = vertexNormals(workerDataBuffers.vecData, 0).buffer;\r\n    const vertexBuffer = new Float32Array(workerDataBuffers.vecData).buffer;\r\n    const colorBuffer = new Float32Array(workerDataBuffers.colData).buffer;\r\n    self.postMessage({ type: \"onFinish\", realData: { vertexBuffer, colorBuffer, normalBuffer, id: ev.data.id } }, \r\n    // @ts-ignore\r\n    [vertexBuffer, colorBuffer, normalBuffer]);\r\n});\r\n/**\r\n * Generates line's cups.\r\n *\r\n * @param style - Layer's style configuration.\r\n * @param workerDataBuffers - Data used for building tile.\r\n *\r\n * @example `cupBuilder({...}, {...});`\r\n */\r\nfunction cupBuilder(style, workerDataBuffers) {\r\n    const numOfGenColors = 6;\r\n    for (const key in workerDataBuffers.cups) {\r\n        if (workerDataBuffers.cups.hasOwnProperty(key)) {\r\n            if (workerDataBuffers.cups[key].length >= 2) {\r\n                workerDataBuffers.vecData.push(...workerDataBuffers.cups[key][0].right, ...workerDataBuffers.cups[key][0].left, ...workerDataBuffers.cups[key][1].right, ...workerDataBuffers.cups[key][1].right, ...workerDataBuffers.cups[key][0].left, ...workerDataBuffers.cups[key][1].left);\r\n                for (let i = 0; i < numOfGenColors; i++) {\r\n                    workerDataBuffers.colData.push(style.color_tmp[0] / 255, style.color_tmp[1] / 255, style.color_tmp[2] / 255);\r\n                }\r\n            }\r\n            if (workerDataBuffers.cups[key][0].normal) {\r\n                const numOfGenVec3 = 9;\r\n                const toThird = 3;\r\n                const right = workerDataBuffers.cups[key][0].right;\r\n                const left = workerDataBuffers.cups[key][0].left;\r\n                const rightVec = [workerDataBuffers.cups[key][0].right[0], workerDataBuffers.cups[key][0].right[2]];\r\n                const leftVec = [workerDataBuffers.cups[key][0].left[0], workerDataBuffers.cups[key][0].left[2]];\r\n                let center = sub([], rightVec, leftVec);\r\n                const thickness = Math.round(dist(rightVec, leftVec));\r\n                center = [leftVec[0] + center[0] / 2, leftVec[1] + center[1] / 2];\r\n                const verticalNormal = workerDataBuffers.cups[key][0].normal;\r\n                const horizontalNormal = normalize([], sub([], rightVec, leftVec));\r\n                const topCup = [\r\n                    center[0] - thickness / 2 * verticalNormal[0],\r\n                    workerDataBuffers.layerOrder,\r\n                    center[1] - thickness / 2 * verticalNormal[1],\r\n                ];\r\n                const middleRightCup = [\r\n                    center[0] + thickness / toThird * (horizontalNormal[0] - verticalNormal[0]),\r\n                    workerDataBuffers.layerOrder,\r\n                    center[1] + thickness / toThird * (horizontalNormal[1] - verticalNormal[1]),\r\n                ];\r\n                const middleLeftCup = [\r\n                    center[0] - thickness / toThird * (verticalNormal[0] + horizontalNormal[0]),\r\n                    workerDataBuffers.layerOrder,\r\n                    center[1] - thickness / toThird * (verticalNormal[1] + horizontalNormal[1]),\r\n                ];\r\n                workerDataBuffers.vecData.push(...right, ...topCup, ...middleRightCup);\r\n                workerDataBuffers.vecData.push(...right, ...left, ...topCup);\r\n                workerDataBuffers.vecData.push(...left, ...middleLeftCup, ...topCup);\r\n                for (let i = 0; i < numOfGenVec3; i++) {\r\n                    workerDataBuffers.colData.push(style.color_tmp[0] / 255, style.color_tmp[1] / 255, style.color_tmp[2] / 255);\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n//# sourceMappingURL=construct.js.map","map":"{\"version\":3,\"file\":\"construct.js\",\"sourceRoot\":\"\",\"sources\":[\"../src/constructor/construct.ts\"],\"names\":[],\"mappings\":\"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACrC,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,aAAa,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EA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