processSources_() {
    const frameState = this.requestedFrameState_;
    const len = this.layers_.length;
    const imageDatas = new Array(len);
    for (let i = 0; i < len; ++i) {
      frameState.layerIndex = i;
      const imageData = getImageData(this.layers_[i], frameState);
      if (imageData) {
        imageDatas[i] = imageData;
      } else {
        return;
      }
    }

    const data = {};
    this.dispatchEvent(
      new RasterSourceEvent(RasterEventType.BEFOREOPERATIONS, frameState, data)
    );
    this.processor_.process(
      imageDatas,
      data,
      this.onWorkerComplete_.bind(this, frameState)
    );
  }
/**
   * Start processing source data.
   * @private
   */
Start processing source data.
@private
Start processing source data . @private
processSources_() {
    const frameState = this.requestedFrameState_;
    const len = this.layers_.length;
    const imageDatas = new Array(len);
    for (let i = 0; i < len; ++i) {
      frameState.layerIndex = i;
      const imageData = getImageData(this.layers_[i], frameState);
      if (imageData) {
        imageDatas[i] = imageData;
      } else {
        return;
      }
    }
    const data = {};
    this.dispatchEvent(
      new RasterSourceEvent(RasterEventType.BEFOREOPERATIONS, frameState, data)
    );
    this.processor_.process(
      imageDatas,
      data,
      this.onWorkerComplete_.bind(this, frameState)
    );
  }
processSources_ ( ) { const frameState = this . requestedFrameState_ ; const len = this . layers_ . length ; const imageDatas = new Array ( len ) ; for ( let i = 0 ; i < len ; ++ i ) { frameState . layerIndex = i ; const imageData = getImageData ( this . layers_ [ i ] , frameState ) ; if ( imageData ) { imageDatas [ i ] = imageData ; } else { return ; } } const data = { } ; this . dispatchEvent ( new RasterSourceEvent ( RasterEventType . BEFOREOPERATIONS , frameState , data ) ) ; this . processor_ . process ( imageDatas , data , this . onWorkerComplete_ . bind ( this , frameState ) ) ; }
Start processing source data.
Start processing source data .