Creates a SpriteInfo object with the specified properties. If the image is sprited via CSS, then only the first parameter needs a value. If the image is sprited via metadata, then the first parameter should be left null.
| Instance Method Summary | |
getCssClass() ⇒ ?stringReturns the css class of the sprited image. | |
getHeightCssValue() ⇒ stringReturns the height of the image being sprited, appropriate for a CSS value. | |
getUrl() ⇒ ?stringReturns the url of the sprite image. | |
getWidthCssValue() ⇒ stringReturns the width of the image being sprited, appropriate for a CSS value. | |
getXOffsetCssValue() ⇒ stringReturns the x offset of the image being sprited within the sprite, appropriate for a CSS value. | |
getYOffsetCssValue() ⇒ stringReturns the positive y offset of the image being sprited within the sprite, appropriate for a CSS value. | |
isAnimated() ⇒ booleanReturns whether the emoji specified by this sprite is animated. | |
| Static Method Summary | |
getCssPixelValue_((number|undefined) value) ⇒ stringReturns a string appropriate for use as a CSS value. If the value is zero, then there is no unit appended. | |
getOffsetCssValue_((number|undefined) posOffset) ⇒ stringReturns a string appropriate for use as a CSS value for a position offset, such as the position argument for sprites. | |