@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.17 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
*/
import{q as r,g as o}from"../../../../chunks/vec32.js";import{create as t}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{projectBuffer as e}from"../../../../geometry/projection/projectBuffer.js";import{create as n,fromBuffer as a,set as s,zero as m}from"../../../../geometry/support/aaBoundingBox.js";import{newDoubleArray as c}from"../../../../geometry/support/DoubleArray.js";function i(r,o,t){const n=c(24);return c=>{const i=c.meta.featureExtents,p=new Float64Array(i.buffer,6*c.index*Float64Array.BYTES_PER_ELEMENT,6);return p[0]===Number.POSITIVE_INFINITY&&(f(c.index,t,c.meta.objectHandle,n,0),e(n,o,0,n,r,0)?a(n,p):s(p,m)),p}}function f(t,e,n,a,s){const m=e.getComponentAabb(n,t,u),c=e.getObjectTransform(n);for(let i=0;i<8;++i)j[0]=1&i?m[0]:m[3],j[1]=2&i?m[1]:m[4],j[2]=4&i?m[2]:m[5],r(j,j,c.rotationScale),o(j,j,c.position),a[s++]=j[0],a[s++]=j[1],a[s++]=j[2];return a}const p=24,u=n(),j=t();export{f as boundingBoxCornerPoints,p as boundingBoxCornersPointsStride,i as createGetFeatureExtent};