EdgeProcessingWorker-ABXSFLHS.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. import {
  2. A as A2,
  3. a as a2,
  4. f,
  5. h as h2,
  6. m as m2,
  7. u as u2
  8. } from "./chunk-4GSC3BUA.js";
  9. import "./chunk-AGGGC2FA.js";
  10. import "./chunk-RUM3DXFX.js";
  11. import "./chunk-X6GHUY4U.js";
  12. import "./chunk-7LRVL5YB.js";
  13. import "./chunk-4OM3EX6P.js";
  14. import "./chunk-3OFVLRSL.js";
  15. import {
  16. A,
  17. B,
  18. C,
  19. D,
  20. E,
  21. F,
  22. G,
  23. H,
  24. I,
  25. L,
  26. M,
  27. O,
  28. S,
  29. T,
  30. U,
  31. V,
  32. a,
  33. b,
  34. c,
  35. d,
  36. g,
  37. h,
  38. i,
  39. j,
  40. k,
  41. l,
  42. m,
  43. o,
  44. p,
  45. q,
  46. u,
  47. v,
  48. w,
  49. x,
  50. y,
  51. z
  52. } from "./chunk-HIELTLML.js";
  53. import "./chunk-E3G7BRZB.js";
  54. import "./chunk-RYY6632W.js";
  55. import "./chunk-DW42UVIT.js";
  56. import "./chunk-TJNOJH33.js";
  57. import "./chunk-YAEIHDJH.js";
  58. import "./chunk-OSHI574D.js";
  59. import "./chunk-2TIUKVZN.js";
  60. import "./chunk-YXWMMD76.js";
  61. import "./chunk-S5KM4IGW.js";
  62. // node_modules/@arcgis/core/views/3d/support/buffer/workerHelper.js
  63. function z2(e, t) {
  64. return t.push(e.buffer), { buffer: e.buffer, layout: F2(e.layout) };
  65. }
  66. function F2(e) {
  67. const t = new Array();
  68. return e.fields.forEach((e2, r) => {
  69. const o3 = { ...e2, constructor: J(e2.constructor) };
  70. t.push([r, o3]);
  71. }), { stride: e.stride, fields: t, fieldNames: e.fieldNames };
  72. }
  73. var H2 = [y, u, i, c, l, p, o, m, T, h, a, b, d, A, O, x, g, w, E, L, B, F, I, U, j, V, M, S, k, q, v, z, C, D, G, H];
  74. function J(e) {
  75. return `${e.ElementType}_${e.ElementCount}`;
  76. }
  77. var O2 = /* @__PURE__ */ new Map();
  78. H2.forEach((e) => O2.set(J(e), e));
  79. // node_modules/@arcgis/core/views/3d/webgl-engine/lib/edgeRendering/EdgeProcessingWorker.js
  80. var o2 = class {
  81. async extract(e) {
  82. const t = c2(e), n = f(t), r = [t.data.buffer];
  83. return { result: l2(n, r), transferList: r };
  84. }
  85. async extractComponentsEdgeLocations(t) {
  86. const s = c2(t), i2 = u2(s.data, s.skipDeduplicate, s.indices, s.indicesLength), a3 = h2(i2, p2, g2), o3 = [];
  87. return { result: z2(a3.regular.instancesData, o3), transferList: o3 };
  88. }
  89. async extractEdgeLocations(t) {
  90. const s = c2(t), i2 = u2(s.data, s.skipDeduplicate, s.indices, s.indicesLength), a3 = h2(i2, f2, g2), o3 = [];
  91. return { result: z2(a3.regular.instancesData, o3), transferList: o3 };
  92. }
  93. };
  94. function c2(e) {
  95. return { data: A2.createView(e.dataBuffer), indices: "Uint32Array" === e.indicesType ? new Uint32Array(e.indices) : "Uint16Array" === e.indicesType ? new Uint16Array(e.indices) : e.indices, indicesLength: e.indicesLength, writerSettings: e.writerSettings, skipDeduplicate: e.skipDeduplicate };
  96. }
  97. function l2(t, n) {
  98. n.push(t.regular.lodInfo.lengths.buffer), n.push(t.silhouette.lodInfo.lengths.buffer);
  99. return { regular: { instancesData: z2(t.regular.instancesData, n), lodInfo: { lengths: t.regular.lodInfo.lengths.buffer } }, silhouette: { instancesData: z2(t.silhouette.instancesData, n), lodInfo: { lengths: t.silhouette.lodInfo.lengths.buffer } }, averageEdgeLength: t.averageEdgeLength };
  100. }
  101. var u3 = class {
  102. allocate(e) {
  103. return a2.createBuffer(e);
  104. }
  105. trim(e, t) {
  106. return e.slice(0, t);
  107. }
  108. write(e, t, n) {
  109. e.position0.setVec(t, n.position0), e.position1.setVec(t, n.position1);
  110. }
  111. };
  112. var d2 = class {
  113. allocate(e) {
  114. return m2.createBuffer(e);
  115. }
  116. trim(e, t) {
  117. return e.slice(0, t);
  118. }
  119. write(e, t, n) {
  120. e.position0.setVec(t, n.position0), e.position1.setVec(t, n.position1), e.componentIndex.set(t, n.componentIndex);
  121. }
  122. };
  123. var f2 = new u3();
  124. var p2 = new d2();
  125. var g2 = { allocate: () => null, write: () => {
  126. }, trim: () => null };
  127. export {
  128. o2 as default
  129. };
  130. //# sourceMappingURL=EdgeProcessingWorker-ABXSFLHS.js.map