1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import {
- e
- } from "./chunk-FIYKFRB2.js";
- import {
- a
- } from "./chunk-EWE6EXPY.js";
- import {
- u
- } from "./chunk-N2663GRX.js";
- import {
- M2 as M
- } from "./chunk-ECW2QABR.js";
- import {
- t
- } from "./chunk-WSRBH7BF.js";
- // node_modules/@arcgis/core/views/2d/layers/features/support/Tile.js
- var n = class {
- constructor(t2, e2) {
- this.key = new e(0, 0, 0, 0), this.bounds = u(), this.objectIds = new Set(), this.key.set(e2);
- const s = t2.getLODInfoAt(this.key);
- this.tileInfoView = t2, this.tileInfoView.getTileBounds(this.bounds, this.key, true), this.resolution = s.resolution, this.scale = s.scale, this.level = s.level;
- }
- get id() {
- return this.key.id;
- }
- get extent() {
- return M.fromBounds(this.bounds, this.tileInfoView.tileInfo.spatialReference);
- }
- get transform() {
- return { originPosition: "upperLeft", scale: [this.resolution, this.resolution], translate: [this.bounds[0], this.bounds[3]] };
- }
- createChildTiles() {
- const e2 = this.key.getChildKeys(), i = t.acquire();
- for (let t2 = 0; t2 < e2.length; t2++)
- i[t2] = new n(this.tileInfoView, e2[t2]);
- return i;
- }
- getQuantizationParameters() {
- 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 } });
- }
- };
- export {
- n
- };
- //# sourceMappingURL=chunk-H6ETEALK.js.map
|