Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/DragonBones/DragonBonesJS in…
Browse files Browse the repository at this point in the history
…to dev
  • Loading branch information
akdcl committed Jun 23, 2018
2 parents c76f571 + 6b4692e commit 987ba96
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
23 changes: 18 additions & 5 deletions DragonBones/src/dragonBones/core/DragonBones.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,6 @@ namespace dragonBones {
}
}
//
if (typeof global === "undefined") {
var global = window as any;
}
//
if (!console.warn) {
console.warn = function () { };
}
Expand All @@ -381,4 +377,21 @@ var __extends: any = function (t: any, e: any) {
}
}
r.prototype = e.prototype, t.prototype = new (r as any)();
};
};
//
if (typeof global === "undefined") {
var global = window as any;
}
//
declare var exports: any;
declare var module: any;
declare var define: any;
if (typeof exports === "object" && typeof module === "object") {
module.exports = dragonBones;
}
else if (typeof define === "function" && define["amd"]) {
define(["dragonBones"], function () { return dragonBones; });
}
else if (typeof exports === "object") {
exports["dragonBones"] = dragonBones;
}
4 changes: 2 additions & 2 deletions Pixi/4.x/src/dragonBones/pixi/PixiTextureAtlasData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ namespace dragonBones {

textureData.renderTexture = new PIXI.Texture(
this._renderTexture,
<any>textureData.region as PIXI.Rectangle, // No need to set frame.
<any>textureData.region as PIXI.Rectangle,
new PIXI.Rectangle(textureData.region.x, textureData.region.y, textureData.region.width, textureData.region.height),
new PIXI.Rectangle(textureData.region.x, textureData.region.y, textureData.region.width, textureData.region.height),
new PIXI.Rectangle(0, 0, textureData.region.width, textureData.region.height),
textureData.rotated as any // .d.ts bug
);
Expand Down

1 comment on commit 987ba96

@anderpang
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一个能运行起来的例子都没有。垃圾框架!

Please sign in to comment.