chunk-6BRTRIDE.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import {
  2. n as n3
  3. } from "./chunk-YZUP3MAF.js";
  4. import {
  5. n as n2
  6. } from "./chunk-E3HOL2XO.js";
  7. import {
  8. n
  9. } from "./chunk-SCXOTZ6Q.js";
  10. import {
  11. o as o2
  12. } from "./chunk-G5AI6ZNE.js";
  13. import {
  14. o
  15. } from "./chunk-WR32EHFC.js";
  16. import {
  17. u as u2
  18. } from "./chunk-NTUXR253.js";
  19. import {
  20. u
  21. } from "./chunk-IR4PV7VK.js";
  22. import {
  23. t
  24. } from "./chunk-SAS7RONY.js";
  25. // node_modules/@arcgis/core/core/ObjectStack.js
  26. var s = class {
  27. constructor(t3) {
  28. this.allocator = t3, this._items = [], this._itemsPtr = 0, this._grow();
  29. }
  30. get() {
  31. return this._itemsPtr === 0 && t(() => this._reset()), this._itemsPtr === this._items.length && this._grow(), this._items[this._itemsPtr++];
  32. }
  33. _reset() {
  34. const t3 = Math.min(3 * Math.max(8, this._itemsPtr), this._itemsPtr + 3 * i);
  35. this._items.length = Math.min(t3, this._items.length), this._itemsPtr = 0;
  36. }
  37. _grow() {
  38. for (let t3 = 0; t3 < Math.max(8, Math.min(this._items.length, i)); t3++)
  39. this._items.push(this.allocator());
  40. }
  41. };
  42. var i = 1024;
  43. // node_modules/@arcgis/core/core/VectorStack.js
  44. var a = class {
  45. constructor(t3, e, s2) {
  46. this.itemByteSize = t3, this.itemCreate = e, this._buffers = new Array(), this._items = new Array(), this._itemsPtr = 0, this._itemsPerBuffer = Math.ceil(s2 / this.itemByteSize);
  47. }
  48. get() {
  49. this._itemsPtr === 0 && t(() => this._reset());
  50. const t3 = Math.floor(this._itemsPtr / this._itemsPerBuffer);
  51. for (; this._buffers.length <= t3; ) {
  52. const t4 = new ArrayBuffer(this._itemsPerBuffer * this.itemByteSize);
  53. for (let e = 0; e < this._itemsPerBuffer; ++e)
  54. this._items.push(this.itemCreate(t4, e * this.itemByteSize));
  55. this._buffers.push(t4);
  56. }
  57. return this._items[this._itemsPtr++];
  58. }
  59. _reset() {
  60. const t3 = 2 * (Math.floor(this._itemsPtr / this._itemsPerBuffer) + 1);
  61. for (; this._buffers.length > t3; )
  62. this._buffers.pop(), this._items.length = this._buffers.length * this._itemsPerBuffer;
  63. this._itemsPtr = 0;
  64. }
  65. static createVec2f64(t3 = c) {
  66. return new a(16, o2, t3);
  67. }
  68. static createVec3f64(t3 = c) {
  69. return new a(24, u, t3);
  70. }
  71. static createVec4f64(t3 = c) {
  72. return new a(32, u2, t3);
  73. }
  74. static createMat3f64(t3 = c) {
  75. return new a(72, n, t3);
  76. }
  77. static createMat4f64(t3 = c) {
  78. return new a(128, n2, t3);
  79. }
  80. static createQuatf64(t3 = c) {
  81. return new a(32, n3, t3);
  82. }
  83. get test() {
  84. return { size: this._buffers.length * this._itemsPerBuffer * this.itemByteSize };
  85. }
  86. };
  87. var c = 4 * o.KILOBYTES;
  88. // node_modules/@arcgis/core/geometry/support/vectorStacks.js
  89. var t2 = a.createVec2f64();
  90. var c2 = a.createVec3f64();
  91. var r = a.createVec4f64();
  92. var a2 = a.createMat3f64();
  93. var f = a.createMat4f64();
  94. var o3 = a.createQuatf64();
  95. export {
  96. s,
  97. c2 as c,
  98. f
  99. };
  100. //# sourceMappingURL=chunk-6BRTRIDE.js.map