range.alignCenter()

/**
 * custom prototype for Range
 * @example
 * range.__proto__ = app.range.prototype;
 * range.alignCenter();
 */
app.rangePrototype = {

  // ๐Ÿ”ธ range.alignCenter()
  alignCenter(){
    this
      .setVerticalAlignment('middle')
      .setHorizontalAlignment('center');
    return this;   // for chaining
  },

};

Last updated