/** * Returns the name of this {@link Style}. * * This is used by {@link CLI} when looking up styles based on the value passed to the <code>--style</code> option. * * Implementations <b>must</b> override this method. * * @return {string} The name. * @public * @abstract */ getName() { pollock(Style, 'getName'); }
/** * Applies this {@link Style} using the <code>options</code> provided. * * The <code>pathLength</code> option is the {@link PathLength} instance to which this style is to be applied. * Normally, styles will register event listeners on the instance to be notified when they should write to the output * stream. * * The <code>outputStream</code> option is to be used to write output. * * The <code>pretty</code> option is not applicable to all styles and each implementation can determine how it is * applied or whether it's ignored entirely. When enabled, styles should attempt to make their output "prettier" as * standard output should be the minimal possible. * * @param {Style~ApplyOptions} options - the options to be used * @return {void} * @public * @abstract */ apply(options) { pollock(Style, 'apply'); }