Class: ObjectDataParser
extend:
DataParser
Import example:
import { dragonBones } from "cc";
const { ObjectDataParser } = dragonBones;
Index
Constructors
-
ObjectDataParser
public
Static Properties
-
_objectDataParserInstance
static
Static Methods
-
getInstance
static
-
_getBoolean
static
-
_getNumber
static
-
_getString
static
Properties
-
_actionFrames
protected
-
_animation
protected
-
_armature
protected
-
_bone
protected
-
_cacheBones
protected
-
_cacheMeshes
protected
-
_cacheRawMeshes
protected
-
_data
protected
-
_defaultColorOffset
protected
-
_floatArray
protected
-
_frameArray
protected
-
_frameFloatArray
protected
-
_frameIntArray
protected
-
_helpArray
protected
-
_helpColorTransform
protected
-
_helpMatrixA
protected
-
_helpMatrixB
protected
-
_helpPoint
protected
-
_helpTransform
protected
-
_intArray
protected
-
_mesh
protected
-
_prevClockwise
protected
-
_prevRotation
protected
-
_rawBones
protected
-
_rawTextureAtlasIndex
protected
-
_rawTextureAtlases
protected
-
_skin
protected
-
_slot
protected
-
_slotChildActions
protected
-
_surface
protected
-
_timeline
protected
-
_timelineArray
protected
-
_weightBonePoses
protected
-
_weightSlotPose
protected
Methods
-
_getCurvePoint
protected
-
_mergeActionFrame
protected
-
_modifyArray
protected
-
_parseActionData
protected
-
_parseActionDataInFrame
protected
-
_parseActionFrame
protected
-
_parseAnimation
protected
-
_parseAnimationFrame
protected
-
_parseArmature
protected
-
_parseArray
protected
-
_parseBone
protected
-
_parseBoneAllFrame
protected
-
_parseBoneRotateFrame
protected
-
_parseBoneScaleFrame
protected
-
_parseBoneTimeline
protected
-
_parseBoneTranslateFrame
protected
-
_parseBoundingBox
protected
-
_parseColorTransform
protected
-
_parseDisplay
protected
-
_parseFrame
protected
-
_parseIKConstraint
protected
-
_parseIKConstraintFrame
protected
-
_parseMesh
protected
-
_parseMeshGlue
protected
-
_parsePivot
protected
-
_parsePolygonBoundingBox
protected
-
_parseSkin
protected
-
_parseSlot
protected
-
_parseSlotColorFrame
protected
-
_parseSlotDisplayFrame
protected
-
_parseSlotFFDFrame
protected
-
_parseSlotTimeline
protected
-
_parseSurfaceFrame
protected
-
_parseTimeline
protected
-
_parseTransform
protected
-
_parseTweenFrame
protected
-
_parseZOrderFrame
protected
-
_samplingEasingCurve
protected
Inherited Properties
-
AABB
static
-
ACTION
static
-
ACTIONS
static
-
ALPHA_MULTIPLIER
static
-
ALPHA_OFFSET
static
-
ANIMATION
static
-
ARMATURE
static
-
BEND_POSITIVE
static
-
BLEND_MODE
static
-
BLUE_MULTIPLIER
static
-
BLUE_OFFSET
static
-
BONE
static
-
BONE_POSE
static
-
CANVAS
static
-
CHAIN
static
-
CLOCK_WISE
static
-
COLOR
static
-
COLOR_FRAME
static
-
COMPATIBLE_VERSION
static
-
CONSTRAINT
static
-
CURVE
static
-
DATA_VERSION
static
-
DATA_VERSIONS
static
-
DATA_VERSION_2_3
static
-
DATA_VERSION_3_0
static
-
DATA_VERSION_4_0
static
-
DATA_VERSION_4_5
static
-
DATA_VERSION_5_0
static
-
DATA_VERSION_5_5
static
-
DEFAULT_ACTIONS
static
-
DEFAULT_NAME
static
-
DISPLAY
static
-
DISPLAY_FRAME
static
-
DISPLAY_INDEX
static
-
DRADON_BONES
static
-
DURATION
static
-
EVENT
static
-
EVENTS
static
-
FADE_IN_TIME
static
-
FFD
static
-
FLOATS
static
-
FORMAT
static
-
FRAME
static
-
FRAME_HEIGHT
static
-
FRAME_RATE
static
-
FRAME_WIDTH
static
-
FRAME_X
static
-
FRAME_Y
static
-
GLUE_MESHES
static
-
GLUE_WEIGHTS
static
-
GOTO_AND_PLAY
static
-
GREEN_MULTIPLIER
static
-
GREEN_OFFSET
static
-
HEIGHT
static
-
IK
static
-
IMAGE_PATH
static
-
INHERIT_ANIMATION
static
-
INHERIT_DEFORM
static
-
INHERIT_REFLECTION
static
-
INHERIT_ROTATION
static
-
INHERIT_SCALE
static
-
INHERIT_TRANSLATION
static
-
INTS
static
-
LENGTH
static
-
NAME
static
-
OFFSET
static
-
PARENT
static
-
PATH
static
-
PIVOT
static
-
PLAY_TIMES
static
-
POSITION
static
-
RED_MULTIPLIER
static
-
RED_OFFSET
static
-
ROTATE
static
-
ROTATED
static
-
ROTATE_FRAME
static
-
SCALE
static
-
SCALE_FRAME
static
-
SCALE_X
static
-
SCALE_Y
static
-
SEGMENT_X
static
-
SEGMENT_Y
static
-
SHARE
static
-
SKEW
static
-
SKEW_X
static
-
SKEW_Y
static
-
SKIN
static
-
SLOT
static
-
SLOT_POSE
static
-
SOUND
static
-
STAGE
static
-
STRINGS
static
-
SUB_TEXTURE
static
-
SUB_TYPE
static
-
SURFACE
static
-
TARGET
static
-
TEXTURE_ATLAS
static
-
TRANSFORM
static
-
TRANSLATE_FRAME
static
-
TRIANGLES
static
-
TWEEN_EASING
static
-
TWEEN_ROTATE
static
-
TWEEN_SCALE
static
-
TYPE
static
-
USER_DATA
static
-
UVS
static
-
VALUE
static
-
VERSION
static
-
VERTICES
static
-
WEIGHT
static
-
WEIGHTS
static
-
WIDTH
static
-
X
static
-
Y
static
-
Z_ORDER
static
Inherited Methods
-
parseTextureAtlasData
static
-
parseDragonBonesData
static
-
parseTextureAtlasData
public
-
parseDragonBonesData
public
-
_getActionType
static
-
_getArmatureType
static
-
_getBlendMode
static
-
_getBoneType
static
-
_getBoundingBoxType
static
-
_getDisplayType
static
Details
Constructors
public ObjectDataParser () : ObjectDataParser
Inherited from: DataParser.constructor
Returns: ObjectDataParser
Static Properties
protected _objectDataParserInstance : any
static
Static Methods
public getInstance () : ObjectDataParser
static
Deprecated:
- 已废弃,请参考 {@link dragonBones.BaseFactory#parseDragonBonesData()}。
Returns: ObjectDataParser
static
static
static
Properties
protected _actionFrames : any
readonly
protected _animation : AnimationData
protected _armature : ArmatureData
protected _bone : BoneData
protected _cacheBones : any
readonly
protected _cacheMeshes : any
readonly
protected _cacheRawMeshes : any
readonly
protected _data : DragonBonesData
protected _defaultColorOffset : any
protected _floatArray : any
readonly
protected _frameArray : any
readonly
protected _frameFloatArray : any
readonly
protected _frameIntArray : any
readonly
protected _helpArray : any
readonly
protected _helpColorTransform : any
readonly
protected _helpMatrixA : any
readonly
protected _helpMatrixB : any
readonly
protected _helpPoint : any
readonly
protected _helpTransform : any
readonly
protected _intArray : any
readonly
protected _mesh : MeshDisplayData
protected _prevClockwise : any
protected _prevRotation : any
protected _rawTextureAtlasIndex : number
protected _skin : SkinData
protected _slot : SlotData
protected _slotChildActions : any
readonly
protected _surface : SurfaceData
protected _timeline : TimelineData
protected _timelineArray : any
readonly
protected _weightBonePoses : any
readonly
protected _weightSlotPose : any
readonly
Methods
protected _getCurvePoint (x1 : any, y1 : any, x2 : any, y2 : any, x3 : any, y3 : any, x4 : any, y4 : any, t : any, result : any) : any
Input Parameters
Name | Type | Description |
---|---|---|
x1 | any | - |
y1 | any | - |
x2 | any | - |
y2 | any | - |
x3 | any | - |
y3 | any | - |
x4 | any | - |
y4 | any | - |
t | any | - |
result | any | - |
Returns: any
protected _mergeActionFrame (rawData : any, frameStart : any, type : any, bone : any, slot : any) : any
Input Parameters
Name | Type | Description |
---|---|---|
rawData | any | - |
frameStart | any | - |
type | any | - |
bone | any | - |
slot | any | - |
Returns: any
protected _parseActionData (rawData : any, type : ActionType, bone : null | BoneData, slot : null | SlotData) : ActionData []
Input Parameters
Name | Type | Description |
---|---|---|
rawData | any | - |
type | ActionType | - |
bone | null | BoneData | - |
slot | null | SlotData | - |
Returns: ActionData []
protected _parseActionDataInFrame (rawData : any, frameStart : any, bone : any, slot : any) : any
Input Parameters
Name | Type | Description |
---|---|---|
rawData | any | - |
frameStart | any | - |
bone | any | - |
slot | any | - |
Returns: any
protected _parseActionFrame (frame : ActionFrame, frameStart : number, frameCount : number) : number
Input Parameters
Name | Type | Description |
---|---|---|
frame | ActionFrame | - |
frameStart | number | - |
frameCount | number | - |
Returns: number
protected _parseTimeline (rawData : any, rawFrames : null | any [], framesKey : string, type : TimelineType, addIntOffset : boolean, addFloatOffset : boolean, frameValueCount : number, frameParser : ) : null | TimelineData
protected _samplingEasingCurve (curve : any, samples : any) : any
Input Parameters
Name | Type | Description |
---|---|---|
curve | any | - |
samples | any | - |
Returns: any
Inherited Properties
Inherited Methods
static
Inherited from: DataParser.parseTextureAtlasData
Deprecated:
- 已废弃,请参考 {@link dragonBones.BaseFactory#parsetTextureAtlasData()}。
static
Inherited from: DataParser.parseDragonBonesData
Deprecated:
- 已废弃,请参考 {@link dragonBones.BaseFactory#parsetTextureAtlasData()}。
public parseTextureAtlasData (rawData : any, textureAtlasData : TextureAtlasData, scale ?: number) : boolean
Input Parameters
Name | Type | Description |
---|---|---|
rawData | any | - |
textureAtlasData | TextureAtlasData | - |
scale | number | - |
Returns: boolean
static
Inherited from: BlendMode
static
Inherited from: BoneType