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