Skip to content

API

Enumerations

EnumerationDescription
AnimationFadeOutModeAnimation fade out mode.
BinaryOffset-
BoundingBoxTypeBounding box type.
OffsetModeOffset mode.

Classes

ClassDescription
ActionTimelineState-
AlphaTimelineState-
AnimationThe animation player is used to play the animation data and manage the animation states.
AnimationConfigThe animation config is used to describe all the information needed to play an animation state. The API is still in the experimental phase and may encounter bugs or stability or compatibility issues when used.
AnimationDataThe animation data.
AnimationParametersTimelineState-
AnimationProgressTimelineState-
AnimationStateThe animation state is generated when the animation data is played.
AnimationTimelineData-
AnimationWeightTimelineState-
ArmatureArmature is the core of the skeleton animation system.
ArmatureDataThe armature data.
BaseFactoryBase class for the factory that create the armatures. (Typically only one global factory instance is required) The factory instance create armatures by parsed and added DragonBonesData instances and TextureAtlasData instances. Once the data has been parsed, it has been cached in the factory instance and does not need to be parsed again until it is cleared by the factory instance.
BaseObjectThe BaseObject is the base class for all objects in the DragonBones framework. All BaseObject instances are cached to the object pool to reduce the performance consumption of frequent requests for memory or memory recovery.
BlendState-
BoneBone is one of the most important logical units in the armature animation system, and is responsible for the realization of translate, rotation, scaling in the animations. A armature can contain multiple bones.
BoneAllTimelineState-
BoneDataThe bone data.
BoneRotateTimelineState-
BoneScaleTimelineState-
BoneTranslateTimelineState-
BoundingBoxDataThe base class of bounding box data.
Constraint-
DeformTimelineState-
DoubleValueTimelineState-
DragonBonesDataThe DragonBones data. A DragonBones data contains multiple armature data.
EllipseBoundingBoxDataThe ellipse bounding box data.
EventObjectThe properties of the object carry basic information about an event, which are passed as parameter or parameter's parameter to event listeners when an event occurs.
IKConstraint-
IKConstraintData-
IKConstraintTimelineState-
Matrix2D Transform matrix.
MutilpleValueTimelineState-
PathConstraint-
PathConstraintData-
PixiArmatureDisplayThe armature proxy interface, the docking engine needs to implement it concretely.
PixiFactoryThe PixiJS factory.
PixiSlotThe PixiJS slot.
PixiTextureAtlasDataThe PixiJS texture atlas data.
PixiTextureData-
PointThe Point object represents a location in a two-dimensional coordinate system.
PolygonBoundingBoxDataThe polygon bounding box data.
RectangleA Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y) and by its width and its height.
The x, y, width, and height properties of the Rectangle class are independent of each other; changing the value of one property has no effect on the others. However, the right and bottom properties are integrally related to those four properties. For example, if you change the value of the right property, the value of the width property changes; if you change the bottom property, the value of the height property changes.
RectangleBoundingBoxDataThe rectangle bounding box data.
SingleValueTimelineState-
SkinDataThe skin data, typically a armature data instance contains at least one skinData.
SlotThe slot attached to the armature, controls the display status and properties of the display object. A bone can contain multiple slots. A slot can contain multiple display objects, displaying only one of the display objects at a time, but you can toggle the display object into frame animation while the animation is playing. The display object can be a normal texture, or it can be a display of a child armature, a grid display object, and a custom other display object.
SlotColorTimelineState-
SlotDataThe slot data.
SlotDisplayTimelineState-
SlotZIndexTimelineState-
Surface-
SurfaceData-
SurfaceTimelineState-
TextureAtlasDataThe texture atlas data.
TimelineState-
Transform2D Transform.
TransformObjectThe base class of the transform object.
TweenTimelineState-
UserDataThe user custom data.
WorldClockWorldclock provides clock support for animations, advance time for each IAnimatable object added to the instance.
ZOrderTimelineState-

Interfaces

InterfaceDescription
IAnimatablePlay animation interface. (Both Armature and Wordclock implement the interface) Any instance that implements the interface can be added to the Worldclock instance and advance time by Worldclock instance uniformly.
IArmatureProxyThe armature proxy interface, the docking engine needs to implement it concretely.
IEventDispatcherThe event dispatcher interface. Dragonbones event dispatch usually relies on docking engine to implement, which defines the event method to be implemented when docking the engine.

Functions

FunctionDescription
convertAliasConvert the alias of an asset from one path to another.
getAliasGet the alias for an asset.

Released under the MIT License.