chunk-BFF4N4R7.js 950 B

1234567891011121314151617181920212223242526272829303132
  1. import {
  2. n3 as n,
  3. o
  4. } from "./chunk-264YGWEE.js";
  5. import {
  6. I
  7. } from "./chunk-EQNT4A7P.js";
  8. // node_modules/@arcgis/core/views/2d/engine/BitmapContainer.js
  9. var a = class extends o {
  10. constructor() {
  11. super(...arguments), this._hasCrossfade = false;
  12. }
  13. get requiresDedicatedFBO() {
  14. return this._hasCrossfade;
  15. }
  16. beforeRender(e) {
  17. super.beforeRender(e), this._manageFade();
  18. }
  19. prepareRenderPasses(r) {
  20. const a2 = r.registerRenderPass({ name: "bitmap", brushes: [n.bitmap], target: () => this.children, drawPhase: I.MAP });
  21. return [...super.prepareRenderPasses(r), a2];
  22. }
  23. _manageFade() {
  24. this.children.reduce((e, s) => e + (s.inFadeTransition ? 1 : 0), 0) >= 2 ? (this.children.forEach((e) => e.blendFunction = "additive"), this._hasCrossfade = true) : (this.children.forEach((e) => e.blendFunction = "standard"), this._hasCrossfade = false);
  25. }
  26. };
  27. export {
  28. a
  29. };
  30. //# sourceMappingURL=chunk-BFF4N4R7.js.map