function crispItem(item) {
    if (crispMap[item.type] && crispMap[item.type].condition(item)) {
      const self = crispMap[item.type];
      const doAppend = self.conditionAppend === undefined || self.conditionAppend(item);

      self.items.forEach((i) => {
        const rounded = Math.round(item[i.key]);
        const diff = item[i.key] - rounded;
        item[i.key] = rounded;

        if (doAppend && i.type === 'append') {
          if (diff > 0) {
            item[i.key] += 0.5;
          } else {
            item[i.key] -= 0.5;
          }
        }
      });
    }
  }
/**
   * Crispify a single item
   * @ignore
   * @param  {Object} item  Item with renderer variables such as X, Y, and type.
   * @return {Undefined}    Returns nothing, modifies the original item instead
   */
Crispify a single item
@ignore
@param  {Object} item  Item with renderer variables such as X, Y, and type.
@return {Undefined}    Returns nothing, modifies the original item instead
Crispify a single item @ignore @param { Object } item Item with renderer variables such as X Y and type . @return { Undefined } Returns nothing modifies the original item instead
function crispItem(item) {
    if (crispMap[item.type] && crispMap[item.type].condition(item)) {
      const self = crispMap[item.type];
      const doAppend = self.conditionAppend === undefined || self.conditionAppend(item);
      self.items.forEach((i) => {
        const rounded = Math.round(item[i.key]);
        const diff = item[i.key] - rounded;
        item[i.key] = rounded;
        if (doAppend && i.type === 'append') {
          if (diff > 0) {
            item[i.key] += 0.5;
          } else {
            item[i.key] -= 0.5;
          }
        }
      });
    }
  }
function crispItem ( item ) { if ( crispMap [ item . type ] && crispMap [ item . type ] . condition ( item ) ) { const self = crispMap [ item . type ] ; const doAppend = self . conditionAppend === undefined || self . conditionAppend ( item ) ; self . items . forEach ( ( i ) => { const rounded = Math . round ( item [ i . key ] ) ; const diff = item [ i . key ] - rounded ; item [ i . key ] = rounded ; if ( doAppend && i . type === 'append' ) { if ( diff > 0 ) { item [ i . key ] += 0.5 ; } else { item [ i . key ] -= 0.5 ; } } } ) ; } }
Crispify a single item
 @ignore
 @param  {Object} item  Item with renderer variables such as X, Y, and type.
Crispify a single item @ignore @param { Object } item Item with renderer variables such as X Y and type .