Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pixi-spine

Package Overview
Dependencies
Maintainers
2
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pixi-spine - npm Package Compare versions

Comparing version 2.0.5 to 2.1.0

155

bin/pixi-spine.d.ts

@@ -22,4 +22,4 @@ declare module PIXI.spine.core {

enum MixDirection {
in = 0,
out = 1
mixIn = 0,
mixOut = 1
}

@@ -179,2 +179,3 @@ enum TimelineType {

static PREV_MIX: number;
static PREV_SOFTNESS: number;
static PREV_BEND_DIRECTION: number;

@@ -184,2 +185,3 @@ static PREV_COMPRESS: number;

static MIX: number;
static SOFTNESS: number;
static BEND_DIRECTION: number;

@@ -192,3 +194,3 @@ static COMPRESS: number;

getPropertyId(): number;
setFrame(frameIndex: number, time: number, mix: number, bendDirection: number, compress: boolean, stretch: boolean): void;
setFrame(frameIndex: number, time: number, mix: number, softness: number, bendDirection: number, compress: boolean, stretch: boolean): void;
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Array<Event>, alpha: number, blend: MixBlend, direction: MixDirection): void;

@@ -253,2 +255,3 @@ }

static HOLD_MIX: number;
static NOT_LAST: number;
data: AnimationStateData;

@@ -284,3 +287,4 @@ tracks: TrackEntry[];

_animationsChanged(): void;
setTimelineModes(entry: TrackEntry): void;
computeHold(entry: TrackEntry): void;
computeNotLast(entry: TrackEntry): void;
hasTimeline(entry: TrackEntry, id: number): boolean;

@@ -420,2 +424,3 @@ getCurrent(trackIndex: number): TrackEntry;

constructor(name: string);
abstract copy(): Attachment;
}

@@ -428,6 +433,7 @@ abstract class VertexAttachment extends Attachment {

worldVerticesLength: number;
deformAttachment: VertexAttachment;
constructor(name: string);
computeWorldVerticesOld(slot: Slot, worldVertices: ArrayLike<number>): void;
computeWorldVertices(slot: Slot, start: number, count: number, worldVertices: ArrayLike<number>, offset: number, stride: number): void;
applyDeform(sourceAttachment: VertexAttachment): boolean;
copyTo(attachment: VertexAttachment): void;
}

@@ -452,3 +458,4 @@ }

Path = 4,
Point = 5
Point = 5,
Clipping = 6
}

@@ -460,2 +467,3 @@ }

constructor(name: string);
copy(): Attachment;
}

@@ -468,2 +476,3 @@ }

constructor(name: string);
copy(): Attachment;
}

@@ -479,10 +488,13 @@ }

color: Color;
width: number;
height: number;
hullLength: number;
edges: Array<number>;
private parentMesh;
inheritDeform: boolean;
tempColor: Color;
constructor(name: string);
applyDeform(sourceAttachment: VertexAttachment): boolean;
getParentMesh(): MeshAttachment;
setParentMesh(parentMesh: MeshAttachment): void;
copy(): Attachment;
newLinkedMesh(): MeshAttachment;
}

@@ -497,2 +509,3 @@ }

constructor(name: string);
copy(): Attachment;
}

@@ -509,2 +522,3 @@ }

computeWorldRotation(bone: Bone): number;
copy(): Attachment;
}

@@ -572,2 +586,3 @@ }

computeWorldVertices(bone: Bone, worldVertices: ArrayLike<number>, offset: number, stride: number): void;
copy(): Attachment;
}

@@ -609,3 +624,5 @@ }

sorted: boolean;
active: boolean;
constructor(data: BoneData, skeleton: Skeleton, parent: Bone);
isActive(): boolean;
update(): void;

@@ -641,2 +658,4 @@ updateWorldTransform(): void;

transformMode: TransformMode;
skinRequired: boolean;
color: Color;
constructor(index: number, name: string, parent: BoneData);

@@ -653,4 +672,7 @@ }

declare module PIXI.spine.core {
interface Constraint extends Updatable {
getOrder(): number;
abstract class ConstraintData {
name: string;
order: number;
skinRequired: boolean;
constructor(name: string, order: number, skinRequired: boolean);
}

@@ -683,3 +705,3 @@ }

declare module PIXI.spine.core {
class IkConstraint implements Constraint {
class IkConstraint implements Updatable {
data: IkConstraintData;

@@ -692,14 +714,14 @@ bones: Array<Bone>;

mix: number;
softness: number;
active: boolean;
constructor(data: IkConstraintData, skeleton: Skeleton);
getOrder(): number;
isActive(): boolean;
apply(): void;
update(): void;
apply1(bone: Bone, targetX: number, targetY: number, compress: boolean, stretch: boolean, uniform: boolean, alpha: number): void;
apply2(parent: Bone, child: Bone, targetX: number, targetY: number, bendDir: number, stretch: boolean, alpha: number): void;
apply2(parent: Bone, child: Bone, targetX: number, targetY: number, bendDir: number, stretch: boolean, softness: number, alpha: number): void;
}
}
declare module PIXI.spine.core {
class IkConstraintData {
name: string;
order: number;
class IkConstraintData extends ConstraintData {
bones: BoneData[];

@@ -712,2 +734,3 @@ target: BoneData;

mix: number;
softness: number;
constructor(name: string);

@@ -717,3 +740,3 @@ }

declare module PIXI.spine.core {
class PathConstraint implements Constraint {
class PathConstraint implements Updatable {
static NONE: number;

@@ -736,3 +759,5 @@ static BEFORE: number;

segments: number[];
active: boolean;
constructor(data: PathConstraintData, skeleton: Skeleton);
isActive(): boolean;
apply(): void;

@@ -744,9 +769,6 @@ update(): void;

addCurvePosition(p: number, x1: number, y1: number, cx1: number, cy1: number, cx2: number, cy2: number, x2: number, y2: number, out: Array<number>, o: number, tangents: boolean): void;
getOrder(): number;
}
}
declare module PIXI.spine.core {
class PathConstraintData {
name: string;
order: number;
class PathConstraintData extends ConstraintData {
bones: BoneData[];

@@ -816,3 +838,3 @@ target: SlotData;

setSkinByName(skinName: string): void;
setSkin(newSkin: Skin | null): void;
setSkin(newSkin: Skin): void;
getAttachmentByName(slotName: string, attachmentName: string): Attachment;

@@ -824,3 +846,3 @@ getAttachment(slotIndex: number, attachmentName: string): Attachment;

findPathConstraint(constraintName: string): PathConstraint;
getBounds(offset: Vector2, size: Vector2, temp: Array<number>): void;
getBounds(offset: Vector2, size: Vector2, temp?: Array<number>): void;
update(delta: number): void;

@@ -832,2 +854,38 @@ flipX: boolean;

}
declare module pixi_spine.core {
class SkeletonBinary {
static AttachmentTypeValues: number[];
static TransformModeValues: TransformMode[];
static PositionModeValues: PositionMode[];
static SpacingModeValues: SpacingMode[];
static RotateModeValues: RotateMode[];
static BlendModeValues: BlendMode[];
static BONE_ROTATE: number;
static BONE_TRANSLATE: number;
static BONE_SCALE: number;
static BONE_SHEAR: number;
static SLOT_ATTACHMENT: number;
static SLOT_COLOR: number;
static SLOT_TWO_COLOR: number;
static PATH_POSITION: number;
static PATH_SPACING: number;
static PATH_MIX: number;
static CURVE_LINEAR: number;
static CURVE_STEPPED: number;
static CURVE_BEZIER: number;
attachmentLoader: AttachmentLoader;
scale: number;
private linkedMeshes;
constructor(attachmentLoader: AttachmentLoader);
readSkeletonData(binary: Uint8Array): SkeletonData;
private readSkin;
private readAttachment;
private readVertices;
private readFloatArray;
private readShortArray;
private readAnimation;
private readCurve;
setCurve(timeline: CurveTimeline, frameIndex: number, cx1: number, cy1: number, cx2: number, cy2: number): void;
}
}
declare module PIXI.spine.core {

@@ -887,2 +945,4 @@ class SkeletonBounds {

pathConstraints: PathConstraintData[];
x: number;
y: number;
width: number;

@@ -894,2 +954,3 @@ height: number;

imagesPath: string;
audioPath: string;
findBone(boneName: string): BoneData;

@@ -928,8 +989,22 @@ findBoneIndex(boneName: string): number;

declare module PIXI.spine.core {
class SkinEntry {
slotIndex: number;
name: string;
attachment: Attachment;
constructor(slotIndex: number, name: string, attachment: Attachment);
}
class Skin {
name: string;
attachments: Map<Attachment>[];
bones: BoneData[];
constraints: ConstraintData[];
constructor(name: string);
addAttachment(slotIndex: number, name: string, attachment: Attachment): void;
setAttachment(slotIndex: number, name: string, attachment: Attachment): void;
addSkin(skin: Skin): void;
copySkin(skin: Skin): void;
getAttachment(slotIndex: number, name: string): Attachment;
removeAttachment(slotIndex: number, name: string): void;
getAttachments(): Array<SkinEntry>;
getAttachmentsForSlot(slotIndex: number, attachments: Array<SkinEntry>): void;
clear(): void;
attachAll(skeleton: Skeleton, oldSkin: Skin): void;

@@ -955,5 +1030,5 @@ }

darkColor: Color;
attachment: Attachment;
private attachment;
private attachmentTime;
attachmentVertices: number[];
deform: number[];
constructor(data: SlotData, bone: Bone);

@@ -1054,3 +1129,3 @@ getAttachment(): Attachment;

declare module PIXI.spine.core {
class TransformConstraint implements Constraint {
class TransformConstraint implements Updatable {
data: TransformConstraintData;

@@ -1064,3 +1139,5 @@ bones: Array<Bone>;

temp: Vector2;
active: boolean;
constructor(data: TransformConstraintData, skeleton: Skeleton);
isActive(): boolean;
apply(): void;

@@ -1072,9 +1149,6 @@ update(): void;

applyRelativeLocal(): void;
getOrder(): number;
}
}
declare module PIXI.spine.core {
class TransformConstraintData {
name: string;
order: number;
class TransformConstraintData extends ConstraintData {
bones: BoneData[];

@@ -1116,2 +1190,3 @@ target: BoneData;

update(): void;
isActive(): boolean;
}

@@ -1152,2 +1227,4 @@ }

clamp(): this;
static rgba8888ToColor(color: Color, value: number): void;
static rgb888ToColor(color: Color, value: number): void;
}

@@ -1194,2 +1271,3 @@ class MathUtils {

static webkit602BugfixHelper(alpha: number, blend: MixBlend): void;
static contains<T>(array: Array<T>, element: T, identity?: boolean): boolean;
}

@@ -1276,2 +1354,17 @@ class DebugUtils {

}
declare namespace PIXI.loaders {
interface IMetadata {
spineSkeletonScale?: number;
spineAtlas?: any;
spineAtlasSuffix?: string;
spineAtlasFile?: string;
spineMetadata?: any;
imageNamePrefix?: string;
atlasRawData?: string;
imageLoader?: any;
images?: any;
imageMetadata?: any;
image?: any;
}
}
declare module PIXI.spine {

@@ -1278,0 +1371,0 @@ class AtlasParser {

4

package.json
{
"name": "pixi-spine",
"version": "2.0.5",
"version": "2.1.0",
"description": "Spine implementation for pixi v^5",

@@ -50,3 +50,3 @@ "author": "Mat Groves",

"parallelshell": "~2.0.0",
"pixi.js-legacy": "~5.0.1",
"pixi.js-legacy": "~5.1.1",
"rimraf": "~2.5.3",

@@ -53,0 +53,0 @@ "tmp": "^0.0.33",

# pixi-spine
[![Build Status](https://travis-ci.org/pixijs/pixi-spine.svg?branch=master)](https://travis-ci.org/pixijs/pixi-spine)
Spine 3.8 implementation for PixiJS v5.
Spine implementation for PixiJS v5.
Supports both `json` and `skel` formats.
For v4 please see [v4.x branch](https://github.com/pixijs/pixi-spine/tree/v4.x) and use npm version `1.5.21`
PixiJS v5 Spine 3.8 - this branch, latest npm
PixiJS v5 Spine 3.7 - [pixi5-spine3.7 branch](https://github.com/pixijs/pixi-spine/tree/pixi5-spine3.7) npm `2.0.5`
PixiJS v4 Spine 3.8 - [pixi4-spine3.8 branch](https://github.com/pixijs/pixi-spine/tree/pixi5-spine3.7) , no npm
PixiJS v4 Spine 3.7 - [v4.x branch](https://github.com/pixijs/pixi-spine/tree/v4.x) npm version `1.5.21`
## Usage

@@ -10,0 +16,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc