123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- import {
- n as n3
- } from "./chunk-YZUP3MAF.js";
- import {
- n as n2
- } from "./chunk-E3HOL2XO.js";
- import {
- n
- } from "./chunk-SCXOTZ6Q.js";
- import {
- o as o2
- } from "./chunk-G5AI6ZNE.js";
- import {
- o
- } from "./chunk-WR32EHFC.js";
- import {
- u as u2
- } from "./chunk-NTUXR253.js";
- import {
- u
- } from "./chunk-IR4PV7VK.js";
- import {
- t
- } from "./chunk-SAS7RONY.js";
- // node_modules/@arcgis/core/core/ObjectStack.js
- var s = class {
- constructor(t3) {
- this.allocator = t3, this._items = [], this._itemsPtr = 0, this._grow();
- }
- get() {
- return this._itemsPtr === 0 && t(() => this._reset()), this._itemsPtr === this._items.length && this._grow(), this._items[this._itemsPtr++];
- }
- _reset() {
- const t3 = Math.min(3 * Math.max(8, this._itemsPtr), this._itemsPtr + 3 * i);
- this._items.length = Math.min(t3, this._items.length), this._itemsPtr = 0;
- }
- _grow() {
- for (let t3 = 0; t3 < Math.max(8, Math.min(this._items.length, i)); t3++)
- this._items.push(this.allocator());
- }
- };
- var i = 1024;
- // node_modules/@arcgis/core/core/VectorStack.js
- var a = class {
- constructor(t3, e, s2) {
- this.itemByteSize = t3, this.itemCreate = e, this._buffers = new Array(), this._items = new Array(), this._itemsPtr = 0, this._itemsPerBuffer = Math.ceil(s2 / this.itemByteSize);
- }
- get() {
- this._itemsPtr === 0 && t(() => this._reset());
- const t3 = Math.floor(this._itemsPtr / this._itemsPerBuffer);
- for (; this._buffers.length <= t3; ) {
- const t4 = new ArrayBuffer(this._itemsPerBuffer * this.itemByteSize);
- for (let e = 0; e < this._itemsPerBuffer; ++e)
- this._items.push(this.itemCreate(t4, e * this.itemByteSize));
- this._buffers.push(t4);
- }
- return this._items[this._itemsPtr++];
- }
- _reset() {
- const t3 = 2 * (Math.floor(this._itemsPtr / this._itemsPerBuffer) + 1);
- for (; this._buffers.length > t3; )
- this._buffers.pop(), this._items.length = this._buffers.length * this._itemsPerBuffer;
- this._itemsPtr = 0;
- }
- static createVec2f64(t3 = c) {
- return new a(16, o2, t3);
- }
- static createVec3f64(t3 = c) {
- return new a(24, u, t3);
- }
- static createVec4f64(t3 = c) {
- return new a(32, u2, t3);
- }
- static createMat3f64(t3 = c) {
- return new a(72, n, t3);
- }
- static createMat4f64(t3 = c) {
- return new a(128, n2, t3);
- }
- static createQuatf64(t3 = c) {
- return new a(32, n3, t3);
- }
- get test() {
- return { size: this._buffers.length * this._itemsPerBuffer * this.itemByteSize };
- }
- };
- var c = 4 * o.KILOBYTES;
- // node_modules/@arcgis/core/geometry/support/vectorStacks.js
- var t2 = a.createVec2f64();
- var c2 = a.createVec3f64();
- var r = a.createVec4f64();
- var a2 = a.createMat3f64();
- var f = a.createMat4f64();
- var o3 = a.createQuatf64();
- export {
- s,
- c2 as c,
- f
- };
- //# sourceMappingURL=chunk-6BRTRIDE.js.map
|