code: function setOptions(newOptions) {
      options = newOptions || {};
      if (typeof options.common === 'string') {
        if (options.common.toLowerCase() === 'first') {
          common = COMMON_FIRST;
        } else if (options.common.toLowerCase() === 'second') {
          common = COMMON_SECOND;
        } else if (options.common.toLowerCase() === 'both') {
          common = COMMON_BOTH;
        } else {
          common = COMMON_NO;
        }
      } else {
        if (options.common === true) {
          common = COMMON_BOTH;
        } else {
          common = COMMON_NO;
        }
      }
      commonFactor = options.commonFactor || commonFactor || 4;
  
      if (options.widthBottom === undefined) {
        options.widthBottom = widthBottom || 2;
      }
      if (options.widthTop === undefined) {
        options.widthTop = widthTop || 1;
      }
      setTrapezoid(options.widthBottom, options.widthTop);
      setFromTo(options.from || from, options.to || to);
    }
docs: /*
  2 formats are allowed:
  [[x1,x2,...],[y1,y2,...]] or [[x1,y1],[x2,y2], ...]