chunk-LDMWL65U.js 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. import {
  2. N,
  3. S,
  4. T
  5. } from "./chunk-3OFVLRSL.js";
  6. // node_modules/@arcgis/core/views/3d/webgl-engine/lib/basicInterfaces.js
  7. var n;
  8. var e;
  9. var N2;
  10. var O;
  11. var t;
  12. var i;
  13. var u;
  14. var a;
  15. var c;
  16. var l;
  17. var C;
  18. var D;
  19. !function(n2) {
  20. n2[n2.None = 0] = "None", n2[n2.Front = 1] = "Front", n2[n2.Back = 2] = "Back", n2[n2.COUNT = 3] = "COUNT";
  21. }(n || (n = {})), function(n2) {
  22. n2[n2.Less = 0] = "Less", n2[n2.Lequal = 1] = "Lequal", n2[n2.COUNT = 2] = "COUNT";
  23. }(e || (e = {})), function(n2) {
  24. n2[n2.BACKGROUND = 0] = "BACKGROUND", n2[n2.UPDATE = 1] = "UPDATE";
  25. }(N2 || (N2 = {})), function(n2) {
  26. n2[n2.NOT_LOADED = 0] = "NOT_LOADED", n2[n2.LOADING = 1] = "LOADING", n2[n2.LOADED = 2] = "LOADED";
  27. }(O || (O = {})), function(n2) {
  28. n2[n2.IntegratedMeshMaskExcluded = 1] = "IntegratedMeshMaskExcluded", n2[n2.OutlineVisualElementMask = 2] = "OutlineVisualElementMask";
  29. }(t || (t = {})), function(n2) {
  30. n2[n2.ASYNC = 0] = "ASYNC", n2[n2.SYNC = 1] = "SYNC";
  31. }(i || (i = {})), function(n2) {
  32. n2[n2.Highlight = 0] = "Highlight", n2[n2.MaskOccludee = 1] = "MaskOccludee", n2[n2.COUNT = 2] = "COUNT";
  33. }(u || (u = {})), function(n2) {
  34. n2[n2.Triangle = 0] = "Triangle", n2[n2.Point = 1] = "Point", n2[n2.Line = 2] = "Line";
  35. }(a || (a = {})), function(n2) {
  36. n2[n2.STRETCH = 1] = "STRETCH", n2[n2.PAD = 2] = "PAD";
  37. }(c || (c = {})), function(n2) {
  38. n2[n2.CHANGED = 0] = "CHANGED", n2[n2.UNCHANGED = 1] = "UNCHANGED";
  39. }(l || (l = {})), function(n2) {
  40. n2[n2.Blend = 0] = "Blend", n2[n2.Opaque = 1] = "Opaque", n2[n2.Mask = 2] = "Mask", n2[n2.MaskBlend = 3] = "MaskBlend", n2[n2.COUNT = 4] = "COUNT";
  41. }(C || (C = {})), function(n2) {
  42. n2[n2.OFF = 0] = "OFF", n2[n2.ON = 1] = "ON";
  43. }(D || (D = {}));
  44. // node_modules/@arcgis/core/views/3d/webgl-engine/lib/TransparencyPassType.js
  45. var o;
  46. !function(o4) {
  47. o4[o4.Color = 0] = "Color", o4[o4.Alpha = 1] = "Alpha", o4[o4.FrontFace = 2] = "FrontFace", o4[o4.NONE = 3] = "NONE", o4[o4.COUNT = 4] = "COUNT";
  48. }(o || (o = {}));
  49. // node_modules/@arcgis/core/views/webgl/doublePrecisionUtils.js
  50. function t2(t3, n2, o4) {
  51. for (let r3 = 0; r3 < o4; ++r3)
  52. n2[2 * r3] = t3[r3], n2[2 * r3 + 1] = t3[r3] - n2[2 * r3];
  53. }
  54. function o2(t3, n2) {
  55. const o4 = t3.length;
  56. for (let r3 = 0; r3 < o4; ++r3)
  57. e2[0] = t3[r3], n2[r3] = e2[0];
  58. return n2;
  59. }
  60. function r(t3, n2) {
  61. const o4 = t3.length;
  62. for (let r3 = 0; r3 < o4; ++r3)
  63. e2[0] = t3[r3], e2[1] = t3[r3] - e2[0], n2[r3] = e2[1];
  64. return n2;
  65. }
  66. var e2 = new Float32Array(2);
  67. // node_modules/@arcgis/core/views/webgl/renderState.js
  68. function s(t3, e3, i2 = T.ADD, s2 = [0, 0, 0, 0]) {
  69. return { srcRgb: t3, srcAlpha: t3, dstRgb: e3, dstAlpha: e3, opRgb: i2, opAlpha: i2, color: { r: s2[0], g: s2[1], b: s2[2], a: s2[3] } };
  70. }
  71. function l2(t3, e3, i2, s2, l3 = T.ADD, r3 = T.ADD, o4 = [0, 0, 0, 0]) {
  72. return { srcRgb: t3, srcAlpha: e3, dstRgb: i2, dstAlpha: s2, opRgb: l3, opAlpha: r3, color: { r: o4[0], g: o4[1], b: o4[2], a: o4[3] } };
  73. }
  74. var r2 = { face: N.BACK, mode: S.CCW };
  75. var o3 = { face: N.FRONT, mode: S.CCW };
  76. var h = (e3) => e3 === n.Back ? r2 : e3 === n.Front ? o3 : null;
  77. var a2 = { zNear: 0, zFar: 1 };
  78. var _ = { r: true, g: true, b: true, a: true };
  79. function c2(t3) {
  80. return T2.intern(t3);
  81. }
  82. function d(t3) {
  83. return D2.intern(t3);
  84. }
  85. function p(t3) {
  86. return C2.intern(t3);
  87. }
  88. function u2(t3) {
  89. return A.intern(t3);
  90. }
  91. function g(t3) {
  92. return w.intern(t3);
  93. }
  94. function f(t3) {
  95. return B.intern(t3);
  96. }
  97. function v(t3) {
  98. return z.intern(t3);
  99. }
  100. function I(t3) {
  101. return j.intern(t3);
  102. }
  103. function W(t3) {
  104. return N3.intern(t3);
  105. }
  106. var S2 = class {
  107. constructor(t3, e3) {
  108. this._makeKey = t3, this._makeRef = e3, this._interns = /* @__PURE__ */ new Map();
  109. }
  110. intern(t3) {
  111. var _a;
  112. if (!t3)
  113. return null;
  114. const e3 = this._makeKey(t3), i2 = this._interns;
  115. return i2.has(e3) || i2.set(e3, this._makeRef(t3)), (_a = i2.get(e3)) != null ? _a : null;
  116. }
  117. };
  118. function b(t3) {
  119. return "[" + t3.join(",") + "]";
  120. }
  121. var T2 = new S2(y, (t3) => ({ __tag: "Blending", ...t3 }));
  122. function y(t3) {
  123. return t3 ? b([t3.srcRgb, t3.srcAlpha, t3.dstRgb, t3.dstAlpha, t3.opRgb, t3.opAlpha, t3.color.r, t3.color.g, t3.color.b, t3.color.a]) : null;
  124. }
  125. var D2 = new S2(O2, (t3) => ({ __tag: "Culling", ...t3 }));
  126. function O2(t3) {
  127. return t3 ? b([t3.face, t3.mode]) : null;
  128. }
  129. var C2 = new S2(m, (t3) => ({ __tag: "PolygonOffset", ...t3 }));
  130. function m(t3) {
  131. return t3 ? b([t3.factor, t3.units]) : null;
  132. }
  133. var A = new S2(R, (t3) => ({ __tag: "DepthTest", ...t3 }));
  134. function R(t3) {
  135. return t3 ? b([t3.func]) : null;
  136. }
  137. var w = new S2(k, (t3) => ({ __tag: "StencilTest", ...t3 }));
  138. function k(t3) {
  139. return t3 ? b([t3.function.func, t3.function.ref, t3.function.mask, t3.operation.fail, t3.operation.zFail, t3.operation.zPass]) : null;
  140. }
  141. var B = new S2(P, (t3) => ({ __tag: "DepthWrite", ...t3 }));
  142. function P(t3) {
  143. return t3 ? b([t3.zNear, t3.zFar]) : null;
  144. }
  145. var z = new S2(F, (t3) => ({ __tag: "ColorWrite", ...t3 }));
  146. function F(t3) {
  147. return t3 ? b([t3.r, t3.g, t3.b, t3.a]) : null;
  148. }
  149. var j = new S2(K, (t3) => ({ __tag: "StencilWrite", ...t3 }));
  150. function K(t3) {
  151. return t3 ? b([t3.mask]) : null;
  152. }
  153. var N3 = new S2(x, (t3) => ({ blending: c2(t3.blending), culling: d(t3.culling), polygonOffset: p(t3.polygonOffset), depthTest: u2(t3.depthTest), stencilTest: g(t3.stencilTest), depthWrite: f(t3.depthWrite), colorWrite: v(t3.colorWrite), stencilWrite: I(t3.stencilWrite) }));
  154. function x(t3) {
  155. return t3 ? b([y(t3.blending), O2(t3.culling), m(t3.polygonOffset), R(t3.depthTest), k(t3.stencilTest), P(t3.depthWrite), F(t3.colorWrite), K(t3.stencilWrite)]) : null;
  156. }
  157. var M = class {
  158. constructor(t3) {
  159. this._pipelineInvalid = true, this._blendingInvalid = true, this._cullingInvalid = true, this._polygonOffsetInvalid = true, this._depthTestInvalid = true, this._stencilTestInvalid = true, this._depthWriteInvalid = true, this._colorWriteInvalid = true, this._stencilWriteInvalid = true, this._stateSetters = t3;
  160. }
  161. setPipeline(t3) {
  162. (this._pipelineInvalid || t3 !== this._pipeline) && (this._setBlending(t3.blending), this._setCulling(t3.culling), this._setPolygonOffset(t3.polygonOffset), this._setDepthTest(t3.depthTest), this._setStencilTest(t3.stencilTest), this._setDepthWrite(t3.depthWrite), this._setColorWrite(t3.colorWrite), this._setStencilWrite(t3.stencilWrite), this._pipeline = t3), this._pipelineInvalid = false;
  163. }
  164. invalidateBlending() {
  165. this._blendingInvalid = true, this._pipelineInvalid = true;
  166. }
  167. invalidateCulling() {
  168. this._cullingInvalid = true, this._pipelineInvalid = true;
  169. }
  170. invalidatePolygonOffset() {
  171. this._polygonOffsetInvalid = true, this._pipelineInvalid = true;
  172. }
  173. invalidateDepthTest() {
  174. this._depthTestInvalid = true, this._pipelineInvalid = true;
  175. }
  176. invalidateStencilTest() {
  177. this._stencilTestInvalid = true, this._pipelineInvalid = true;
  178. }
  179. invalidateDepthWrite() {
  180. this._depthWriteInvalid = true, this._pipelineInvalid = true;
  181. }
  182. invalidateColorWrite() {
  183. this._colorWriteInvalid = true, this._pipelineInvalid = true;
  184. }
  185. invalidateStencilWrite() {
  186. this._stencilTestInvalid = true, this._pipelineInvalid = true;
  187. }
  188. _setBlending(t3) {
  189. this._blending = this._setSubState(t3, this._blending, this._blendingInvalid, this._stateSetters.setBlending), this._blendingInvalid = false;
  190. }
  191. _setCulling(t3) {
  192. this._culling = this._setSubState(t3, this._culling, this._cullingInvalid, this._stateSetters.setCulling), this._cullingInvalid = false;
  193. }
  194. _setPolygonOffset(t3) {
  195. this._polygonOffset = this._setSubState(t3, this._polygonOffset, this._polygonOffsetInvalid, this._stateSetters.setPolygonOffset), this._polygonOffsetInvalid = false;
  196. }
  197. _setDepthTest(t3) {
  198. this._depthTest = this._setSubState(t3, this._depthTest, this._depthTestInvalid, this._stateSetters.setDepthTest), this._depthTestInvalid = false;
  199. }
  200. _setStencilTest(t3) {
  201. this._stencilTest = this._setSubState(t3, this._stencilTest, this._stencilTestInvalid, this._stateSetters.setStencilTest), this._stencilTestInvalid = false;
  202. }
  203. _setDepthWrite(t3) {
  204. this._depthWrite = this._setSubState(t3, this._depthWrite, this._depthWriteInvalid, this._stateSetters.setDepthWrite), this._depthWriteInvalid = false;
  205. }
  206. _setColorWrite(t3) {
  207. this._colorWrite = this._setSubState(t3, this._colorWrite, this._colorWriteInvalid, this._stateSetters.setColorWrite), this._colorWriteInvalid = false;
  208. }
  209. _setStencilWrite(t3) {
  210. this._stencilWrite = this._setSubState(t3, this._stencilWrite, this._stencilWriteInvalid, this._stateSetters.setStencilWrite), this._stencilTestInvalid = false;
  211. }
  212. _setSubState(t3, e3, i2, n2) {
  213. return (i2 || t3 !== e3) && (n2(t3), this._pipelineInvalid = true), t3;
  214. }
  215. };
  216. export {
  217. n,
  218. e,
  219. O,
  220. t,
  221. a,
  222. c,
  223. C,
  224. t2,
  225. o2 as o,
  226. r,
  227. o as o2,
  228. s,
  229. l2 as l,
  230. h,
  231. a2,
  232. _,
  233. W,
  234. M
  235. };
  236. //# sourceMappingURL=chunk-LDMWL65U.js.map