saveHex(params = {}) {
    const text = params.text || {};
    const node = {
      id: params.id,
      x: params.x,
      y: params.y,
      bgColor: params.bgColor || COLOR.white,
      borderColor: params.borderColor || COLOR.white,
      text: {
        value: text.value || '',
        color: text.color || COLOR.black,
        font: text.font || '12px Arial',
        xOffset: text.xOffset || 0,
        yOffset: text.yOffset || 0
      },
      blink: {
        text: {
          value: '',
          color: COLOR.black
        },
        borderColor: params.borderColor || COLOR.white,
        bgColor: COLOR.red,
        interval: 1000,
        on: false,
        lastCall: 0
      }
    };

    let isExist = false;

    for (let i = 0; i < this._nodes.length; i++) {
      if (this._nodes[i].id === node.id) {
        this._nodes[i] = node;
        isExist = true;
        break;
      }
    }

    if (!isExist) {
      this._nodes.push(node);
    }
  }
Create or update a hex
@param {object} params