chunk-CC74Y7ET.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import {
  2. e
  3. } from "./chunk-TFHLTN6F.js";
  4. import {
  5. a
  6. } from "./chunk-JLYTER4T.js";
  7. import {
  8. u
  9. } from "./chunk-2H5MD622.js";
  10. import {
  11. w2 as w
  12. } from "./chunk-6T6G6LCQ.js";
  13. import {
  14. t
  15. } from "./chunk-U2XHEJM7.js";
  16. // node_modules/@arcgis/core/views/2d/layers/features/support/Tile.js
  17. var n = class {
  18. constructor(t2, e2) {
  19. this.key = new e(0, 0, 0, 0), this.bounds = u(), this.objectIds = /* @__PURE__ */ new Set(), this.key.set(e2);
  20. const s = t2.getLODInfoAt(this.key);
  21. this.tileInfoView = t2, this.tileInfoView.getTileBounds(this.bounds, this.key, true), this.resolution = s.resolution, this.scale = s.scale, this.level = s.level;
  22. }
  23. get id() {
  24. return this.key.id;
  25. }
  26. get extent() {
  27. return w.fromBounds(this.bounds, this.tileInfoView.tileInfo.spatialReference);
  28. }
  29. get transform() {
  30. return { originPosition: "upperLeft", scale: [this.resolution, this.resolution], translate: [this.bounds[0], this.bounds[3]] };
  31. }
  32. createChildTiles() {
  33. const e2 = this.key.getChildKeys(), i = t.acquire();
  34. for (let t2 = 0; t2 < e2.length; t2++)
  35. i[t2] = new n(this.tileInfoView, e2[t2]);
  36. return i;
  37. }
  38. getQuantizationParameters() {
  39. return a.fromJSON({ mode: "view", originPosition: "upperLeft", tolerance: this.resolution, extent: { xmin: this.bounds[0], ymin: this.bounds[1], xmax: this.bounds[2], ymax: this.bounds[3], spatialReference: this.tileInfoView.tileInfo.spatialReference } });
  40. }
  41. };
  42. export {
  43. n
  44. };
  45. //# sourceMappingURL=chunk-CC74Y7ET.js.map