Sprite
Type class
Base class of all visual elements.
Sources
Sprite can be used (imported) via one of the following packages.
// Import Spriteimport * as am5 from "@amcharts/amcharts5";
// Create Spriteam5.Sprite.new(root, { // ... config if applicable});<!-- Load Sprite --><script src="index.js"></script>
<script>// Create Spriteam5.Sprite.new(root, { // ... config if applicable});</script>Inheritance
Sprite extends Entity.
Sprite is extended by Container, Graphics, Picture.
Settings
Set these settings on a Sprite object using its set() and setAll() methods. Read about settings concept.
activeType
undefined|false|trueApplies the element's
"active"state whiletrue.appearDelayType
undefined|numberDefault0Since 5.21.0Milliseconds to wait before the
autoAppearanimation starts. The element stays hidden until then.appearDurationType
undefined|numberSince 5.21.0Duration of the
autoAppearanimation, in milliseconds. Without it, the element'sstateAnimationDurationis used.ariaCheckedType
undefined|false|truearia-checkedsetting.This setting is ignored unless
roleis one of the following:"checkbox""option""radio""menuitemcheckbox""menuitemradio""treeitem"On a toggle"button"(one withtoggleKey) it is exposed asaria-pressed.
ariaControlsType
undefined|stringaria-controlssetting.ariaCurrentType
undefined|stringSince 5.9.8aria-currentsetting.More info: https://w3c.github.io/aria/#aria-current
ariaExpandedType
undefined|false|trueSince 5.21.0aria-expandedsetting: whether the content the element shows or hides (e.g. a task's subtasks, a node's children) is shown.More info: https://w3c.github.io/aria/#aria-expanded
ariaHiddenType
undefined|false|truearia-hiddensetting.ariaLabelType
undefined|stringLabel for the element to use for screen readers.
More info: Accessibility: screen reader
ariaLiveType
AriaLivearia-livesetting.ariaOrientationType
undefined|stringaria-orientationsetting.ariaSelectedType
undefined|false|trueSince 5.9.8aria-selectedsetting.More info: https://w3c.github.io/aria/#aria-selected
ariaValueMaxType
undefined|stringaria-valuemaxsetting.ariaValueMinType
undefined|stringaria-valueminsetting.ariaValueNowType
undefined|stringaria-valuenowsetting.ariaValueTextType
undefined|stringaria-valuetextsetting.autoAppearType
undefined|false|trueDefaultfalseSince 5.21.0Plays the element's reveal animation, as
appear()does, when it is first drawn: a chart fades in, a series grows its columns or lines from the base. A series waits for its first data. It plays once: data updates do not replay it, but turning the setting off and on again does.Elements made from a template play as each one is made.
An element that starts hidden (
visible: false, or hidden in code before it is drawn) stays hidden. Ananimationsentry on the same setting, such as a pulsingopacity, keeps playing.This is how a JSON config gets the opening animation, as a config cannot call
appear().chart.setAll({ autoAppear: true, appearDuration: 1000, appearDelay: 100 }); series.setAll({ autoAppear: true, appearDuration: 1000 });chart.setAll({ autoAppear: true, appearDuration: 1000, appearDelay: 100 }); series.setAll({ autoAppear: true, appearDuration: 1000 });More info: Animations
blurType
undefined|numberSince 5.5.0Blur radius in pixels, from
0(no blur) up.IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
brightnessType
undefined|numberSince 5.5.0Brightness.
0- completely black1- no changes (default)>1- brighter IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
centerXType
number|PercentThe point of the element that is placed at its
xposition, and that it rotates and scales around: pixels from its left edge, or a percent of its width.centerYType
number|PercentThe point of the element that is placed at its
yposition, and that it rotates and scales around: pixels from its top edge, or a percent of its height.clickAnnounceTextType
undefined|stringSince 5.10.8If set, the text will be read out (announced) by a screen reader when focused element is "clicked" (by pressing ENTER or SPACE).
contrastType
undefined|numberSince 5.5.0Contrast.
0- completely gray1- no changes (default)>1- more contrast IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
crispType
undefined|false|trueDefaultfalseSince 5.3.0Draws the element sharply, with minimal anti-aliasing: its position is rounded to whole pixels, and
strokeWidthis adjusted to the device pixel ratio, so lines may look thinner than expected.NOTE: it may not work well on several elements that are meant to fit together exactly.
cursorOverStyleType
undefined|stringCSS cursor to show while the pointer is over the element, e.g.
"pointer".More info: https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
dateFormatterType
DateFormatter|undefinedA
DateFormatterto use for this element instead of the root's.More info: /v5/concepts/using-formatters/
disabledType
undefined|false|trueApplies the element's
"disabled"state whiletrue. It changes only the look: the element still responds to the pointer.draggableType
undefined|false|trueLets the user drag the element. Touches that start on it no longer scroll the page.
durationFormatterType
DurationFormatter|undefinedA
DurationFormatterto use for this element instead of the root's.More info: /v5/concepts/using-formatters/
dxType
undefined|numberHorizontal shift in pixels. Can be negative to shift leftward.
dyType
undefined|numberVertical shift in pixels. Can be negative to shift upward.
exportableType
undefined|false|trueIf
false, the element is left out of exported images of the chart.focusableType
undefined|false|trueCan element be focused, i.e. selected using TAB key.
More info: Accessibility: focusing elements
focusableGroupType
string|numberSince 5.0.6An identifier by which to group common elements into focusable groups.
If set, only the first element in he group will be focusable via TAB key.
When it is selected, the rest of the elements in the same group can be selected using arrow keys.
It allows users to TAB-through chart elements quickly without the need to TAB into each and every element.
It's up to implementer of the charts to provide meaningful
ariaLabelto the element, which advertises this capability and provides adequate instructions.More info: Accessibility: grouping focusable elements
forceHiddenType
undefined|false|trueHides the element whatever its
visiblesetting, even whenshow()is called.forceInactiveType
undefined|false|trueSince 5.0.21Makes the element and its children ignore the pointer, even with
interactive: trueor event listeners set.heightType
number|Percent|nullHeight in pixels, or a
Percentof the parent's inner height. In a vertical layout, a percent height is a share of the height the other children leave.hoverOnFocusType
undefined|false|trueSimulate hover on an element when it gains focus, including changing hover appearance and displaying a tooltip if applicable.
More info: Accessibility: focusing elements
hueType
undefined|numberSince 5.5.0Rotates the hue of all colors by this many degrees, from
0to360.IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
interactiveType
undefined|false|trueMakes the element respond to the pointer. Adding a pointer event listener to it turns this on.
invertType
undefined|numberSince 5.5.0Color inversion, from
0(no changes) to1(fully inverted colors).IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
isMeasuredType
undefined|false|trueDefaulttrueIf
false, the element's bounds are not measured, so it takes no part in its parent's layout or size.layerType
undefined|numberLayer to draw the element on: elements on higher layers show in front of those on lower ones. If not set, the element is on its parent's layer.
layerMarginType
IMarginSince @5.2.39Margins in pixels that make the element's layer larger than the chart, or, when negative, smaller.
marginBottomType
undefined|numberBottom margin in pixels.
marginLeftType
undefined|numberLeft margin in pixels.
marginRightType
undefined|numberRight margin in pixels.
marginTopType
undefined|numberTop margin in pixels.
maxHeightType
number|nullMaximum allowed height in pixels.
maxWidthType
number|nullMaximum allowed width in pixels.
minHeightType
number|nullMinimum allowed height in pixels.
minWidthType
number|nullMinimum allowed width in pixels.
numberFormatterType
NumberFormatter|undefinedA
NumberFormatterto use for this element instead of the root's.More info: /v5/concepts/using-formatters/
opacityType
undefined|numberDefault1Opacity, from
0(transparent) to1(opaque).The theme's
"default"state hasopacity: 1, soshow(), and leaving a state that changesopacity, bring it back to1, not to a value set here. To come back to another value, set it in the"default"state too:sprite.states.create("default", { opacity: 0.5 }).positionType
"absolute"|"relative"Default"relative"Positioning of the element.
"absolute"leaves the element out of its parent's layout and size: it is placed by itsxandyonly.roleType
RoleElement's role.
More info: Accessibility: roles
rotationType
undefined|numberDefault0Rotation in degrees, clockwise, around the point set by
centerXandcenterY.saturateType
undefined|numberSince 5.5.0Saturation.
0- grayscale1- no changes (default)>1- more saturated IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
scaleType
undefined|numberDefault1Scale, around the point set by
centerXandcenterY: below1shrinks the element, above1enlarges it.sepiaType
undefined|numberSince 5.5.0Sepia tone, from
0(no changes) to1(full sepia).IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
showTooltipOnType
"hover"|"always"|"click"Default"hover"Since 5.0.16When the element's tooltip shows:
"hover"(default) - while the pointer is over the element, or after a tap on it until a tap elsewhere."always"- all the time. To show tooltips of several elements at once, give each its ownTooltip(tooltip)."click"- after a click or tap on the element, until a click anywhere else on the page.
More info: Tooltips: sticky tooltips
tabindexOrderType
undefined|numberAn internal order by which focusable elements will be selected within the chart.
More info: Accessibility: focusing elements
templateFieldType
undefined|stringField in the data item's data object that holds settings for this element, applied over its template's.
More info: Template fields
toggleKeyType
"disabled"|"active"|"none"|undefinedSetting that a click or tap toggles between
trueandfalse:"active"or"disabled"."none"turns toggling off.tooltipType
TooltipThe
Tooltipto show for the element. If not set, the nearest parent's is used.tooltipHTMLType
undefined|stringSince 5.2.11HTML content of the element's tooltip, shown in place of
tooltipText.tooltipPositionType
"fixed"|"pointer"Default"fixed"Where the tooltip points:
"fixed"attooltipXandtooltipY, or"pointer"at the pointer, following it.tooltipTextType
undefined|stringText of the element's tooltip. It can hold data placeholders, such as
{value}.tooltipXType
number|PercentDefaultam5.percent(50)Where on the element the tooltip points, horizontally: pixels from its left edge, or a percent of its width.
tooltipYType
number|PercentDefaultam5.percent(50)Where on the element the tooltip points, vertically: pixels from its top edge, or a percent of its height.
visibleType
undefined|false|trueDefaulttrueWhether the element is shown. Unlike
show()andhide(), it does not animate.wheelableType
undefined|false|trueMakes the element receive mouse wheel events. While the pointer is over it, the wheel no longer scrolls the page.
widthType
number|Percent|nullWidth in pixels, or a
Percentof the parent's inner width. In a horizontal layout, a percent width is a share of the width the other children leave.xType
number|Percent|nullX position in the parent: pixels from its left edge, or a
Percentof its inner width, measured from inside its left padding.yType
number|Percent|nullY position in the parent: pixels from its top edge, or a
Percentof its inner height, measured from inside its top padding.
9 inherited items
animationsType
ArrayInherited fromIEntitySettingsSince 5.20.8Animations the element plays on its own, described as data - so they can be set from a JSON config and saved with it.
Each one animates a setting of the element (or, with
target: "dataItem", a value of its data item - a map point'spositionOnLine, say). They start when the setting is applied, restart when it changes, and stop when the element is disposed. A saved config keeps what was configured, never a value caught half way through an animation.sprite.set("animations", [ { key: "rotation", to: 360, duration: 4000, loops: 0 }, { key: "scale", from: 1, to: 1.3, duration: 800, loops: 0, yoyo: true, easing: "sine" } ]);idType
undefined|stringInherited fromIEntitySettingsA unique ID for looking the element up in
root.entitiesById. Setting an ID that another element already has throws an error.ignoreThemesType
undefined|false|trueDefaultfalseInherited fromIEntitySettingsSince 5.15.6Ignores themes: no theme rule applies to the element, not even one of the default theme.
stateAnimationDurationType
undefined|numberDefault0Inherited fromIEntitySettingsHow long, in milliseconds, a switch from one state to another animates.
0switches at once.stateAnimationEasingType
$ease.EasingDefaultout(cubic)Inherited fromIEntitySettingsEasing of the animated switch from one state to another.
themesType
ArrayInherited fromIEntitySettingsThemes applied to the element and everything inside it.
themeTagsType
ArrayInherited fromIEntitySettingsTags that theme rules can target. They also count for the element's children, so a rule can match a child by a tag of its parent.
More info: Themes
themeTagsSelfType
ArrayInherited fromIEntitySettingsTags that theme rules can target, like
themeTags, but only for this element, not its children.More info: Themes
userDataType
anyInherited fromIEntitySettingsAny data of your own to keep with the element.
Private settings
These are read-only settings accessible from a Sprite object using its getPrivate() method. Read about private settings.
focusableRead onlyType
undefined|false|trueSince 5.3.16If set to
false, its tabindex will be set to -1, so it does not get focused with TAB, regardless whether its public settingfocusableis set totrue.lastTooltipCoordsRead onlyType
IPointSince 5.11.3The last point the tooltip was shown at, so it is not shown again at the same place.
showingTooltipRead onlyType
undefined|false|truetruewhile the element shows its tooltip.tooltipTargetRead onlyType
GraphicsAn element whose tooltip point and colors the tooltip uses, in place of this element's.
trustBoundsRead onlyType
undefined|false|trueSince 5.5.0Checks that the pointer is within the element's bounds before dispatching
"pointerover". This prevents ghost tooltips that sometimes appear while the pointer moves over interactive elements.It is
trueby default onRectangleandCircle.
Properties
classNameStaticType
stringDefault"Sprite"classNamesStaticType
ArrayDefaultEntity.classNames.concat([Sprite.className])dataItemType
DataItem|undefinedThe element's
DataItem, or, if it has none, its nearest parent's.NOTE: data items are assigned automatically in most cases where it matters. Set one only if you know what you are doing.
eventsparentType
Container|undefinedParent
Containerof this element.virtualParentType
Container|undefined
6 inherited items
adaptersType
AdaptersDefaultnew Adapters(this)Inherited fromEntityenableDisposeType
booleanDefaulttrueInherited fromSettingsSet to
falseto makedispose()do nothing.rootType
RootInherited fromEntitySince 5.0.6The
Rootthe object belongs to.statestemplateType
Template|undefinedInherited fromEntityA
Templateapplied to the object. Its settings apply where the object has none set of its own.uidType
numberDefault++counterInherited fromSettingsA unique number, given to each object as it is created.
Methods
appear(duration?:undefined|number,
delay?:undefined|number)Returns
PromisePlays the reveal animation: hides the element at once, then shows it, whether it was hidden or not.
compositeOpacity()Returns
numberSince 5.2.11Returns the element's opacity multiplied by those of all its parents.
compositeRotation()Returns
numberSince 5.9.2Returns the element's rotation plus those of all its parents, in degrees.
compositeScale()Returns
numberSince 5.9.2Returns the element's scale multiplied by those of all its parents.
depth()Returns
numberReturns how deep the element is in the tree: the number of parents it has.
getDateFormatter()Returns
DateFormatterReturns the
DateFormatterof the element: its owndateFormatter, or else the one of theRoot.More info: /v5/concepts/using-formatters/
getDurationFormatter()Returns
DurationFormatterReturns the
DurationFormatterof the element: its owndurationFormatter, or else the one of theRoot.More info: /v5/concepts/using-formatters/
getNumberFormatter()Returns
NumberFormatterReturns the
NumberFormatterof the element: its ownnumberFormatter, or else the one of theRoot.More info: /v5/concepts/using-formatters/
getTooltip()Returns
Tooltip|undefinedReturns the element's
Tooltip: its owntooltip, or else the nearest parent's.height()Returns
numberReturns the element's height in pixels.
hide(duration?:undefined|number)Returns
PromiseHides the element and returns a
Promisethat resolves when its hiding animations finish.series.hide().then(function(ev) { console.log("Series finished hiding"); })series.hide().then(function(ev) { console.log("Series finished hiding"); })hideTooltip()Returns
Promise|undefinedHides the element's
Tooltip.hover()Returns
voidHovers the element as if the pointer were over it: applies its hover state and shows its tooltip.
isDragging()Returns
booleanReturns
truewhile the element is being dragged.isFocus()Returns
booleanReturns
trueif this element does currently have focus.isHidden()Returns
booleanReturns
trueif the element was hidden withhide(), even while its hiding animation still plays. For thevisiblesetting, useisVisible().isHiding()Returns
booleanReturns
truewhile the element's hiding animation plays.isHover()Returns
booleanReturns
trueif the pointer is over the element.isShowing()Returns
booleanReturns
truewhile the element's showing animation plays.isVisible()Returns
booleanReturns
falseif either the public or the private settingvisibleisfalse, orforceHiddenistrue.isVisibleDeep()Returns
booleanSince 5.2.7Same as
isVisible(), except it checks all ascendants, too.markDirtyKey(key:Key)Returns
voidMarks a setting as changed, so the element reads it again, running its adapters, on the next frame.
maxHeight()Returns
numberReturns the most height the element may take, in pixels: its
maxHeight, a fixedheight, or else its parent's inner height.maxWidth()Returns
numberReturns the most width the element may take, in pixels: its
maxWidth, a fixedwidth, or else its parent's inner width.show(duration?:undefined|number)Returns
PromiseShows the element and returns a
Promisethat resolves when its showing animations finish.series.show().then(function(ev) { console.log("Series is now fully visible"); })series.show().then(function(ev) { console.log("Series is now fully visible"); })showTooltip(point?:IPoint)Returns
Promise|undefinedShows the element's
Tooltip. Does nothing if the element has notooltipTextortooltipHTML.toBack()Returns
voidMoves the element to the start of its parent's children, so it is drawn under its siblings, or, in a layout, placed first.
toFront()Returns
voidMoves the element to the end of its parent's children, so it is drawn over its siblings, or, in a layout, placed last.
toGlobal(point:IPoint)Returns
IPointConverts a point within the element to a point relative to the root.
toLocal(point:IPoint)Returns
IPointConverts a point relative to the root to a point within the element.
unhover()Returns
voidEnds a hover, as if the pointer left the element: hides its tooltip and takes it out of its hover state.
width()Returns
numberReturns the element's width in pixels.
x()Returns
numberReturns the element's X position in pixels, relative to its parent, without
dx.y()Returns
numberReturns the element's Y position in pixels, relative to its parent, without
dy.
22 inherited items
animate(options:AnimationOptions)Returns
AnimationInherited fromSettingsAnimates a setting from its current value (or
from) toto. The setting jumps tofromat once. Withduration0, or no value to start from, it is set totoat once and the returned animation is already stopped.More info: Animations: animating settings
dispose()Returns
voidInherited fromSettingsDisposes the object, freeing everything it holds. A disposed object can't be used again.
get(key:Key,
fallback:F)Returns
NonNullable|FInherited fromEntityReturns the value of setting
key, run through any adapters, orfallbackif it is not set.More info: Settings
has(key:Key)Returns
booleanInherited fromSettingsReturns
trueif settingkeyis set.More info: Settings
isDisposed()Returns
booleanInherited fromSettingsReturns
trueif the object has been disposed.isType(type:string)Returns
thisInherited fromEntityReturns
trueif the object is of classtypeor extends it.new(root:Root,
settings:ITSettings,
template?:Template)StaticReturns
TInherited fromEntityCreates an instance of the class. Use it instead of
new Class().More info: Getting started: new element syntax
off(key:Key,
callback?:undefined| (value:[""], target:this, key:Key) =>void)Returns
voidInherited fromSettingsSince 5.9.2Removes a callback added with
on(). Withoutcallback, removes all of them forkey.More info: Events: settings value change
offDebounced(key:Key,
callback?:undefined| (value:[""], target:this, key:Key) =>void)Returns
voidInherited fromSettingsRemoves a callback added with
onDebounced(). Withoutcallback, removes all of them forkey.More info: Events: settings value change
offDebouncedPrivate(key:Key,
callback?:undefined| (value:[""], target:this, key:Key) =>void)Returns
voidInherited fromSettingsRemoves a callback added with
onPrivateDebounced(). Withoutcallback, removes all of them forkey.More info: Events: settings value change
offPrivate(key:Key,
callback?:undefined| (value:[""], target:this, key:Key) =>void)Returns
voidInherited fromSettingsSince 5.9.2Removes a callback added with
onPrivate(). Withoutcallback, removes all of them forkey.More info: Events: settings value change
on(key:Key,
callback: (value:[""], target:this, key:Key) =>void)Returns
IDisposerInherited fromSettingsCalls
callbackeach time the value of settingkeychanges or is removed. Setting the same value again does not call it.More info: Events: settings value change
once(key:Key,
callback: (value:[""], target:this, key:Key) =>void)Returns
IDisposerInherited fromSettingsSince 5.20.4Like
on(), but the callback is removed after it is called once.More info: Events: settings value change
onceDebounced(key:Key,
callback: (value:[""], target:this, key:Key) =>void,
debounceDelay:number)Returns
IDisposerInherited fromSettingsSince 5.20.4Like
onDebounced(), but the callback is removed after it is called once.More info: Events: settings value change
onDebounced(key:Key,
callback: (value:[""], target:this, key:Key) =>void,
debounceDelay:number)Returns
IDisposerInherited fromSettingsLike
on(), but waits until settingkeyhas not changed fordebounceDelaymilliseconds, then callscallbackonce with the latest value.More info: Events: settings value change
onPrivate(key:Key,
callback: (value:[""], target:this, key:Key) =>void)Returns
IDisposerInherited fromSettingsCalls
callbackeach time the value of private settingkeychanges.More info: Events: settings value change
onPrivateDebounced(key:Key,
callback: (value:[""], target:this, key:Key) =>void,
debounceDelay:number)Returns
IDisposerInherited fromSettingsLike
onPrivate(), but waits until private settingkeyhas not changed fordebounceDelaymilliseconds, then callscallbackonce with the latest value.More info: Events: settings value change
remove(key:Key)Returns
voidInherited fromEntityRemoves the value set for setting
key. The setting goes back to the value from a theme or template, if one has it.More info: Settings
removeAll()Returns
voidInherited fromSettingsRemoves all settings, as
remove()does for each one.More info: Settings
set(key:Key,
value:Value)Returns
ValueInherited fromEntitySets setting
keytovalueand returnsvalue. A value set this way overrides themes and templates, and stops any animation of the setting.More info: Settings
setAll(settings:Partial)Returns
voidInherited fromSettingsSets several settings at once, from an object of key-value pairs.
More info: Settings
setTimeout(fn: () =>void,
delay:number)Returns
IDisposerInherited fromEntityCalls
fnafterdelaymilliseconds, unless the object is disposed first. Disposing the returned disposer cancels it.
Events
Add event handlers to Sprite object using its events.on() method. Read about adding event handlers.
blurParam { type:
"blur", target:Sprite, originalEvent:FocusEvent, target:Sprite}Invoked when element loses focus.
boundschangedParam { type:
"boundschanged", target:Sprite}The element's bounds changed.
clickParam { type:
"click", target:Sprite} &ISpritePointerEventThe element was clicked or tapped. A press and release more than 5 pixels apart is not a click.
dataitemchangedParam { type:
"dataitemchanged", target:Sprite, newDataItem:DataItem|undefined, oldDataItem:DataItem|undefined}The element's data item changed.
dblclickParam { type:
"dblclick", target:Sprite} &ISpritePointerEventThe element was double-clicked or double-tapped. Also dispatched on its parents.
draggedParam { type:
"dragged", target:Sprite} &ISpritePointerEventThe element moved while being dragged.
dragstartParam { type:
"dragstart", target:Sprite} &ISpritePointerEventDragging of the element started: the pointer moved more than 5 pixels after pressing on it.
dragstopParam { type:
"dragstop", target:Sprite} &ISpritePointerEventDragging of the element stopped.
focusParam { type:
"focus", target:Sprite, originalEvent:FocusEvent, target:Sprite}Invoked when element gains focus.
globalpointerdownParam { type:
"globalpointerdown", target:Sprite} &ISpritePointerEventA pointer button was pressed, or a touch started, anywhere in the window, even outside the chart.
globalpointermoveParam { type:
"globalpointermove", target:Sprite} &ISpritePointerEventThe pointer moved anywhere in the window, even outside the chart.
globalpointerupParam { type:
"globalpointerup", target:Sprite} &ISpritePointerEventA pointer button was released, or a touch ended, anywhere in the window, even outside the chart.
middleclickParam { type:
"middleclick", target:Sprite} &ISpritePointerEventThe element was clicked with the middle mouse button.
pointerdownParam { type:
"pointerdown", target:Sprite} &ISpritePointerEventA pointer button was pressed, or a touch started, over the element. Also dispatched on its parents.
pointeroutParam { type:
"pointerout", target:Sprite} &ISpritePointerEventThe pointer left the element.
pointeroverParam { type:
"pointerover", target:Sprite} &ISpritePointerEventThe pointer moved over the element.
pointerupParam { type:
"pointerup", target:Sprite} &ISpritePointerEventA pointer button was released, or a touch ended, over the element.
positionchangedParam { type:
"positionchanged", target:Sprite}The element's position changed.
rightclickParam { type:
"rightclick", target:Sprite} &ISpritePointerEventThe element was clicked with the right mouse button.
wheelParam { type:
"wheel", target:Sprite, originalEvent:WheelEvent, point:IPoint}The mouse wheel turned while the pointer was over the element. Also dispatched on its parents.