/** * The MIT License (MIT) * * Copyright (c) 2012-2018 DragonBones team and other contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ import { ArmatureType, BoneType, PositionMode, SpacingMode, RotateMode, DisplayType, BoundingBoxType, BlendMode, AnimationBlendType, ActionType } from "../core"; import { DragonBonesData, TextureAtlasData } from "../model"; /** * @private */ export declare abstract class DataParser { protected static readonly DATA_VERSION_2_3: string; protected static readonly DATA_VERSION_3_0: string; protected static readonly DATA_VERSION_4_0: string; protected static readonly DATA_VERSION_4_5: string; protected static readonly DATA_VERSION_5_0: string; protected static readonly DATA_VERSION_5_5: string; protected static readonly DATA_VERSION_5_6: string; protected static readonly DATA_VERSION: string; protected static readonly DATA_VERSIONS: Array; protected static readonly TEXTURE_ATLAS: string; protected static readonly SUB_TEXTURE: string; protected static readonly FORMAT: string; protected static readonly IMAGE_PATH: string; protected static readonly WIDTH: string; protected static readonly HEIGHT: string; protected static readonly ROTATED: string; protected static readonly FRAME_X: string; protected static readonly FRAME_Y: string; protected static readonly FRAME_WIDTH: string; protected static readonly FRAME_HEIGHT: string; protected static readonly DRADON_BONES: string; protected static readonly USER_DATA: string; protected static readonly ARMATURE: string; protected static readonly CANVAS: string; protected static readonly BONE: string; protected static readonly SURFACE: string; protected static readonly SLOT: string; protected static readonly CONSTRAINT: string; protected static readonly SKIN: string; protected static readonly DISPLAY: string; protected static readonly FRAME: string; protected static readonly IK: string; protected static readonly PATH_CONSTRAINT: string; protected static readonly ANIMATION: string; protected static readonly TIMELINE: string; protected static readonly FFD: string; protected static readonly TRANSLATE_FRAME: string; protected static readonly ROTATE_FRAME: string; protected static readonly SCALE_FRAME: string; protected static readonly DISPLAY_FRAME: string; protected static readonly COLOR_FRAME: string; protected static readonly DEFAULT_ACTIONS: string; protected static readonly ACTIONS: string; protected static readonly EVENTS: string; protected static readonly INTS: string; protected static readonly FLOATS: string; protected static readonly STRINGS: string; protected static readonly TRANSFORM: string; protected static readonly PIVOT: string; protected static readonly AABB: string; protected static readonly COLOR: string; protected static readonly VERSION: string; protected static readonly COMPATIBLE_VERSION: string; protected static readonly FRAME_RATE: string; protected static readonly TYPE: string; protected static readonly SUB_TYPE: string; protected static readonly NAME: string; protected static readonly PARENT: string; protected static readonly TARGET: string; protected static readonly STAGE: string; protected static readonly SHARE: string; protected static readonly PATH: string; protected static readonly LENGTH: string; protected static readonly DISPLAY_INDEX: string; protected static readonly Z_ORDER: string; protected static readonly Z_INDEX: string; protected static readonly BLEND_MODE: string; protected static readonly INHERIT_TRANSLATION: string; protected static readonly INHERIT_ROTATION: string; protected static readonly INHERIT_SCALE: string; protected static readonly INHERIT_REFLECTION: string; protected static readonly INHERIT_ANIMATION: string; protected static readonly INHERIT_DEFORM: string; protected static readonly SEGMENT_X: string; protected static readonly SEGMENT_Y: string; protected static readonly BEND_POSITIVE: string; protected static readonly CHAIN: string; protected static readonly WEIGHT: string; protected static readonly BLEND_TYPE: string; protected static readonly FADE_IN_TIME: string; protected static readonly PLAY_TIMES: string; protected static readonly SCALE: string; protected static readonly OFFSET: string; protected static readonly POSITION: string; protected static readonly DURATION: string; protected static readonly TWEEN_EASING: string; protected static readonly TWEEN_ROTATE: string; protected static readonly TWEEN_SCALE: string; protected static readonly CLOCK_WISE: string; protected static readonly CURVE: string; protected static readonly SOUND: string; protected static readonly EVENT: string; protected static readonly ACTION: string; protected static readonly X: string; protected static readonly Y: string; protected static readonly SKEW_X: string; protected static readonly SKEW_Y: string; protected static readonly SCALE_X: string; protected static readonly SCALE_Y: string; protected static readonly VALUE: string; protected static readonly ROTATE: string; protected static readonly SKEW: string; protected static readonly ALPHA: string; protected static readonly ALPHA_OFFSET: string; protected static readonly RED_OFFSET: string; protected static readonly GREEN_OFFSET: string; protected static readonly BLUE_OFFSET: string; protected static readonly ALPHA_MULTIPLIER: string; protected static readonly RED_MULTIPLIER: string; protected static readonly GREEN_MULTIPLIER: string; protected static readonly BLUE_MULTIPLIER: string; protected static readonly UVS: string; protected static readonly VERTICES: string; protected static readonly TRIANGLES: string; protected static readonly WEIGHTS: string; protected static readonly SLOT_POSE: string; protected static readonly BONE_POSE: string; protected static readonly BONES: string; protected static readonly POSITION_MODE: string; protected static readonly SPACING_MODE: string; protected static readonly ROTATE_MODE: string; protected static readonly SPACING: string; protected static readonly ROTATE_OFFSET: string; protected static readonly ROTATE_MIX: string; protected static readonly TRANSLATE_MIX: string; protected static readonly TARGET_DISPLAY: string; protected static readonly CLOSED: string; protected static readonly CONSTANT_SPEED: string; protected static readonly VERTEX_COUNT: string; protected static readonly LENGTHS: string; protected static readonly GOTO_AND_PLAY: string; protected static readonly DEFAULT_NAME: string; protected static _getArmatureType(value: string): ArmatureType; protected static _getBoneType(value: string): BoneType; protected static _getPositionMode(value: string): PositionMode; protected static _getSpacingMode(value: string): SpacingMode; protected static _getRotateMode(value: string): RotateMode; protected static _getDisplayType(value: string): DisplayType; protected static _getBoundingBoxType(value: string): BoundingBoxType; protected static _getBlendMode(value: string): BlendMode; protected static _getAnimationBlendType(value: string): AnimationBlendType; protected static _getActionType(value: string): ActionType; abstract parseDragonBonesData(rawData: any, scale: number): DragonBonesData | null; abstract parseTextureAtlasData(rawData: any, textureAtlasData: TextureAtlasData, scale: number): boolean; }