const typeMap = { 'i-text': this.processText.bind(this), 'image': this.processImage.bind(this), 'rect': this.processRectangle.bind(this) };