code: function setDecorationOptions(decoration, options) {
          if (isDefined(decoration) && isDefined(options)) {
            if (isDefined(options.coordinates) && isDefined(options.patterns)) {
              decoration.setPaths(options.coordinates);
              decoration.setPatterns(options.patterns);
              return decoration;
            }
          }
        }
docs: /* Updates the path and the patterns for the provided decoration, and returns the decoration.