UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 807 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.19/LICENSE.txt */ class e{constructor(e,t,r,n){this._declaration=e,this._byteOffset=t,this._creationInfo=n,this._startTexel=Math.floor(t/r);const i=n.byteSize;this._numTexels=Math.ceil((t+i)/r)-this._startTexel,this._texelByteStride=r}get name(){return this._declaration.name}get fieldType(){return this._declaration.type}get byteOffset(){return this._byteOffset}get startTexel(){return this._startTexel}get numTexels(){return this._numTexels}get texelByteStride(){return this._texelByteStride}get elementType(){return this._creationInfo.elementType}get elementCount(){return this._creationInfo.elementCount}get byteSize(){return this._creationInfo.byteSize}get bufferViewConstructor(){return this._creationInfo.bufferViewConstructor}}export{e as LayoutField};