code: function encodeStyleStroke_(strokeStyle, encodedStyles) {
    const strokeColor = strokeStyle.getColor();
    if (strokeColor !== null) {
      if (Array.isArray(strokeColor)) {
        const strokeColorHex = rgbArrayToHex(strokeColor);
        if (encodedStyles.length > 0) {
          encodedStyles.push('\'');
        }
        encodedStyles.push(encodeURIComponent(`strokeColor*${strokeColorHex}`));
      }
    }
    const strokeWidth = strokeStyle.getWidth();
    if (strokeWidth !== undefined) {
      if (encodedStyles.length > 0) {
        encodedStyles.push('\'');
      }
      encodedStyles.push(encodeURIComponent(`strokeWidth*${strokeWidth}`));
    }
  }
docs: Transform an {@link import("ol/style/Stroke.js").default} into a logical sequence of
  characters and put the result into the given encoded styles's array.
  @param {import("ol/style/Stroke.js").default} strokeStyle Stroke style.
  @param {Array<string>} encodedStyles Encoded styles array.
  @private
  @hidden