Closure Library API Documentation
Go to class or file:
spriteinfo.js
No description.
Useful links
Also See:
Source Code
Git
File Location
/goog/ui/emoji/spriteinfo.js
Classes
goog.ui.emoji.SpriteInfo
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.
Public
Protected
Private
Global Functions
goog.ui.emoji.SpriteInfo.
getCssPixelValue_
(
value
)
⇒
string
Returns a string appropriate for use as a CSS value. If the value is zero, then there is no unit appended.
Arguments:
value
:
number
|
undefined
A number to be turned into a CSS size/location value.
Returns:
string
A string appropriate for use as a CSS value.
code »
goog.ui.emoji.SpriteInfo.
getOffsetCssValue_
(
posOffset
)
⇒
string
Returns a string appropriate for use as a CSS value for a position offset, such as the position argument for sprites.
Arguments:
posOffset
:
number
|
undefined
A positive offset for a position.
Returns:
string
A string appropriate for use as a CSS value.
code »
Directory emoji
File Reference