ISpriteEvents
Type interface
Defines available events available for Sprite.
Sources
ISpriteEvents is an interface: it describes a shape of data and is not imported on its own.
Inheritance
ISpriteEvents extends IInteractionObjectEvents.
ISpriteEvents is extended by IPointedShapeEvents, IPolylineEvents, IRectangleEvents, IContainerEvents, IGridEvents, ITickEvents, IAxisFillEvents, IAxisLineEvents, IRoundedRectangleEvents, ILineEvents, ICircleEvents, ITrapezoidEvents, ITriangleEvents, IPolygonEvents, IImageEvents, IStarEvents, IForceDirectedLinkEvents.
Properties
appearedType
objectInvoked when
Spriteappears. Sprite appears whensprite.appear()method is called and show animation is finished.beforedisposedType
objectInvoked just before Sprite is disposed.
beforevalidatedType
objectInvoked before
Spriteis validated.disabledType
objectInvoked when sprite is disabled
doublehitType
SpritePointerTypeEvent&SpritePointEvent&SpriteMouseTouchEventInvoked when
Spriteis clicked or touched twice in rapid succession.draggedType
SpritePointerTypeEvent&SpriteShiftEvent&SpritePointEvent& { event:MouseEvent|TouchEvent|KeyboardEvent, startPoint:IPoint}Invoked when
draggableobject is being dragged. (using mouse, touch or keyboard).This is simmilar but different then
"drag"event in that it kicks in after"drag"which modifiesSpritecoordinates. This allows doing own manipulations and corrections to element positions.enabledType
objectInvoked when sprite is enabled
globalscalechangedType
objectInvoked when the global scale changed, meaning that scale of
Spriteor any of its ascendants changed.Type
objectInvoked when visible
Spriteis hidden.hitType
SpritePointerTypeEvent&SpritePointEvent&SpriteMouseTouchEventInvoked when
Spriteis clicked or touched.initedType
objectInvoked when
Spriteis initialized.maxsizechangedType { previousHeight:
number, previousWidth:number}Invoked when maximum available size of the Sprite changes, i.e. when the size of parent container changes.
parentsetType
objectInvoked when a sprite is added to a parent
positionchangedType
objectInvoked when position of the
Spritechanges.propertychangedType { property:
string}Invoked when property of the
Spritechanges.readyType
objectInvoked when
Spriteis becomes ready, that is it has finished all calculations and building itself.For
Containerobject (and all those inheriting it, including charts) this event will fire when all children become ready.removedfromqueueType
objectInvoked when chart is shown if
am4core.options.queue = trueor/andam4core.options.onlyShowOnViewport = true.shownType
objectInvoked when hidden
Spriteis shown.sizechangedType
objectInvoked when size of the Sprite changes.
toggledType
objectInvoked when
togglableSprite is being toggled on and off. (itsisActiveproperty is being changed)trackType
SpritePointerTypeEvent&SpritePointEvent&SpritePointerEvent&SpriteMouseTouchEventInvoked when pointer (mouse cursor or touch point) moves over
trackableSprite.transformedType { dummyData:
string}transitionendedType
objectInvoked when Sprite completes transition to a
SpriteState.validatedType
objectInvoked when
Spriteis validated. (on init or after update)visibilitychangedType { visible:
boolean}Invoked when visibility of the
Spritechanges. (from visible to hidden, and vice versa)wheelType
SpritePointEvent&SpriteShiftEvent& { event:WheelEvent}Invoked when user turns mouse wheel while over the
Sprite.wheeldownType
SpritePointEvent&SpriteShiftEvent& { event:WheelEvent}Invoked when user turns mouse wheel downwards while over the
Sprite.wheelleftType
SpritePointEvent&SpriteShiftEvent& { event:WheelEvent}Invoked when user turns mouse wheel leftwards while over the
Sprite.wheelrightType
SpritePointEvent&SpriteShiftEvent& { event:WheelEvent}Invoked when user turns mouse wheel rightwards while over the
Sprite.wheelupType
SpritePointEvent&SpriteShiftEvent& { event:WheelEvent}Invoked when user turns mouse wheel upwards while over the
Sprite.zIndexChangedType
objectInvoked when zIndex of a sprite is changed
18 inherited items
blurType { event:
FocusEvent}Inherited fromIInteractionObjectEventsInvoked when
focusableobject loses focus, e.g. by clicking outside it or pressing TAB button to focus on the next focusable object.downType
PointerTypeEvent&PointerEvent&MouseTouchEventInherited fromIInteractionObjectEventsInvoked when the mouse button is pressed or touch starts.
dragType
PointerTypeEvent&ShiftEvent&PointEvent& { event:MouseEvent|TouchEvent|KeyboardEvent, startPoint:IPoint}Inherited fromIInteractionObjectEventsInvoked when
draggableobject is being dragged. (using mouse, touch or keyboard)dragstartType
PointerTypeEvent& { event:MouseEvent|TouchEvent|KeyboardEvent}Inherited fromIInteractionObjectEventsInvoked when
draggableobject dragging starts. This event is not invoked immediatelly afterdown, but only if there's a movement of the pointer.dragstopType
PointerTypeEvent& { event:MouseTouchEvent|KeyboardEvent}Inherited fromIInteractionObjectEventsInvoked when
draggableobject is released. This event will not fire if position of the object did not change.focusType { event:
FocusEvent}Inherited fromIInteractionObjectEventsInvoked when
focusableobject gains focus, e.g. by using TAB button.inputType { event:
KeyboardEvent}Inherited fromIInteractionObjectEventsInvoked whenever information changes in the textual input elements, like
<input>,<textarea>, etc.keydownType { event:
KeyboardEvent}Inherited fromIInteractionObjectEventsInvoked when the key is pressed on the keyboard.
keypressType { event:
KeyboardEvent}Inherited fromIInteractionObjectEventsInvoked when the key generates a "press", e.g. pressing and holding a letter key will generate repeated "keypress" events.
keyupType { event:
KeyboardEvent}Inherited fromIInteractionObjectEventsInvoked when the key is released on the keyboard.
outType
PointerTypeEvent&MouseTouchEvent&PointerEventInherited fromIInteractionObjectEventsInvoked when mouse cursor moves out of
hoverableobject or it is no longer touched.NOTE: this event might not always contains
pointerparameter as event might be triggered by API?overType
PointerTypeEvent&MouseTouchEvent&PointerEventInherited fromIInteractionObjectEventsInvoked when mouse cursor moves over
hoverableobject or it is touched.NOTE: this event might not always contains
pointerparameter as event might be triggered by API?resizeType
PointerTypeEvent&ScaleEvent&MouseTouchEvent& { point1:IPoint, point2:IPoint, startPoint1:IPoint, startPoint2:IPoint}Inherited fromIInteractionObjectEventsInvoked when
resizableobject is being resized either by mouse or touch pinch gesture.rightclickType
MouseTouchEventInherited fromIInteractionObjectEventsInvoked when right mouse button is clicked on the object.
swipeType
PointerTypeEvent&MouseTouchEventInherited fromIInteractionObjectEventsInvoked when user performs "swiping" gesture (quick horizontal movement) on the object, either using mouse or touch.
swipeleftType
PointerTypeEvent&MouseTouchEventInherited fromIInteractionObjectEventsInvoked when user performs "swiping" gesture towards left.
swiperightType
PointerTypeEvent&MouseTouchEventInherited fromIInteractionObjectEventsInvoked when user performs "swiping" gesture towards right.
upType
PointerTypeEvent&PointerEvent&MouseTouchEventInherited fromIInteractionObjectEventsInvoked when the mouse button is released or touch ends.