123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- import {
- p
- } from "./chunk-BXIBTNXI.js";
- import {
- l as l2
- } from "./chunk-5NM43FFO.js";
- import {
- o as o2
- } from "./chunk-WFSV2B2I.js";
- import "./chunk-H6ETEALK.js";
- import "./chunk-FIYKFRB2.js";
- import {
- m
- } from "./chunk-LY74KTXV.js";
- import "./chunk-EWE6EXPY.js";
- import {
- l
- } from "./chunk-XLV7RUSE.js";
- import "./chunk-NTUXR253.js";
- import "./chunk-RMX2AZ4P.js";
- import "./chunk-NE3ESGA6.js";
- import "./chunk-YIS6BAC3.js";
- import "./chunk-N2663GRX.js";
- import "./chunk-WEMIK25H.js";
- import "./chunk-XNLG7T2T.js";
- import "./chunk-IR4PV7VK.js";
- import "./chunk-UXF37FQ4.js";
- import "./chunk-ZOEK6QHJ.js";
- import "./chunk-2Z6LERTI.js";
- import "./chunk-OWVBLVP3.js";
- import "./chunk-ALDCDSPV.js";
- import "./chunk-DT6EAZQ5.js";
- import "./chunk-HNOZUNJ4.js";
- import "./chunk-PDKDCAAD.js";
- import "./chunk-ECW2QABR.js";
- import "./chunk-GCDJLKH4.js";
- import "./chunk-MRJEICT6.js";
- import {
- e,
- n2 as n
- } from "./chunk-Y3WMVFTW.js";
- import "./chunk-SAS7RONY.js";
- import "./chunk-WSRBH7BF.js";
- import "./chunk-IHXECKQQ.js";
- import "./chunk-ULGDPLM2.js";
- import "./chunk-EMJ4ZSM2.js";
- import "./chunk-IKP3YN53.js";
- import {
- o,
- r
- } from "./chunk-GZT4BVFP.js";
- import "./chunk-A5ICIBVI.js";
- // node_modules/@arcgis/core/views/2d/layers/features/processors/HeatmapProcessor.js
- var p2 = class {
- constructor(e2, t) {
- this.offset = e2, this.extent = t;
- }
- };
- function c(e2) {
- const t = e2.key, s = new Map(), r2 = 256, i = o2, o3 = e2.tileInfoView.tileInfo.isWrappable;
- return s.set(l2(t, -1, -1, o3).id, new p2([-i, -i], [i - r2, i - r2, i, i])), s.set(l2(t, 0, -1, o3).id, new p2([0, -i], [0, i - r2, i, i])), s.set(l2(t, 1, -1, o3).id, new p2([i, -i], [0, i - r2, r2, i])), s.set(l2(t, -1, 0, o3).id, new p2([-i, 0], [i - r2, 0, i, i])), s.set(l2(t, 1, 0, o3).id, new p2([i, 0], [0, 0, r2, i])), s.set(l2(t, -1, 1, o3).id, new p2([-i, i], [i - r2, 0, i, r2])), s.set(l2(t, 0, 1, o3).id, new p2([0, i], [0, 0, i, r2])), s.set(l2(t, 1, 1, o3).id, new p2([i, i], [0, 0, r2, r2])), s;
- }
- var l3 = class extends p {
- constructor() {
- super(...arguments), this.type = "heatmap", this._tileKeyToFeatureSets = new Map();
- }
- initialize() {
- this.handles.add([this.tileStore.on("update", this.onTileUpdate.bind(this))]);
- }
- async update(e2, t) {
- const s = t.schema.processors[0];
- if (s.type !== "heatmap")
- return;
- m(this._schema, s) && (e2.mesh = true, this._schema = s);
- }
- onTileUpdate(e2) {
- for (const t of e2.removed)
- this._tileKeyToFeatureSets.delete(t.key.id);
- }
- onTileClear(e2) {
- const t = { clear: true };
- return this._tileKeyToFeatureSets.delete(e2.key.id), this.remoteClient.invoke("tileRenderer.onTileData", { tileKey: e2.id, data: t });
- }
- async onTileMessage(e2, r2, i) {
- this._tileKeyToFeatureSets.has(e2.key.id) || this._tileKeyToFeatureSets.set(e2.key.id, new Map());
- const a = this._tileKeyToFeatureSets.get(e2.key.id);
- if (r(r2.addOrUpdate) && r2.addOrUpdate.hasFeatures && a.set(r2.addOrUpdate.instance, r2), r2.end) {
- const t = [], r3 = c(e2);
- this._tileKeyToFeatureSets.forEach((i2, o3) => {
- if (o3 === e2.key.id)
- i2.forEach((e3) => o(e3.addOrUpdate, (e4) => t.push(e4)));
- else if (r3.has(o3)) {
- const e3 = r3.get(o3), [a3, n3] = e3.offset;
- i2.forEach((e4) => o(e4.addOrUpdate, (e5) => {
- const s = e5.transform(a3, n3, 1, 1);
- t.push(s);
- }));
- }
- });
- const a2 = l(t, this._schema.mesh, 512, 512), n2 = { tileKey: e2.key.id, intensityInfo: a2 }, d = [a2.matrix];
- return this.remoteClient.invoke("tileRenderer.onTileData", n2, { ...i, transferList: d });
- }
- }
- onTileError(e2, t, s) {
- return this.remoteClient.invoke("tileRenderer.onTileError", { tileKey: e2.id, error: t }, s);
- }
- };
- l3 = e([n("esri.views.2d.layers.features.processors.HeatmapProcessor")], l3);
- var h = l3;
- export {
- h as default
- };
- //# sourceMappingURL=HeatmapProcessor-ZTNOMUTP.js.map
|