Options
All
  • Public
  • Public/Protected
  • All
Menu

The MapNodeImagesPlugin adds image ids or urls to map nodes. This image data can come from

a) "images" lists in argument or statement metadata b) tag configuration data

If there is no entry in "images/files" for the used string, this plugin creates one and assumes that the string is the image file's url.

This allows the user to either create a central list of image files with short ids or simply directly write the image url into the items metadata.

This plugin depends on the results from the MapPlugin.

Hierarchy

  • MapNodeImagesPlugin

Implements

Index

Constructors

constructor

Properties

defaults

defaults: IImagesSettings

name

name: string = "MapNodeImagesPlugin"

The name of the plugin

prepare

prepare: IRequestHandler = ...

Called each time the plugin's processor is run, before any other method of this plugin is called. Use this to add default settings to the request and to check that all required data is present in the response. If not, throw an ArgdownPluginError to cancel the the current processor's execution.

run

run: IRequestHandler = ...

Use this method to do the main work outside of the Argdown AST. This is the last method to be called by the ArgdownApplication.

Methods

getImagesFromData

getImagesFromTags

getSettings

Generated using TypeDoc