/** * Base class for role objects that use the img HTML tag. * This contains only setters/getters for fields that are common to * all img tags regardless of the type attribute. */ export default class ImgData extends SectionData { /** * @inheritdoc */ addChild(): void; /** * @inheritdoc */ addChildAt(): void; /** * Sets the alternate text for an image * @access public * @param {String} text - alternate text for an image */ set alt(arg: string); /** * Retrieves the alternate text for an image * @access public * @returns {String} alternate text for an image, undefined if this field is unset */ get alt(): string; /** * Sets the crossorigin property for an image * @access public * @param {String} option - the type of crossorigin sharing to be used */ set crossOrigin(arg: string); /** * Retrieves the crossorigin property for an image * @access public * @returns {String} the type of crossoriging sharing, undefined if this field is unset */ get crossOrigin(): string; /** * Sets the height of an image * @access public * @param {Number} pixels - the height of an image in pixels */ set height(arg: number); /** * Retrieves the height of an image * @access public * @returns {Number} the height of an image in pixels, undefined if this field is unset */ get height(): number; /** * Sets the ismap property of an image * @access public * @param {Boolean} option - whether or not this image is part of an image map */ set isMap(arg: boolean); /** * Retrieves the ismap property of an image * @access public * @returns {Boolean} whether or not this image is part of an image map, * undefined if this field is unset */ get isMap(): boolean; /** * Sets a URL to a detailed description of an image * @access public * @param {String} url - a URL to a detailed description of an image */ set longDesc(arg: string); /** * Retrieves a URL to a detailed description of an image * @access public * @returns {String} a URL to a detailed description of an image, undefined if this field is unset */ get longDesc(): string; /** * Sets the sizes property of an image * @access public * @param {String} sizes - a list of possible image sizes */ set sizes(arg: string); /** * Retrieves the sizes property an image * @access public * @returns {String} a list of possible image sizes, undefined if this field is unset */ get sizes(): string; /** * Sets the URL of an image * @access public * @param {String} url - the URL of an image */ set src(arg: string); /** * Retrieves the URL of an image * @access public * @returns {String} the URL of an image, undefined if this field is unset */ get src(): string; /** * Sets the srcset of an image * @access public * @param {String} url - the URL of an image to use in different situations */ set srcSet(arg: string); /** * Retrieves the srcset of an image * @access public * @returns {String} the URL of an image to use in different situations, * undefined if this field is unset */ get srcSet(): string; /** * Sets the usemap property of an image * @access public * @param {String} map - the name of the map to use to make the image a client-side image map */ set useMap(arg: string); /** * Retrieves the usemap property of an image * @access public * @returns {String} the name of the map to use to make the image a client-side * image map, undefined if this field is unset */ get useMap(): string; /** * Sets the width of an image * @access public * @param {Number} pixels - the width of an image in pixels */ set width(arg: number); /** * Retrieves the width of an image * @access public * @returns {Number} the width of an image in pixels, undefined if this field is unset */ get width(): number; } import SectionData from "./SectionData";